Skip to content

Commit 87a15c8

Browse files
Lucas De MarchiThomas Hellström
authored andcommitted
drm/xe: Fix memset on iomem
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: dd08ebf ("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> (cherry picked from commit 21cf47d) Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
1 parent 16c1241 commit 87a15c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/xe/xe_guc_pc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,7 @@ int xe_guc_pc_start(struct xe_guc_pc *pc)
10681068
goto out;
10691069
}
10701070

1071-
memset(pc->bo->vmap.vaddr, 0, size);
1071+
xe_map_memset(xe, &pc->bo->vmap, 0, 0, size);
10721072
slpc_shared_data_write(pc, header.size, size);
10731073

10741074
earlier = ktime_get();

0 commit comments

Comments
 (0)