* DMAR EHCI failures
@ 2008-02-04 17:27 Jiri Slaby
2008-02-10 2:02 ` David Brownell
0 siblings, 1 reply; 3+ messages in thread
From: Jiri Slaby @ 2008-02-04 17:27 UTC (permalink / raw)
To: David Brownell
Cc: linux-usb, Alan Stern, Linux Kernel Mailing List, ashok.raj,
shaohua.li, anil.s.keshavamurthy, Dave Airlie
Hi,
I have this in dmesg:
DMAR:[DMA Write] Request device [00:02.0] fault addr ee1512000
DMAR:[fault reason 05] PTE Write access is not set
PCI-DMA: Intel(R) Virtualization Technology for Directed I/O
DMAR:[DMA Read] Request device [00:1d.7] fault addr 7d5f0000
DMAR:[fault reason 06] PTE Read access is not set
DMAR:[DMA Read] Request device [00:1a.7] fault addr 7d5f1000
DMAR:[fault reason 06] PTE Read access is not set
PCI-GART: No AMD northbridge found.
DMAR:[DMA Read] Request device [00:1a.2] fault addr 7d5f7000
DMAR:[fault reason 06] PTE Read access is not set
CONFIG_DMAR=y
CONFIG_DMAR_GFX_WA=y
CONFIG_DMAR_FLOPPY_WA=y
Without the gfx workaround, there is much more output regarding 00:02.0. Is
there problem with broken hw, bios or drivers?
/sys/firmware/acpi/tables/DMAR:
http://www.fi.muni.cz/~xslaby/sklad/DMAR.bin
dmesg:
http://www.fi.muni.cz/~xslaby/sklad/DMAR.dmesg
# for a in 00:02.0 00:1d.7 00:1a.7 00:1a.2; do lspci -vxxx -s $a; done
00:02.0 VGA compatible controller: Intel Corporation 82G33/G31 Express
Integrated Graphics Controller (rev 02) (prog-if 00 [VGA controller])
Subsystem: Intel Corporation 82G33/G31 Express Integrated Graphics
Controller
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at ffa80000 (32-bit, non-prefetchable) [size=512K]
I/O ports at ec00 [size=8]
Memory at d0000000 (32-bit, prefetchable) [size=256M]
Memory at ff900000 (32-bit, non-prefetchable) [size=1M]
Capabilities: [90] Message Signalled Interrupts: Mask- 64bit- Queue=0/0
Enable-
Capabilities: [d0] Power Management version 2
00: 86 80 c2 29 07 00 90 00 02 00 00 03 00 00 00 00
10: 00 00 a8 ff 01 ec 00 00 08 00 00 d0 00 00 90 ff
20: 00 00 00 00 00 00 00 00 00 00 00 00 86 80 c2 29
30: 00 00 00 00 90 00 00 00 00 00 00 00 0a 01 00 00
40: 09 00 0b 01 00 00 00 00 01 00 00 00 00 00 00 00
50: 00 00 30 02 49 03 00 00 00 00 00 00 00 00 80 7d
60: 00 00 02 03 00 00 00 00 00 00 00 00 00 00 00 00
70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
90: 05 d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 11 11 00 00 00 00 06 03 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0: 01 00 22 00 00 00 00 00 00 00 00 00 00 01 02 00
e0: 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00
f0: 12 00 03 00 00 00 00 00 90 0f 03 00 e4 e0 5b 7d
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI
Controller #1 (rev 02) (prog-if 20 [EHCI])
Subsystem: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1
Flags: bus master, medium devsel, latency 0, IRQ 23
Memory at ffa7b000 (32-bit, non-prefetchable) [size=1K]
Capabilities: [50] Power Management version 2
Capabilities: [58] Debug port: BAR=1 offset=00a0
Capabilities: [98] Vendor Specific Information <?>
Kernel driver in use: ehci_hcd
Kernel modules: ehci-hcd
00: 86 80 3a 29 06 00 90 22 02 20 03 0c 00 00 00 00
10: 00 b0 a7 ff 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 86 80 3a 29
30: 00 00 00 00 50 00 00 00 00 00 00 00 0a 01 00 00
40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
50: 01 58 c2 c9 00 00 00 00 0a 98 a0 20 00 00 00 00
60: 20 20 ff 01 00 00 00 00 01 00 00 01 00 00 08 00
70: 00 00 cf 0f 00 00 00 00 00 00 00 00 00 00 00 00
80: 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00
90: 00 00 00 00 00 00 00 00 09 00 06 20 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0: 00 00 00 00 00 aa ff 00 00 00 00 00 00 00 00 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 88 85 40 00 86 0f 02 00 06 17 02 20
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI
Controller #2 (rev 02) (prog-if 20 [EHCI])
Subsystem: Intel Corporation Optiplex 755
Flags: bus master, medium devsel, latency 0, IRQ 19
Memory at ffa7b400 (32-bit, non-prefetchable) [size=1K]
Capabilities: [50] Power Management version 2
Capabilities: [58] Debug port: BAR=1 offset=00a0
Capabilities: [98] Vendor Specific Information <?>
Kernel driver in use: ehci_hcd
Kernel modules: ehci-hcd
00: 86 80 3c 29 06 00 90 22 02 20 03 0c 00 00 00 00
10: 00 b4 a7 ff 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 86 80 3c 29
30: 00 00 00 00 50 00 00 00 00 00 00 00 03 04 00 00
40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
50: 01 58 c2 c9 00 00 00 00 0a 98 a0 20 00 00 00 00
60: 20 20 ff 01 00 00 00 00 01 00 00 01 00 00 08 00
70: 00 00 cf 0f 00 00 00 00 00 00 00 00 00 00 00 00
80: 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00
90: 00 00 00 00 00 00 00 00 09 00 06 20 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0: 00 00 00 00 00 aa ff 00 00 00 00 00 00 00 00 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 88 85 40 00 86 0f 02 00 06 17 02 20
00:1a.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI
Controller #6 (rev 02) (prog-if 00 [UHCI])
Subsystem: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6
Flags: bus master, medium devsel, latency 0, IRQ 18
I/O ports at d480 [size=32]
Capabilities: [50] Vendor Specific Information <?>
Kernel driver in use: uhci_hcd
00: 86 80 39 29 05 00 90 22 02 00 03 0c 00 00 00 00
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
20: 81 d4 00 00 00 00 00 00 00 00 00 00 86 80 39 29
30: 00 00 00 00 50 00 00 00 00 00 00 00 0c 03 00 00
40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
50: 09 00 06 20 00 00 00 00 00 00 00 00 00 00 00 00
60: 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 00 2f 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 00 00 00 00 86 0f 02 00 00 00 00 00
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: DMAR EHCI failures
2008-02-04 17:27 DMAR EHCI failures Jiri Slaby
@ 2008-02-10 2:02 ` David Brownell
2008-02-11 17:51 ` Raj, Ashok
0 siblings, 1 reply; 3+ messages in thread
From: David Brownell @ 2008-02-10 2:02 UTC (permalink / raw)
To: Jiri Slaby
Cc: David Brownell, linux-usb, Alan Stern, Linux Kernel Mailing List,
ashok.raj, shaohua.li, anil.s.keshavamurthy, Dave Airlie
On Monday 04 February 2008, Jiri Slaby wrote:
> Hi,
>
> I have this in dmesg:
> DMAR:[DMA Write] Request device [00:02.0] fault addr ee1512000
> DMAR:[fault reason 05] PTE Write access is not set
> PCI-DMA: Intel(R) Virtualization Technology for Directed I/O
> DMAR:[DMA Read] Request device [00:1d.7] fault addr 7d5f0000
> DMAR:[fault reason 06] PTE Read access is not set
> DMAR:[DMA Read] Request device [00:1a.7] fault addr 7d5f1000
> DMAR:[fault reason 06] PTE Read access is not set
> PCI-GART: No AMD northbridge found.
> DMAR:[DMA Read] Request device [00:1a.2] fault addr 7d5f7000
> DMAR:[fault reason 06] PTE Read access is not set
>
> CONFIG_DMAR=y
> CONFIG_DMAR_GFX_WA=y
> CONFIG_DMAR_FLOPPY_WA=y
>
> Without the gfx workaround, there is much more output regarding 00:02.0. Is
> there problem with broken hw, bios or drivers?
No idea. Someone who knows the DMA Remapping stuff should have
an answer. Presumably it works with DMAR disabled, yes? If so,
then just don't use DMAR. :)
> /sys/firmware/acpi/tables/DMAR:
> http://www.fi.muni.cz/~xslaby/sklad/DMAR.bin
> dmesg:
> http://www.fi.muni.cz/~xslaby/sklad/DMAR.dmesg
>
> # for a in 00:02.0 00:1d.7 00:1a.7 00:1a.2; do lspci -vxxx -s $a; done
> 00:02.0 VGA compatible controller: Intel Corporation 82G33/G31 Express
> Integrated Graphics Controller (rev 02) (prog-if 00 [VGA controller])
> ... deletia ...
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: DMAR EHCI failures
2008-02-10 2:02 ` David Brownell
@ 2008-02-11 17:51 ` Raj, Ashok
0 siblings, 0 replies; 3+ messages in thread
From: Raj, Ashok @ 2008-02-11 17:51 UTC (permalink / raw)
To: David Brownell, Jiri Slaby
Cc: David Brownell, linux-usb, Alan Stern, Linux Kernel Mailing List,
Li, Shaohua, Keshavamurthy, Anil S, Dave Airlie
Thought someone replied to this,
Basically graphics drivers don't use DMA apis for translation at the
moment, hence when we turn on translation we will get faults since IOMMU
would not be able to translate.
The workaround used to do two things.
1. IF this is dedicated DMAR for igfx, then we just disable the iommu
2. if this is pcie graphics, we provide a 1-1 so we can avoid those
faults.
Sometimes you get those faults for usb devices if the RMRR is not set
correctly by BIOS. An easy workaround is if you disable legacy mode in
bios those should disappear.
Cheers,
ashok raj
- Open Source Technology Center
>-----Original Message-----
>From: David Brownell [mailto:david-b@pacbell.net]
>Sent: Saturday, February 09, 2008 6:03 PM
>To: Jiri Slaby
>Cc: David Brownell; linux-usb@vger.kernel.org; Alan Stern; Linux Kernel
Mailing List; Raj, Ashok; Li,
>Shaohua; Keshavamurthy, Anil S; Dave Airlie
>Subject: Re: DMAR EHCI failures
>
>On Monday 04 February 2008, Jiri Slaby wrote:
>> Hi,
>>
>> I have this in dmesg:
>> DMAR:[DMA Write] Request device [00:02.0] fault addr ee1512000
>> DMAR:[fault reason 05] PTE Write access is not set
>> PCI-DMA: Intel(R) Virtualization Technology for Directed I/O
>> DMAR:[DMA Read] Request device [00:1d.7] fault addr 7d5f0000
>> DMAR:[fault reason 06] PTE Read access is not set
>> DMAR:[DMA Read] Request device [00:1a.7] fault addr 7d5f1000
>> DMAR:[fault reason 06] PTE Read access is not set
>> PCI-GART: No AMD northbridge found.
>> DMAR:[DMA Read] Request device [00:1a.2] fault addr 7d5f7000
>> DMAR:[fault reason 06] PTE Read access is not set
>>
>> CONFIG_DMAR=y
>> CONFIG_DMAR_GFX_WA=y
>> CONFIG_DMAR_FLOPPY_WA=y
>>
>> Without the gfx workaround, there is much more output regarding
00:02.0. Is
>> there problem with broken hw, bios or drivers?
>
>No idea. Someone who knows the DMA Remapping stuff should have
>an answer. Presumably it works with DMAR disabled, yes? If so,
>then just don't use DMAR. :)
>
>
>> /sys/firmware/acpi/tables/DMAR:
>> http://www.fi.muni.cz/~xslaby/sklad/DMAR.bin
>> dmesg:
>> http://www.fi.muni.cz/~xslaby/sklad/DMAR.dmesg
>>
>> # for a in 00:02.0 00:1d.7 00:1a.7 00:1a.2; do lspci -vxxx -s $a;
done
>> 00:02.0 VGA compatible controller: Intel Corporation 82G33/G31
Express
>> Integrated Graphics Controller (rev 02) (prog-if 00 [VGA controller])
>> ... deletia ...
>>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-02-11 17:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-04 17:27 DMAR EHCI failures Jiri Slaby
2008-02-10 2:02 ` David Brownell
2008-02-11 17:51 ` Raj, Ashok
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox