| 23fe8112 | 28-Aug-2024 |
Huisong Li <[email protected]> |
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 <[email protected]> Reviewed-by: Jonathan Cameron <[email protected]> Signed-off-by: Wei Xu <[email protected]>
show more ...
|
| b5187837 | 28-Aug-2024 |
Huisong Li <[email protected]> |
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 <[email protected]> Reviewed-by: Jonathan Cameron <[email protected]> Signed-off-by: Wei Xu <[email protected]>
show more ...
|
| 3400c85f | 28-Aug-2024 |
Huisong Li <[email protected]> |
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 <[email protected]> Reviewed-by: Jonathan Cameron <[email protected]> Signed-off-by: Wei Xu <[email protected]>
show more ...
|
| 0c811bd2 | 28-Aug-2024 |
Huisong Li <[email protected]> |
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 <[email protected]> Reviewed-by: Jonathan Cameron <[email protected]> Signed-off-by: Wei Xu <[email protected]>
show more ...
|
| 95d6333e | 17-Apr-2024 |
Huisong Li <[email protected]> |
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 <[email protected]> Signed-off-by: Wei Xu <[email protected]>
show more ...
|
| e1e720f3 | 01-Dec-2023 |
Huisong Li <[email protected]> |
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 <[email protected]> Reviewed-by: Jonathan Cameron <[email protected]> Signed-off-by: Wei Xu <[email protected]>
show more ...
|
| a90d34af | 12-Aug-2023 |
Arnd Bergmann <[email protected]> |
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 <[email protected]>
show more ...
|
| 47f7a255 | 08-Aug-2023 |
Huisong Li <[email protected]> |
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 <[email protected]> Signed-off-by: Wei Xu <[email protected]>
show more ...
|