mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
eda212494904724f8b2988419fe77ba249f641c4
There is a problem that incorrectly advances the TRB dequeue pointer if more than one request in the started_list need to be dequeue. If the request was already started, we issue the END_TRANSFER command, then wait for END_TRANSFER completion and only after that jump over the TRBs of the request by clearing HWO and incrementing the TRB dequeue pointer. But we don't skip over the TRBs of the rest started request, this cause we to get incorrect TRB dequeue pointer on completion next time. We can easily reproduce this problem on RK3399 EVB Android Q platform. Use MTP/PTP to transfer a big file, and then cancel the transition, check if it can transfer again. If retransmission fails, the problem happens. And if you enable the DWC3 trace via tracing interface: echo 1 > /sys/kernel/debug/tracing/events/dwc3/enable You can get the error log: irq/71-dwc3-1591 [000] d..1 389.337189: dwc3_complete_trb: ep1out: trb 00000000213b87d9 buf 00000000a84c0000 size 16384 irq/71-dwc3-1591 [000] d..1 389.337195: dwc3_gadget_giveback: ep1out: req 00000000d8c093a2 length 4294951424/512 zsI ==> 0 ... kworker/u12:2-111 [003] .... 389.337380: dwc3_free_request: ep1out: req 00000000d8c093a2 length 4294951424/512 zsI ==> 0 The req actual length is error. It's because that it get the incorrect TRB dequeue pointer that belong to previous request. Change-Id: I123ff779d5e2933449581f8b570e2e6ad6b75458 Signed-off-by: William Wu <william.wu@rock-chips.com>
…
…
Linux kernel
============
There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.
In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``. The formatted documentation can also be read online at:
https://www.kernel.org/doc/html/latest/
There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.
Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.
Description
Languages
C
97.7%
Assembly
1.6%
Makefile
0.3%
Perl
0.1%