drm/xe: Fix memset on iomem
commit 87a15c89d8c7b00b0fc94e0d4f554f7ee2fe6961 upstream.
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: dd08ebf6c3 ("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 21cf47d89fba353b2d5915ba4718040c4cb955d3)
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e881b82f5d
commit
57e044005e
@@ -975,7 +975,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);
|
||||
|
||||
ret = pc_action_reset(pc);
|
||||
|
||||
Reference in New Issue
Block a user