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

From: Kari Hameenaho (khaho@koti.soon.fi)
Date: Thu Sep 19 2002 - 02:02:40 EST


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/



This archive was generated by hypermail 2b29 : Mon Sep 23 2002 - 22:00:25 EST