drm/i915/perf: Drop wakeref on GuC RC error
authorChris Wilson <chris.p.wilson@linux.intel.com>
Thu, 23 Mar 2023 22:58:51 +0000 (15:58 -0700)
committerJani Nikula <jani.nikula@intel.com>
Mon, 27 Mar 2023 10:22:24 +0000 (13:22 +0300)
commit5c95b2d5d44fa250ce8aeee27bdb39b381d03857
tree588b287bd8879bb2ea4e94dc76c913017c4e1d92
parent3413881e1ecc3cba722a2e87ec099692eed5be28
drm/i915/perf: Drop wakeref on GuC RC error

If we fail to adjust the GuC run-control on opening the perf stream,
make sure we unwind the wakeref just taken.

v2: Retain old goto label names (Ashutosh)
v3: Drop bitfield boolean

Fixes: 01e742746785 ("drm/i915/guc: Support OA when Wa_16011777198 is enabled")
Signed-off-by: Chris Wilson <chris.p.wilson@linux.intel.com>
Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230323225901.3743681-2-umesh.nerlige.ramappa@intel.com
(cherry picked from commit 2810ac6c753d17ee2572ffb57fe2382a786a080a)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_perf.c
drivers/gpu/drm/i915/i915_perf_types.h