[PATCH v4 02/12] rvtrace: Initial implementation of driver framework
Greg KH
gregkh at linuxfoundation.org
Fri Jul 3 00:41:13 PDT 2026
On Fri, Jul 03, 2026 at 03:32:50PM +0800, Zane Leung wrote:
>
> On 7/3/2026 1:41 PM, Greg KH wrote:
> > On Thu, Jul 02, 2026 at 04:19:53PM +0800, Zane Leung wrote:
> >> Hi,
> >>
> >> Based on the current framework, I am concerned about how to support RISC-V ATB and reuse the Coresight component (ETB/tmc/TPIU) in the future.
> > That is very vague. Please provide specific examples.
>
> According to the /trace control interface/ [1] spec: "The ATB Bridge allows sending RISC-V trace to Arm CoreSight
>
> infrastructure (instead of RISC-V compliant sink defined in this document) as an ATB initiator. ATB Bridge is not
>
> needed for RISC-V only systems."
>
> For ATB Bridge, read trace using Coresight components (ETB/TMC/TPIU), so we need also ARM coresight driver in
> RISC-V trace systems. Current framework seems to only be applicable to RISC-V only systems, and does not support
> ATB and ARM coresight use case like the K3 (K3 SoC contains RISC-V Encoder, Funnel, ATB, CoreSight Funnel, and
>
> CoreSight TMC components). For more discussion, please refer to [2].
>
>
> [1]: https://docs.riscv.org/reference/trace-control-interface/v1.0/tci_system_overview.html#atb-bridge
> [2]: https://lore.kernel.org/all/20260414034153.3272485-1-liangzhen@linux.spacemit.com/
So, what specifically does this mean? Please provide review comments
for the code itself.
We write code for stuff we have now, today. If future needs change, we
change the code to handle that then.
The only problem is with user/kernel apis, those need to be nailed down
so that they don't change. I can't tell here if you are only referring
to the in-kernel stuff, or user/kernel apis, sorry.
thanks,
greg k-h
More information about the linux-riscv
mailing list