17a25ec8eSMathieu PoirierWhat: /sys/bus/coresight/devices/<memory_map>.tmc/trigger_cntr 27a25ec8eSMathieu PoirierDate: November 2014 37a25ec8eSMathieu PoirierKernelVersion: 3.19 47a25ec8eSMathieu PoirierContact: Mathieu Poirier <mathieu.poirier@linaro.org> 57a25ec8eSMathieu PoirierDescription: (RW) Disables write access to the Trace RAM by stopping the 67a25ec8eSMathieu Poirier formatter after a defined number of words have been stored 77a25ec8eSMathieu Poirier following the trigger event. Additional interface for this 87a25ec8eSMathieu Poirier driver are expected to be added as it matures. 97d83d177SMathieu Poirier 107d83d177SMathieu PoirierWhat: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/rsz 117d83d177SMathieu PoirierDate: March 2016 127d83d177SMathieu PoirierKernelVersion: 4.7 137d83d177SMathieu PoirierContact: Mathieu Poirier <mathieu.poirier@linaro.org> 144119f0dfSMauro Carvalho ChehabDescription: (Read) Defines the size, in 32-bit words, of the local RAM buffer. 157d83d177SMathieu Poirier The value is read directly from HW register RSZ, 0x004. 167d83d177SMathieu Poirier 177d83d177SMathieu PoirierWhat: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/sts 187d83d177SMathieu PoirierDate: March 2016 197d83d177SMathieu PoirierKernelVersion: 4.7 207d83d177SMathieu PoirierContact: Mathieu Poirier <mathieu.poirier@linaro.org> 214119f0dfSMauro Carvalho ChehabDescription: (Read) Shows the value held by the TMC status register. The value 227d83d177SMathieu Poirier is read directly from HW register STS, 0x00C. 237d83d177SMathieu Poirier 247d83d177SMathieu PoirierWhat: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/rrp 257d83d177SMathieu PoirierDate: March 2016 267d83d177SMathieu PoirierKernelVersion: 4.7 277d83d177SMathieu PoirierContact: Mathieu Poirier <mathieu.poirier@linaro.org> 284119f0dfSMauro Carvalho ChehabDescription: (Read) Shows the value held by the TMC RAM Read Pointer register 297d83d177SMathieu Poirier that is used to read entries from the Trace RAM over the APB 307d83d177SMathieu Poirier interface. The value is read directly from HW register RRP, 317d83d177SMathieu Poirier 0x014. 327d83d177SMathieu Poirier 337d83d177SMathieu PoirierWhat: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/rwp 347d83d177SMathieu PoirierDate: March 2016 357d83d177SMathieu PoirierKernelVersion: 4.7 367d83d177SMathieu PoirierContact: Mathieu Poirier <mathieu.poirier@linaro.org> 374119f0dfSMauro Carvalho ChehabDescription: (Read) Shows the value held by the TMC RAM Write Pointer register 387d83d177SMathieu Poirier that is used to sets the write pointer to write entries from 397d83d177SMathieu Poirier the CoreSight bus into the Trace RAM. The value is read directly 407d83d177SMathieu Poirier from HW register RWP, 0x018. 417d83d177SMathieu Poirier 427d83d177SMathieu PoirierWhat: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/trg 437d83d177SMathieu PoirierDate: March 2016 447d83d177SMathieu PoirierKernelVersion: 4.7 457d83d177SMathieu PoirierContact: Mathieu Poirier <mathieu.poirier@linaro.org> 464119f0dfSMauro Carvalho ChehabDescription: (Read) Similar to "trigger_cntr" above except that this value is 477d83d177SMathieu Poirier read directly from HW register TRG, 0x01C. 487d83d177SMathieu Poirier 497d83d177SMathieu PoirierWhat: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/ctl 507d83d177SMathieu PoirierDate: March 2016 517d83d177SMathieu PoirierKernelVersion: 4.7 527d83d177SMathieu PoirierContact: Mathieu Poirier <mathieu.poirier@linaro.org> 534119f0dfSMauro Carvalho ChehabDescription: (Read) Shows the value held by the TMC Control register. The value 547d83d177SMathieu Poirier is read directly from HW register CTL, 0x020. 557d83d177SMathieu Poirier 567d83d177SMathieu PoirierWhat: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/ffsr 577d83d177SMathieu PoirierDate: March 2016 587d83d177SMathieu PoirierKernelVersion: 4.7 597d83d177SMathieu PoirierContact: Mathieu Poirier <mathieu.poirier@linaro.org> 604119f0dfSMauro Carvalho ChehabDescription: (Read) Shows the value held by the TMC Formatter and Flush Status 617d83d177SMathieu Poirier register. The value is read directly from HW register FFSR, 627d83d177SMathieu Poirier 0x300. 637d83d177SMathieu Poirier 647d83d177SMathieu PoirierWhat: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/ffcr 657d83d177SMathieu PoirierDate: March 2016 667d83d177SMathieu PoirierKernelVersion: 4.7 677d83d177SMathieu PoirierContact: Mathieu Poirier <mathieu.poirier@linaro.org> 684119f0dfSMauro Carvalho ChehabDescription: (Read) Shows the value held by the TMC Formatter and Flush Control 697d83d177SMathieu Poirier register. The value is read directly from HW register FFCR, 707d83d177SMathieu Poirier 0x304. 717d83d177SMathieu Poirier 727d83d177SMathieu PoirierWhat: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/mode 737d83d177SMathieu PoirierDate: March 2016 747d83d177SMathieu PoirierKernelVersion: 4.7 757d83d177SMathieu PoirierContact: Mathieu Poirier <mathieu.poirier@linaro.org> 764119f0dfSMauro Carvalho ChehabDescription: (Read) Shows the value held by the TMC Mode register, which 777d83d177SMathieu Poirier indicate the mode the device has been configured to enact. The 787d83d177SMathieu Poirier The value is read directly from the MODE register, 0x028. 797d83d177SMathieu Poirier 807d83d177SMathieu PoirierWhat: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/devid 817d83d177SMathieu PoirierDate: March 2016 827d83d177SMathieu PoirierKernelVersion: 4.7 837d83d177SMathieu PoirierContact: Mathieu Poirier <mathieu.poirier@linaro.org> 844119f0dfSMauro Carvalho ChehabDescription: (Read) Indicates the capabilities of the Coresight TMC. 857d83d177SMathieu Poirier The value is read directly from the DEVID register, 0xFC8, 86c34cc23fSSuzuki K Poulose 87c34cc23fSSuzuki K PouloseWhat: /sys/bus/coresight/devices/<memory_map>.tmc/buffer_size 88c34cc23fSSuzuki K PouloseDate: December 2018 89c34cc23fSSuzuki K PouloseKernelVersion: 4.19 90c34cc23fSSuzuki K PouloseContact: Mathieu Poirier <mathieu.poirier@linaro.org> 91c34cc23fSSuzuki K PouloseDescription: (RW) Size of the trace buffer for TMC-ETR when used in SYSFS 92c34cc23fSSuzuki K Poulose mode. Writable only for TMC-ETR configurations. The value 93c34cc23fSSuzuki K Poulose should be aligned to the kernel pagesize. 942373699aSAnshuman Khandual 952373699aSAnshuman KhandualWhat: /sys/bus/coresight/devices/<memory_map>.tmc/buf_modes_available 962373699aSAnshuman KhandualDate: August 2023 972373699aSAnshuman KhandualKernelVersion: 6.7 982373699aSAnshuman KhandualContact: Anshuman Khandual <anshuman.khandual@arm.com> 992373699aSAnshuman KhandualDescription: (Read) Shows all supported Coresight TMC-ETR buffer modes available 100*2d7e8a64SRemington Brasga for the users to configure explicitly. This file is available only 1012373699aSAnshuman Khandual for TMC ETR devices. 1022373699aSAnshuman Khandual 1032373699aSAnshuman KhandualWhat: /sys/bus/coresight/devices/<memory_map>.tmc/buf_mode_preferred 1042373699aSAnshuman KhandualDate: August 2023 1052373699aSAnshuman KhandualKernelVersion: 6.7 1062373699aSAnshuman KhandualContact: Anshuman Khandual <anshuman.khandual@arm.com> 1072373699aSAnshuman KhandualDescription: (RW) Current Coresight TMC-ETR buffer mode selected. But user could 1082373699aSAnshuman Khandual only provide a mode which is supported for a given ETR device. This 1092373699aSAnshuman Khandual file is available only for TMC ETR devices. 110