Skip to content

Commit d1d43fa

Browse files
committed
Merge tag 'hisi-drivers-for-6.13' of https://github.com/hisilicon/linux-hisi into arm/drivers
HiSilicon driver updates for v6.13 - Add the sysfs to show all HCCS types used on the platform - Add the low power feature for HCCS by adjusting the lane number - Few cleanups and improvements: correct a PCC typo, verify the die, port information, base address and size, update the lane_mode to max_lane_num * tag 'hisi-drivers-for-6.13' of https://github.com/hisilicon/linux-hisi: soc: hisilicon: kunpeng_hccs: Support low power feature for the specified HCCS type soc: hisilicon: kunpeng_hccs: Add used HCCS types sysfs soc: hisilicon: kunpeng_hccs: Fix the 'lane_mode' field name in port info structure to 'max_lane_num' soc: hisilicon: kunpeng_hccs: Add the check for base address and size of shared memory soc: hisilicon: kunpeng_hccs: Return failure on having not die or port information soc: hisilicon: kunpeng_hccs: Fix a PCC typo Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnd Bergmann <[email protected]>
2 parents 511c06e + e3c289c commit d1d43fa

File tree

4 files changed

+580
-19
lines changed

4 files changed

+580
-19
lines changed

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

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,48 @@ Description:
7979
indicates a lane.
8080
crc_err_cnt: (RO) CRC err count on this port.
8181
============= ==== =============================================
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+
============================= ==== ================================

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)