2.5.69: mtrr: MTRR 2 not used, Bug #564

2.5.69: mtrr: MTRR 2 not used, Bug #564

Post by Faik Uygu » Sun, 11 May 2003 18:10:09



This one-liner fixes the mtrr not used bug, and addresses Bug #564
of Bugzilla.

mtrr_file_del was not decreasing the mtrr usage count so when
XFree86 was exiting, mtrr_close was trying to delete an already
deleted memory type region with the freed mtrr.

Index: arch/i386/kernel/cpu/mtrr/if.c
===================================================================
RCS file: /home/faiku/cvs/linux-2.5/arch/i386/kernel/cpu/mtrr/if.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 if.c
--- arch/i386/kernel/cpu/mtrr/if.c      10 May 2003 07:06:50 -0000      1.1.1.1

              struct file *file, int page)
 {
        int reg;
-       unsigned int *fcount = file->private_data;
+       unsigned int *fcount = FILE_FCOUNT(file);

        if (!page) {
                if ((base & (PAGE_SIZE - 1)) || (size & (PAGE_SIZE - 1)))
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. New: kernel prints "mtrr: MTRR 2 not used" twice when exiting X

http://bugme.osdl.org/show_bug.cgi?id=564

           Summary: kernel prints "mtrr: MTRR 2 not used" twice when exiting
                    X
    Kernel Version: 2.5.67-bk1
            Status: NEW
          Severity: low


Distribution: Debian Testing
Hardware Environment: Dell Optiplex GXa, P2 266mhz, Rage Pro AGP, 256mb RAM
Video mode to be used for restore is ffff
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 00000000000a0000 (usable)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 0000000010000000 (usable)
 BIOS-e820: 00000000ffe00000 - 0000000100000000 (reserved)
<snip>
mtrr: v2.0 (20020519)
PCI: PCI BIOS revision 2.10 entry at 0xfcf4e, last bus=2
<snip>
Linux agpgart interface v0.100 (c) Dave Jones
agpgart: Detected Intel 440LX chipset
agpgart: Maximum main memory to use for agp memory: 204M


[drm] Initialized r128 2.3.0 20021029 on minor 0

Software Environment: X configed to load dri and drm.
CONFIG_MTRR=y
CONFIG_AGP=y
CONFIG_AGP_INTEL=y
CONFIG_DRM=y
CONFIG_DRM_R128=y

Problem Description:
When exiting X (using ctrl+alt+backspace, I don't have a mouse on this machine
yet) the kernel prints the following message twice: "mtrr: MTRR 2 not used"

Steps to reproduce:
Exit X using ctrl+alt+bksp

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. SCSI card : Asus SC200 or Tekram DC 390 ?

3. OSDL DBT-2 AS vs. Deadline 2.5.69-mm3 2.5.69-mm2

4. How to cure X-windows panning?

5. 2.5.69 - Nothing gets installed in /lib/modules/2.5.69/kernel

6. Newbie + 2 Questions?

7. USB mouse freezes under X - 2.5.69 and 2.5.69-mm*

8. Printer problem - what process want's to access

9. [2.5.69] kexec for 2.5.69 available

10. Problems with IDE CF in 2.5.69, 2.5.69-bk13

11. Problem with mtrr and Cyrix 6x86MX: no mtrr for...

12. problems using via82xx with 2.5.69

13. USB not working with 2.5.69, worked with .68