]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/i915: Perform GGTT restore much earlier during resume
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 9 Sep 2019 11:00:08 +0000 (12:00 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 10 Sep 2019 10:49:11 +0000 (11:49 +0100)
commitcec5ca08e36fd18d2939b98055346b3b06f56c6c
tree0431e6a15df49b3887e5750b24901c87a87e60a0
parent0efa99dd58754d23e884b9ba41cd601f01b58c3d
drm/i915: Perform GGTT restore much earlier during resume

As soon as we re-enable the various functions within the HW, they may go
off and read data via a GGTT offset. Hence, if we have not yet restored
the GGTT PTE before then, they may read and even *write* random locations
in memory.

Detected by DMAR faults during resume.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Martin Peres <martin.peres@linux.intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: stable@vger.kernel.org
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190909110011.8958-4-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_pm.c
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/selftests/i915_gem.c