1436cca9aSMao JinlongWhat: /sys/bus/coresight/devices/<tpdm-name>/integration_test 2436cca9aSMao JinlongDate: January 2023 3fc80c4f0SMauro Carvalho ChehabKernelVersion: 6.2 4436cca9aSMao JinlongContact: Jinlong Mao (QUIC) <quic_jinlmao@quicinc.com>, Tao Zhang (QUIC) <quic_taozha@quicinc.com> 5436cca9aSMao JinlongDescription: 6436cca9aSMao Jinlong (Write) Run integration test for tpdm. Integration test 7436cca9aSMao Jinlong will generate test data for tpdm. It can help to make 8436cca9aSMao Jinlong sure that the trace path is enabled and the link configurations 9436cca9aSMao Jinlong are fine. 10436cca9aSMao Jinlong 11436cca9aSMao Jinlong Accepts only one of the 2 values - 1 or 2. 12436cca9aSMao Jinlong 1 : Generate 64 bits data 13436cca9aSMao Jinlong 2 : Generate 32 bits data 148fbbce11STao Zhang 158fbbce11STao ZhangWhat: /sys/bus/coresight/devices/<tpdm-name>/reset_dataset 168fbbce11STao ZhangDate: March 2023 17fc80c4f0SMauro Carvalho ChehabKernelVersion: 6.7 188fbbce11STao ZhangContact: Jinlong Mao (QUIC) <quic_jinlmao@quicinc.com>, Tao Zhang (QUIC) <quic_taozha@quicinc.com> 198fbbce11STao ZhangDescription: 208fbbce11STao Zhang (Write) Reset the dataset of the tpdm. 218fbbce11STao Zhang 228fbbce11STao Zhang Accepts only one value - 1. 238fbbce11STao Zhang 1 : Reset the dataset of the tpdm 24851b3f9cSTao Zhang 25851b3f9cSTao ZhangWhat: /sys/bus/coresight/devices/<tpdm-name>/dsb_trig_type 26851b3f9cSTao ZhangDate: March 2023 27fc80c4f0SMauro Carvalho ChehabKernelVersion: 6.7 28851b3f9cSTao ZhangContact: Jinlong Mao (QUIC) <quic_jinlmao@quicinc.com>, Tao Zhang (QUIC) <quic_taozha@quicinc.com> 29851b3f9cSTao ZhangDescription: 30851b3f9cSTao Zhang (RW) Set/Get the trigger type of the DSB for tpdm. 31851b3f9cSTao Zhang 32851b3f9cSTao Zhang Accepts only one of the 2 values - 0 or 1. 33851b3f9cSTao Zhang 0 : Set the DSB trigger type to false 34851b3f9cSTao Zhang 1 : Set the DSB trigger type to true 35851b3f9cSTao Zhang 36851b3f9cSTao ZhangWhat: /sys/bus/coresight/devices/<tpdm-name>/dsb_trig_ts 37851b3f9cSTao ZhangDate: March 2023 38fc80c4f0SMauro Carvalho ChehabKernelVersion: 6.7 39851b3f9cSTao ZhangContact: Jinlong Mao (QUIC) <quic_jinlmao@quicinc.com>, Tao Zhang (QUIC) <quic_taozha@quicinc.com> 40851b3f9cSTao ZhangDescription: 41851b3f9cSTao Zhang (RW) Set/Get the trigger timestamp of the DSB for tpdm. 42851b3f9cSTao Zhang 43851b3f9cSTao Zhang Accepts only one of the 2 values - 0 or 1. 44851b3f9cSTao Zhang 0 : Set the DSB trigger type to false 45851b3f9cSTao Zhang 1 : Set the DSB trigger type to true 46018e43adSTao Zhang 47018e43adSTao ZhangWhat: /sys/bus/coresight/devices/<tpdm-name>/dsb_mode 48018e43adSTao ZhangDate: March 2023 49fc80c4f0SMauro Carvalho ChehabKernelVersion: 6.7 50018e43adSTao ZhangContact: Jinlong Mao (QUIC) <quic_jinlmao@quicinc.com>, Tao Zhang (QUIC) <quic_taozha@quicinc.com> 51018e43adSTao ZhangDescription: 52018e43adSTao Zhang (RW) Set/Get the programming mode of the DSB for tpdm. 53018e43adSTao Zhang 54018e43adSTao Zhang Accepts the value needs to be greater than 0. What data 55018e43adSTao Zhang bits do is listed below. 56018e43adSTao Zhang Bit[0:1] : Test mode control bit for choosing the inputs. 579d4408feSBagas Sanjaya Bit[3] : Set to 0 for low performance mode. Set to 1 for high 589d4408feSBagas Sanjaya performance mode. 59018e43adSTao Zhang Bit[4:8] : Select byte lane for high performance mode. 60f376caf2STao Zhang 61f376caf2STao ZhangWhat: /sys/bus/coresight/devices/<tpdm-name>/dsb_edge/ctrl_idx 62f376caf2STao ZhangDate: March 2023 63fc80c4f0SMauro Carvalho ChehabKernelVersion: 6.7 64f376caf2STao ZhangContact: Jinlong Mao (QUIC) <quic_jinlmao@quicinc.com>, Tao Zhang (QUIC) <quic_taozha@quicinc.com> 65f376caf2STao ZhangDescription: 66f376caf2STao Zhang (RW) Set/Get the index number of the edge detection for the DSB 67f376caf2STao Zhang subunit TPDM. Since there are at most 256 edge detections, this 68f376caf2STao Zhang value ranges from 0 to 255. 69f376caf2STao Zhang 70f376caf2STao ZhangWhat: /sys/bus/coresight/devices/<tpdm-name>/dsb_edge/ctrl_val 71f376caf2STao ZhangDate: March 2023 72fc80c4f0SMauro Carvalho ChehabKernelVersion: 6.7 73f376caf2STao ZhangContact: Jinlong Mao (QUIC) <quic_jinlmao@quicinc.com>, Tao Zhang (QUIC) <quic_taozha@quicinc.com> 74f376caf2STao ZhangDescription: 75f376caf2STao Zhang Write a data to control the edge detection corresponding to 76f376caf2STao Zhang the index number. Before writing data to this sysfs file, 77f376caf2STao Zhang "ctrl_idx" should be written first to configure the index 78f376caf2STao Zhang number of the edge detection which needs to be controlled. 79f376caf2STao Zhang 80f376caf2STao Zhang Accepts only one of the following values. 81f376caf2STao Zhang 0 - Rising edge detection 82f376caf2STao Zhang 1 - Falling edge detection 83f376caf2STao Zhang 2 - Rising and falling edge detection (toggle detection) 84f376caf2STao Zhang 85f376caf2STao Zhang 86f376caf2STao ZhangWhat: /sys/bus/coresight/devices/<tpdm-name>/dsb_edge/ctrl_mask 87f376caf2STao ZhangDate: March 2023 88fc80c4f0SMauro Carvalho ChehabKernelVersion: 6.7 89f376caf2STao ZhangContact: Jinlong Mao (QUIC) <quic_jinlmao@quicinc.com>, Tao Zhang (QUIC) <quic_taozha@quicinc.com> 90f376caf2STao ZhangDescription: 91f376caf2STao Zhang Write a data to mask the edge detection corresponding to the index 92f376caf2STao Zhang number. Before writing data to this sysfs file, "ctrl_idx" should 93f376caf2STao Zhang be written first to configure the index number of the edge detection 94f376caf2STao Zhang which needs to be masked. 95f376caf2STao Zhang 96f376caf2STao Zhang Accepts only one of the 2 values - 0 or 1. 97f376caf2STao Zhang 98f376caf2STao ZhangWhat: /sys/bus/coresight/devices/<tpdm-name>/dsb_edge/edcr[0:15] 99f376caf2STao ZhangDate: March 2023 100fc80c4f0SMauro Carvalho ChehabKernelVersion: 6.7 101f376caf2STao ZhangContact: Jinlong Mao (QUIC) <quic_jinlmao@quicinc.com>, Tao Zhang (QUIC) <quic_taozha@quicinc.com> 102f376caf2STao ZhangDescription: 103f376caf2STao Zhang Read a set of the edge control value of the DSB in TPDM. 104f376caf2STao Zhang 105f376caf2STao ZhangWhat: /sys/bus/coresight/devices/<tpdm-name>/dsb_edge/edcmr[0:7] 106f376caf2STao ZhangDate: March 2023 107fc80c4f0SMauro Carvalho ChehabKernelVersion: 6.7 108f376caf2STao ZhangContact: Jinlong Mao (QUIC) <quic_jinlmao@quicinc.com>, Tao Zhang (QUIC) <quic_taozha@quicinc.com> 109f376caf2STao ZhangDescription: 110f376caf2STao Zhang Read a set of the edge control mask of the DSB in TPDM. 111a8138a94STao Zhang 112a8138a94STao ZhangWhat: /sys/bus/coresight/devices/<tpdm-name>/dsb_trig_patt/xpr[0:7] 113a8138a94STao ZhangDate: March 2023 114fc80c4f0SMauro Carvalho ChehabKernelVersion: 6.7 115a8138a94STao ZhangContact: Jinlong Mao (QUIC) <quic_jinlmao@quicinc.com>, Tao Zhang (QUIC) <quic_taozha@quicinc.com> 116a8138a94STao ZhangDescription: 117a8138a94STao Zhang (RW) Set/Get the value of the trigger pattern for the DSB 118a8138a94STao Zhang subunit TPDM. 119a8138a94STao Zhang 120a8138a94STao ZhangWhat: /sys/bus/coresight/devices/<tpdm-name>/dsb_trig_patt/xpmr[0:7] 121a8138a94STao ZhangDate: March 2023 122fc80c4f0SMauro Carvalho ChehabKernelVersion: 6.7 123a8138a94STao ZhangContact: Jinlong Mao (QUIC) <quic_jinlmao@quicinc.com>, Tao Zhang (QUIC) <quic_taozha@quicinc.com> 124a8138a94STao ZhangDescription: 125a8138a94STao Zhang (RW) Set/Get the mask of the trigger pattern for the DSB 126a8138a94STao Zhang subunit TPDM. 1274c983382STao Zhang 1284c983382STao ZhangWhat: /sys/bus/coresight/devices/<tpdm-name>/dsb_patt/tpr[0:7] 1294c983382STao ZhangDate: March 2023 130fc80c4f0SMauro Carvalho ChehabKernelVersion: 6.7 1314c983382STao ZhangContact: Jinlong Mao (QUIC) <quic_jinlmao@quicinc.com>, Tao Zhang (QUIC) <quic_taozha@quicinc.com> 1324c983382STao ZhangDescription: 1334c983382STao Zhang (RW) Set/Get the value of the pattern for the DSB subunit TPDM. 1344c983382STao Zhang 1354c983382STao ZhangWhat: /sys/bus/coresight/devices/<tpdm-name>/dsb_patt/tpmr[0:7] 1364c983382STao ZhangDate: March 2023 137fc80c4f0SMauro Carvalho ChehabKernelVersion: 6.7 1384c983382STao ZhangContact: Jinlong Mao (QUIC) <quic_jinlmao@quicinc.com>, Tao Zhang (QUIC) <quic_taozha@quicinc.com> 1394c983382STao ZhangDescription: 1404c983382STao Zhang (RW) Set/Get the mask of the pattern for the DSB subunit TPDM. 1414c983382STao Zhang 1424c983382STao ZhangWhat: /sys/bus/coresight/devices/<tpdm-name>/dsb_patt/enable_ts 1434c983382STao ZhangDate: March 2023 144fc80c4f0SMauro Carvalho ChehabKernelVersion: 6.7 1454c983382STao ZhangContact: Jinlong Mao (QUIC) <quic_jinlmao@quicinc.com>, Tao Zhang (QUIC) <quic_taozha@quicinc.com> 1464c983382STao ZhangDescription: 1474c983382STao Zhang (Write) Set the pattern timestamp of DSB tpdm. Read 1484c983382STao Zhang the pattern timestamp of DSB tpdm. 1494c983382STao Zhang 1504c983382STao Zhang Accepts only one of the 2 values - 0 or 1. 1514c983382STao Zhang 0 : Disable DSB pattern timestamp. 1524c983382STao Zhang 1 : Enable DSB pattern timestamp. 1534c983382STao Zhang 1544c983382STao ZhangWhat: /sys/bus/coresight/devices/<tpdm-name>/dsb_patt/set_type 1554c983382STao ZhangDate: March 2023 156fc80c4f0SMauro Carvalho ChehabKernelVersion: 6.7 1574c983382STao ZhangContact: Jinlong Mao (QUIC) <quic_jinlmao@quicinc.com>, Tao Zhang (QUIC) <quic_taozha@quicinc.com> 1584c983382STao ZhangDescription: 1594c983382STao Zhang (Write) Set the pattern type of DSB tpdm. Read 1604c983382STao Zhang the pattern type of DSB tpdm. 1614c983382STao Zhang 1624c983382STao Zhang Accepts only one of the 2 values - 0 or 1. 1634c983382STao Zhang 0 : Set the DSB pattern type to value. 1644c983382STao Zhang 1 : Set the DSB pattern type to toggle. 165350ba15aSTao Zhang 166350ba15aSTao ZhangWhat: /sys/bus/coresight/devices/<tpdm-name>/dsb_msr/msr[0:31] 167350ba15aSTao ZhangDate: March 2023 168fc80c4f0SMauro Carvalho ChehabKernelVersion: 6.7 169350ba15aSTao ZhangContact: Jinlong Mao (QUIC) <quic_jinlmao@quicinc.com>, Tao Zhang (QUIC) <quic_taozha@quicinc.com> 170350ba15aSTao ZhangDescription: 171350ba15aSTao Zhang (RW) Set/Get the MSR(mux select register) for the DSB subunit 172350ba15aSTao Zhang TPDM. 1732d9ab11cSTao Zhang 1742d9ab11cSTao ZhangWhat: /sys/bus/coresight/devices/<tpdm-name>/cmb_mode 1752d9ab11cSTao ZhangDate: January 2024 176fc80c4f0SMauro Carvalho ChehabKernelVersion: 6.9 1772d9ab11cSTao ZhangContact: Jinlong Mao (QUIC) <quic_jinlmao@quicinc.com>, Tao Zhang (QUIC) <quic_taozha@quicinc.com> 1782d9ab11cSTao ZhangDescription: (Write) Set the data collection mode of CMB tpdm. Continuous 1792d9ab11cSTao Zhang change creates CMB data set elements on every CMBCLK edge. 1802d9ab11cSTao Zhang Trace-on-change creates CMB data set elements only when a new 1812d9ab11cSTao Zhang data set element differs in value from the previous element 1822d9ab11cSTao Zhang in a CMB data set. 1832d9ab11cSTao Zhang 1842d9ab11cSTao Zhang Accepts only one of the 2 values - 0 or 1. 1852d9ab11cSTao Zhang 0 : Continuous CMB collection mode. 1862d9ab11cSTao Zhang 1 : Trace-on-change CMB collection mode. 18753d4a017STao Zhang 18853d4a017STao ZhangWhat: /sys/bus/coresight/devices/<tpdm-name>/cmb_trig_patt/xpr[0:1] 18953d4a017STao ZhangDate: January 2024 190fc80c4f0SMauro Carvalho ChehabKernelVersion: 6.9 19153d4a017STao ZhangContact: Jinlong Mao (QUIC) <quic_jinlmao@quicinc.com>, Tao Zhang (QUIC) <quic_taozha@quicinc.com> 19253d4a017STao ZhangDescription: 19353d4a017STao Zhang (RW) Set/Get the value of the trigger pattern for the CMB 19453d4a017STao Zhang subunit TPDM. 19553d4a017STao Zhang 19653d4a017STao ZhangWhat: /sys/bus/coresight/devices/<tpdm-name>/cmb_trig_patt/xpmr[0:1] 19753d4a017STao ZhangDate: January 2024 198fc80c4f0SMauro Carvalho ChehabKernelVersion: 6.9 19953d4a017STao ZhangContact: Jinlong Mao (QUIC) <quic_jinlmao@quicinc.com>, Tao Zhang (QUIC) <quic_taozha@quicinc.com> 20053d4a017STao ZhangDescription: 20153d4a017STao Zhang (RW) Set/Get the mask of the trigger pattern for the CMB 20253d4a017STao Zhang subunit TPDM. 20353d4a017STao Zhang 20453d4a017STao ZhangWhat: /sys/bus/coresight/devices/<tpdm-name>/dsb_patt/tpr[0:1] 20553d4a017STao ZhangDate: January 2024 206fc80c4f0SMauro Carvalho ChehabKernelVersion: 6.9 20753d4a017STao ZhangContact: Jinlong Mao (QUIC) <quic_jinlmao@quicinc.com>, Tao Zhang (QUIC) <quic_taozha@quicinc.com> 20853d4a017STao ZhangDescription: 20953d4a017STao Zhang (RW) Set/Get the value of the pattern for the CMB subunit TPDM. 21053d4a017STao Zhang 21153d4a017STao ZhangWhat: /sys/bus/coresight/devices/<tpdm-name>/dsb_patt/tpmr[0:1] 21253d4a017STao ZhangDate: January 2024 213fc80c4f0SMauro Carvalho ChehabKernelVersion: 6.9 21453d4a017STao ZhangContact: Jinlong Mao (QUIC) <quic_jinlmao@quicinc.com>, Tao Zhang (QUIC) <quic_taozha@quicinc.com> 21553d4a017STao ZhangDescription: 21653d4a017STao Zhang (RW) Set/Get the mask of the pattern for the CMB subunit TPDM. 217dc6ce57eSTao Zhang 218dc6ce57eSTao ZhangWhat: /sys/bus/coresight/devices/<tpdm-name>/cmb_patt/enable_ts 219dc6ce57eSTao ZhangDate: January 2024 220fc80c4f0SMauro Carvalho ChehabKernelVersion: 6.9 221dc6ce57eSTao ZhangContact: Jinlong Mao (QUIC) <quic_jinlmao@quicinc.com>, Tao Zhang (QUIC) <quic_taozha@quicinc.com> 222dc6ce57eSTao ZhangDescription: 223dc6ce57eSTao Zhang (Write) Set the pattern timestamp of CMB tpdm. Read 224dc6ce57eSTao Zhang the pattern timestamp of CMB tpdm. 225dc6ce57eSTao Zhang 226dc6ce57eSTao Zhang Accepts only one of the 2 values - 0 or 1. 227dc6ce57eSTao Zhang 0 : Disable CMB pattern timestamp. 228dc6ce57eSTao Zhang 1 : Enable CMB pattern timestamp. 229dc6ce57eSTao Zhang 230dc6ce57eSTao ZhangWhat: /sys/bus/coresight/devices/<tpdm-name>/cmb_trig_ts 231dc6ce57eSTao ZhangDate: January 2024 232fc80c4f0SMauro Carvalho ChehabKernelVersion: 6.9 233dc6ce57eSTao ZhangContact: Jinlong Mao (QUIC) <quic_jinlmao@quicinc.com>, Tao Zhang (QUIC) <quic_taozha@quicinc.com> 234dc6ce57eSTao ZhangDescription: 235dc6ce57eSTao Zhang (RW) Set/Get the trigger timestamp of the CMB for tpdm. 236dc6ce57eSTao Zhang 237dc6ce57eSTao Zhang Accepts only one of the 2 values - 0 or 1. 238dc6ce57eSTao Zhang 0 : Set the CMB trigger type to false 239dc6ce57eSTao Zhang 1 : Set the CMB trigger type to true 240dc6ce57eSTao Zhang 241dc6ce57eSTao ZhangWhat: /sys/bus/coresight/devices/<tpdm-name>/cmb_ts_all 242dc6ce57eSTao ZhangDate: January 2024 243fc80c4f0SMauro Carvalho ChehabKernelVersion: 6.9 244dc6ce57eSTao ZhangContact: Jinlong Mao (QUIC) <quic_jinlmao@quicinc.com>, Tao Zhang (QUIC) <quic_taozha@quicinc.com> 245dc6ce57eSTao ZhangDescription: 246dc6ce57eSTao Zhang (RW) Read or write the status of timestamp upon all interface. 2472d7e8a64SRemington Brasga Only value 0 and 1 can be written to this node. Set this node to 1 to request 248dc6ce57eSTao Zhang timestamp to all trace packet. 249dc6ce57eSTao Zhang Accepts only one of the 2 values - 0 or 1. 250dc6ce57eSTao Zhang 0 : Disable the timestamp of all trace packets. 251dc6ce57eSTao Zhang 1 : Enable the timestamp of all trace packets. 2528e880414STao Zhang 2538e880414STao ZhangWhat: /sys/bus/coresight/devices/<tpdm-name>/cmb_msr/msr[0:31] 2548e880414STao ZhangDate: January 2024 255fc80c4f0SMauro Carvalho ChehabKernelVersion: 6.9 2568e880414STao ZhangContact: Jinlong Mao (QUIC) <quic_jinlmao@quicinc.com>, Tao Zhang (QUIC) <quic_taozha@quicinc.com> 2578e880414STao ZhangDescription: 2588e880414STao Zhang (RW) Set/Get the MSR(mux select register) for the CMB subunit 2598e880414STao Zhang TPDM. 26007f7c217STao Zhang 26107f7c217STao ZhangWhat: /sys/bus/coresight/devices/<tpdm-name>/mcmb_trig_lane 26207f7c217STao ZhangDate: Feb 2025 26307f7c217STao ZhangKernelVersion 6.15 26407f7c217STao ZhangContact: Jinlong Mao (QUIC) <quic_jinlmao@quicinc.com>, Tao Zhang (QUIC) <quic_taozha@quicinc.com> 26507f7c217STao ZhangDescription: 26607f7c217STao Zhang (RW) Set/Get which lane participates in the output pattern 26707f7c217STao Zhang match cross trigger mechanism for the MCMB subunit TPDM. 268*0c0b6c05STao Zhang 269*0c0b6c05STao ZhangWhat: /sys/bus/coresight/devices/<tpdm-name>/mcmb_lanes_select 270*0c0b6c05STao ZhangDate: Feb 2025 271*0c0b6c05STao ZhangKernelVersion 6.15 272*0c0b6c05STao ZhangContact: Jinlong Mao (QUIC) <quic_jinlmao@quicinc.com>, Tao Zhang (QUIC) <quic_taozha@quicinc.com> 273*0c0b6c05STao ZhangDescription: 274*0c0b6c05STao Zhang (RW) Set/Get the enablement of the individual lane. 275