Commit Graph

11 Commits

Author SHA1 Message Date
Xiaoqi Zhuang
ab126178dc coresight: ETR: Disable BAM SMMU when mapping config is set as bypass
BAM SMMU should be disabled when mapping config is set as bypass.

Change-Id: If92cd1ed23ada0473fc7e8dea0adf35a88980ce0
Signed-off-by: Xiaoqi Zhuang <quic_xiaozhua@quicinc.com>
2023-12-20 10:04:10 +08:00
Yuanfang Zhang
e262ae59c1 coresight-tmc: add pcie support for coresight tmc
Add support to transfer trace data from qdss to pcie.

Change-Id: I82d972584d0f78d8b2e248ada4700aa68a702bb1
Signed-off-by: Yuanfang Zhang <quic_yuanfang@quicinc.com>
2023-08-16 16:31:15 +08:00
Tao Zhang
7e8b85265c tmc-usb: Add drop data size count
Add drop data size count and data overwritten tag for the drop
data case.

Change-Id: Ib066215ecf8c9ef2a1920d75afafb45b4a6382e7
Signed-off-by: Mao Jinlong <quic_jinlmao@quicinc.com>
Signed-off-by: Tao Zhang <quic_taozha@quicinc.com>
2022-07-27 00:58:44 -07:00
Mao Jinlong
50c7c397e8 coresight: tmc: Add ethernet mode support
Add ethernet mode to support streaming trace in ETR to
ethernet debug port.

Change-Id: I4cab95b52f38fff1143b834d7138e6b6761c75a8
Signed-off-by: Mao Jinlong <quic_jinlmao@quicinc.com>
2022-05-31 10:33:10 +08:00
qctecmdr
3ffc1b4eee Merge "coresight: add debug log to coresight-tmc" 2022-03-30 23:04:00 -07:00
qctecmdr
9063373f9c Merge "coresight-tmc-usb: Flush read_work before usb_qdss_close()" 2022-03-30 05:54:59 -07:00
Tao Zhang
64070aca89 coresight: add debug log to coresight-tmc
Add debug log for byte-cntr and sw usb to count the data sent
by coresight-tmc.

Change-Id: I2491c1c79930cecb0e0e680eb357211f6c8aa38c
Signed-off-by: Yuanfang Zhang <quic_yuanfang@quicinc.com>
Signed-off-by: Tao Zhang <quic_taozha@quicinc.com>
2022-03-30 04:51:24 -07:00
Jack Pham
aee74dc1b3 coresight-tmc-usb: Flush read_work before usb_qdss_close()
When disabling USB SW path ensure all calls to usb_qdss_write()
are completed before calling usb_qdss_close(), otherwise the
two APIs may race and result in out-of-order sequencing between
the underlying usb_ep_queue() and usb_ep_dequeue() calls.  This
may result in usb_qdss_close() getting stuck since it is waiting
on an unqueued request to complete.

Change-Id: Ibdccf082a6273f8d3a78e664b58bd0a5b9ce8f69
Signed-off-by: Jack Pham <quic_jackp@quicinc.com>
2022-03-29 22:38:33 -07:00
Jack Pham
c10e731b5a coresight-tmc: Ignore USB write errors during disconnection
When USB sink path is disabled or disconnected, it is expected that
the outstanding write requests will return with an error code.
Ignore -ECONNRESET and -ESHUTDOWN for those respective cases to
avoid printing an error message to the kernel log.

Change-Id: Ia9a886b082e3152cfd1ccf315a678c1b48347b05
Signed-off-by: Jack Pham <quic_jackp@quicinc.com>
2022-03-29 22:37:09 -07:00
Jeevan Shriram
d91a4a7459 drivers: coresight: Fix the error return
Fix the error return value from the function tmc_etr_usb_init as it
expects function expects to return only integer and not 'void*'.

Change-Id: Ieb901ac52b34f230c74a4dea9644946e69b69fa2
Signed-off-by: Jeevan Shriram <quic_jshriram@quicinc.com>
2022-01-11 18:37:49 -08:00
Tao Zhang
0045c98aa1 coresight-tmc: Add usb support to coresight tmc etr
Add support to transfer trace data from qdss to usb. Use
BAM to BAM connection between qdss and usb.

Change-Id: I5ea589e0f7051d850addb4ead2812a614bb7b0f2
Signed-off-by: Tao Zhang <quic_taozha@quicinc.com>
2021-12-01 00:11:26 +08:00