Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Brost <matthew.brost@intel.com>
To: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Cc: <intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH] drm/xe/vm : Remove duplicate assignment of XE_VM_FLAG_LR_MODE flag.
Date: Thu, 7 Mar 2024 17:47:01 +0000	[thread overview]
Message-ID: <Zen9lbZ/C5WXCY5d@DUT025-TGLU.fm.intel.com> (raw)
In-Reply-To: <20240307065213.1968688-1-himal.prasad.ghimiray@intel.com>

On Thu, Mar 07, 2024 at 12:22:13PM +0530, Himal Prasad Ghimiray wrote:
> vm->flags are already assigned with passed flags. Remove the redundant
> assignment.
> 
> Signed-off-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
> ---
>  drivers/gpu/drm/xe/xe_vm.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_vm.c b/drivers/gpu/drm/xe/xe_vm.c
> index 643b3701a738..b2d2852341c0 100644
> --- a/drivers/gpu/drm/xe/xe_vm.c
> +++ b/drivers/gpu/drm/xe/xe_vm.c
> @@ -1369,9 +1369,8 @@ struct xe_vm *xe_vm_create(struct xe_device *xe, u32 flags)
>  		vm->batch_invalidate_tlb = true;
>  	}
>  
> -	if (flags & XE_VM_FLAG_LR_MODE) {
> +	if (vm->flags & XE_VM_FLAG_LR_MODE) {

I'd probably drop this change but it doesn't really matter.

With that:
Reviewed: Matthew Brost <matthew.brost@intel.com>

>  		INIT_WORK(&vm->preempt.rebind_work, preempt_rebind_work_func);
> -		vm->flags |= XE_VM_FLAG_LR_MODE;
>  		vm->batch_invalidate_tlb = false;
>  	}
>  
> -- 
> 2.25.1
> 

  parent reply	other threads:[~2024-03-07 17:48 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-07  6:52 [PATCH] drm/xe/vm : Remove duplicate assignment of XE_VM_FLAG_LR_MODE flag Himal Prasad Ghimiray
2024-03-07  6:43 ` ✓ CI.Patch_applied: success for " Patchwork
2024-03-07  6:43 ` ✓ CI.checkpatch: " Patchwork
2024-03-07  6:44 ` ✓ CI.KUnit: " Patchwork
2024-03-07  6:55 ` ✓ CI.Build: " Patchwork
2024-03-07  6:55 ` ✗ CI.Hooks: failure " Patchwork
2024-03-07  6:57 ` ✓ CI.checksparse: success " Patchwork
2024-03-07  7:24 ` ✓ CI.BAT: " Patchwork
2024-03-07 17:47 ` Matthew Brost [this message]
2024-03-13 14:48 ` ✓ CI.Patch_applied: success for drm/xe/vm : Remove duplicate assignment of XE_VM_FLAG_LR_MODE flag. (rev2) Patchwork
2024-03-13 14:49 ` ✓ CI.checkpatch: " Patchwork
2024-03-13 14:50 ` ✓ CI.KUnit: " Patchwork
2024-03-13 15:00 ` ✓ CI.Build: " Patchwork
2024-03-13 15:03 ` ✓ CI.Hooks: " Patchwork
2024-03-13 15:04 ` ✓ CI.checksparse: " Patchwork
2024-03-13 15:26 ` ✓ CI.BAT: " 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=Zen9lbZ/C5WXCY5d@DUT025-TGLU.fm.intel.com \
    --to=matthew.brost@intel.com \
    --cc=himal.prasad.ghimiray@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox