xref: /linux/Documentation/ABI/testing/sysfs-bus-coresight-devices-tpdm (revision f376caf25f79965ab140b7a297cb4a5bb0c89523)
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.
57018e43adSTao Zhang		Bit[3] : Set to 0 for low performance mode.
58018e43adSTao Zhang				 Set to 1 for high performance mode.
59018e43adSTao Zhang		Bit[4:8] : Select byte lane for high performance mode.
60*f376caf2STao Zhang
61*f376caf2STao ZhangWhat:		/sys/bus/coresight/devices/<tpdm-name>/dsb_edge/ctrl_idx
62*f376caf2STao ZhangDate:		March 2023
63*f376caf2STao ZhangKernelVersion	6.7
64*f376caf2STao ZhangContact:	Jinlong Mao (QUIC) <quic_jinlmao@quicinc.com>, Tao Zhang (QUIC) <quic_taozha@quicinc.com>
65*f376caf2STao ZhangDescription:
66*f376caf2STao Zhang		(RW) Set/Get the index number of the edge detection for the DSB
67*f376caf2STao Zhang		subunit TPDM. Since there are at most 256 edge detections, this
68*f376caf2STao Zhang		value ranges from 0 to 255.
69*f376caf2STao Zhang
70*f376caf2STao ZhangWhat:		/sys/bus/coresight/devices/<tpdm-name>/dsb_edge/ctrl_val
71*f376caf2STao ZhangDate:		March 2023
72*f376caf2STao ZhangKernelVersion	6.7
73*f376caf2STao ZhangContact:	Jinlong Mao (QUIC) <quic_jinlmao@quicinc.com>, Tao Zhang (QUIC) <quic_taozha@quicinc.com>
74*f376caf2STao ZhangDescription:
75*f376caf2STao Zhang		Write a data to control the edge detection corresponding to
76*f376caf2STao Zhang		the index number. Before writing data to this sysfs file,
77*f376caf2STao Zhang		"ctrl_idx" should be written first to configure the index
78*f376caf2STao Zhang		number of the edge detection which needs to be controlled.
79*f376caf2STao Zhang
80*f376caf2STao Zhang		Accepts only one of the following values.
81*f376caf2STao Zhang		0 - Rising edge detection
82*f376caf2STao Zhang		1 - Falling edge detection
83*f376caf2STao Zhang		2 - Rising and falling edge detection (toggle detection)
84*f376caf2STao Zhang
85*f376caf2STao Zhang
86*f376caf2STao ZhangWhat:		/sys/bus/coresight/devices/<tpdm-name>/dsb_edge/ctrl_mask
87*f376caf2STao ZhangDate:		March 2023
88*f376caf2STao ZhangKernelVersion	6.7
89*f376caf2STao ZhangContact:	Jinlong Mao (QUIC) <quic_jinlmao@quicinc.com>, Tao Zhang (QUIC) <quic_taozha@quicinc.com>
90*f376caf2STao ZhangDescription:
91*f376caf2STao Zhang		Write a data to mask the edge detection corresponding to the index
92*f376caf2STao Zhang		number. Before writing data to this sysfs file, "ctrl_idx" should
93*f376caf2STao Zhang		be written first to configure the index number of the edge detection
94*f376caf2STao Zhang		which needs to be masked.
95*f376caf2STao Zhang
96*f376caf2STao Zhang		Accepts only one of the 2 values -  0 or 1.
97*f376caf2STao Zhang
98*f376caf2STao ZhangWhat:		/sys/bus/coresight/devices/<tpdm-name>/dsb_edge/edcr[0:15]
99*f376caf2STao ZhangDate:		March 2023
100*f376caf2STao ZhangKernelVersion	6.7
101*f376caf2STao ZhangContact:	Jinlong Mao (QUIC) <quic_jinlmao@quicinc.com>, Tao Zhang (QUIC) <quic_taozha@quicinc.com>
102*f376caf2STao ZhangDescription:
103*f376caf2STao Zhang		Read a set of the edge control value of the DSB in TPDM.
104*f376caf2STao Zhang
105*f376caf2STao ZhangWhat:		/sys/bus/coresight/devices/<tpdm-name>/dsb_edge/edcmr[0:7]
106*f376caf2STao ZhangDate:		March 2023
107*f376caf2STao ZhangKernelVersion	6.7
108*f376caf2STao ZhangContact:	Jinlong Mao (QUIC) <quic_jinlmao@quicinc.com>, Tao Zhang (QUIC) <quic_taozha@quicinc.com>
109*f376caf2STao ZhangDescription:
110*f376caf2STao Zhang		Read a set of the edge control mask of the DSB in TPDM.