Commit Graph

6 Commits

Author SHA1 Message Date
Vijayavardhan Vennapusa
b00c55eca4 USB: dwc3: gadget: Queue data for 16 micro frames ahead in future
While starting transfer for isochrnous endpoints, make sure first
request is queued for 16 microframes ahead in future. Also set
PENDING_REQUEST flag before giving back usb request if started_list
is empty to avoid queuing in same context. Else it leads to request
getting queued for micro frame interval which might have expired and
resulting USB HW retiring TRB without sending data to host.

Change-Id: Ia5e4512fa2a3ae6637f2be7ef2f102c26d56213c
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2021-05-21 11:47:28 +05:30
Pratham Pratap
d5c3259472 usb: dwc3: core: Add ipc logs when sg lists are used
Currently ipc_logging will capture the usb request's dma address but
when sg list is used usb request's dma address is not populated. This
change adds start_sg's dma address which is populated when sg list is
used for usb transfers. Also increase the number of log pages to capture
more ep events.

Change-Id: I36ada11429e168e2d3d09cf3427b1f3bcdacc285
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
2020-10-27 22:46:43 -07:00
Elson Roy Serrao
85891835d0 usb: dwc3: Add logging for ep0 map/unmap requests
Log the ep0 dma map/unmap request  in the IPC log buffer
for debugging SMMU faults.

Logs can be accessed using below command
cat /sys/kernel/debug/ipc_logging/a600000.dwc3.ep_events/log.

Change-Id: If5587b8ba59451593968999b59cd61f2a469fe1c
Signed-off-by: Elson Roy Serrao <eserrao@codeaurora.org>
2019-12-20 16:57:20 +05:30
Sriharsha Allenki
228d53aef6 usb: gadget: Add new ipc log buffer to log request and dma
Add new IPC log buffer to log the events in the cycle
of requests like queue, mapping the associated buffer,
unmapping it and finally dequeuing it.
This logging will help us in debugging the SMMU faults
for which the traces has to be enabled. These logs
helps to trace the faulty address in the first incident.

The logs can be accessed on the target using the command
echo 0 > /proc/sys/kernel/kptr_restrict
cat /sys/kernel/debug/ipc_logging/a600000.dwc3.ep_events/log.

Change-Id: Icc7063da7a251902cbb257022eaff6656e972a07
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2019-09-03 14:45:45 -07:00
Rishabh Bhatnagar
e9a05bb4d3 spdx: Modify spdx tag from GPL-2.0 to GPL-2.0-only
Modify spdx tag for all CAF authored files for Kona.

Change-Id: I9308c7189412b1e428a7f67ded0dc076b0e38254
Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
2018-12-10 11:09:45 -08:00
Mayank Rana
679f332a11 usb: dwc3: debug: Add logging APIs using IPC logging framework
This change creates separate debug buffer with each DWC instance and
provides debug API to log different important events using IPC
logging framework.

CRs-Fixed: 1040809
Change-Id: I9aee21a99f5bcd0e82e81092c05bc2238863f5e4
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
[jackp@codeaurora: since debug.c is gone, added debug_ipc.c]
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2018-08-17 17:34:03 -07:00