Re: AMD IOMMU causing filesystem corruption

From: Samuel Sieb
Date: Sat Apr 08 2017 - 02:49:43 EST


On 04/07/2017 03:22 AM, Joerg Roedel wrote:
Can you please send me output of 'lspci -nv' on your system?

I have to figure out how to rebuild the system and find the time to do it before I can test that patch, but here's the lspci output:

00:00.0 0600: 1022:1576
Subsystem: 1025:1099
Flags: bus master, fast devsel, latency 0

00:00.2 0806: 1022:1577
Subsystem: 1025:1099
Flags: fast devsel, IRQ 24
Capabilities: [40] Secure device <?>
Capabilities: [64] MSI: Enable+ Count=1/4 Maskable- 64bit+
Capabilities: [74] HyperTransport: MSI Mapping Enable+ Fixed+

00:01.0 0300: 1002:98e4 (rev c1) (prog-if 00 [VGA controller])
Subsystem: 1025:1099
Flags: bus master, fast devsel, latency 0, IRQ 37
Memory at e0000000 (64-bit, prefetchable) [size=256M]
Memory at f0000000 (64-bit, prefetchable) [size=8M]
I/O ports at 3000 [size=256]
Memory at f0d00000 (32-bit, non-prefetchable) [size=256K]
Expansion ROM at f0d80000 [disabled] [size=128K]
Capabilities: [48] Vendor Specific Information: Len=08 <?>
Capabilities: [50] Power Management version 3
Capabilities: [58] Express Root Complex Integrated Endpoint, MSI 00
Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
Capabilities: [270] #19
Capabilities: [2b0] Address Translation Service (ATS)
Capabilities: [2c0] Page Request Interface (PRI)
Capabilities: [2d0] Process Address Space ID (PASID)
Kernel driver in use: amdgpu
Kernel modules: amdgpu

00:01.1 0403: 1002:15b3
Subsystem: 1002:15b3
Flags: bus master, fast devsel, latency 0, IRQ 255
Memory at f0d60000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [48] Vendor Specific Information: Len=08 <?>
Capabilities: [50] Power Management version 3
Capabilities: [58] Express Root Complex Integrated Endpoint, MSI 00
Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
Kernel modules: snd_hda_intel

00:02.0 0600: 1022:157b
Flags: fast devsel

00:02.1 0604: 1022:157c (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 26
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: 00001000-00001fff
Memory behind bridge: f0e00000-f0ffffff
Prefetchable memory behind bridge: 00000000f1000000-00000000f11fffff
Capabilities: [50] Power Management version 3
Capabilities: [58] Express Root Port (Slot+), MSI 00
Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [c0] Subsystem: 1022:1234
Capabilities: [c8] HyperTransport: MSI Mapping Enable+ Fixed+
Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
Capabilities: [270] #19
Kernel driver in use: pcieport
Kernel modules: shpchp

00:02.2 0604: 1022:157c (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 27
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
I/O behind bridge: 00002000-00002fff
Memory behind bridge: f0c00000-f0cfffff
Capabilities: [50] Power Management version 3
Capabilities: [58] Express Root Port (Slot+), MSI 00
Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [c0] Subsystem: 1022:1234
Capabilities: [c8] HyperTransport: MSI Mapping Enable+ Fixed+
Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
Capabilities: [270] #19
Kernel driver in use: pcieport
Kernel modules: shpchp

00:02.3 0604: 1022:157c (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 28
Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
Memory behind bridge: f0800000-f09fffff
Capabilities: [50] Power Management version 3
Capabilities: [58] Express Root Port (Slot+), MSI 00
Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [c0] Subsystem: 1022:1234
Capabilities: [c8] HyperTransport: MSI Mapping Enable+ Fixed+
Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
Capabilities: [270] #19
Kernel driver in use: pcieport
Kernel modules: shpchp

00:03.0 0600: 1022:157b
Flags: fast devsel

00:08.0 1080: 1022:1578
Subsystem: 1025:1099
Flags: bus master, fast devsel, latency 0, IRQ 255
Memory at f0d40000 (64-bit, prefetchable) [size=128K]
Memory at f0b00000 (32-bit, non-prefetchable) [size=1M]
Memory at f0d6f000 (32-bit, non-prefetchable) [size=4K]
Memory at f0d6a000 (32-bit, non-prefetchable) [size=8K]
Capabilities: [50] MSI-X: Enable- Count=2 Masked-
Capabilities: [5c] HyperTransport: MSI Mapping Enable+ Fixed+
Capabilities: [60] Power Management version 3
Capabilities: [a4] PCI Advanced Features

00:09.0 0600: 1022:157d
Flags: fast devsel

00:09.2 0403: 1022:157a
Subsystem: 1025:1099
Flags: bus master, fast devsel, latency 0, IRQ 255
Memory at f0d64000 (32-bit, non-prefetchable) [size=16K]
Capabilities: [60] Power Management version 3
Capabilities: [a4] PCI Advanced Features
Kernel modules: snd_hda_intel

00:10.0 0c03: 1022:7914 (rev 20) (prog-if 30 [XHCI])
Subsystem: 1025:1099
Flags: bus master, fast devsel, latency 0, IRQ 18
Memory at f0d68000 (64-bit, non-prefetchable) [size=8K]
Capabilities: [50] Power Management version 3
Capabilities: [70] MSI: Enable- Count=1/8 Maskable- 64bit+
Capabilities: [90] MSI-X: Enable+ Count=8 Masked-
Capabilities: [a0] Express Root Complex Integrated Endpoint, MSI 00
Capabilities: [100] Latency Tolerance Reporting
Kernel driver in use: xhci_hcd

00:11.0 0106: 1022:7901 (rev 4b) (prog-if 01 [AHCI 1.0])
Subsystem: 1025:1099
Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 19
I/O ports at 3118 [size=8]
I/O ports at 3124 [size=4]
I/O ports at 3110 [size=8]
I/O ports at 3120 [size=4]
I/O ports at 3100 [size=16]
Memory at f0d6c000 (32-bit, non-prefetchable) [size=1K]
Capabilities: [60] Power Management version 3
Capabilities: [70] SATA HBA v1.0
Kernel driver in use: ahci

00:12.0 0c03: 1022:7908 (rev 49) (prog-if 20 [EHCI])
Subsystem: 1025:1099
Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 18
Memory at f0d6d000 (32-bit, non-prefetchable) [size=256]
Capabilities: [c0] Power Management version 2
Capabilities: [e4] Debug port: BAR=1 offset=00e0
Kernel driver in use: ehci-pci

00:14.0 0c05: 1022:790b (rev 4b)
Subsystem: 1025:1099
Flags: 66MHz, medium devsel
Kernel driver in use: piix4_smbus
Kernel modules: i2c_piix4, sp5100_tco

00:14.3 0601: 1022:790e (rev 11)
Subsystem: 1025:1099
Flags: bus master, 66MHz, medium devsel, latency 0

00:18.0 0600: 1022:15b0
Flags: fast devsel

00:18.1 0600: 1022:15b1
Flags: fast devsel

00:18.2 0600: 1022:15b2
Flags: fast devsel

00:18.3 0600: 1022:15b3
Flags: fast devsel
Capabilities: [f0] Secure device <?>

00:18.4 0600: 1022:15b4
Flags: fast devsel
Kernel modules: fam15h_power

00:18.5 0600: 1022:15b5
Flags: fast devsel

02:00.0 ff00: 10ec:5287 (rev 01)
Subsystem: 1025:1099
Flags: bus master, fast devsel, latency 0, IRQ 33
Memory at f0c05000 (32-bit, non-prefetchable) [size=4K]
Expansion ROM at f0c10000 [disabled] [size=64K]
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [70] Express Endpoint, MSI 00
Capabilities: [b0] MSI-X: Enable- Count=1 Masked-
Capabilities: [d0] Vital Product Data
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Virtual Channel
Capabilities: [160] Device Serial Number 00-00-00-00-00-00-00-00
Capabilities: [170] Latency Tolerance Reporting
Capabilities: [178] L1 PM Substates
Kernel driver in use: rtsx_pci
Kernel modules: rtsx_pci

02:00.1 0200: 10ec:8168 (rev 12)
Subsystem: 1025:1099
Flags: bus master, fast devsel, latency 0, IRQ 35
I/O ports at 2000 [size=256]
Memory at f0c04000 (64-bit, non-prefetchable) [size=4K]
Memory at f0c00000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [70] Express Endpoint, MSI 01
Capabilities: [b0] MSI-X: Enable- Count=4 Masked-
Capabilities: [d0] Vital Product Data
Capabilities: [100] Advanced Error Reporting
Capabilities: [160] Device Serial Number 00-00-00-00-00-00-00-00
Capabilities: [170] Latency Tolerance Reporting
Capabilities: [178] L1 PM Substates
Kernel driver in use: r8169
Kernel modules: r8169

03:00.0 0280: 168c:0042 (rev 31)
Subsystem: 11ad:08a6
Flags: bus master, fast devsel, latency 0, IRQ 39
Memory at f0800000 (64-bit, non-prefetchable) [size=2M]
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable+ Count=8/8 Maskable+ 64bit-
Capabilities: [70] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [148] Virtual Channel
Capabilities: [168] Device Serial Number 00-00-00-00-00-00-00-00
Capabilities: [178] Latency Tolerance Reporting
Capabilities: [180] L1 PM Substates
Kernel driver in use: ath10k_pci
Kernel modules: ath10k_pci