* [PATCH] soc: hisilicon: kunpeng_hccs: Fix incorrect log information
@ 2025-07-11 6:37 Huisong Li
2025-07-11 10:38 ` Jonathan Cameron
2025-07-18 8:05 ` Wei Xu
0 siblings, 2 replies; 4+ messages in thread
From: Huisong Li @ 2025-07-11 6:37 UTC (permalink / raw)
To: xuwei5, linux-kernel, linux-arm-kernel
Cc: linuxarm, jonathan.cameron, zhanjie9, lihuisong
The hccs_get_all_spec_port_idle_sta() will tell user which port
is busy when firmware doesn't allow to decrease HCCS lane number.
However, the current log prints the index of die and port instead
of the hardware ID user perceived.
Signed-off-by: Huisong Li <lihuisong@huawei.com>
---
drivers/soc/hisilicon/kunpeng_hccs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/soc/hisilicon/kunpeng_hccs.c b/drivers/soc/hisilicon/kunpeng_hccs.c
index 7fc353732d55..65ff45fdcac7 100644
--- a/drivers/soc/hisilicon/kunpeng_hccs.c
+++ b/drivers/soc/hisilicon/kunpeng_hccs.c
@@ -1295,11 +1295,11 @@ static int hccs_get_all_spec_port_idle_sta(struct hccs_dev *hdev, u8 port_type,
if (ret) {
dev_err(hdev->dev,
"hccs%u on chip%u/die%u get idle status failed, ret = %d.\n",
- k, i, j, ret);
+ port->port_id, chip->chip_id, die->die_id, ret);
return ret;
} else if (idle == 0) {
dev_info(hdev->dev, "hccs%u on chip%u/die%u is busy.\n",
- k, i, j);
+ port->port_id, chip->chip_id, die->die_id);
return 0;
}
}
--
2.33.0
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] soc: hisilicon: kunpeng_hccs: Fix incorrect log information
2025-07-11 6:37 [PATCH] soc: hisilicon: kunpeng_hccs: Fix incorrect log information Huisong Li
@ 2025-07-11 10:38 ` Jonathan Cameron
2025-07-12 1:22 ` lihuisong (C)
2025-07-18 8:05 ` Wei Xu
1 sibling, 1 reply; 4+ messages in thread
From: Jonathan Cameron @ 2025-07-11 10:38 UTC (permalink / raw)
To: Huisong Li, linuxarm
Cc: xuwei5, linux-kernel, linux-arm-kernel, jonathan.cameron,
zhanjie9
On Fri, 11 Jul 2025 14:37:06 +0800
Huisong Li <lihuisong@huawei.com> wrote:
> The hccs_get_all_spec_port_idle_sta() will tell user which port
> is busy when firmware doesn't allow to decrease HCCS lane number.
> However, the current log prints the index of die and port instead
> of the hardware ID user perceived.
>
> Signed-off-by: Huisong Li <lihuisong@huawei.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Maybe adding an example of a wrong print and how it is fixed to this
patch description would make the problem even more obvious?
Not worth respin for that though!
> ---
> drivers/soc/hisilicon/kunpeng_hccs.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/soc/hisilicon/kunpeng_hccs.c b/drivers/soc/hisilicon/kunpeng_hccs.c
> index 7fc353732d55..65ff45fdcac7 100644
> --- a/drivers/soc/hisilicon/kunpeng_hccs.c
> +++ b/drivers/soc/hisilicon/kunpeng_hccs.c
> @@ -1295,11 +1295,11 @@ static int hccs_get_all_spec_port_idle_sta(struct hccs_dev *hdev, u8 port_type,
> if (ret) {
> dev_err(hdev->dev,
> "hccs%u on chip%u/die%u get idle status failed, ret = %d.\n",
> - k, i, j, ret);
> + port->port_id, chip->chip_id, die->die_id, ret);
> return ret;
> } else if (idle == 0) {
> dev_info(hdev->dev, "hccs%u on chip%u/die%u is busy.\n",
> - k, i, j);
> + port->port_id, chip->chip_id, die->die_id);
> return 0;
> }
> }
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] soc: hisilicon: kunpeng_hccs: Fix incorrect log information
2025-07-11 10:38 ` Jonathan Cameron
@ 2025-07-12 1:22 ` lihuisong (C)
0 siblings, 0 replies; 4+ messages in thread
From: lihuisong (C) @ 2025-07-12 1:22 UTC (permalink / raw)
To: Jonathan Cameron, linuxarm
Cc: xuwei5, linux-kernel, linux-arm-kernel, zhanjie9
在 2025/7/11 18:38, Jonathan Cameron 写道:
> On Fri, 11 Jul 2025 14:37:06 +0800
> Huisong Li <lihuisong@huawei.com> wrote:
>
>> The hccs_get_all_spec_port_idle_sta() will tell user which port
>> is busy when firmware doesn't allow to decrease HCCS lane number.
>> However, the current log prints the index of die and port instead
>> of the hardware ID user perceived.
>>
>> Signed-off-by: Huisong Li <lihuisong@huawei.com>
> Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
>
> Maybe adding an example of a wrong print and how it is fixed to this
> patch description would make the problem even more obvious?
Yes.
The problem and modification are very simple, and this description is
also enough.
> Not worth respin for that though!
ok, thanks for your review.
>
>> ---
>> drivers/soc/hisilicon/kunpeng_hccs.c | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/soc/hisilicon/kunpeng_hccs.c b/drivers/soc/hisilicon/kunpeng_hccs.c
>> index 7fc353732d55..65ff45fdcac7 100644
>> --- a/drivers/soc/hisilicon/kunpeng_hccs.c
>> +++ b/drivers/soc/hisilicon/kunpeng_hccs.c
>> @@ -1295,11 +1295,11 @@ static int hccs_get_all_spec_port_idle_sta(struct hccs_dev *hdev, u8 port_type,
>> if (ret) {
>> dev_err(hdev->dev,
>> "hccs%u on chip%u/die%u get idle status failed, ret = %d.\n",
>> - k, i, j, ret);
>> + port->port_id, chip->chip_id, die->die_id, ret);
>> return ret;
>> } else if (idle == 0) {
>> dev_info(hdev->dev, "hccs%u on chip%u/die%u is busy.\n",
>> - k, i, j);
>> + port->port_id, chip->chip_id, die->die_id);
>> return 0;
>> }
>> }
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] soc: hisilicon: kunpeng_hccs: Fix incorrect log information
2025-07-11 6:37 [PATCH] soc: hisilicon: kunpeng_hccs: Fix incorrect log information Huisong Li
2025-07-11 10:38 ` Jonathan Cameron
@ 2025-07-18 8:05 ` Wei Xu
1 sibling, 0 replies; 4+ messages in thread
From: Wei Xu @ 2025-07-18 8:05 UTC (permalink / raw)
To: Huisong Li, xuwei5, linux-kernel, linux-arm-kernel
Cc: linuxarm, jonathan.cameron, zhanjie9
Hi Huisong,
On 2025/7/11 14:37, Huisong Li wrote:
> The hccs_get_all_spec_port_idle_sta() will tell user which port
> is busy when firmware doesn't allow to decrease HCCS lane number.
> However, the current log prints the index of die and port instead
> of the hardware ID user perceived.
>
> Signed-off-by: Huisong Li <lihuisong@huawei.com>
> ---
> drivers/soc/hisilicon/kunpeng_hccs.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/soc/hisilicon/kunpeng_hccs.c b/drivers/soc/hisilicon/kunpeng_hccs.c
> index 7fc353732d55..65ff45fdcac7 100644
> --- a/drivers/soc/hisilicon/kunpeng_hccs.c
> +++ b/drivers/soc/hisilicon/kunpeng_hccs.c
> @@ -1295,11 +1295,11 @@ static int hccs_get_all_spec_port_idle_sta(struct hccs_dev *hdev, u8 port_type,
> if (ret) {
> dev_err(hdev->dev,
> "hccs%u on chip%u/die%u get idle status failed, ret = %d.\n",
> - k, i, j, ret);
> + port->port_id, chip->chip_id, die->die_id, ret);
> return ret;
> } else if (idle == 0) {
> dev_info(hdev->dev, "hccs%u on chip%u/die%u is busy.\n",
> - k, i, j);
> + port->port_id, chip->chip_id, die->die_id);
> return 0;
> }
> }
>
Applied to the Hisilicon driver tree.
Thanks!
Best Regards,
Wei
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-07-18 8:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-11 6:37 [PATCH] soc: hisilicon: kunpeng_hccs: Fix incorrect log information Huisong Li
2025-07-11 10:38 ` Jonathan Cameron
2025-07-12 1:22 ` lihuisong (C)
2025-07-18 8:05 ` Wei Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox