]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/imagination: Implement firmware infrastructure and META FW support
authorSarah Walker <sarah.walker@imgtec.com>
Wed, 22 Nov 2023 16:34:34 +0000 (16:34 +0000)
committerMaxime Ripard <mripard@kernel.org>
Thu, 23 Nov 2023 08:01:46 +0000 (09:01 +0100)
commitcc1aeedb98ad347c06ff59e991b2f94dfb4c565d
tree8ab0d584a8950ce0bbcb6f49d8c6b3f6335fa9e5
parent727538a4bbff07736ecfd704efd7e21718fca3e4
drm/imagination: Implement firmware infrastructure and META FW support

The infrastructure includes parsing of the firmware image, initialising
FW-side structures, handling the kernel and firmware command
ringbuffers and starting & stopping the firmware processor.

This patch also adds the necessary support code for the META firmware
processor.

Changes since v8:
- Fix documentation for pvr_fwccb_process()
- Corrected license identifiers

Changes since v6:
- Add a minimum retry count to pvr_kccb_reserve_slot_sync()

Changes since v5:
- Add workaround for BRN 71242
- Attempt to recover GPU on MMU flush command failure

Changes since v4:
- Remove use of drm_gem_shmem_get_pages()
- Remove interrupt resource name

Changes since v3:
- Hard reset FW processor on watchdog timeout
- Switch to threaded IRQ
- Rework FW object creation/initialisation to aid hard reset
- Added MODULE_FIRMWARE()
- Use drm_dev_{enter,exit}

Signed-off-by: Sarah Walker <sarah.walker@imgtec.com>
Signed-off-by: Donald Robson <donald.robson@imgtec.com>
Link: https://lore.kernel.org/r/bb52a8dc84f296b37dc6668dfe8fbaf2ba551139.1700668843.git.donald.robson@imgtec.com
Signed-off-by: Maxime Ripard <mripard@kernel.org>
18 files changed:
drivers/gpu/drm/imagination/Makefile
drivers/gpu/drm/imagination/pvr_ccb.c [new file with mode: 0644]
drivers/gpu/drm/imagination/pvr_ccb.h [new file with mode: 0644]
drivers/gpu/drm/imagination/pvr_device.c
drivers/gpu/drm/imagination/pvr_device.h
drivers/gpu/drm/imagination/pvr_drv.c
drivers/gpu/drm/imagination/pvr_fw.c
drivers/gpu/drm/imagination/pvr_fw.h
drivers/gpu/drm/imagination/pvr_fw_meta.c [new file with mode: 0644]
drivers/gpu/drm/imagination/pvr_fw_meta.h [new file with mode: 0644]
drivers/gpu/drm/imagination/pvr_fw_startstop.c [new file with mode: 0644]
drivers/gpu/drm/imagination/pvr_fw_startstop.h [new file with mode: 0644]
drivers/gpu/drm/imagination/pvr_fw_trace.c [new file with mode: 0644]
drivers/gpu/drm/imagination/pvr_fw_trace.h [new file with mode: 0644]
drivers/gpu/drm/imagination/pvr_mmu.c
drivers/gpu/drm/imagination/pvr_power.c
drivers/gpu/drm/imagination/pvr_power.h
drivers/gpu/drm/imagination/pvr_vm.c