Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/xe/vm : Remove duplicate assignment of XE_VM_FLAG_LR_MODE flag.
@ 2024-03-07  6:52 Himal Prasad Ghimiray
  2024-03-07  6:43 ` ✓ CI.Patch_applied: success for " Patchwork
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: Himal Prasad Ghimiray @ 2024-03-07  6:52 UTC (permalink / raw)
  To: intel-xe; +Cc: Himal Prasad Ghimiray, Matthew Brost

vm->flags are already assigned with passed flags. Remove the redundant
assignment.

Cc: Matthew Brost <matthew.brost@intel.com>
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) {
 		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


^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2024-03-13 15:26 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [PATCH] " Matthew Brost
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox