diff options
author | Hans de Goede <hdegoede@redhat.com> | 2014-08-20 09:41:51 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-24 00:46:11 -0400 |
commit | cffb9be80f8a6d51d025780864c781ba83541720 (patch) | |
tree | 46241acbb049df4d65082b4665ee67044c909c72 /drivers/usb/host/xhci-mem.c | |
parent | f85c9fb62c59b78a1169b269f4ca697b1e06ee98 (diff) |
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>
Diffstat (limited to 'drivers/usb/host/xhci-mem.c')
-rw-r--r-- | drivers/usb/host/xhci-mem.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c index 8936211b161d..5cb3d7a10017 100644 --- a/drivers/usb/host/xhci-mem.c +++ b/drivers/usb/host/xhci-mem.c | |||
@@ -1904,7 +1904,7 @@ static int xhci_test_trb_in_td(struct xhci_hcd *xhci, | |||
1904 | start_dma = xhci_trb_virt_to_dma(input_seg, start_trb); | 1904 | start_dma = xhci_trb_virt_to_dma(input_seg, start_trb); |
1905 | end_dma = xhci_trb_virt_to_dma(input_seg, end_trb); | 1905 | end_dma = xhci_trb_virt_to_dma(input_seg, end_trb); |
1906 | 1906 | ||
1907 | seg = trb_in_td(input_seg, start_trb, end_trb, input_dma); | 1907 | seg = trb_in_td(xhci, input_seg, start_trb, end_trb, input_dma, false); |
1908 | if (seg != result_seg) { | 1908 | if (seg != result_seg) { |
1909 | xhci_warn(xhci, "WARN: %s TRB math test %d failed!\n", | 1909 | xhci_warn(xhci, "WARN: %s TRB math test %d failed!\n", |
1910 | test_name, test_number); | 1910 | test_name, test_number); |
@@ -1918,6 +1918,8 @@ static int xhci_test_trb_in_td(struct xhci_hcd *xhci, | |||
1918 | end_trb, end_dma); | 1918 | end_trb, end_dma); |
1919 | xhci_warn(xhci, "Expected seg %p, got seg %p\n", | 1919 | xhci_warn(xhci, "Expected seg %p, got seg %p\n", |
1920 | result_seg, seg); | 1920 | result_seg, seg); |
1921 | trb_in_td(xhci, input_seg, start_trb, end_trb, input_dma, | ||
1922 | true); | ||
1921 | return -1; | 1923 | return -1; |
1922 | } | 1924 | } |
1923 | return 0; | 1925 | return 0; |