ARM CoreSight on Jetson Nano

Hello,

After brief studying of t210 dts files it seems that CoreSight is supported on Nano:

        ptm {
                compatible = "nvidia,ptm";
                reg = <0x0 0x72010000 0x0 0x1000>, /* funnel_major */
                      <0x0 0x72030000 0x0 0x1000>, /* etf */
                      <0x0 0x72040000 0x0 0x1000>, /* replicator */
                      <0x0 0x72050000 0x0 0x1000>, /* etr */
                      <0x0 0x72060000 0x0 0x1000>, /* tpiu */
                      <0x0 0x73010000 0x0 0x1000>, /* funnel_bccplex */
                      <0x0 0x73440000 0x0 0x1000>, /* ptm0 */
                      <0x0 0x73540000 0x0 0x1000>, /* ptm1 */
                      <0x0 0x73640000 0x0 0x1000>, /* ptm2 */
                      <0x0 0x73740000 0x0 0x1000>, /* ptm3 */
                      <0x0 0x72820000 0x0 0x1000>, /* funnel_minor */
                      <0x0 0x72a1c000 0x0 0x1000>; /* ape */
        };

However ‘nvidia,ptm’ seems to be handled by outdated tegra_ptm_t210.c which no longer compiles. Can I find dts with support for coresight anywhere?

please check the quick start guide from documentation for PTM

https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%2520Linux%2520Driver%2520Package%2520Development%2520Guide%2Fdebugging_PTM.html

I read it, but it isn’t helpful. You can’t use Linaro CoreSight drivers (drivers/hwtracing/coresight/*) on tegra210 (Nano), because there is no suitable configuration in tegra210 device tree. The piece of DTS code above is intended for “nvidia,ptm” driver, not Linaro drivers. I’ve managed to make it work after patching few holes here and there, but you can’t use perf with it, which is my primary goal.