drm/xe: do not register to PM if GuC is disabled
authorOhad Sharabi <osharabi@habana.ai>
Thu, 28 Sep 2023 13:56:21 +0000 (16:56 +0300)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:41:21 +0000 (11:41 -0500)
commit5349bb76d62048e73f6e4a863b40a309c62dc47f
treee6454c5c7a7cca942e14269b1cedd54dcf73a8d1
parent1464f56b47d8db63ad95dad3fd8845ec412dc8d5
drm/xe: do not register to PM if GuC is disabled

When working without GuC (i.e. working with execlists), the flow
attempts to perform suspend operation which is failing due to a
lack of support without GuC.

If PM ops are not supported without GuC we may as well avoid PM
registration rather than returning errors from various PM flows.

Signed-off-by: Ohad Sharabi <osharabi@habana.ai>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_gt.c
drivers/gpu/drm/xe/xe_pm.c