All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Matthew Brost <matthew.brost@intel.com>
Cc: intel-xe@lists.freedesktop.org
Subject: Re: [Intel-xe] [PATCH 1/4] drm/xe: Covert xe_vma_op_flags to BIT macros
Date: Thu, 31 Aug 2023 14:26:23 -0400	[thread overview]
Message-ID: <ZPDbTz5JXEX7+yix@intel.com> (raw)
In-Reply-To: <20230831150048.1760018-2-matthew.brost@intel.com>

On Thu, Aug 31, 2023 at 08:00:45AM -0700, Matthew Brost wrote:
> Rather than open code the shift for values, use BIT macros.
> 
> Signed-of-by: Matthew Brost <matthew.brost@intel.com>

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>

> ---
>  drivers/gpu/drm/xe/xe_vm_types.h | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_vm_types.h b/drivers/gpu/drm/xe/xe_vm_types.h
> index 3681a5ff588b..4bcb54ccd93a 100644
> --- a/drivers/gpu/drm/xe/xe_vm_types.h
> +++ b/drivers/gpu/drm/xe/xe_vm_types.h
> @@ -377,11 +377,11 @@ struct xe_vma_op_prefetch {
>  /** enum xe_vma_op_flags - flags for VMA operation */
>  enum xe_vma_op_flags {
>  	/** @XE_VMA_OP_FIRST: first VMA operation for a set of syncs */
> -	XE_VMA_OP_FIRST		= (0x1 << 0),
> +	XE_VMA_OP_FIRST		= BIT(0),
>  	/** @XE_VMA_OP_LAST: last VMA operation for a set of syncs */
> -	XE_VMA_OP_LAST		= (0x1 << 1),
> +	XE_VMA_OP_LAST		= BIT(1),
>  	/** @XE_VMA_OP_COMMITTED: VMA operation committed */
> -	XE_VMA_OP_COMMITTED	= (0x1 << 2),
> +	XE_VMA_OP_COMMITTED	= BIT(2),
>  };
>  
>  /** struct xe_vma_op - VMA operation */
> -- 
> 2.34.1
> 

  reply	other threads:[~2023-08-31 18:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-31 15:00 [Intel-xe] [PATCH 0/4] Fix array of binds Matthew Brost
2023-08-31 15:00 ` [Intel-xe] [PATCH 1/4] drm/xe: Covert xe_vma_op_flags to BIT macros Matthew Brost
2023-08-31 18:26   ` Rodrigo Vivi [this message]
2023-08-31 15:00 ` [Intel-xe] [PATCH 2/4] drm/xe: Fixup unwind on VM ops errors Matthew Brost
2023-08-31 15:00 ` [Intel-xe] [PATCH 3/4] drm/gpuva: Add drm_gpuva_for_each_op_reverse Matthew Brost
2023-08-31 18:33   ` Rodrigo Vivi
2023-08-31 15:00 ` [Intel-xe] [PATCH 4/4] drm/xe: Fix array of binds Matthew Brost
2023-08-31 18:29   ` Rodrigo Vivi
2023-08-31 15:14 ` [Intel-xe] ✗ CI.Patch_applied: failure for Fix array of binds (rev2) Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZPDbTz5JXEX7+yix@intel.com \
    --to=rodrigo.vivi@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=matthew.brost@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.