]> Gentwo Git Trees - linux/.git/commit
drm/xe: Use devm_ioremap_wc for VRAM mapping and drop manual unmap
authorPiotr Piórkowski <piotr.piorkowski@intel.com>
Mon, 14 Jul 2025 18:48:14 +0000 (20:48 +0200)
committerLucas De Marchi <lucas.demarchi@intel.com>
Wed, 16 Jul 2025 19:06:25 +0000 (12:06 -0700)
commit922ae875230be91c7f05f2aa90d176b6693e2601
tree0adba35d062ffcb69f83c98a5f77f3fec2319b08
parentbf81505f7dba467c17097315864790f9f7dca08a
drm/xe: Use devm_ioremap_wc for VRAM mapping and drop manual unmap

Let's replace the manual call to ioremap_wc function with devm_ioremap_wc
function, ensuring that VRAM mappings are automatically released when
the driver is detached.
Since devm_ioremap_wc registers the mapping with the device's managed
resources, the explicit iounmap call in vram_fini is no longer needed,
so let's remove it.

Signed-off-by: Piotr Piórkowski <piotr.piorkowski@intel.com>
Suggested-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Acked-by: Matthew Brost <matthew.brost@intel.com>
Link: https://lore.kernel.org/r/20250714184818.89201-2-piotr.piorkowski@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_vram.c