This patch fixes MTRR for me, restoring the mtrr_add_page() old return value behaviour that X seems to need.
The input problem (mouse pointer jumping) seems to be in sylpheed only, so it is application problem.
diff -urN linux-2.5.36/arch/i386/kernel/cpu/mtrr/main.c linux-2.5.36-kjh/arch/i386/kernel/cpu/mtrr/main.c
--- linux-2.5.36/arch/i386/kernel/cpu/mtrr/main.c Wed Sep 18 03:58:43 2002+++ linux-2.5.36-kjh/arch/i386/kernel/cpu/mtrr/main.c Thu Sep 19 09:33:06 2002@@ -348,6 +348,7 @@
"mtrr: 0x%lx000,0x%lx000 overlaps existing"
" 0x%lx000,0x%lx000\n", base, size, lbase,
lsize);
+ error = -EINVAL;
goto out;
}
/* New region is enclosed by an existing region */
@@ -357,6 +358,7 @@
printk ("mtrr: type mismatch for %lx000,%lx000 old: %s new: %s\n",
base, size, attrib_to_str(ltype),
attrib_to_str(type));
+ error = -EINVAL;
goto out;
}
if (increment)
---
Kari H?meenaho