]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit76d27df7bceab662a6f74aa4538e07bfabe297c0
tree2e325b5d6c15be6a24331faa0d87e7a540c5e8f5
parent5bdc437e23d648d0d52078d0e3b6e91420dfd6c5
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: 8661bcde4312 ("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