* [PATCH v2] soc: mediatek: cmdq: Don't log an error when gce-client-reg is not found
@ 2024-02-29 19:51 Nícolas F. R. A. Prado
2024-03-01 8:51 ` AngeloGioacchino Del Regno
2024-04-03 10:31 ` AngeloGioacchino Del Regno
0 siblings, 2 replies; 3+ messages in thread
From: Nícolas F. R. A. Prado @ 2024-02-29 19:51 UTC (permalink / raw)
To: Matthias Brugger, AngeloGioacchino Del Regno
Cc: kernel, linux-kernel, linux-arm-kernel, linux-mediatek,
Nícolas F. R. A. Prado
Most of the callers to this function do not require CMDQ support, it is
optional, so the missing property shouldn't cause an error message.
However, it could result on degraded performance, so the fact that it's
missing should still be alerted. Furthermore, the callers that do
require CMDQ support already log at the error level when an error is
returned.
Change the log message in this helper to be printed at the warning level
instead.
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
---
Changes in v2:
- Changed from debug to warning level
- Tweaked commit message to mention performance penalty of not having
GCE
- Link to v1: https://lore.kernel.org/r/20240226-gce-client-reg-log-dbg-v1-1-f0fff97c30c7@collabora.com
---
drivers/soc/mediatek/mtk-cmdq-helper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/soc/mediatek/mtk-cmdq-helper.c b/drivers/soc/mediatek/mtk-cmdq-helper.c
index b0cd071c4719..943e9055dd1f 100644
--- a/drivers/soc/mediatek/mtk-cmdq-helper.c
+++ b/drivers/soc/mediatek/mtk-cmdq-helper.c
@@ -55,7 +55,7 @@ int cmdq_dev_get_client_reg(struct device *dev,
"mediatek,gce-client-reg",
3, idx, &spec);
if (err < 0) {
- dev_err(dev,
+ dev_warn(dev,
"error %d can't parse gce-client-reg property (%d)",
err, idx);
---
base-commit: 41913bcddc83b131649ee8ff0d9ff29e01731398
change-id: 20240226-gce-client-reg-log-dbg-5ae9637a08ed
Best regards,
--
Nícolas F. R. A. Prado <nfraprado@collabora.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] soc: mediatek: cmdq: Don't log an error when gce-client-reg is not found
2024-02-29 19:51 [PATCH v2] soc: mediatek: cmdq: Don't log an error when gce-client-reg is not found Nícolas F. R. A. Prado
@ 2024-03-01 8:51 ` AngeloGioacchino Del Regno
2024-04-03 10:31 ` AngeloGioacchino Del Regno
1 sibling, 0 replies; 3+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-03-01 8:51 UTC (permalink / raw)
To: Nícolas F. R. A. Prado, Matthias Brugger
Cc: kernel, linux-kernel, linux-arm-kernel, linux-mediatek
Il 29/02/24 20:51, Nícolas F. R. A. Prado ha scritto:
> Most of the callers to this function do not require CMDQ support, it is
> optional, so the missing property shouldn't cause an error message.
> However, it could result on degraded performance, so the fact that it's
> missing should still be alerted. Furthermore, the callers that do
> require CMDQ support already log at the error level when an error is
> returned.
>
> Change the log message in this helper to be printed at the warning level
> instead.
>
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Ok, this is good now.
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
> ---
> Changes in v2:
> - Changed from debug to warning level
> - Tweaked commit message to mention performance penalty of not having
> GCE
> - Link to v1: https://lore.kernel.org/r/20240226-gce-client-reg-log-dbg-v1-1-f0fff97c30c7@collabora.com
> ---
> drivers/soc/mediatek/mtk-cmdq-helper.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/soc/mediatek/mtk-cmdq-helper.c b/drivers/soc/mediatek/mtk-cmdq-helper.c
> index b0cd071c4719..943e9055dd1f 100644
> --- a/drivers/soc/mediatek/mtk-cmdq-helper.c
> +++ b/drivers/soc/mediatek/mtk-cmdq-helper.c
> @@ -55,7 +55,7 @@ int cmdq_dev_get_client_reg(struct device *dev,
> "mediatek,gce-client-reg",
> 3, idx, &spec);
> if (err < 0) {
> - dev_err(dev,
> + dev_warn(dev,
> "error %d can't parse gce-client-reg property (%d)",
> err, idx);
>
>
> ---
> base-commit: 41913bcddc83b131649ee8ff0d9ff29e01731398
> change-id: 20240226-gce-client-reg-log-dbg-5ae9637a08ed
>
> Best regards,
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] soc: mediatek: cmdq: Don't log an error when gce-client-reg is not found
2024-02-29 19:51 [PATCH v2] soc: mediatek: cmdq: Don't log an error when gce-client-reg is not found Nícolas F. R. A. Prado
2024-03-01 8:51 ` AngeloGioacchino Del Regno
@ 2024-04-03 10:31 ` AngeloGioacchino Del Regno
1 sibling, 0 replies; 3+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-04-03 10:31 UTC (permalink / raw)
To: Matthias Brugger, Mauro Carvalho Chehab, Moudy Ho,
Jason-JH . Lin, linux-arm-kernel, linux-mediatek, dri-devel,
linux-kernel, linux-media, Chun-Kuang Hu,
Nícolas F. R. A. Prado
Cc: AngeloGioacchino Del Regno, kernel
On Thu, 29 Feb 2024 14:51:08 -0500, Nícolas F. R. A. Prado wrote:
> Most of the callers to this function do not require CMDQ support, it is
> optional, so the missing property shouldn't cause an error message.
> However, it could result on degraded performance, so the fact that it's
> missing should still be alerted. Furthermore, the callers that do
> require CMDQ support already log at the error level when an error is
> returned.
>
> [...]
Applied to v6.9-next/soc, thanks!
[1/1] soc: mediatek: cmdq: Don't log an error when gce-client-reg is not found
commit: ef964918d42b9d9cf534754f82ccdaa402783ecd
Cheers,
Angelo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-04-03 10:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-29 19:51 [PATCH v2] soc: mediatek: cmdq: Don't log an error when gce-client-reg is not found Nícolas F. R. A. Prado
2024-03-01 8:51 ` AngeloGioacchino Del Regno
2024-04-03 10:31 ` AngeloGioacchino Del Regno
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®