]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Get PM ref before accessing HW register
authorVinay Belgaumkar <vinay.belgaumkar@intel.com>
Tue, 7 Sep 2021 23:27:04 +0000 (16:27 -0700)
committerJohn Harrison <John.C.Harrison@Intel.com>
Fri, 10 Sep 2021 20:35:19 +0000 (13:35 -0700)
commitf25e3908b9cd4a3fe819e9bdcdde58f20bacb34c
tree568ebab621ab1031b717a04aca1440810ee9fedd
parent74388ca483a416a92cee69dcbeeb793d39199371
drm/i915: Get PM ref before accessing HW register

Seeing these errors when GT is likely in suspend state-
"RPM wakelock ref not held during HW access"

Ensure GT is awake before trying to access HW registers. Avoid
reading the register if that is not the case.

Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
Fixes: 41e5c17ebfc2 ("drm/i915/guc/slpc: Sysfs hooks for SLPC")
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210907232704.12982-1-vinay.belgaumkar@intel.com
drivers/gpu/drm/i915/gt/intel_rps.c