]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Wait for gen3 reset status to be asserted
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 7 Feb 2018 22:28:24 +0000 (22:28 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 8 Feb 2018 13:43:17 +0000 (13:43 +0000)
commit8dbb91454882a4b30f8ef426bca280d4bf19866d
tree6bddec3d1a032dd14d6a3597d8b44713b44a62e6
parent27030bb114e92fcc22cc3bc6e1ce5d914d73afa1
drm/i915: Wait for gen3 reset status to be asserted

After we assert the reset request (and wait for 20us), when the device
has been fully reset it asserts the reset-status bit. Before we stop
requesting the reset and allow the device to return to normal, we should
wait for the reset to be completed. (Similar to how we wait for the
device to return to normal after deasserting the reset request.)

v2: Rename i915_reset_completed() probe to not cause as much confusion.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180207222824.29864-1-chris@chris-wilson.co.uk
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
drivers/gpu/drm/i915/intel_uncore.c