Created attachment 106276 [details] Xorg.0.log Hi, Using Linux 3.16-1-686-pae on Debian (version 3.16.2-3), I am having problems with my MacBook 2,1 : - Hangs on boot most of the time (70%) (needs "hard" shutdown) - On resume (after a suspend to ram), screen backlight not powering on (needs a reboot, soft or hard) I looked in /var/log/kern.log and found this, which might be linked : Sep 13 18:28:30 yvan-macbook kernel: [ 2.087137] [drm] GPU HANG: ecode -1:0x00000000, reason: Command parser error, iir 0x00008000, action: continue Sep 13 18:28:30 yvan-macbook kernel: [ 2.087147] [drm] GPU hangs can indicate a bug anywhere in the entire gfx stack, including userspace. Sep 13 18:28:30 yvan-macbook kernel: [ 2.087153] [drm] Please file a _new_ bug report on bugs.freedesktop.org against DRI -> DRM/Intel Sep 13 18:28:30 yvan-macbook kernel: [ 2.087158] [drm] drm/i915 developers can then reassign to the right component if it's not a kernel issue. Sep 13 18:28:30 yvan-macbook kernel: [ 2.087163] [drm] The gpu crash dump is required to analyze gpu hangs, so please always attach it. Sep 13 18:28:30 yvan-macbook kernel: [ 2.087169] [drm] GPU crash dump saved to /sys/class/drm/card0/error -- chipset: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03) (prog-if 00 [VGA controller]) -- system architecture: 64-bit processor but with 32-bits Linux -- xf86-video-intel: 2:2.21.15-2+b2 -- xserver: 1.16.0 -- mesa: 10.2.6-1 -- libdrm: 2.4.56-1 -- kernel: 3.16-1-686-pae -- Linux distribution: Debian -- Machine or mobo model: MacBook 2,1 -- Display connector: laptop screen Here is the content of /sys/class/drm/card0/error : GPU HANG: ecode -1:0x00000000, reason: Command parser error, iir 0x00008000, action: continue Time: 1410682069 s 555775 us Kernel: 3.16-1-686-pae Reset count: 0 Suspend count: 0 PCI ID: 0x27a2 EIR: 0x00000010 IER: 0x00028053 PGTBL_ER: 0x00000102 FORCEWAKE: 0x00000000 DERRMR: 0x00000000 CCID: 0x00000000 Missed interrupts: 0x00000000 fence[0] = 00000000 fence[1] = 00000000 fence[2] = 00000000 fence[3] = 00000000 fence[4] = 00000000 fence[5] = 00000000 fence[6] = 00000000 fence[7] = 00000000 fence[8] = 00000000 fence[9] = 00000000 fence[10] = 00000000 fence[11] = 00000000 fence[12] = 00000000 fence[13] = 00000000 fence[14] = 00000000 fence[15] = 00000000 INSTDONE_0: 0x7fffffc0 INSTDONE_1: 0x00000000 INSTDONE_2: 0x00000000 INSTDONE_3: 0x00000000 render command stream: bsd command stream: blt command stream: vebox command stream: bsd2 command stream: Active [0]: Pinned [0]: Num Pipes: 2 Pipe [0]: Power: on SRC: 027f01df STAT: 90000a03 Plane [0]: CNTR: 00000000 STRIDE: 00000000 SIZE: 00000000 POS: 00000000 ADDR: 00000000 Cursor [0]: CNTR: 00000000 POS: 00000000 BASE: 00000000 Pipe [1]: Power: on SRC: 027f018f STAT: 90000202 Plane [1]: CNTR: 19000000 STRIDE: 00001000 SIZE: 018f02cf POS: 00000000 ADDR: 00300000 Cursor [1]: CNTR: 00000000 POS: 00000000 BASE: 00000000 CPU transcoder: A Power: on CONF: 00000000 HTOTAL: 031f027f HBLANK: 03170287 HSYNC: 02ef028f VTOTAL: 020c01df VBLANK: 020401e7 VSYNC: 01eb01e9 CPU transcoder: B Power: on CONF: 80000000 HTOTAL: 059f04ff HBLANK: 059f04ff HSYNC: 054f052f VTOTAL: 0336031f VBLANK: 0336031f VSYNC: 03280322 Here is my lspci -v output : 00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03) Subsystem: Intel Corporation Device 7270 Flags: bus master, fast devsel, latency 0 Capabilities: [e0] Vendor Specific Information: Len=09 <?> Kernel driver in use: agpgart-intel 00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03) (prog-if 00 [VGA controller]) Subsystem: Intel Corporation Device 7270 Flags: bus master, fast devsel, latency 0, IRQ 16 Memory at d0380000 (32-bit, non-prefetchable) [size=512K] I/O ports at 20e0 [size=8] Memory at c0000000 (32-bit, prefetchable) [size=256M] Memory at d0400000 (32-bit, non-prefetchable) [size=256K] Expansion ROM at <unassigned> [disabled] Capabilities: [90] MSI: Enable- Count=1/1 Maskable- 64bit- Capabilities: [d0] Power Management version 2 Kernel driver in use: i915 00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03) Subsystem: Intel Corporation Device 7270 Flags: bus master, fast devsel, latency 0 Memory at d0300000 (32-bit, non-prefetchable) [size=512K] Capabilities: [d0] Power Management version 2 00:07.0 Performance counters: Intel Corporation Device 27a3 (rev 03) Flags: 66MHz, fast devsel, IRQ 11 Memory at d0444000 (32-bit, non-prefetchable) [size=4K] Capabilities: [dc] Power Management version 2 00:1b.0 Audio device: Intel Corporation NM10/ICH7 Family High Definition Audio Controller (rev 02) Subsystem: SigmaTel STAC9221 HD Audio Codec Flags: bus master, fast devsel, latency 0, IRQ 43 Memory at d0440000 (64-bit, non-prefetchable) [size=16K] Capabilities: [50] Power Management version 2 Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+ Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00 Capabilities: [100] Virtual Channel Capabilities: [130] Root Complex Link Kernel driver in use: snd_hda_intel 00:1c.0 PCI bridge: Intel Corporation NM10/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: 00001000-00001fff Memory behind bridge: d0200000-d02fffff Prefetchable memory behind bridge: 0000000100000000-00000001001fffff Capabilities: [40] Express Root Port (Slot+), MSI 00 Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit- Capabilities: [90] Subsystem: Device 0000:0000 Capabilities: [a0] Power Management version 2 Capabilities: [100] Virtual Channel Capabilities: [180] Root Complex Link Kernel driver in use: pcieport 00:1c.1 PCI bridge: Intel Corporation NM10/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-00003fff Memory behind bridge: d0100000-d01fffff Prefetchable memory behind bridge: 0000000100200000-00000001003fffff Capabilities: [40] Express Root Port (Slot+), MSI 00 Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit- Capabilities: [90] Subsystem: Device 0000:0000 Capabilities: [a0] Power Management version 2 Capabilities: [100] Virtual Channel Capabilities: [180] Root Complex Link Kernel driver in use: pcieport 00:1d.0 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #1 (rev 02) (prog-if 00 [UHCI]) Subsystem: Intel Corporation Device 7270 Flags: bus master, medium devsel, latency 0, IRQ 21 I/O ports at 2080 [size=32] Kernel driver in use: uhci_hcd 00:1d.1 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #2 (rev 02) (prog-if 00 [UHCI]) Subsystem: Intel Corporation Device 7270 Flags: bus master, medium devsel, latency 0, IRQ 19 I/O ports at 2060 [size=32] Kernel driver in use: uhci_hcd 00:1d.2 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #3 (rev 02) (prog-if 00 [UHCI]) Subsystem: Intel Corporation Device 7270 Flags: bus master, medium devsel, latency 0, IRQ 18 I/O ports at 2040 [size=32] Kernel driver in use: uhci_hcd 00:1d.3 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #4 (rev 02) (prog-if 00 [UHCI]) Subsystem: Intel Corporation Device 7270 Flags: bus master, medium devsel, latency 0, IRQ 16 I/O ports at 2020 [size=32] Kernel driver in use: uhci_hcd 00:1d.7 USB controller: Intel Corporation NM10/ICH7 Family USB2 EHCI Controller (rev 02) (prog-if 20 [EHCI]) Subsystem: Intel Corporation Device 7270 Flags: bus master, medium devsel, latency 0, IRQ 21 Memory at d0445400 (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-pci 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=03, subordinate=03, sec-latency=32 Memory behind bridge: d0000000-d00fffff Capabilities: [50] Subsystem: Device 0000:0000 00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02) Subsystem: Intel Corporation Device 7270 Flags: bus master, medium devsel, latency 0 Capabilities: [e0] Vendor Specific Information: Len=0c <?> Kernel driver in use: lpc_ich 00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02) (prog-if 8a [Master SecP PriP]) Subsystem: Intel Corporation Device 7270 Flags: bus master, medium devsel, latency 0, IRQ 18 I/O ports at 01f0 [size=8] I/O ports at 03f4 I/O ports at 0170 [size=8] I/O ports at 0374 I/O ports at 20b0 [size=16] Kernel driver in use: ata_piix 00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7-M Family) SATA Controller [IDE mode] (rev 02) (prog-if 8f [Master SecP SecO PriP PriO]) Subsystem: Intel Corporation Device 7270 Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 19 I/O ports at 20c8 [size=8] I/O ports at 20ec [size=4] I/O ports at 20c0 [size=8] I/O ports at 20e8 [size=4] I/O ports at 20a0 [size=16] Memory at d0445000 (32-bit, non-prefetchable) [size=1K] Capabilities: [70] Power Management version 2 Kernel driver in use: ata_piix 00:1f.3 SMBus: Intel Corporation NM10/ICH7 Family SMBus Controller (rev 02) Subsystem: Intel Corporation Device 7270 Flags: medium devsel, IRQ 19 I/O ports at efa0 [size=32] 01:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8053 PCI-E Gigabit Ethernet Controller (rev 22) Subsystem: Marvell Technology Group Ltd. Marvell RDK-8053 Physical Slot: 0 Flags: bus master, fast devsel, latency 0, IRQ 42 Memory at d0200000 (64-bit, non-prefetchable) [size=16K] I/O ports at 1000 [size=256] Expansion ROM at d0220000 [disabled] [size=128K] Capabilities: [48] Power Management version 2 Capabilities: [50] Vital Product Data Capabilities: [5c] MSI: Enable+ Count=1/2 Maskable- 64bit+ Capabilities: [e0] Express Legacy Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Kernel driver in use: sky2 02:00.0 Network controller: Qualcomm Atheros AR5418 Wireless Network Adapter [AR5008E 802.11(a)bgn] (PCI-Express) (rev 01) Subsystem: Apple Inc. AirPort Extreme Physical Slot: 1 Flags: bus master, fast devsel, latency 0, IRQ 17 Memory at d0100000 (64-bit, non-prefetchable) [size=64K] Capabilities: [40] Power Management version 2 Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit- Capabilities: [60] Express Legacy Endpoint, MSI 00 Capabilities: [90] MSI-X: Enable- Count=1 Masked- Capabilities: [100] Advanced Error Reporting Capabilities: [140] Virtual Channel Kernel driver in use: ath9k 03:03.0 FireWire (IEEE 1394): LSI Corporation FW322/323 [TrueFire] 1394a Controller (rev 61) (prog-if 10 [OHCI]) Subsystem: LSI Corporation FW322/323 [TrueFire] 1394a Controller Flags: bus master, fast Back2Back, medium devsel, latency 248, IRQ 19 Memory at d0000000 (32-bit, non-prefetchable) [size=4K] Capabilities: [44] Power Management version 2 Kernel driver in use: firewire_ohci Do not hesitate to ask more information if you need. Thanks for your time and work, Yvan Masson
Created attachment 106277 [details] dmesg with drm.debug=0x06
Created attachment 106278 [details] i915_error_state
I am now using linux 3.16.2-3 from Debian Sid for a few days and I did no hit this bug again : I think this is corrected.
Thanks, please reopen if the problem persists.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.