[PATCH] drm/xe: Restore EIO errno return when GuC PC start fails
Lucas De Marchi
lucas.demarchi at intel.com
Mon Mar 31 14:59:47 UTC 2025
On Fri, Mar 28, 2025 at 02:17:52PM -0400, Rodrigo Vivi wrote:
>Commit b4b05e53b550 ("drm/xe/guc_pc: Retry and wait longer for GuC PC
>start") from Mar 7, 2025 (linux-next), leads to the following Smatch
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
these are not needed as the commit referenced is simply in our
drm-xe-next branch (and if it wasn't, then this fix would probably not
go through drm-xe).
>static checker warning:
>
> drivers/gpu/drm/xe/xe_guc_pc.c:1073 xe_guc_pc_start()
> warn: missing error code here? '_dev_err()' failed. 'ret' = '0'
>
>Fixes: b4b05e53b550 ("drm/xe/guc_pc: Retry and wait longer for GuC PC start")
>Reported-by: Dan Carpenter <dan.carpenter at linaro.org>
>Closes: https://lore.kernel.org/intel-xe/1454a5f1-ee18-4df1-a6b2-a4a3dddcd1cb@stanley.mountain/
>Signed-off-by: Rodrigo Vivi <rodrigo.vivi at intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi at intel.com>
Lucas De Marchi
>---
> drivers/gpu/drm/xe/xe_guc_pc.c | 1 +
> 1 file changed, 1 insertion(+)
>
>diff --git a/drivers/gpu/drm/xe/xe_guc_pc.c b/drivers/gpu/drm/xe/xe_guc_pc.c
>index 85215313976c..43b1192ba61c 100644
>--- a/drivers/gpu/drm/xe/xe_guc_pc.c
>+++ b/drivers/gpu/drm/xe/xe_guc_pc.c
>@@ -1070,6 +1070,7 @@ int xe_guc_pc_start(struct xe_guc_pc *pc)
> if (wait_for_pc_state(pc, SLPC_GLOBAL_STATE_RUNNING,
> SLPC_RESET_EXTENDED_TIMEOUT_MS)) {
> xe_gt_err(gt, "GuC PC Start failed: Dynamic GT frequency control and GT sleep states are now disabled.\n");
>+ ret = -EIO;
> goto out;
> }
>
>--
>2.49.0
>
More information about the Intel-xe
mailing list