[BISECTED] [drm:i915_initialize] *ERROR* can not ioremap virtualaddress for ring buffer

From: Paolo Ornati
Date: Sat Feb 21 2009 - 05:01:17 EST


Hello, my system doesn't seems to like this commit ;)

----------- 8< --------------------------- 8< -----------------------

ab657db12d7020629f26f30d287558a8d0e32b41 is first bad commit
commit ab657db12d7020629f26f30d287558a8d0e32b41
Author: Eric Anholt <eric@xxxxxxxxxx>
Date: Fri Jan 23 12:57:47 2009 -0800

drm/i915: Set up an MTRR covering the GTT at driver load.

We'd love to just be using PAT, but even on chips with PAT it gets
disabled sometimes due to an errata. It would probably be better
to have pat_enabled exported and only bother with this
when !pat_enabled.

Signed-off-by: Eric Anholt <eric@xxxxxxxxxx>
Signed-off-by: Dave Airlie <airlied@xxxxxxxx>

----------- 8< --------------------------- 8< -----------------------

It causes this as soon as X starts:

[ 25.047384] [drm:i915_initialize] *ERROR* can not ioremap virtual
address for ring buffer [ 25.047445] [drm:drm_unlock] *ERROR* Process
4169 using kernel context 0


My hardware (82G965 Integrated Graphics Controller):

00:00.0 Host bridge: Intel Corporation 82P965/G965 Memory Controller Hub (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82G965 Integrated Graphics Controller (rev 02)
00:03.0 Communication controller: Intel Corporation 82P965/G965 HECI Controller (rev 02)
00:19.0 Ethernet controller: Intel Corporation 82566DC Gigabit Network Connection (rev 02)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 02)
00:1c.2 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 (rev 02)
00:1c.3 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 4 (rev 02)
00:1c.4 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev f2)
00:1f.0 ISA bridge: Intel Corporation 82801HB/HR (ICH8/R) LPC Interface Controller (rev 02)
00:1f.2 SATA controller: Intel Corporation 82801HB (ICH8) 4 port SATA AHCI Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 02)
02:00.0 IDE interface: Marvell Technology Group Ltd. 88SE6101 single-port PATA133 interface (rev b1)
06:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)



Full dmesg and config attached.


The problem seems to depend also on my boot options.

With "fastboot initcall_debug", it happens all the time.

With "fastboot initcall_debug vga=0x305" it doesn't happen.


Booting current -git with that commit reverted (good) and not reverted
(bad), with "fastboot initcall_debug" I've noticed mtrr change:

--- mtrr-good 2009-02-21 10:49:14.000000000 +0100
+++ mtrr-bad 2009-02-21 10:51:30.000000000 +0100
@@ -2,4 +2,4 @@
reg01: base=0x07f000000 ( 2032MB), size= 16MB, count=1: uncachable
reg02: base=0x07e800000 ( 2024MB), size= 8MB, count=1: uncachable
reg03: base=0x07e700000 ( 2023MB), size= 1MB, count=1: uncachable
-reg04: base=0x080000000 ( 2048MB), size= 256MB, count=1: write-combining
+reg04: base=0x080000000 ( 2048MB), size= 256MB, count=2: write-combining
^^^


Additional info:

/proc/iomem
============
00000000-0008efff : System RAM
0008f000-0009ffff : reserved
000c0000-000dffff : pnp 00:01
000e0000-000fffff : reserved
00100000-7e598fff : System RAM
00200000-005914d7 : Kernel code
005914d8-00792d1f : Kernel data
00810000-00870d27 : Kernel bss
7e599000-7e5a5fff : reserved
7e5a6000-7e64cfff : System RAM
7e64d000-7e6a4fff : ACPI Non-volatile Storage
7e6a5000-7e6a9fff : ACPI Tables
7e6aa000-7e6aafff : System RAM
7e6ab000-7e6f1fff : ACPI Non-volatile Storage
7e6f2000-7e6fefff : ACPI Tables
7e6ff000-7e6fffff : System RAM
7e700000-7effffff : reserved
80000000-8fffffff : 0000:00:02.0
90000000-900fffff : PCI Bus 0000:06
90000000-900000ff : 0000:06:01.0
90000000-900000ff : 8139too
90100000-901fffff : PCI Bus 0000:02
90100000-901001ff : 0000:02:00.0
90200000-902fffff : 0000:00:02.0
90300000-9031ffff : 0000:00:19.0
90300000-9031ffff : e1000e
90320000-90323fff : 0000:00:1b.0
90320000-90323fff : ICH HD audio
90324000-90324fff : 0000:00:19.0
90324000-90324fff : e1000e
90325000-903257ff : 0000:00:1f.2
90325000-903257ff : ahci
90325800-90325bff : 0000:00:1d.7
90325800-90325bff : ehci_hcd
90325c00-90325fff : 0000:00:1a.7
90325c00-90325fff : ehci_hcd
90326000-903260ff : 0000:00:1f.3
90326100-9032610f : 0000:00:03.0
90327000-90327fff : Intel Flush Page
f0000000-f7ffffff : PCI MMCONFIG 0
f0000000-f7ffffff : pnp 00:01
fec00000-fec00fff : IOAPIC 0
fed00000-fed003ff : HPET 0
fed13000-fed13fff : pnp 00:01
fed14000-fed17fff : pnp 00:01
fed18000-fed18fff : pnp 00:01
fed19000-fed19fff : pnp 00:01
fed1c000-fed1ffff : pnp 00:01
fed20000-fed3ffff : pnp 00:01
fed45000-fed99fff : pnp 00:01
fee00000-fee00fff : Local APIC
fff00000-ffffffff : reserved


/proc/ioports
===============
0000-001f : dma1
0020-0021 : pic1
0040-0043 : timer0
0050-0053 : timer1
0060-0060 : keyboard
0064-0064 : keyboard
0070-0077 : rtc
0080-008f : dma page reg
00a0-00a1 : pic2
00c0-00df : dma2
00f0-00ff : fpu
03c0-03df : vga+
03f2-03f2 : floppy
03f4-03f5 : floppy
03f7-03f7 : floppy
0400-047f : 0000:00:1f.0
0400-047f : pnp 00:06
0400-0403 : ACPI PM1a_EVT_BLK
0404-0405 : ACPI PM1a_CNT_BLK
0408-040b : ACPI PM_TMR
0410-0415 : ACPI CPU throttle
0420-0420 : ACPI PM2_CNT_BLK
0428-042f : ACPI GPE0_BLK
0500-053f : 0000:00:1f.0
0500-053f : pnp 00:06
0680-06ff : pnp 00:06
0cf8-0cff : PCI conf1
1000-1fff : PCI Bus 0000:06
1000-10ff : 0000:06:01.0
1000-10ff : 8139too
2000-2fff : PCI Bus 0000:02
2000-200f : 0000:02:00.0
2000-200f : pata_marvell
2010-2017 : 0000:02:00.0
2018-201f : 0000:02:00.0
2018-201f : pata_marvell
2020-2023 : 0000:02:00.0
2024-2027 : 0000:02:00.0
2024-2027 : pata_marvell
3000-301f : 0000:00:1f.3
3020-303f : 0000:00:1f.2
3020-303f : ahci
3040-305f : 0000:00:1d.2
3040-305f : uhci_hcd
3060-307f : 0000:00:1d.1
3060-307f : uhci_hcd
3080-309f : 0000:00:1d.0
3080-309f : uhci_hcd
30a0-30bf : 0000:00:1a.1
30a0-30bf : uhci_hcd
30c0-30df : 0000:00:1a.0
30c0-30df : uhci_hcd
30e0-30ff : 0000:00:19.0
3400-3407 : 0000:00:1f.2
3400-3407 : ahci
3408-340f : 0000:00:1f.2
3408-340f : ahci
3410-3417 : 0000:00:02.0
3418-341b : 0000:00:1f.2
3418-341b : ahci
341c-341f : 0000:00:1f.2
341c-341f : ahci


--
Paolo Ornati
Linux 2.6.29-rc5-00207-gfeada95 on x86_64

Attachment: dmesg-err
Description: Binary data

Attachment: config
Description: Binary data