]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/tc: Catch TC users accessing FIA registers without enable aux
authorJosé Roberto de Souza <jose.souza@intel.com>
Tue, 14 Apr 2020 19:49:55 +0000 (12:49 -0700)
committerJosé Roberto de Souza <jose.souza@intel.com>
Fri, 17 Apr 2020 22:01:34 +0000 (15:01 -0700)
commite6f9bc4aaba2f35d333ad9a44be2635c785531fa
treeafc4e840984bac8812860d543e06e38826c2e13f
parentf36c83ee15971ccc01548a265d4387238146d312
drm/i915/tc: Catch TC users accessing FIA registers without enable aux

As described in "drm/i915/tc/icl: Implement TC cold sequences" users
of TC functions should held aux power well during access to avoid
read garbage due HW in TC cold state.

v3:
- renamed is_tc_cold_blocked() to assert_tc_cold_blocked()
- restored the removed 0xffffffff checks

Reviewed-by: Imre Deak <imre.deak@intel.com>
Tested-by: You-Sheng Yang <vicamo.yang@canonical.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200414194956.164323-7-jose.souza@intel.com
drivers/gpu/drm/i915/display/intel_tc.c