drm/i915/selftests: Improve handling of iomem around stolen
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 6 Jan 2021 12:39:37 +0000 (12:39 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 6 Jan 2021 15:37:56 +0000 (15:37 +0000)
commit88b39600da3abcf5ef5a704fc028d52a2840011a
treea4114045dc36a065e4c65ce8ee02c4674d554f80
parent989536a4e6ef8bb230fdc83f3167849b909d7671
drm/i915/selftests: Improve handling of iomem around stolen

Use memset_io() on the iomem, and silence sparse as we copy from the
iomem to normal system pages.

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/20210106123939.18435-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/selftest_reset.c