]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6789e17e29b4bf277ca2af06bf465199f265b8f4
treec2860e27b11898e6b7d7f0ea8938a5f4acf10901
parent52d69008e2886867ebe94969d985b54437f87253
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