bad DMAR interaction with iwlagn and SATA

From: Andres Freund
Date: Thu Sep 25 2008 - 09:17:53 EST


Hi,

in some accident caused by wanting to create the .config/compile the kernel
for my new laptop (thinkpad t500) before the desperately needed sleeping I
activated DMAR...

I don't know if this is relevant, but I though i better report it.


This was on fb478da5ba69ecf40729ae8ab37ca406b1e5be48 - sometime after 2.6.27-
rc7

I stumbled over two buglets:
First:
[ 4184.617392] DMAR:[DMA Read] Request device [03:00.0] fault addr fa946000
[ 4184.617393] DMAR:[fault reason 06] PTE Read access is not set
[ 4184.644081] iwlagn: Microcode HW error detected. Restarting.
[ 4186.646000] psmouse.c: TouchPad at isa0060/serio1/input0 lost
synchronization, throwing 1 bytes away.
[ 4186.683034] Registered led device: iwl-phy0:radio
[ 4186.683478] Registered led device: iwl-phy0:assoc
[ 4186.683793] Registered led device: iwl-phy0:RX
[ 4186.684094] Registered led device: iwl-phy0:TX
[ 4186.689749] wlan0: authenticate with AP 00:1d:7e:42:fe:42
[ 4186.691691] wlan0: authenticated
[ 4186.691705] wlan0: associate with AP 00:1d:7e:42:fe:42
[ 4186.696380] wlan0: RX ReassocResp from 00:1d:7e:42:fe:42 (capab=0x411
status=0 aid=2)
[ 4186.696392] wlan0: associated

Most of the time when this happened, the machine wasnt reacting for 1-3
seconds and had audio buffer underruns, but I also had a hard lockup which I
couldnt diagnose so far.

Second:
[ 2937.484251] DMAR:[DMA Read] Request device [00:1f.2] fault addr fffbf000
[ 2937.484255] DMAR:[fault reason 06] PTE Read access is not set
[ 2937.484297] ata1.00: exception Emask 0x60 SAct 0x1 SErr 0x800 action 0x6
frozen
[ 2937.484303] ata1.00: irq_stat 0x20000000, host bus error
[ 2937.484309] ata1: SError: { HostInt }
[ 2937.484319] ata1.00: cmd 61/08:00:c0:1d:6b/00:00:07:00:00/40 tag 0 ncq 4096
out
[ 2937.484321] res 40/00:00:c0:1d:6b/00:00:07:00:00/40 Emask 0x60
(host bus error)
[ 2937.484327] ata1.00: status: { DRDY }
[ 2937.484338] ata1: hard resetting link
[ 2937.803070] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[ 2937.844250] ata1.00: ACPI cmd ef/02:00:00:00:00:a0 succeeded
[ 2937.844255] ata1.00: ACPI cmd f5/00:00:00:00:00:a0 filtered out
[ 2937.845315] ata1.00: ACPI cmd ef/5f:00:00:00:00:a0 succeeded
[ 2937.845319] ata1.00: ACPI cmd ef/10:03:00:00:00:a0 filtered out
[ 2937.855347] ata1.00: ACPI cmd ef/02:00:00:00:00:a0 succeeded
[ 2937.855353] ata1.00: ACPI cmd f5/00:00:00:00:00:a0 filtered out
[ 2937.855436] ata1.00: ACPI cmd ef/5f:00:00:00:00:a0 succeeded
[ 2937.855438] ata1.00: ACPI cmd ef/10:03:00:00:00:a0 filtered out
[ 2937.856146] ata1.00: configured for UDMA/100
[ 2937.857754] ata1.00: configured for UDMA/100
[ 2937.857764] ata1: EH complete
[ 2937.857868] sd 0:0:0:0: [sda] 312581808 512-byte hardware sectors (160042
MB)
[ 2937.857885] sd 0:0:0:0: [sda] Write Protect is off
[ 2937.857887] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 2937.857911] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled,
doesn't support DPO or FUA
[ 2937.857934] sd 0:0:0:0: [sda] 312581808 512-byte hardware sectors (160042
MB)
[ 2937.857946] sd 0:0:0:0: [sda] Write Protect is off
[ 2937.857948] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 2937.857971] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled,
doesn't support DPO or FUA

System worked without propblems afterwards.

I think I had also some wierd interaction with ext3 - but I couldnt diagnose
this as the machine crashed - there was some filesystem damage afterwards. But
I wasnt able to diagnose it properly.


Andres

If you need dmesg or so, I will happily provide it - but I can't reboot just
now, waiting for some long running work stuff.
00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)
Subsystem: Lenovo Device 20e0
Flags: bus master, fast devsel, latency 0
Capabilities: <access denied>
Kernel driver in use: agpgart-intel
Kernel modules: intel-agp

00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
Subsystem: Lenovo Device 2114
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at f4400000 (64-bit, non-prefetchable) [size=4M]
Memory at d0000000 (64-bit, prefetchable) [size=256M]
I/O ports at 1800 [size=8]
Capabilities: <access denied>

00:02.1 Display controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
Subsystem: Lenovo Device 2114
Flags: bus master, fast devsel, latency 0
Memory at f4200000 (64-bit, non-prefetchable) [size=1M]
Capabilities: <access denied>

00:03.0 Communication controller: Intel Corporation Mobile 4 Series Chipset MEI Controller (rev 07)
Subsystem: Lenovo Device 20e6
Flags: bus master, fast devsel, latency 0, IRQ 11
Memory at fc226800 (64-bit, non-prefetchable) [size=16]
Capabilities: <access denied>

00:19.0 Ethernet controller: Intel Corporation 82567LM Gigabit Network Connection (rev 03)
Subsystem: Lenovo Device 20ee
Flags: bus master, fast devsel, latency 0, IRQ 11
Memory at fc000000 (32-bit, non-prefetchable) [size=128K]
Memory at fc025000 (32-bit, non-prefetchable) [size=4K]
I/O ports at 1840 [size=32]
Capabilities: <access denied>

00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)
Subsystem: Lenovo Device 20f0
Flags: bus master, medium devsel, latency 0, IRQ 20
I/O ports at 1860 [size=32]
Capabilities: <access denied>
Kernel driver in use: uhci_hcd
Kernel modules: uhci-hcd

00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)
Subsystem: Lenovo Device 20f0
Flags: bus master, medium devsel, latency 0, IRQ 21
I/O ports at 1880 [size=32]
Capabilities: <access denied>
Kernel driver in use: uhci_hcd
Kernel modules: uhci-hcd

00:1a.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03)
Subsystem: Lenovo Device 20f0
Flags: bus master, medium devsel, latency 0, IRQ 22
I/O ports at 18a0 [size=32]
Capabilities: <access denied>
Kernel driver in use: uhci_hcd
Kernel modules: uhci-hcd

00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03) (prog-if 20)
Subsystem: Lenovo Device 20f1
Flags: bus master, medium devsel, latency 0, IRQ 23
Memory at fc226c00 (32-bit, non-prefetchable) [size=1K]
Capabilities: <access denied>
Kernel driver in use: ehci_hcd
Kernel modules: ehci-hcd

00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
Subsystem: Lenovo Device 20f2
Flags: bus master, fast devsel, latency 0, IRQ 17
Memory at fc020000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: HDA Intel
Kernel modules: snd-hda-intel

00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
Capabilities: <access denied>
Kernel driver in use: pcieport-driver
Kernel modules: shpchp

00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 03)
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
Memory behind bridge: f4300000-f43fffff
Capabilities: <access denied>
Kernel driver in use: pcieport-driver
Kernel modules: shpchp

00:1c.3 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 4 (rev 03)
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=05, subordinate=0c, sec-latency=0
I/O behind bridge: 00002000-00002fff
Memory behind bridge: f8000000-f9ffffff
Prefetchable memory behind bridge: 00000000f4000000-00000000f40fffff
Capabilities: <access denied>
Kernel driver in use: pcieport-driver
Kernel modules: shpchp

00:1c.4 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 5 (rev 03)
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=0d, subordinate=14, sec-latency=0
I/O behind bridge: 00003000-00003fff
Memory behind bridge: fa000000-fbffffff
Prefetchable memory behind bridge: 00000000f4100000-00000000f41fffff
Capabilities: <access denied>
Kernel driver in use: pcieport-driver
Kernel modules: shpchp

00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)
Subsystem: Lenovo Device 20f0
Flags: bus master, medium devsel, latency 0, IRQ 16
I/O ports at 18c0 [size=32]
Capabilities: <access denied>
Kernel driver in use: uhci_hcd
Kernel modules: uhci-hcd

00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)
Subsystem: Lenovo Device 20f0
Flags: bus master, medium devsel, latency 0, IRQ 17
I/O ports at 18e0 [size=32]
Capabilities: <access denied>
Kernel driver in use: uhci_hcd
Kernel modules: uhci-hcd

00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)
Subsystem: Lenovo Device 20f0
Flags: bus master, medium devsel, latency 0, IRQ 18
I/O ports at 1c00 [size=32]
Capabilities: <access denied>
Kernel driver in use: uhci_hcd
Kernel modules: uhci-hcd

00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03) (prog-if 20)
Subsystem: Lenovo Device 20f1
Flags: bus master, medium devsel, latency 0, IRQ 19
Memory at fc227000 (32-bit, non-prefetchable) [size=1K]
Capabilities: <access denied>
Kernel driver in use: ehci_hcd
Kernel modules: ehci-hcd

00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93) (prog-if 01)
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=15, subordinate=18, sec-latency=32
I/O behind bridge: 00004000-00007fff
Memory behind bridge: f4800000-f7ffffff
Prefetchable memory behind bridge: 00000000f0000000-00000000f3ffffff
Capabilities: <access denied>

00:1f.0 ISA bridge: Intel Corporation ICH9M-E LPC Interface Controller (rev 03)
Subsystem: Lenovo Device 20f5
Flags: bus master, medium devsel, latency 0
Capabilities: <access denied>

00:1f.2 SATA controller: Intel Corporation ICH9M/M-E SATA AHCI Controller (rev 03) (prog-if 01)
Subsystem: Lenovo Device 20f8
Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 2299
I/O ports at 1c48 [size=8]
I/O ports at 183c [size=4]
I/O ports at 1c40 [size=8]
I/O ports at 1838 [size=4]
I/O ports at 1c20 [size=32]
Memory at fc226000 (32-bit, non-prefetchable) [size=2K]
Capabilities: <access denied>
Kernel driver in use: ahci
Kernel modules: ahci

00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 03)
Subsystem: Lenovo Device 20f9
Flags: medium devsel, IRQ 11
Memory at fc227400 (64-bit, non-prefetchable) [size=256]
I/O ports at 1c60 [size=32]
Kernel modules: i2c-i801

03:00.0 Network controller: Intel Corporation Device 4236
Subsystem: Intel Corporation Device 1011
Flags: bus master, fast devsel, latency 0, IRQ 2298
Memory at f4300000 (64-bit, non-prefetchable) [size=8K]
Capabilities: <access denied>
Kernel driver in use: iwlagn
Kernel modules: iwlagn

15:00.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ba)
Subsystem: Lenovo Device 20c6
Flags: bus master, medium devsel, latency 168, IRQ 16
Memory at f4800000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=15, secondary=16, subordinate=17, sec-latency=176
Memory window 0: f0000000-f3fff000 (prefetchable)
Memory window 1: 80000000-83fff000
I/O window 0: 00004000-000040ff
I/O window 1: 00004400-000044ff
16-bit legacy interface ports at 0001
Kernel driver in use: yenta_cardbus
Kernel modules: yenta_socket

15:00.1 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 04) (prog-if 10)
Subsystem: Lenovo Device 20c7
Flags: bus master, medium devsel, latency 32, IRQ 17
Memory at f4801000 (32-bit, non-prefetchable) [size=2K]
Capabilities: <access denied>
Kernel driver in use: firewire_ohci
Kernel modules: firewire-ohci, ohci1394

15:00.2 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 21)
Subsystem: Lenovo Device 20c8
Flags: bus master, medium devsel, latency 32, IRQ 18
Memory at f4801800 (32-bit, non-prefetchable) [size=256]
Capabilities: <access denied>
Kernel driver in use: sdhci-pci
Kernel modules: sdhci-pci

15:00.3 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev ff) (prog-if ff)
!!! Unknown header type 7f
Kernel driver in use: ricoh-mmc
Kernel modules: ricoh_mmc

15:00.4 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 11)
Subsystem: Lenovo Device 20ca
Flags: bus master, medium devsel, latency 32, IRQ 11
Memory at f4802000 (32-bit, non-prefetchable) [size=256]
Capabilities: <access denied>

15:00.5 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 11)
Subsystem: Lenovo Device 20cb
Flags: bus master, medium devsel, latency 32, IRQ 11
Memory at f4802400 (32-bit, non-prefetchable) [size=256]
Capabilities: <access denied>

Attachment: config-2.6.27-rc7.old
Description: application/trash

Attachment: signature.asc
Description: This is a digitally signed message part.