Skip to content

drm/imagination: Commonize firmware segment loading

Alexandru Dadu dri-devel linux-hardening linux-riscv lkml 1 version New

Get series with b4
b4 am 20261125-b4-commonize-fw-segment-loading-v1-0-69657fa52ac3@imgtec.com change-id 20261125-b4-commonize-fw-segment-loading-188d87ff5ec7

Versions newest first

  1. v1 Latest6 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6drm/imagination: Remove get_fw_obj_gpu_addr()drivers/gpu/drm/imagination/pvr_fw_meta.c+1 -90 replies
2/6drm/imagination: Fix size of FW header membersdrivers/gpu/drm/imagination/pvr_fw_info.h+12 -40 replies
3/6drm/imagination: Save metadata from firmwaredrivers/gpu/drm/imagination/Makefile drivers/gpu/drm/imagination/pvr_device.c drivers/gpu/drm/imagination/pvr_device.h +7 more+487 -2480 replies
4/6drm/imagination: Release firmware after initdrivers/gpu/drm/imagination/pvr_device.c drivers/gpu/drm/imagination/pvr_fw.c drivers/gpu/drm/imagination/pvr_fw.h +4 more+63 -540 replies
5/6drm/imagination: Generalize FW segment loadingdrivers/gpu/drm/imagination/pvr_fw.c drivers/gpu/drm/imagination/pvr_fw.h drivers/gpu/drm/imagination/pvr_fw_meta.c +3 more+219 -3360 replies
6/6drm/imagination: Avoid loop in configure_seg_mmu()drivers/gpu/drm/imagination/pvr_fw_meta.c+24 -260 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] drm/imagination: Commonize firmware segment loading

- 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.

---
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   |  61 ++--
 drivers/gpu/drm/imagination/pvr_device.h   |  15 -
 drivers/gpu/drm/imagination/pvr_fw.c       | 534 ++++++++---------------------
 drivers/gpu/drm/imagination/pvr_fw.h       | 196 +++++++----
 drivers/gpu/drm/imagination/pvr_fw_info.c  | 339 ++++++++++++++++++
 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, 766 insertions(+), 637 deletions(-)

---
base-commit: c88084027d0e922dd925b96e5a0d184ba04a8f43
change-id: 20261125-b4-commonize-fw-segment-loading-188d87ff5ec7

Best regards,

Signature · 1 line
Alexandru Dadu <[email protected]>