drm/i915: Sanitycheck device iomem on probe
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 9 Dec 2021 16:26:20 +0000 (21:56 +0530)
committerRamalingam C <ramalingam.c@intel.com>
Tue, 14 Dec 2021 09:38:20 +0000 (15:08 +0530)
commit2e21de9028270a72d2b7dfbd0fe46a6beace1f01
treec2860e27b11898e6b7d7f0ea8938a5f4acf10901
parent0ef42fb749b17f7e49adef047ece5bebac5d6795
drm/i915: Sanitycheck device iomem on probe

As we setup the memory regions for the device, give each a quick test to
verify that we can read and write to the full iomem range. This ensures
that our physical addressing for the device's memory is correct, and
some reassurance that the memory is functional.

v2: wrapper for memtest [Chris]

v3: Removed the unused ptr i915 [Chris]

v4: used the %pa for the resource_size_t.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211209162620.5218-1-ramalingam.c@intel.com
drivers/gpu/drm/i915/intel_memory_region.c