drm/xe/guc_pc: Reorder forcewake and xe_pm_runtime calls
authorRiana Tauro <riana.tauro@intel.com>
Thu, 20 Apr 2023 05:56:48 +0000 (11:26 +0530)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 19 Dec 2023 23:31:42 +0000 (18:31 -0500)
commita180f4e13c4473f4e66e5666dbb6157d56d83dcf
treead0ca4cce47728b7ae0708096c7db893d8d7e821
parent96cb46df567e04bcc569ffde9c426b078c5601b1
drm/xe/guc_pc: Reorder forcewake and xe_pm_runtime calls

When the device is runtime suspended, reading some of the sysfs
entries under device/gt#/ causes a resume error
This is due to the ordering of pm_runtime and forcewake calls.
Reorder to wake up using xe_pm_runtime_get and then forcewake

v2: add goto statements (Rodrigo)

Signed-off-by: Riana Tauro <riana.tauro@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_guc_pc.c