@@ -79,3 +79,48 @@ Description:
79
79
indicates a lane.
80
80
crc_err_cnt: (RO) CRC err count on this port.
81
81
============= ==== =============================================
82
+
83
+ What: /sys/devices/platform/HISI04Bx:00/used_types
84
+ Date: August 2024
85
+ KernelVersion: 6.12
86
+ Contact: Huisong Li <
[email protected] >
87
+ Description:
88
+ This interface is used to show all HCCS types used on the
89
+ platform, like, HCCS-v1, HCCS-v2 and so on.
90
+
91
+ What: /sys/devices/platform/HISI04Bx:00/available_inc_dec_lane_types
92
+ What: /sys/devices/platform/HISI04Bx:00/dec_lane_of_type
93
+ What: /sys/devices/platform/HISI04Bx:00/inc_lane_of_type
94
+ Date: August 2024
95
+ KernelVersion: 6.12
96
+ Contact: Huisong Li <
[email protected] >
97
+ Description:
98
+ These interfaces under /sys/devices/platform/HISI04Bx/ are
99
+ used to support the low power consumption feature of some
100
+ HCCS types by changing the number of lanes used. The interfaces
101
+ changing the number of lanes used are 'dec_lane_of_type' and
102
+ 'inc_lane_of_type' which require root privileges. These
103
+ interfaces aren't exposed if no HCCS type on platform support
104
+ this feature. Please note that decreasing lane number is only
105
+ allowed if all the specified HCCS ports are not busy.
106
+
107
+ The low power consumption interfaces are as follows:
108
+
109
+ ============================= ==== ================================
110
+ available_inc_dec_lane_types: (RO) available HCCS types (string) to
111
+ increase and decrease the number
112
+ of lane used, e.g. HCCS-v2.
113
+ dec_lane_of_type: (WO) input HCCS type supported
114
+ decreasing lane to decrease the
115
+ used lane number of all specified
116
+ HCCS type ports on platform to
117
+ the minimum.
118
+ You can query the 'cur_lane_num'
119
+ to get the minimum lane number
120
+ after executing successfully.
121
+ inc_lane_of_type: (WO) input HCCS type supported
122
+ increasing lane to increase the
123
+ used lane number of all specified
124
+ HCCS type ports on platform to
125
+ the full lane state.
126
+ ============================= ==== ================================
0 commit comments