[PATCH] to fix 2.5.36 MTRR for X (Was: X freezes and input problems)

Kari Hameenaho (khaho@koti.soon.fi)
Thu, 19 Sep 2002 10:02:40 +0300


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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/