One would also expect that cache scrubbing requires hardware
support.
Signed-off-by: doug thompson <norsk5@xxxxxxxxxxxx>
+/* Valid scrub rates for the K8 hardware memory scrubber. We map
+ maps the scrubbing bandwith to a valid bit pattern. The 'set'
+ Currently, we only do scrubbing of sdram - the caches are assumed
+ to be excercised always by running code and if the scrubber is done
+ search for the bandwith that is eq or gt than the
+ for (i=0; scrubrates[i].bandwidth != SDRATE_EOD; i++) {
+ /* find the bandwith matching the memory scrubber configuration
+ for (i=0; scrubrates[i].bandwidth != SDRATE_EOD; i++) {
+ /* the bit pattern is invalid - we might fix it
+ by applying the slowest scrub rate as this is
+ closest to the valid value, but we do not!
+ if (scrubrates[i].bandwidth == SDRATE_EOD) {
+ edac_printk(KERN_WARNING, EDAC_MC,
+ "Invalid sdram scrub control value: %d \n",
/* FIXME - stolen from msr.c - the calls in msr.c could be exported */