- Clean up and refactor the PowerVR firmware-loading path. - Remove duplications in segment-loading logic and removes the firmware blob after processing. - Save firmware metadata at runtime in a kernel-internal format. - Fix the sizes of firmware header fields. - Remove duplicate GPU-address helper function. - Implement a direct lookup when configureing the segment MMU.
Signed-off-by: Alexandru Dadu <[email protected]> --- Changes in v2: - Added small updates to target some Sashiko remarks. - Link to v1: https://patch.msgid.link/20261125-b4-commonize-fw-segment-loading-v1-0-69657fa52...@imgtec.com --- Alessio Belle (1): drm/imagination: Avoid loop in configure_seg_mmu() Matt Coster (5): drm/imagination: Remove get_fw_obj_gpu_addr() drm/imagination: Fix size of FW header members drm/imagination: Save metadata from firmware drm/imagination: Release firmware after init drm/imagination: Generalize FW segment loading drivers/gpu/drm/imagination/Makefile | 1 + drivers/gpu/drm/imagination/pvr_device.c | 64 ++-- drivers/gpu/drm/imagination/pvr_device.h | 15 - drivers/gpu/drm/imagination/pvr_fw.c | 539 +++++++++-------------------- drivers/gpu/drm/imagination/pvr_fw.h | 196 +++++++---- drivers/gpu/drm/imagination/pvr_fw_info.c | 346 ++++++++++++++++++ drivers/gpu/drm/imagination/pvr_fw_info.h | 22 +- drivers/gpu/drm/imagination/pvr_fw_meta.c | 124 +++---- drivers/gpu/drm/imagination/pvr_fw_mips.c | 50 +-- drivers/gpu/drm/imagination/pvr_fw_riscv.c | 44 ++- drivers/gpu/drm/imagination/pvr_fw_util.c | 17 +- 11 files changed, 781 insertions(+), 637 deletions(-) --- base-commit: c88084027d0e922dd925b96e5a0d184ba04a8f43 change-id: 20261125-b4-commonize-fw-segment-loading-188d87ff5ec7 Best regards, -- Alexandru Dadu <[email protected]>
