]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/i915: Exclude low pages (128KiB) of stolen from use
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 19 Oct 2020 16:50:05 +0000 (17:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Nov 2020 11:38:55 +0000 (12:38 +0100)
commitcdd9f067ddf89e1d9f68ce06b4814f9563d472e6
treeb38589a183d25a72628926d8fca147e598a03614
parent49dbd8b0c669886a00c085e1e7c8f5aa61641a05
drm/i915: Exclude low pages (128KiB) of stolen from use

commit 3da3c5c1c9825c24168f27b021339e90af37e969 upstream.

The GPU is trashing the low pages of its reserved memory upon reset. If
we are using this memory for ringbuffers, then we will dutiful resubmit
the trashed rings after the reset causing further resets, and worse. We
must exclude this range from our own use. The value of 128KiB was found
by empirical measurement (and verified now with a selftest) on gen9.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: stable@vger.kernel.org
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201019165005.18128-2-chris@chris-wilson.co.uk
(cherry picked from commit d3606757e611fbd48bb239e8c2fe9779b3f50035)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i915/Kconfig.debug
drivers/gpu/drm/i915/gem/i915_gem_stolen.c
drivers/gpu/drm/i915/gem/i915_gem_stolen.h
drivers/gpu/drm/i915/gt/selftest_reset.c