1436cca9aSMao JinlongWhat: /sys/bus/coresight/devices/<tpdm-name>/integration_test 2436cca9aSMao JinlongDate: January 2023 3436cca9aSMao JinlongKernelVersion 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 178fbbce11STao ZhangKernelVersion 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 27851b3f9cSTao ZhangKernelVersion 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 38851b3f9cSTao ZhangKernelVersion 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 49018e43adSTao ZhangKernelVersion 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 63f376caf2STao ZhangKernelVersion 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 72f376caf2STao ZhangKernelVersion 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 88f376caf2STao ZhangKernelVersion 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 100f376caf2STao ZhangKernelVersion 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 107f376caf2STao ZhangKernelVersion 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 114a8138a94STao ZhangKernelVersion 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 122a8138a94STao ZhangKernelVersion 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 1304c983382STao ZhangKernelVersion 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 1374c983382STao ZhangKernelVersion 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 1444c983382STao ZhangKernelVersion 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 1564c983382STao ZhangKernelVersion 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 168350ba15aSTao ZhangKernelVersion 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. 173*2d9ab11cSTao Zhang 174*2d9ab11cSTao ZhangWhat: /sys/bus/coresight/devices/<tpdm-name>/cmb_mode 175*2d9ab11cSTao ZhangDate: January 2024 176*2d9ab11cSTao ZhangKernelVersion 6.9 177*2d9ab11cSTao ZhangContact: Jinlong Mao (QUIC) <quic_jinlmao@quicinc.com>, Tao Zhang (QUIC) <quic_taozha@quicinc.com> 178*2d9ab11cSTao ZhangDescription: (Write) Set the data collection mode of CMB tpdm. Continuous 179*2d9ab11cSTao Zhang change creates CMB data set elements on every CMBCLK edge. 180*2d9ab11cSTao Zhang Trace-on-change creates CMB data set elements only when a new 181*2d9ab11cSTao Zhang data set element differs in value from the previous element 182*2d9ab11cSTao Zhang in a CMB data set. 183*2d9ab11cSTao Zhang 184*2d9ab11cSTao Zhang Accepts only one of the 2 values - 0 or 1. 185*2d9ab11cSTao Zhang 0 : Continuous CMB collection mode. 186*2d9ab11cSTao Zhang 1 : Trace-on-change CMB collection mode. 187