drm/i915: Check for unreliable MMIO during forcewake
authorMatt Roper <matthew.d.roper@intel.com>
Mon, 27 Mar 2023 19:55:47 +0000 (21:55 +0200)
committerAndi Shyti <andi.shyti@linux.intel.com>
Tue, 28 Mar 2023 09:22:06 +0000 (11:22 +0200)
commitfdd9b7dcf1ad7115b2d997e047e8e978c474736b
treed61f88b4e16faae1a0a91483d6454b43b805ea46
parentde4149730d9d72f50d4e6dfedad0d11b1df05b7e
drm/i915: Check for unreliable MMIO during forcewake

Although we now sanitycheck MMIO access during driver load to make sure
the MMIO BAR isn't returning all 0xFFFFFFFF, there have been a few cases
where (temporarily?) unreliable MMIO access has happened after GPU
resets or power events.  We'll often notice this on our next GT register
access since forcewake handling will fail; let's change our handling
slightly so that when this happens we print a more meaningful message
clarifying that the problem is the MMIO access, not forcewake
specifically.

Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Reviewed-by: Andrzej Hajda <andrzej.hajda@intel.com>
Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230327195547.356584-3-andi.shyti@linux.intel.com
drivers/gpu/drm/i915/intel_uncore.c