[Intel-gfx] [PATCH v2 2/4] drm/i915/gt: Re-work invalidate_csb_entries
Bowman, Casey G
casey.g.bowman at intel.com
Sat Jan 29 07:21:40 UTC 2022
> -----Original Message-----
> From: Cheng, Michael <michael.cheng at intel.com>
> Sent: Friday, January 28, 2022 2:10 PM
> To: intel-gfx at lists.freedesktop.org
> Cc: Cheng, Michael <michael.cheng at intel.com>; Bowman, Casey G
> <casey.g.bowman at intel.com>; De Marchi, Lucas
> <lucas.demarchi at intel.com>; Boyer, Wayne <wayne.boyer at intel.com>;
> ville.syrjala at linux.intel.com; Kuoppala, Mika <mika.kuoppala at intel.com>;
> Auld, Matthew <matthew.auld at intel.com>
> Subject: [PATCH v2 2/4] drm/i915/gt: Re-work invalidate_csb_entries
>
> Re-work invalidate_csb_entries to use drm_clflush_virt_range. This will
> prevent compiler errors when building for non-x86 architectures.
>
> Signed-off-by: Michael Cheng <michael.cheng at intel.com>
Reviewed-by: Casey Bowman <casey.g.bowman at intel.com>
> ---
> drivers/gpu/drm/i915/gt/intel_execlists_submission.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/gt/intel_execlists_submission.c
> b/drivers/gpu/drm/i915/gt/intel_execlists_submission.c
> index 960a9aaf4f3a..90b5daf9433d 100644
> --- a/drivers/gpu/drm/i915/gt/intel_execlists_submission.c
> +++ b/drivers/gpu/drm/i915/gt/intel_execlists_submission.c
> @@ -1647,8 +1647,8 @@ cancel_port_requests(struct intel_engine_execlists
> * const execlists,
>
> static void invalidate_csb_entries(const u64 *first, const u64 *last) {
> - clflush((void *)first);
> - clflush((void *)last);
> + drm_clflush_virt_range((void *)first, sizeof(*first));
> + drm_clflush_virt_range((void *)last, sizeof(*last));
> }
>
> /*
> --
> 2.25.1
More information about the Intel-gfx
mailing list