Skip to contentSkip to conversation

2.4.19-pre3: kernel bug: kswapd vmscan.c:358

DISCUSSION Mikael Pettersson 1 participant 1 message Mar 23, 2002

lore
Share & tools
lore
#0 lore raw
Quoted 5 lines · S W

Bare 2.4.19-pre3 Kernel, running all VIA-chipsets mobo with "cachesize=0" boot option. (author of previous
msg: (Cyrix II L2-cache redux?).

Regularly getting kswapd vmscan.c:358 Kernel bug.

You're the one with a VIA C3 with broken L2 cache? The "cachesize=0" option will not affect the L2 cache, only the kernel's reporting of cache size. (Apparently due to some Tualatins not being able to report correct cache size.)

That C3 is broken and should be replaced. If you really want to use it, you'll need to hardware-disable the L2 cache. Your BIOS should have an option for that; if not, try the patch below.

/Mikael

arch/i386/kernel/setup.c renamed from arch/i386/kernel/setup.c.~1~ +1 -0
@@ -1939,6 +1939,7 @@
 				case 6 ... 8:		/* Cyrix III family */
 					rdmsr (MSR_VIA_FCR, lo, hi);
 					lo |= (1<<1 | 1<<7);	/* Report CX8 & enable PGE */
+					lo |= (1<<8);
 					wrmsr (MSR_VIA_FCR, lo, hi);
 
 					set_bit(X86_FEATURE_CX8, &c->x86_capability);