| d1d43fae | 01-Nov-2024 |
Arnd Bergmann <arnd@arndb.de> |
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 th
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/671B3FBD.8050905@hisilicon.com Signed-off-by: Arnd Bergmann <arnd@arndb.de>
show more ...
|
| 23fe8112 | 28-Aug-2024 |
Huisong Li <lihuisong@huawei.com> |
soc: hisilicon: kunpeng_hccs: Add used HCCS types sysfs
Kunpeng_hccs driver supports multiple HCCS types used on one platform at the same time. In this case, to find which HCCS types are used on the
soc: hisilicon: kunpeng_hccs: Add used HCCS types sysfs
Kunpeng_hccs driver supports multiple HCCS types used on one platform at the same time. In this case, to find which HCCS types are used on the platform the user needs to scan the type attribute of all ports, which is unfriendly to the user. In addition, the aggregated information is also useful for global control like the low power feature. So add the sysfs to show all HCCS types used on the platform.
Signed-off-by: Huisong Li <lihuisong@huawei.com> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
show more ...
|
| b5187837 | 28-Aug-2024 |
Huisong Li <lihuisong@huawei.com> |
soc: hisilicon: kunpeng_hccs: Fix the 'lane_mode' field name in port info structure to 'max_lane_num'
The lane mode of HCCS port is an information to user, and actually comes from the maximum lane n
soc: hisilicon: kunpeng_hccs: Fix the 'lane_mode' field name in port info structure to 'max_lane_num'
The lane mode of HCCS port is an information to user, and actually comes from the maximum lane number. But it is good and easy for driver to use the maximum lane number. So fix the 'lane_mode' field name in port info structure to 'max_lane_num'.
Signed-off-by: Huisong Li <lihuisong@huawei.com> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
show more ...
|
| 3400c85f | 28-Aug-2024 |
Huisong Li <lihuisong@huawei.com> |
soc: hisilicon: kunpeng_hccs: Add the check for base address and size of shared memory
If the shmem_base_addr from PCCT is zero, hccs_register_pcc_channel will return success. And then driver will a
soc: hisilicon: kunpeng_hccs: Add the check for base address and size of shared memory
If the shmem_base_addr from PCCT is zero, hccs_register_pcc_channel will return success. And then driver will access to illegal address when send PCC command. In addition, the size of shared memory used for communication between driver and platform is fixed, namely 64 Bytes which is unchangeable. So add the verification for hardening code.
Signed-off-by: Huisong Li <lihuisong@huawei.com> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
show more ...
|
| 0c811bd2 | 28-Aug-2024 |
Huisong Li <lihuisong@huawei.com> |
soc: hisilicon: kunpeng_hccs: Return failure on having not die or port information
Driver is unavailable if all die number or all port number obtained from firmware are zero. Although this is unlike
soc: hisilicon: kunpeng_hccs: Return failure on having not die or port information
Driver is unavailable if all die number or all port number obtained from firmware are zero. Although this is unlikely, just to harden the code.
Signed-off-by: Huisong Li <lihuisong@huawei.com> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
show more ...
|
| 95d6333e | 17-Apr-2024 |
Huisong Li <lihuisong@huawei.com> |
soc: hisilicon: kunpeng_hccs: replace MAILBOX dependency with PCC
The kunpeng_hccs driver depends on the Platform Communication Channel Driver. If the PCC driver is not enabled, this driver will be
soc: hisilicon: kunpeng_hccs: replace MAILBOX dependency with PCC
The kunpeng_hccs driver depends on the Platform Communication Channel Driver. If the PCC driver is not enabled, this driver will be failed to probe. And since the PCC driver depends on the MAILBOX, replace the MAILBOX dependency with the PCC.
Signed-off-by: Huisong Li <lihuisong@huawei.com> Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
show more ...
|
| be2f78a8 | 01-Dec-2023 |
Huisong Li <lihuisong@huawei.com> |
soc: hisilicon: kunpeng_hccs: Support the platform with PCC type3 and interrupt ack
Support the platform with PCC type3 and interrupt ack. And a version specific structure is introduced to handle th
soc: hisilicon: kunpeng_hccs: Support the platform with PCC type3 and interrupt ack
Support the platform with PCC type3 and interrupt ack. And a version specific structure is introduced to handle the difference between the device in the code.
Signed-off-by: Huisong Li <lihuisong@huawei.com> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
show more ...
|
| a079f324 | 01-Dec-2023 |
Huisong Li <lihuisong@huawei.com> |
soc: hisilicon: kunpeng_hccs: Remove an unused blank line
Remove an unused blank line.
Signed-off-by: Huisong Li <lihuisong@huawei.com> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> S
soc: hisilicon: kunpeng_hccs: Remove an unused blank line
Remove an unused blank line.
Signed-off-by: Huisong Li <lihuisong@huawei.com> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
show more ...
|
| e1e720f3 | 01-Dec-2023 |
Huisong Li <lihuisong@huawei.com> |
soc: hisilicon: kunpeng_hccs: Add failure log for no _CRS method
Driver gets the PCC channel id by using the PCC GAS in _CRS. But, currently, if the firmware has no _CRS method on platform, there is
soc: hisilicon: kunpeng_hccs: Add failure log for no _CRS method
Driver gets the PCC channel id by using the PCC GAS in _CRS. But, currently, if the firmware has no _CRS method on platform, there is not any failure log. So this patch adds the log for this.
Signed-off-by: Huisong Li <lihuisong@huawei.com> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
show more ...
|
| a90d34af | 12-Aug-2023 |
Arnd Bergmann <arnd@arndb.de> |
soc: kunpeng_hccs: add MAILBOX dependency
When the mailbox subsystem is disabled, the driver fails to link, so add an explicit dependency. Some other drivers use 'select' here, but the dependency se
soc: kunpeng_hccs: add MAILBOX dependency
When the mailbox subsystem is disabled, the driver fails to link, so add an explicit dependency. Some other drivers use 'select' here, but the dependency seems more logical and more common.
Fixes: 886bdf9c883bc ("soc: hisilicon: Support HCCS driver on Kunpeng SoC") Signed-off-by: Arnd Bergmann <arnd@arndb.de>
show more ...
|
| 47f7a255 | 08-Aug-2023 |
Huisong Li <lihuisong@huawei.com> |
soc: hisilicon: add sysfs entry to query information of HCCS
This patch creates chip, die and port directory based on the actual hardware implementation of platform. Some sysfs entries under these d
soc: hisilicon: add sysfs entry to query information of HCCS
This patch creates chip, die and port directory based on the actual hardware implementation of platform. Some sysfs entries under these directories are created to query the health status and port information of HCCS.
Signed-off-by: Huisong Li <lihuisong@huawei.com> Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
show more ...
|