xref: /linux/Documentation/ABI/testing/sysfs-devices-platform-kunpeng_hccs (revision a07d8fc358af5f297b41b2182a5fce710e3c9bd7)
1b51022b4SHuisong LiWhat:		/sys/devices/platform/HISI04Bx:00/chipX/all_linked
2b51022b4SHuisong LiWhat:		/sys/devices/platform/HISI04Bx:00/chipX/linked_full_lane
3b51022b4SHuisong LiWhat:		/sys/devices/platform/HISI04Bx:00/chipX/crc_err_cnt
4b51022b4SHuisong LiDate:		November 2023
5b51022b4SHuisong LiKernelVersion:	6.6
6*a07d8fc3SHuisong LiContact:	Huisong Li <lihuisong@huawei.com>
7b51022b4SHuisong LiDescription:
8b51022b4SHuisong Li		The /sys/devices/platform/HISI04Bx:00/chipX/ directory
9b51022b4SHuisong Li		contains read-only attributes exposing some summarization
10b51022b4SHuisong Li		information of all HCCS ports under a specified chip.
11b51022b4SHuisong Li		The X in 'chipX' indicates the Xth chip on platform.
12b51022b4SHuisong Li
13b51022b4SHuisong Li		There are following attributes in this directory:
14b51022b4SHuisong Li
15b51022b4SHuisong Li		================= ==== =========================================
16b51022b4SHuisong Li		all_linked:       (RO) if all enabled ports on this chip are
17b51022b4SHuisong Li				       linked (bool).
18b51022b4SHuisong Li		linked_full_lane: (RO) if all linked ports on this chip are full
19b51022b4SHuisong Li				       lane (bool).
20b51022b4SHuisong Li		crc_err_cnt:      (RO) total CRC err count for all ports on this
21b51022b4SHuisong Li				       chip.
22b51022b4SHuisong Li		================= ==== =========================================
23b51022b4SHuisong Li
24b51022b4SHuisong LiWhat:		/sys/devices/platform/HISI04Bx:00/chipX/dieY/all_linked
25b51022b4SHuisong LiWhat:		/sys/devices/platform/HISI04Bx:00/chipX/dieY/linked_full_lane
26b51022b4SHuisong LiWhat:		/sys/devices/platform/HISI04Bx:00/chipX/dieY/crc_err_cnt
27b51022b4SHuisong LiDate:		November 2023
28b51022b4SHuisong LiKernelVersion:	6.6
29*a07d8fc3SHuisong LiContact:	Huisong Li <lihuisong@huawei.com>
30b51022b4SHuisong LiDescription:
31b51022b4SHuisong Li		The /sys/devices/platform/HISI04Bx:00/chipX/dieY/ directory
32b51022b4SHuisong Li		contains read-only attributes exposing some summarization
33b51022b4SHuisong Li		information of all HCCS ports under a specified die.
34b51022b4SHuisong Li		The Y in 'dieY' indicates the hardware id of the die on chip who
35b51022b4SHuisong Li		has chip id X.
36b51022b4SHuisong Li
37b51022b4SHuisong Li		There are following attributes in this directory:
38b51022b4SHuisong Li
39b51022b4SHuisong Li		================= ==== =========================================
40b51022b4SHuisong Li		all_linked:       (RO) if all enabled ports on this die are
41b51022b4SHuisong Li				       linked (bool).
42b51022b4SHuisong Li		linked_full_lane: (RO) if all linked ports on this die are full
43b51022b4SHuisong Li				       lane (bool).
44b51022b4SHuisong Li		crc_err_cnt:      (RO) total CRC err count for all ports on this
45b51022b4SHuisong Li				       die.
46b51022b4SHuisong Li		================= ==== =========================================
47b51022b4SHuisong Li
48b51022b4SHuisong LiWhat:		/sys/devices/platform/HISI04Bx:00/chipX/dieY/hccsN/type
49b51022b4SHuisong LiWhat:		/sys/devices/platform/HISI04Bx:00/chipX/dieY/hccsN/lane_mode
50b51022b4SHuisong LiWhat:		/sys/devices/platform/HISI04Bx:00/chipX/dieY/hccsN/enable
51b51022b4SHuisong LiWhat:		/sys/devices/platform/HISI04Bx:00/chipX/dieY/hccsN/cur_lane_num
52b51022b4SHuisong LiWhat:		/sys/devices/platform/HISI04Bx:00/chipX/dieY/hccsN/link_fsm
53b51022b4SHuisong LiWhat:		/sys/devices/platform/HISI04Bx:00/chipX/dieY/hccsN/lane_mask
54b51022b4SHuisong LiWhat:		/sys/devices/platform/HISI04Bx:00/chipX/dieY/hccsN/crc_err_cnt
55b51022b4SHuisong LiDate:		November 2023
56b51022b4SHuisong LiKernelVersion:	6.6
57*a07d8fc3SHuisong LiContact:	Huisong Li <lihuisong@huawei.com>
58b51022b4SHuisong LiDescription:
59b51022b4SHuisong Li		The /sys/devices/platform/HISI04Bx/chipX/dieX/hccsN/ directory
60b51022b4SHuisong Li		contains read-only attributes exposing information about
61b51022b4SHuisong Li		a HCCS port. The N value in 'hccsN' indicates this port id.
62b51022b4SHuisong Li		The X in 'chipX' indicates the ID of the chip to which the
63b51022b4SHuisong Li		HCCS port belongs. For example, X ranges from to 'n - 1' if the
64b51022b4SHuisong Li		chip number on platform is n.
65b51022b4SHuisong Li		The Y in 'dieY' indicates the hardware id of the die to which
66b51022b4SHuisong Li		the hccs port belongs.
67b51022b4SHuisong Li		Note: type, lane_mode and enable are fixed attributes on running
68b51022b4SHuisong Li		platform.
69b51022b4SHuisong Li
70b51022b4SHuisong Li		The HCCS port have the following attributes:
71b51022b4SHuisong Li
72b51022b4SHuisong Li		============= ==== =============================================
73b51022b4SHuisong Li		type:         (RO) port type (string), e.g. HCCS-v1 -> H32
74b51022b4SHuisong Li		lane_mode:    (RO) the lane mode of this port (string), e.g. x8
75b51022b4SHuisong Li		enable:       (RO) indicate if this port is enabled (bool).
76b51022b4SHuisong Li		cur_lane_num: (RO) current lane number of this port.
77b51022b4SHuisong Li		link_fsm:     (RO) link finite state machine of this port.
78b51022b4SHuisong Li		lane_mask:    (RO) current lane mask of this port, every bit
79b51022b4SHuisong Li			           indicates a lane.
80b51022b4SHuisong Li		crc_err_cnt:  (RO) CRC err count on this port.
81b51022b4SHuisong Li		============= ==== =============================================
82