]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/: Re-work clflush_write32
authorMichael Cheng <michael.cheng@intel.com>
Mon, 21 Mar 2022 22:38:18 +0000 (15:38 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Tue, 22 Mar 2022 17:10:52 +0000 (10:10 -0700)
commitafccf924aa30100f092504dc17318faf958b4a3f
tree7809af657253810e5100d4420debe5d7cde24751
parent40f7bfc3a132ba4a5f48b35deedc8c3981240fe4
drm/i915/: Re-work clflush_write32

Use drm_clflush_virt_range instead of clflushopt and remove the memory
barrier, since drm_clflush_virt_range takes care of that.

v2(Michael Cheng): Use sizeof(*addr) instead of sizeof(addr) to get the
   actual size of the page. Thanks to Matt Roper for
   pointing this out.

Signed-off-by: Michael Cheng <michael.cheng@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220321223819.72833-5-michael.cheng@intel.com
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c