xhci: Log extra info on "ERROR Transfer event TRB DMA ptr not part of current TD"
Lately (with the use of uas / bulk-streams) we have been seeing several cases where this error triggers (which should never happen). Add some extra logging to make debugging these errors easier. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
f85c9fb62c
commit
cffb9be80f
@@ -1904,7 +1904,7 @@ static int xhci_test_trb_in_td(struct xhci_hcd *xhci,
|
||||
start_dma = xhci_trb_virt_to_dma(input_seg, start_trb);
|
||||
end_dma = xhci_trb_virt_to_dma(input_seg, end_trb);
|
||||
|
||||
seg = trb_in_td(input_seg, start_trb, end_trb, input_dma);
|
||||
seg = trb_in_td(xhci, input_seg, start_trb, end_trb, input_dma, false);
|
||||
if (seg != result_seg) {
|
||||
xhci_warn(xhci, "WARN: %s TRB math test %d failed!\n",
|
||||
test_name, test_number);
|
||||
@@ -1918,6 +1918,8 @@ static int xhci_test_trb_in_td(struct xhci_hcd *xhci,
|
||||
end_trb, end_dma);
|
||||
xhci_warn(xhci, "Expected seg %p, got seg %p\n",
|
||||
result_seg, seg);
|
||||
trb_in_td(xhci, input_seg, start_trb, end_trb, input_dma,
|
||||
true);
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user