Skip to content

Commit e3c289c

Browse files
LiHuiSong1joyxu
authored andcommitted
soc: hisilicon: kunpeng_hccs: Support low power feature for the specified HCCS type
Add the low power feature for the specified HCCS type by increasing and decreasing the used lane number of these HCCS ports on platform. Signed-off-by: Huisong Li <[email protected]> Reviewed-by: Jonathan Cameron <[email protected]> Signed-off-by: Wei Xu <[email protected]>
1 parent 23fe811 commit e3c289c

File tree

4 files changed

+431
-3
lines changed

4 files changed

+431
-3
lines changed

Documentation/ABI/testing/sysfs-devices-platform-kunpeng_hccs

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,40 @@ Contact: Huisong Li <[email protected]>
8787
Description:
8888
This interface is used to show all HCCS types used on the
8989
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+
============================= ==== ================================

drivers/soc/hisilicon/Kconfig

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,12 @@ config KUNPENG_HCCS
1313
interconnection bus protocol.
1414
The performance of application may be affected if some HCCS
1515
ports are not in full lane status, have a large number of CRC
16-
errors and so on.
16+
errors and so on. This may support for reducing system power
17+
consumption if there are HCCS ports supported low power feature
18+
on platform.
1719

1820
Say M here if you want to include support for querying the
19-
health status and port information of HCCS on Kunpeng SoC.
21+
health status and port information of HCCS, or reducing system
22+
power consumption on Kunpeng SoC.
2023

2124
endmenu

0 commit comments

Comments
 (0)