drm/imagination: Add RISC-V firmware processor support
authorSarah Walker <sarah.walker@imgtec.com>
Thu, 10 Apr 2025 09:55:13 +0000 (10:55 +0100)
committerMatt Coster <matt.coster@imgtec.com>
Tue, 15 Apr 2025 11:21:52 +0000 (12:21 +0100)
commit171f378d2a23db92d3443173f5fd7f25633ec39d
treed58f62a4f57030ac6fac00d616fc4e168ad0b6c0
parentf48485ab506850b4e35ff56550568f710a22a586
drm/imagination: Add RISC-V firmware processor support

Newer PowerVR GPUs (such as the BXS-4-64 MC1) use a RISC-V firmware
processor instead of the previous MIPS or META.

The current version of this patch depends on a patch[1] which exists in
drm-misc-fixes, but has not yet made it back to drm-misc-next (the
target of this patch). That patch adds the function pvr_vm_unmap_obj()
which is used here.

[1]: https://lore.kernel.org/r/20250226-hold-drm_gem_gpuva-lock-for-unmap-v2-1-3fdacded227f@imgtec.com

Signed-off-by: Sarah Walker <sarah.walker@imgtec.com>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Link: https://lore.kernel.org/r/20250410-sets-bxs-4-64-patch-v1-v6-14-eda620c5865f@imgtec.com
Signed-off-by: Matt Coster <matt.coster@imgtec.com>
drivers/gpu/drm/imagination/Makefile
drivers/gpu/drm/imagination/pvr_fw.c
drivers/gpu/drm/imagination/pvr_fw.h
drivers/gpu/drm/imagination/pvr_fw_riscv.c [new file with mode: 0644]
drivers/gpu/drm/imagination/pvr_fw_startstop.c
drivers/gpu/drm/imagination/pvr_rogue_riscv.h [new file with mode: 0644]