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 6a07d8fc3SHuisong 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 29a07d8fc3SHuisong 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 57a07d8fc3SHuisong 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 ============= ==== ============================================= 8223fe8112SHuisong Li 8323fe8112SHuisong LiWhat: /sys/devices/platform/HISI04Bx:00/used_types 8423fe8112SHuisong LiDate: August 2024 8523fe8112SHuisong LiKernelVersion: 6.12 8623fe8112SHuisong LiContact: Huisong Li <lihuisong@huawei.com> 8723fe8112SHuisong LiDescription: 8823fe8112SHuisong Li This interface is used to show all HCCS types used on the 8923fe8112SHuisong Li platform, like, HCCS-v1, HCCS-v2 and so on. 90*e3c289c0SHuisong Li 91*e3c289c0SHuisong LiWhat: /sys/devices/platform/HISI04Bx:00/available_inc_dec_lane_types 92*e3c289c0SHuisong LiWhat: /sys/devices/platform/HISI04Bx:00/dec_lane_of_type 93*e3c289c0SHuisong LiWhat: /sys/devices/platform/HISI04Bx:00/inc_lane_of_type 94*e3c289c0SHuisong LiDate: August 2024 95*e3c289c0SHuisong LiKernelVersion: 6.12 96*e3c289c0SHuisong LiContact: Huisong Li <lihuisong@huawei.com> 97*e3c289c0SHuisong LiDescription: 98*e3c289c0SHuisong Li These interfaces under /sys/devices/platform/HISI04Bx/ are 99*e3c289c0SHuisong Li used to support the low power consumption feature of some 100*e3c289c0SHuisong Li HCCS types by changing the number of lanes used. The interfaces 101*e3c289c0SHuisong Li changing the number of lanes used are 'dec_lane_of_type' and 102*e3c289c0SHuisong Li 'inc_lane_of_type' which require root privileges. These 103*e3c289c0SHuisong Li interfaces aren't exposed if no HCCS type on platform support 104*e3c289c0SHuisong Li this feature. Please note that decreasing lane number is only 105*e3c289c0SHuisong Li allowed if all the specified HCCS ports are not busy. 106*e3c289c0SHuisong Li 107*e3c289c0SHuisong Li The low power consumption interfaces are as follows: 108*e3c289c0SHuisong Li 109*e3c289c0SHuisong Li ============================= ==== ================================ 110*e3c289c0SHuisong Li available_inc_dec_lane_types: (RO) available HCCS types (string) to 111*e3c289c0SHuisong Li increase and decrease the number 112*e3c289c0SHuisong Li of lane used, e.g. HCCS-v2. 113*e3c289c0SHuisong Li dec_lane_of_type: (WO) input HCCS type supported 114*e3c289c0SHuisong Li decreasing lane to decrease the 115*e3c289c0SHuisong Li used lane number of all specified 116*e3c289c0SHuisong Li HCCS type ports on platform to 117*e3c289c0SHuisong Li the minimum. 118*e3c289c0SHuisong Li You can query the 'cur_lane_num' 119*e3c289c0SHuisong Li to get the minimum lane number 120*e3c289c0SHuisong Li after executing successfully. 121*e3c289c0SHuisong Li inc_lane_of_type: (WO) input HCCS type supported 122*e3c289c0SHuisong Li increasing lane to increase the 123*e3c289c0SHuisong Li used lane number of all specified 124*e3c289c0SHuisong Li HCCS type ports on platform to 125*e3c289c0SHuisong Li the full lane state. 126*e3c289c0SHuisong Li ============================= ==== ================================ 127