drm/xe: move the lmem verification code into a separate function
authorKoby Elbaz <kelbaz@habana.ai>
Sun, 29 Oct 2023 17:53:26 +0000 (19:53 +0200)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:43:34 +0000 (11:43 -0500)
commit37d1eaab34ab9cdd6022a188ce6b77a88f81c7e2
tree87f7000a1f42469490264c8f0be4df3e0940aedb
parent04dfef5b41afc85e8de7b0397050cdb51db35eda
drm/xe: move the lmem verification code into a separate function

If lmem (VRAM) is not fully initialized, the punit will power down
the GT, which will prevent register access from the driver side.
That code moved into a corresponding function (xe_verify_lmem_ready)
to make the code clearer.

Signed-off-by: Koby Elbaz <kelbaz@habana.ai>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://lore.kernel.org/r/20231029175326.626745-1-kelbaz@habana.ai
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_mmio.c