]> 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)
commitdc21a522f4acf0dea10c85c69b190f06d7c9de5a
tree2e325b5d6c15be6a24331faa0d87e7a540c5e8f5
parent8cc816748c3a84e41c97c9fe88850ead2be74370
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: 5f164baaacb1 ("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