]> Gentwo Git Trees - linux/.git/commit
drm/xe/guc: Extract function to print load error
authorLucas De Marchi <lucas.demarchi@intel.com>
Mon, 22 Sep 2025 19:58:32 +0000 (12:58 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 25 Sep 2025 04:23:19 +0000 (21:23 -0700)
commitabde96d8442de131fc3af647fdc63a0877dc99b6
treef740e9349a49df9d3d194cadce5fdddec1c7935c
parent2a16f47dcc75e7bfd98291f0951c5e864294341e
drm/xe/guc: Extract function to print load error

Move the error parsing and print out of guc_wait_ucode() into a helper
to clean up the wait function. Since now the `load_done != 1` condition
has a return statement, also simplify the if/else chain.

Reviewed-by: John Harrison <John.C.Harrison@Intel.com> # v2
Link: https://lore.kernel.org/r/20250922-xe-iopoll-v4-4-06438311a63f@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_guc.c