drm/i915/gt: Pull ring submission resume under its caller forcewake
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 19 Jan 2021 11:08:01 +0000 (11:08 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 19 Jan 2021 11:55:14 +0000 (11:55 +0000)
commit8fd7b58a21a32a25a42ba612d7be7ef2c4dc568d
tree6fb806b54c187422a4ecb4097082e687332d4196
parent77e2faeb0744515939c4f5651e0d39ead96b39f1
drm/i915/gt: Pull ring submission resume under its caller forcewake

Take advantage of calling xcs_resume under a forcewake by using direct
mmio access. In particular, we can avoid the sleeping variants to allow
resume to be called from softirq context, required for engine resets.

v2: Keep the posting read at the start of resume as a guardian memory
barrier.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210119110802.22228-5-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_ring_submission.c