]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/pmu: Fix wakeref leak in PMU busyness during reset
authorUmesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Tue, 7 Dec 2021 02:02:39 +0000 (18:02 -0800)
committerJohn Harrison <John.C.Harrison@Intel.com>
Thu, 9 Dec 2021 19:51:20 +0000 (11:51 -0800)
commitbcd55526222132f8daef25c30131411ceff18549
tree2f90ab45d6ef691ee9cdbad7e7a8c07272732d45
parent9480b5bf4c7a4490257c240e84e0319fa58f2438
drm/i915/pmu: Fix wakeref leak in PMU busyness during reset

GuC PMU busyness gets gt wakeref if awake, but fails to release the
wakeref if a reset is in progress. Release the wakeref if it was
acquried successfully.

v2: Simplify the fix (Ashutosh)

Fixes: e3ebd2a380b1 ("drm/i915/pmu: Fix synchronization of PMU callback with reset")
Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211207020239.43402-1-umesh.nerlige.ramappa@intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c