Skip to contentSkip to conversation

Regression iommu/vt-d bounce buffer

DISCUSSION Frederik Schwan 3 participants 3 messages Jan 6, 2020 – Jan 13, 2020

lore
Share & tools
lore
#0 lore raw

Hello people,
since the introduction of the bounce buffer, a regression with TB3 devices has been introduced.
USB devices attached to TB3 refuse to work since. Removing the commits that introduced the bounce buffer, fixes the issue.

Commits:
3b53034c268d550d9e8522e613a14ab53b8840d8
c5a5dc4cbbf4540c1891cdb2b70cf469405ea61f
cfb94a372f2d4ee226247447c863f8709863d170
e5e04d051979dbd636a99099b7a595093c50a4bc

An excerpt of the trace:

Quoted 17 lines

[ +0,000005] WARNING: CPU: 10 PID: 0 at drivers/iommu/intel-iommu.c:3916 bounce_unmap_single+0x103/0x110 [...]

[  +0,000001] Call Trace:
[  +0,000002]  <IRQ>
[  +0,000003]  usb_hcd_unmap_urb_setup_for_dma+0x9f/0xe0
[  +0,000001]  usb_hcd_unmap_urb_for_dma+0x1c/0x170
[  +0,000002]  __usb_hcd_giveback_urb+0x36/0x120
[  +0,000008]  xhci_giveback_urb_in_irq.isra.0+0x72/0x100 [xhci_hcd]
[  +0,000007]  xhci_td_cleanup+0x101/0x140 [xhci_hcd]
[  +0,000007]  xhci_irq+0xbf0/0x1db0 [xhci_hcd]
[  +0,000005]  __handle_irq_event_percpu+0x44/0x1b0
[  +0,000002]  handle_irq_event_percpu+0x34/0x80
[  +0,000002]  handle_irq_event+0x37/0x54
[  +0,000002]  handle_edge_irq+0xae/0x1f0
[  +0,000002]  do_IRQ+0x84/0x140
[  +0,000003]  common_interrupt+0xf/0xf
[  +0,000001]  </IRQ>

Dmesg log and further information have been posted here: https://bugzilla.kernel.org/show_bug.cgi?id=205893

Cheers,
Frederik

_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu

#1 lore raw

Hi Baolu,

any ideas here?

Quoted 30 lines · Frederik Schwan

Hello people,
since the introduction of the bounce buffer, a regression with TB3 devices has been introduced.
USB devices attached to TB3 refuse to work since. Removing the commits that introduced the bounce buffer, fixes the issue.

Commits:
3b53034c268d550d9e8522e613a14ab53b8840d8
c5a5dc4cbbf4540c1891cdb2b70cf469405ea61f
cfb94a372f2d4ee226247447c863f8709863d170
e5e04d051979dbd636a99099b7a595093c50a4bc

An excerpt of the trace:

Quoted 17 lines

[ +0,000005] WARNING: CPU: 10 PID: 0 at drivers/iommu/intel-iommu.c:3916 bounce_unmap_single+0x103/0x110 [...]

[  +0,000001] Call Trace:
[  +0,000002]  <IRQ>
[  +0,000003]  usb_hcd_unmap_urb_setup_for_dma+0x9f/0xe0
[  +0,000001]  usb_hcd_unmap_urb_for_dma+0x1c/0x170
[  +0,000002]  __usb_hcd_giveback_urb+0x36/0x120
[  +0,000008]  xhci_giveback_urb_in_irq.isra.0+0x72/0x100 [xhci_hcd]
[  +0,000007]  xhci_td_cleanup+0x101/0x140 [xhci_hcd]
[  +0,000007]  xhci_irq+0xbf0/0x1db0 [xhci_hcd]
[  +0,000005]  __handle_irq_event_percpu+0x44/0x1b0
[  +0,000002]  handle_irq_event_percpu+0x34/0x80
[  +0,000002]  handle_irq_event+0x37/0x54
[  +0,000002]  handle_edge_irq+0xae/0x1f0
[  +0,000002]  do_IRQ+0x84/0x140
[  +0,000003]  common_interrupt+0xf/0xf
[  +0,000001]  </IRQ>
Quoted 5 lines

Dmesg log and further information have been posted here: https://bugzilla.kernel.org/show_bug.cgi?id=205893

Cheers,
Frederik

_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu

#2 lore raw

Hi Joerg,

Quoted 3 lines · Joerg Roedel

Hi Baolu,

any ideas here?

I am looking at this issue.

Best regards,
baolu

Quoted 32 lines · Frederik Schwan
Quoted 30 lines

Hello people,
since the introduction of the bounce buffer, a regression with TB3 devices has been introduced.
USB devices attached to TB3 refuse to work since. Removing the commits that introduced the bounce buffer, fixes the issue.

Commits:
3b53034c268d550d9e8522e613a14ab53b8840d8
c5a5dc4cbbf4540c1891cdb2b70cf469405ea61f
cfb94a372f2d4ee226247447c863f8709863d170
e5e04d051979dbd636a99099b7a595093c50a4bc

An excerpt of the trace:

Quoted 17 lines

[ +0,000005] WARNING: CPU: 10 PID: 0 at drivers/iommu/intel-iommu.c:3916 bounce_unmap_single+0x103/0x110 [...]

[  +0,000001] Call Trace:
[  +0,000002]  <IRQ>
[  +0,000003]  usb_hcd_unmap_urb_setup_for_dma+0x9f/0xe0
[  +0,000001]  usb_hcd_unmap_urb_for_dma+0x1c/0x170
[  +0,000002]  __usb_hcd_giveback_urb+0x36/0x120
[  +0,000008]  xhci_giveback_urb_in_irq.isra.0+0x72/0x100 [xhci_hcd]
[  +0,000007]  xhci_td_cleanup+0x101/0x140 [xhci_hcd]
[  +0,000007]  xhci_irq+0xbf0/0x1db0 [xhci_hcd]
[  +0,000005]  __handle_irq_event_percpu+0x44/0x1b0
[  +0,000002]  handle_irq_event_percpu+0x34/0x80
[  +0,000002]  handle_irq_event+0x37/0x54
[  +0,000002]  handle_edge_irq+0xae/0x1f0
[  +0,000002]  do_IRQ+0x84/0x140
[  +0,000003]  common_interrupt+0xf/0xf
[  +0,000001]  </IRQ>
Quoted 8 lines
Quoted 5 lines

Dmesg log and further information have been posted here: https://bugzilla.kernel.org/show_bug.cgi?id=205893

Cheers,
Frederik

_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu