View previous topic :: View next topic |
Author |
Message |
kaldek n00b
Joined: 20 Apr 2005 Posts: 25 Location: Melbourne, Australia
|
Posted: Sun Jan 25, 2009 10:35 pm Post subject: Running out of MTRRs |
|
|
Hi folks,
I have an Acer Aspire one which is now running Gentoo. However, after booting either the SD card reader or onboard Ethernet won't work, and it's due to MTRRs. Specifically, I keep running out of them and which module happened to be looking for one or trying to set one up (if that's even how MTRRs work), that module barfs and loads but won't function.
I have a desktop system and the darn thing only has TWO MTRR registers set up. This Aspire One laptop is using all eight, and they're a bunch of obscure memory slices all over the place:
Code: | reg00: base=0xfffe0000 (4095MB), size= 128KB: write-protect, count=1
reg01: base=0xfffc0000 (4095MB), size= 128KB: uncachable, count=1
reg02: base=0x00000000 ( 0MB), size=1024MB: write-back, count=1
reg03: base=0x40000000 (1024MB), size= 512MB: write-back, count=1
reg04: base=0x5f800000 (1528MB), size= 8MB: uncachable, count=1
reg05: base=0x5f600000 (1526MB), size= 2MB: uncachable, count=1
reg06: base=0x5f500000 (1525MB), size= 1MB: uncachable, count=1
reg07: base=0x00000000 ( 0MB), size= 128KB: uncachable, count=1
|
The system has 1.5GB of memory. 512MB is soldered on-board memory and the other 1GB is a DIMM. I see it has split main memory into two chunks (reg02 and reg03)...is this normal??
An lspci -v reports the following:
Code: | 00:00.0 Host bridge: Intel Corporation Device 27ac (rev 03)
Subsystem: Acer Incorporated [ALI] Device 015b
Flags: bus master, fast devsel, latency 0
Capabilities: [e0] Vendor Specific Information <?>
Kernel driver in use: agpgart-intel
00:02.0 VGA compatible controller: Intel Corporation Device 27ae (rev 03) (prog-if 00 [VGA controller])
Subsystem: Acer Incorporated [ALI] Device 015b
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at 78480000 (32-bit, non-prefetchable) [size=512K]
I/O ports at 60c0 [size=8]
Memory at 60000000 (32-bit, prefetchable) [size=256M]
Memory at 78500000 (32-bit, non-prefetchable) [size=256K]
Capabilities: [90] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable-
Capabilities: [d0] Power Management version 2
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
Subsystem: Acer Incorporated [ALI] Device 015b
Flags: bus master, fast devsel, latency 0
Memory at 78400000 (32-bit, non-prefetchable) [size=512K]
Capabilities: [d0] Power Management version 2
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
Subsystem: Acer Incorporated [ALI] Device 015b
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at 78540000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [50] Power Management version 2
Capabilities: [60] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable-
Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
Capabilities: [100] Virtual Channel <?>
Capabilities: [130] Root Complex Link <?>
Kernel driver in use: HDA Intel
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: 00005000-00005fff
Memory behind bridge: 77300000-783fffff
Prefetchable memory behind bridge: 0000000070000000-0000000070ffffff
Capabilities: [40] Express Root Port (Slot+), MSI 00
Capabilities: [80] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable-
Capabilities: [90] Subsystem: Acer Incorporated [ALI] Device 015b
Capabilities: [a0] Power Management version 2
Capabilities: [100] Virtual Channel <?>
Capabilities: [180] Root Complex Link <?>
Kernel driver in use: pcieport-driver
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
I/O behind bridge: 00003000-00004fff
Memory behind bridge: 76300000-772fffff
Prefetchable memory behind bridge: 0000000071000000-00000000720fffff
Capabilities: [40] Express Root Port (Slot+), MSI 00
Capabilities: [80] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable-
Capabilities: [90] Subsystem: Acer Incorporated [ALI] Device 015b
Capabilities: [a0] Power Management version 2
Capabilities: [100] Virtual Channel <?>
Capabilities: [180] Root Complex Link <?>
Kernel driver in use: pcieport-driver
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
I/O behind bridge: 00002000-00002fff
Memory behind bridge: 75200000-762fffff
Prefetchable memory behind bridge: 0000000072100000-00000000730fffff
Capabilities: [40] Express Root Port (Slot+), MSI 00
Capabilities: [80] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable-
Capabilities: [90] Subsystem: Acer Incorporated [ALI] Device 015b
Capabilities: [a0] Power Management version 2
Capabilities: [100] Virtual Channel <?>
Capabilities: [180] Root Complex Link <?>
Kernel driver in use: pcieport-driver
00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 02) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=04, subordinate=04, sec-latency=0
I/O behind bridge: 00001000-00001fff
Memory behind bridge: 74100000-751fffff
Prefetchable memory behind bridge: 0000000073100000-00000000740fffff
Capabilities: [40] Express Root Port (Slot+), MSI 00
Capabilities: [80] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable-
Capabilities: [90] Subsystem: Acer Incorporated [ALI] Device 015b
Capabilities: [a0] Power Management version 2
Capabilities: [100] Virtual Channel <?>
Capabilities: [180] Root Complex Link <?>
Kernel driver in use: pcieport-driver
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 02) (prog-if 00 [UHCI])
Subsystem: Acer Incorporated [ALI] Device 015b
Flags: bus master, medium devsel, latency 0, IRQ 16
I/O ports at 6080 [size=32]
Kernel driver in use: uhci_hcd
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 02) (prog-if 00 [UHCI])
Subsystem: Acer Incorporated [ALI] Device 015b
Flags: bus master, medium devsel, latency 0, IRQ 17
I/O ports at 6060 [size=32]
Kernel driver in use: uhci_hcd
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 02) (prog-if 00 [UHCI])
Subsystem: Acer Incorporated [ALI] Device 015b
Flags: bus master, medium devsel, latency 0, IRQ 18
I/O ports at 6040 [size=32]
Kernel driver in use: uhci_hcd
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 02) (prog-if 00 [UHCI])
Subsystem: Acer Incorporated [ALI] Device 015b
Flags: bus master, medium devsel, latency 0, IRQ 19
I/O ports at 6020 [size=32]
Kernel driver in use: uhci_hcd
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02) (prog-if 20 [EHCI])
Subsystem: Acer Incorporated [ALI] Device 015b
Flags: bus master, medium devsel, latency 0, IRQ 16
Memory at 78544400 (32-bit, non-prefetchable) [size=1K]
Capabilities: [50] Power Management version 2
Capabilities: [58] Debug port: BAR=1 offset=00a0
Kernel driver in use: ehci_hcd
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2) (prog-if 01 [Subtractive decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=05, subordinate=05, sec-latency=32
Capabilities: [50] Subsystem: Acer Incorporated [ALI] Device 015b
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
Subsystem: Acer Incorporated [ALI] Device 015b
Flags: bus master, medium devsel, latency 0
Capabilities: [e0] Vendor Specific Information <?>
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA IDE Controller (rev 02) (prog-if 80 [Master])
Subsystem: Acer Incorporated [ALI] Device 015b
Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 17
I/O ports at 01f0 [size=8]
I/O ports at 03f4 [size=1]
I/O ports at 0170 [size=8]
I/O ports at 0374 [size=1]
I/O ports at 60a0 [size=16]
Capabilities: [70] Power Management version 2
Kernel driver in use: ata_piix
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
Subsystem: Acer Incorporated [ALI] Device 015b
Flags: medium devsel, IRQ 17
I/O ports at 6000 [size=32]
Kernel driver in use: i801_smbus
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E PCI Express Fast Ethernet controller (rev ff) (prog-if ff)
!!! Unknown header type 7f
Kernel driver in use: r8169
Kernel modules: r8169
03:00.0 Ethernet controller: Atheros Communications, Inc. AR5006EG 802.11 b/g Wireless PCI Express Adapter (rev 01)
Subsystem: Foxconn International, Inc. Device e008
Flags: bus master, fast devsel, latency 0, IRQ 18
Memory at 75200000 (64-bit, non-prefetchable) [size=64K]
Capabilities: [40] Power Management version 2
Capabilities: [50] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable-
Capabilities: [60] Express Legacy Endpoint, MSI 00
Capabilities: [90] MSI-X: Enable- Mask- TabSize=1
Capabilities: [100] Advanced Error Reporting <?>
Capabilities: [140] Virtual Channel <?>
Kernel driver in use: ath5k_pci
04:00.0 System peripheral: JMicron Technologies, Inc. Device 2382
Subsystem: Acer Incorporated [ALI] Device 015b
Flags: bus master, fast devsel, latency 0, IRQ 19
Memory at 74100300 (32-bit, non-prefetchable) [size=256]
Expansion ROM at 73100000 [disabled] [size=32K]
Capabilities: [a4] Power Management version 3
Capabilities: [80] Express Endpoint, MSI 00
Capabilities: [94] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable-
Kernel driver in use: sdhci-pci
Kernel modules: sdhci-pci
04:00.2 SD Host controller: JMicron Technologies, Inc. Device 2381 (prog-if 01)
Subsystem: Acer Incorporated [ALI] Device 015b
Flags: fast devsel, IRQ 19
Memory at 74100200 (32-bit, non-prefetchable) [size=256]
Capabilities: [a4] Power Management version 3
Capabilities: [80] Express Endpoint, MSI 00
Capabilities: [94] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable-
Kernel modules: sdhci-pci
04:00.3 System peripheral: JMicron Technologies, Inc. Device 2383
Subsystem: Acer Incorporated [ALI] Device 015b
Flags: bus master, fast devsel, latency 0, IRQ 11
Memory at 74100100 (32-bit, non-prefetchable) [size=256]
Capabilities: [a4] Power Management version 3
Capabilities: [80] Express Endpoint, MSI 00
Capabilities: [94] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable-
04:00.4 System peripheral: JMicron Technologies, Inc. Device 2384
Subsystem: Acer Incorporated [ALI] Device 015b
Flags: bus master, fast devsel, latency 0, IRQ 11
Memory at 74100000 (32-bit, non-prefetchable) [size=256]
Capabilities: [a4] Power Management version 3
Capabilities: [80] Express Endpoint, MSI 00
Capabilities: [94] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable-
|
If you know how I can somehow fix this problem, I'm happy to hear it. _________________ Experience is something you get just after you need it. |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9691 Location: almost Mile High in the USA
|
Posted: Mon Jan 26, 2009 8:04 pm Post subject: |
|
|
Might want to try the MTRR sanitizer in newer kernels. The MTRR settings you posted look a little messy (overlaps are ugly) but somewhat possible (as in, there's a reason for them.)
Can you go back to 1.0GB RAM and run well? That will also get rid of one MTRR entry.... _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
kaldek n00b
Joined: 20 Apr 2005 Posts: 25 Location: Melbourne, Australia
|
Posted: Tue Jan 27, 2009 4:43 am Post subject: |
|
|
I did some more investigation and found that the mtrr errors only showed up when the X server started and the Intel video driver attempted to set up a new MTRR for its video memory (it's an Intel GMA 950 which uses system RAM).
I also think I've nailed down that a bunch of the MTRR entries are created based on what the BIOS is telling the Kernel, but I don't think they're actually needed. I cannot change these settings as the BIOS is non-editable on this system (Acer Aspire One). I can't be certain that the BIOS caused the MTRR entries of course, but I can't find any other log entries to show what else would have created them.
I took the risk of using the /proc/mtrr interface to disable some of the already-defined MTRR entries:
Code: | echo "disable=0" >| /proc/mtrr
echo "disable=1" >| /proc/mtrr |
This created "space" for the Intel video driver to mark 256MB of memory as write-combined. So far, my Ethernet and SD-card devices are functioning so I am assuming that this means there is indeed correlation between the MTRR message and the devices not operating. _________________ Experience is something you get just after you need it. |
|
Back to top |
|
|
Trainwreck n00b
Joined: 16 Dec 2002 Posts: 24 Location: HR
|
Posted: Tue Feb 03, 2009 10:52 pm Post subject: |
|
|
Here's what my /proc/mtrr shows: Code: | reg00: base=0xfffe0000 (4095MB), size= 128KB: write-protect, count=1
reg01: base=0xfffc0000 (4095MB), size= 128KB: uncachable, count=1
reg02: base=0x00000000 ( 0MB), size= 256MB: write-back, count=1
reg03: base=0x10000000 ( 256MB), size= 256MB: write-back, count=1
reg04: base=0x1f800000 ( 504MB), size= 8MB: uncachable, count=1
reg05: base=0x1f600000 ( 502MB), size= 2MB: uncachable, count=1
reg06: base=0x1f500000 ( 501MB), size= 1MB: uncachable, count=1
reg07: base=0x00000000 ( 0MB), size= 128KB: uncachable, count=1 | Similar to yours (except I only have 512MB ram) nevertheless everything is working fine.
I noticed this in your lspci: Code: |
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E PCI Express Fast Ethernet controller (rev ff) (prog-if ff)
!!! Unknown header type 7f
Kernel driver in use: r8169
Kernel modules: r8169 | Seems strange... |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|