]> www.infradead.org Git - users/hch/misc.git/commit
drm/xe: Release force wake first then runtime power
authorShuicheng Lin <shuicheng.lin@intel.com>
Wed, 7 May 2025 02:23:02 +0000 (02:23 +0000)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 8 May 2025 19:44:51 +0000 (12:44 -0700)
commit9d271a4f5ba52520e448ab223b1a91c6e35f17c7
treeab5e6da7545757534d0b95b1c04e718d0597f6b4
parent03552d8ac0afcc080c339faa0b726e2c0e9361cb
drm/xe: Release force wake first then runtime power

xe_force_wake_get() is dependent on xe_pm_runtime_get(), so for
the release path, xe_force_wake_put() should be called first then
xe_pm_runtime_put().
Combine the error path and normal path together with goto.

Fixes: 85d547608ef5 ("drm/xe/xe_gt_debugfs: Update handling of xe_force_wake_get return")
Cc: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Link: https://lore.kernel.org/r/20250507022302.2187527-1-shuicheng.lin@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
(cherry picked from commit 432cd94efdca06296cc5e76d673546f58aa90ee1)
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_gt_debugfs.c