drm/i915: Replace open-coded memset_p()
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 12 Feb 2018 13:31:18 +0000 (13:31 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 12 Feb 2018 17:30:52 +0000 (17:30 +0000)
commite53792f44d8bde64022093cfc3f39db0e7d39212
tree2e325b5d6c15be6a24331faa0d87e7a540c5e8f5
parent51cc9adef064c8cf3df6d24e8662e9151529decf
drm/i915: Replace open-coded memset_p()

When initialising the page directories, we set the GTT entries and the
tree to the scratch page. We have already replaced the DMA fill with
memset64(), but we can similarly use memset_p() to set the pointer array.

References: 4dd504f7d98a ("drm/i915: Use memset64() to prefill the GTT page")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180212133118.16443-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c