drm/i915: Show stack (by WARN) for hitting forcewake errors
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 20 Jul 2018 11:11:02 +0000 (12:11 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 24 Jul 2018 10:55:20 +0000 (11:55 +0100)
commita5b22b5ed88bfb848d40d3c593f5506bdb75c882
treeff6d9f41ab60d97879d03d0b99450a2f398cdf0d
parent6a2f59e45afc6277cb3e9c9dec466935bb8a8295
drm/i915: Show stack (by WARN) for hitting forcewake errors

On Sandybridge, we need a workaround to wait for the CPU thread to wake
up before we are sure that we have enabled the GT power well. However,
we do see the errors being reported and failed reads returning spurious
results. To try and capture more details as it fails, promote the error
into a WARN so we grab the stacktrace, and to try and reduce the
frequency of error increase the timeout from 500us to 5ms.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180720111102.11549-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_uncore.c