linux/drivers/gpu/drm/sysfb
Chen Ni 5e77923a3e drm/sysfb: Fix efidrm error handling and memory type mismatch
Fix incorrect error checking and memory type confusion in
efidrm_device_create(). devm_memremap() returns error pointers, not
NULL, and returns system memory while devm_ioremap() returns I/O memory.
The code incorrectly passes system memory to iosys_map_set_vaddr_iomem().

Restructure to handle each memory type separately. Use devm_ioremap*()
with ERR_PTR(-ENXIO) for WC/UC, and devm_memremap() with ERR_CAST() for
WT/WB.

Fixes: 32ae90c66f ("drm/sysfb: Add efidrm for EFI displays")
Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patch.msgid.link/20260311064652.2903449-1-nichen@iscas.ac.cn
2026-03-31 13:04:51 +02:00
..
Kconfig
Makefile
drm_sysfb.c
drm_sysfb_helper.h drm/sysfb: Remove duplicate declarations 2026-01-14 11:03:56 +01:00
drm_sysfb_modeset.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
drm_sysfb_screen_info.c drm/sysfb: Find screen_info format with helpers 2025-08-26 09:54:17 +02:00
efidrm.c drm/sysfb: Fix efidrm error handling and memory type mismatch 2026-03-31 13:04:51 +02:00
ofdrm.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
simpledrm.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
vesadrm.c sysfb: Move edid_info into sysfb_primary_display 2025-12-16 14:12:44 +01:00