projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a96cd71
)
drm/xe: Drop bogus vma NULL check
author
Nirmoy Das
<nirmoy.das@intel.com>
Mon, 18 Mar 2024 09:35:47 +0000
(10:35 +0100)
committer
Matthew Auld
<matthew.auld@intel.com>
Tue, 19 Mar 2024 08:58:42 +0000
(08:58 +0000)
The vma pointer can't be NULL here.
Cc: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20240318093547.16326-1-nirmoy.das@intel.com
drivers/gpu/drm/xe/xe_pt.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/xe/xe_pt.c
b/drivers/gpu/drm/xe/xe_pt.c
index
7f54bc3
..
8d3922d
100644
(file)
--- a/
drivers/gpu/drm/xe/xe_pt.c
+++ b/
drivers/gpu/drm/xe/xe_pt.c
@@
-618,7
+618,7
@@
xe_pt_stage_bind(struct xe_tile *tile, struct xe_vma *vma,
struct xe_pt *pt = xe_vma_vm(vma)->pt_root[tile->id];
int ret;
- if (
vma &&
(vma->gpuva.flags & XE_VMA_ATOMIC_PTE_BIT) &&
+ if ((vma->gpuva.flags & XE_VMA_ATOMIC_PTE_BIT) &&
(is_devmem || !IS_DGFX(xe)))
xe_walk.default_pte |= XE_USM_PPGTT_PTE_AE;