ehci-pci breakage with dma-mapping changes in 5.4-rc2
From: Arvind Sankar
Date: Sun Oct 06 2019 - 22:25:25 EST
Hi,
Commit 249baa547901 ("dma-mapping: provide a better default
->get_required_mask") causes an error on ehci-pci for me.
Either reverting the commit or disabling iommu=pt seems to fix this.
[ 9.000081] usb 1-1: new high-speed USB device number 2 using ehci-pci
[ 9.000755] ehci-pci 0000:00:1a.0: swiotlb buffer is full (sz: 8 bytes), total 0 (slots), used 0 (slots)
[ 9.001179] ehci-pci 0000:00:1a.0: overflow 0x000000042f541790+8 of DMA mask ffffffff bus mask 0
[ 9.001552] ------------[ cut here ]------------
[ 9.001933] WARNING: CPU: 0 PID: 7 at kernel/dma/direct.c:35 report_addr+0x3c/0x70
[ 9.002355] Modules linked in:
[ 9.002802] CPU: 0 PID: 7 Comm: kworker/0:1 Not tainted 5.4.0-rc2-stable-rani-zfs+ #67
[ 9.003270] Hardware name: ASUSTeK COMPUTER INC. Z10PE-D8 WS/Z10PE-D8 WS, BIOS 3703 04/13/2018
[ 9.003761] Workqueue: usb_hub_wq hub_event
[ 9.004241] RIP: 0010:report_addr+0x3c/0x70
[ 9.004722] Code: 48 89 34 24 48 8b 85 e8 01 00 00 48 85 c0 74 30 4c 8b 00 b8 fe ff ff ff 49 39 c0 76 17 80 3d 86 6f 23 01 00 0f 84 df 06 00 00 <0f> 0b 48 83 c4 08 5d 41 5c c3 48 83 bd f8 01 00 00 00 74 ec eb dd
[ 9.005743] RSP: 0000:ffffb25706307af8 EFLAGS: 00010286
[ 9.006261] RAX: 0000000000000000 RBX: ffffe0e3d0bd5040 RCX: 00000000000006fc
[ 9.006783] RDX: 0000000000000000 RSI: 0000000000000092 RDI: ffffffffab163fe8
[ 9.007301] RBP: ffffa38c678a00b0 R08: 0000000000000000 R09: 00000000000006fc
[ 9.007826] R10: 0000000000aaaaaa R11: 00000000ff000000 R12: 0000000000000008
[ 9.008339] R13: 0000000000000000 R14: 0000000000000790 R15: ffffa38c678a00b0
[ 9.008849] FS: 0000000000000000(0000) GS:ffffa38b5f600000(0000) knlGS:0000000000000000
[ 9.009355] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 9.009866] CR2: ffffa396b4001000 CR3: 00000013b340a001 CR4: 00000000003606f0
[ 9.010498] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 9.011034] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 9.011580] Call Trace:
[ 9.012110] dma_direct_map_page+0xf8/0x110
[ 9.012632] usb_hcd_map_urb_for_dma+0x204/0x530
[ 9.013149] usb_hcd_submit_urb+0x375/0xb70
[ 9.013668] usb_start_wait_urb+0x8a/0x190
[ 9.014188] usb_control_msg+0xe5/0x150
[ 9.014693] hub_port_init+0x21b/0xb40
[ 9.015190] hub_event+0xb21/0x14f0
[ 9.015710] process_one_work+0x1e5/0x390
[ 9.016215] worker_thread+0x4d/0x3d0
[ 9.016720] kthread+0xfd/0x130
[ 9.017207] ? process_one_work+0x390/0x390
[ 9.017687] ? kthread_park+0x90/0x90
[ 9.018163] ret_from_fork+0x3a/0x50
[ 9.018642] ---[ end trace 55eaa8968ea11ab5 ]---
[ 9.019124] ehci-pci 0000:00:1a.0: swiotlb buffer is full (sz: 8 bytes), total 0 (slots), used 0 (slots)
cpuinfo:
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 79
model name : Intel(R) Xeon(R) CPU E5-2696 v4 @ 2.20GHz
stepping : 1
microcode : 0xb000038
cpu MHz : 3353.679
cache size : 28160 KB
physical id : 0
siblings : 44
core id : 0
cpu cores : 22
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 20
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l3 cdp_l3 invpcid_single pti intel_ppin ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm rdt_a rdseed adx smap intel_pt xsaveopt cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts hwp md_clear flush_l1d
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs
bogomips : 4390.26
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
lspci:
00:1a.0 USB controller: Intel Corporation C610/X99 series chipset USB Enhanced Host Controller #2 (rev 05) (prog-if 20 [EHCI])
Subsystem: ASUSTeK Computer Inc. C610/X99 series chipset USB Enhanced Host Controller
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin C routed to IRQ 19
NUMA node: 0
Region 0: Memory at bc112000 (32-bit, non-prefetchable) [size=1K]
Capabilities: [50] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [58] Debug port: BAR=1 offset=00a0
Capabilities: [98] PCI Advanced Features
AFCap: TP+ FLR+
AFCtrl: FLR-
AFStatus: TP-
Kernel driver in use: ehci-pci