Dear Leo,
I am sorry for sending this mail. Did you have any suggestions for me to try this problem.
Thanks again, BRs, Eric
H MJ eric.mjh123@gmail.com 於 2020年6月11日 週四 下午2:12寫道:
Dear Leo,
Thanks for this replaying.
After keying two commands, I got these information.
Thanks.!!! BRs, Eric
# ls /sys/bus/coresight/devices/ coresight-audio-etm0 coresight-cti-dlct_cti2 coresight-cti3 coresight-funnel-qatb coresight-tpdm-dl-north coresight-csr coresight-cti-dlmm_cti0 coresight-cti4 coresight-funnel-swao coresight-tpdm-dl-south coresight-cti-apss_cti0 coresight-cti-dlmm_cti1 coresight-cti5 coresight-funnel-turing coresight-tpdm-dlct coresight-cti-apss_cti1 coresight-cti-iris_dl_cti coresight-cti6 coresight-funnel-venus coresight-tpdm-gpu coresight-cti-apss_cti2 coresight-cti-lpass_dl_cti coresight-cti7 coresight-hwevent coresight-tpdm-ipcc coresight-cti-compute_dl_cti coresight-cti-mdss_dl_cti coresight-cti8 coresight-npu-etm0 coresight-tpdm-llm-gold coresight-cti-cpu0 coresight-cti-npu_dl_cti_0 coresight-cti9 coresight-replicator-qdss coresight-tpdm-llm-silver coresight-cti-cpu1 coresight-cti-npu_dl_cti_1 coresight-eud coresight-replicator-swao coresight-tpdm-lpass coresight-cti-cpu2 coresight-cti-npu_q6_cti coresight-funnel-apss coresight-ssc-etm0 coresight-tpdm-lpass-lpi coresight-cti-cpu3 coresight-cti-swao_cti0 coresight-funnel-apss-merg coresight-stm coresight-tpdm-mdss coresight-cti-cpu4 coresight-cti-swao_cti1 coresight-funnel-ddr-0 coresight-swao-csr coresight-tpdm-mm coresight-cti-cpu5 coresight-cti-swao_cti2 coresight-funnel-ddr-ch02 coresight-tgu-ipcb coresight-tpdm-npu coresight-cti-cpu6 coresight-cti-swao_cti3 coresight-funnel-ddr-ch13 coresight-tmc-etf coresight-tpdm-npu-dpm coresight-cti-cpu7 coresight-cti-turing_dl_cti coresight-funnel-dl-center coresight-tmc-etr coresight-tpdm-npu-llm coresight-cti-ddr_ch02_dl_cti_0 coresight-cti-turing_q6_cti coresight-funnel-dl-compute coresight-tpda coresight-tpdm-pimem coresight-cti-ddr_ch13_dl_cti_0 coresight-cti0 coresight-funnel-dl-mm coresight-tpda-apss coresight-tpdm-prng coresight-cti-ddr_dl_0_cti_0 coresight-cti1 coresight-funnel-dl-north coresight-tpda-dl-north coresight-tpdm-qm coresight-cti-ddr_dl_0_cti_1 coresight-cti10 coresight-funnel-dl-south coresight-tpda-dl-south coresight-tpdm-swao-0 coresight-cti-ddr_dl_0_cti_2 coresight-cti11 coresight-funnel-gpu coresight-tpda-swao coresight-tpdm-swao-1 coresight-cti-ddr_dl_1_cti_0 coresight-cti12 coresight-funnel-in0 coresight-tpdm-actpm coresight-tpdm-turing coresight-cti-ddr_dl_1_cti_1 coresight-cti13 coresight-funnel-in1 coresight-tpdm-apss coresight-tpdm-venus coresight-cti-ddr_dl_1_cti_2 coresight-cti14 coresight-funnel-lpass coresight-tpdm-ddr coresight-turing-etm0 coresight-cti-dlct_cti0 coresight-cti15 coresight-funnel-merg coresight-tpdm-ddr-ch02 coresight-cti-dlct_cti1 coresight-cti2 coresight-funnel-npu coresight-tpdm-ddr-ch13
# umi:/ # dmesg | grep -i coresight [ 0.785099] coresight-tmc 6048000.tmc: Linked as a consumer to 15000000.apps-smmu [ 0.785606] coresight-funnel 6902000.funnel: Linked as a consumer to regulator.74 [ 0.785618] coresight-funnel 6902000.funnel: Linked as a consumer to regulator.75 [ 0.786375] coresight-funnel 6c44000.funnel: Linked as a consumer to regulator.85 [ 0.786386] coresight-funnel 6c44000.funnel: Linked as a consumer to regulator.4 [ 0.787023] coresight-stm 6002000.stm: stm_register_device failed, probing deffered [ 0.789033] coresight-tpdm 6900000.tpdm: Linked as a consumer to regulator.74 [ 0.789045] coresight-tpdm 6900000.tpdm: Linked as a consumer to regulator.75 [ 0.790246] coresight-tpdm 6c47000.tpdm: Linked as a consumer to regulator.85 [ 0.790255] coresight-tpdm 6c47000.tpdm: Linked as a consumer to regulator.4 [ 0.790463] coresight-tpdm 6c40000.tpdm: Linked as a consumer to regulator.85 [ 0.790472] coresight-tpdm 6c40000.tpdm: Linked as a consumer to regulator.4 [ 0.790758] coresight-tpdm 6c41000.tpdm: Linked as a consumer to regulator.85 [ 0.790767] coresight-tpdm 6c41000.tpdm: Linked as a consumer to regulator.4 [ 0.792248] coresight-csr 6001000.csr: CSR initialized: coresight-csr [ 0.792278] coresight-csr 6b0c000.csr: CSR initialized: coresight-swao-csr [ 0.792383] coresight-hwevent soc:hwevent: Hardware Event driver initialized [ 0.792472] coresight-dummy soc:dummy_sink: Dummy device initialized [ 0.792516] coresight-dummy soc:tpdm@6b26000: Dummy device initialized [ 0.792656] coresight-remote-etm soc:turing_etm0: Remote ETM initialized [ 0.792705] coresight-remote-etm soc:audio_etm0: Remote ETM initialized [ 0.792752] coresight-remote-etm soc:ssc_etm0: Remote ETM initialized [ 0.792803] coresight-remote-etm soc:npu_etm0: Remote ETM initialized [ 1.310377] coresight-tmc 6b05000.tmc: invalid cti data [ 1.310723] coresight-stm 6002000.stm: STM32 initialized with master Disabled [ 5.202924] coresight-remote-etm soc:audio_etm0: Connection established between QMI handle and 5 service [ 5.202929] coresight-remote-etm soc:ssc_etm0: Connection established between QMI handle and 8 service [ 5.216469] coresight-remote-etm soc:npu_etm0: Connection established between QMI handle and 14 service [ 5.224839] coresight-remote-etm soc:turing_etm0: Connection established between QMI handle and 13 service
Leo Yan leo.yan@linaro.org 於 2020年6月11日 週四 下午1:58寫道:
Hi Eric,
On Thu, Jun 11, 2020 at 10:23:09AM +0800, H MJ wrote:
Dears,
I am trying to get the data, but still failed. (orz..) If you have any suggestion or possible solutions, please tell me.
Based on your yersterday shared log, seems ETM has not been initialized properly. So suggest to firstly check if CoreSight devices have been initialized or not.
Could you check below folder?
# ls /sys/bus/coresight/devices/ etm0 etm2 etm4 funnel0 funnel2 funnel4 stm0 tmc_etf1 tpiu0 etm1 etm3 etm5 funnel1 funnel3 replicator0 tmc_etf0 tmc_etr0
And please confirm if ETM/ETR/ETF has been initialized or not, a simple way is to use below command:
# dmesg | grep -i coresight [ 5.390787] coresight-tmc 20070000.etr: Adding to iommu group 1 [ 5.400714] coresight etm2: CPU2: ETM v4.0 initialized [ 5.407232] coresight etm3: CPU3: ETM v4.0 initialized [ 5.412955] coresight etm4: CPU4: ETM v4.0 initialized [ 5.418689] coresight etm5: CPU5: ETM v4.0 initialized [ 5.425828] coresight etm1: CPU1: ETM v4.0 initialized [ 5.431517] coresight stm0: STM500 initialized [ 5.436390] coresight etm0: CPU0: ETM v4.0 initialized
Thanks, Leo
H MJ eric.mjh123@gmail.com 於 2020年6月10日 週三 下午3:38寫道:
Dear AI,
Big Thank for your replaying.
==> I can see "/sys/devices/cs_etm".
==> I cannot see "/sys/devices/cs_etm/sinks " # ls /sys/devices/cs_etm/ format nr_addr_filters perf_event_mux_interval_ms power subsystem type uevent
==> perf_mi10 list cs_etm cs_etm// [Kernel PMU event]
Big Thanks. BRs, Eric