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:
61a5a3f
)
drm/xe: Fix memset on iomem
author
Lucas De Marchi
<lucas.demarchi@intel.com>
Thu, 12 Jun 2025 22:14:12 +0000
(15:14 -0700)
committer
Lucas De Marchi
<lucas.demarchi@intel.com>
Tue, 17 Jun 2025 20:22:15 +0000
(13:22 -0700)
It should rather use xe_map_memset() as the BO is created with
XE_BO_FLAG_VRAM_IF_DGFX in xe_guc_pc_init().
Fixes:
dd08ebf6c352
("drm/xe: Introduce a new DRM driver for Intel GPUs")
Cc: stable@vger.kernel.org
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link:
https://lore.kernel.org/r/20250612-vmap-vaddr-v1-1-26238ed443eb@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_guc_pc.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/xe/xe_guc_pc.c
b/drivers/gpu/drm/xe/xe_guc_pc.c
index
39d2acb
..
9fab5f5
100644
(file)
--- a/
drivers/gpu/drm/xe/xe_guc_pc.c
+++ b/
drivers/gpu/drm/xe/xe_guc_pc.c
@@
-1073,7
+1073,7
@@
int xe_guc_pc_start(struct xe_guc_pc *pc)
goto out;
}
-
memset(pc->bo->vmap.vaddr
, 0, size);
+
xe_map_memset(xe, &pc->bo->vmap, 0
, 0, size);
slpc_shared_data_write(pc, header.size, size);
earlier = ktime_get();