]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Drop invalidate_csb_entries
authorMichael Cheng <michael.cheng@intel.com>
Mon, 21 Mar 2022 22:38:16 +0000 (15:38 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Tue, 22 Mar 2022 17:10:51 +0000 (10:10 -0700)
commit119410d6ce823ed47fa920b343fa080e2ad59ad9
treeb91bd86e09d4f25855d93d6c24cd832e4e6ad759
parenta8d3580f967aab67b71dd133774cd32098d93726
drm/i915/gt: Drop invalidate_csb_entries

Drop invalidate_csb_entries and directly call drm_clflush_virt_range.
This allows for one less function call, and prevent complier errors when
building for non-x86 architectures.

v2(Michael Cheng): Drop invalidate_csb_entries function and directly
   invoke drm_clflush_virt_range. Thanks to Tvrtko for the
   sugguestion.

v3(Michael Cheng): Use correct parameters for drm_clflush_virt_range.
   Thanks to Tvrtko for pointing this out.

v4(Michael Cheng): Simplify &execlists->csb_status[0] to
   execlists->csb_status. Thanks to Matt Roper for the
   suggestion.

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-3-michael.cheng@intel.com
drivers/gpu/drm/i915/gt/intel_execlists_submission.c