[PATCH 00/13] platform/raspberrypi: Add Broadcom Videocore shared memory support
From: Jai Luthra <hidden>
Date: 2025-10-31 17:28:14
Also in:
lkml
Hi, The vc-sm-cma driver allows contiguous memory blocks to be imported into the VideoCore VPU memory map. This series adds support for this driver and various changes to VCHIQ MMAL layer required to get this functional. These changes have lived in the staging directory of the downstream Raspberry Pi tree since quite some time, but are necessary for getting the VCHIQ based peripherals like the ISP and codec functional in mainline. This series depends on an earlier series, destaging VCHIQ interface and MMAL driver, which was posted here: https://lore.kernel.org/all/20251029-vchiq-destage-v3-0-da8d6c83c2c5@ideasonboard.com/ (local) Thanks, Jai Signed-off-by: Jai Luthra <redacted> --- Dave Stevenson (13): platform/raspberrypi: vchiq-mmal: Avoid use of bool in structures platform/raspberrypi: vchiq-mmal: Add support for event callbacks. platform/raspberrypi: vchiq-mmal: Support sending data to MMAL ports platform/raspberrypi: vchiq-mmal: Fix client_component for 64 bit kernel platform/raspberrypi: vchiq-mmal: Add in the bayer and gray formats platform/raspberrypi: vchiq-mmal: Update video parameters platform/raspberrypi: vchiq-mmal: Free the event context for control ports platform/raspberrypi: vchiq-mmal: Fix memory leak in error path platform/raspberrypi: Add new vc-sm-cma driver platform/raspberrypi: vchiq-mmal: Use vc-sm-cma to support zero copy platform/raspberrypi: vchiq-mmal: Reset buffers_with_vpu on port_enable platform/raspberrypi: vchiq-mmal: Add defines for mmal_es_format flags platform/raspberrypi: vchiq: Register vc-sm-cma as a platform driver MAINTAINERS | 7 + drivers/platform/raspberrypi/Kconfig | 2 + drivers/platform/raspberrypi/Makefile | 1 + drivers/platform/raspberrypi/vc-sm-cma/Kconfig | 9 + drivers/platform/raspberrypi/vc-sm-cma/Makefile | 9 + drivers/platform/raspberrypi/vc-sm-cma/vc_sm.c | 1619 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ drivers/platform/raspberrypi/vc-sm-cma/vc_sm.h | 83 ++++++ drivers/platform/raspberrypi/vc-sm-cma/vc_sm_cma_vchi.c | 513 ++++++++++++++++++++++++++++++++++++ drivers/platform/raspberrypi/vc-sm-cma/vc_sm_cma_vchi.h | 63 +++++ drivers/platform/raspberrypi/vc-sm-cma/vc_sm_defs.h | 298 +++++++++++++++++++++ drivers/platform/raspberrypi/vc-sm-cma/vc_sm_knl.h | 28 ++ drivers/platform/raspberrypi/vchiq-interface/vchiq_arm.c | 3 + drivers/platform/raspberrypi/vchiq-mmal/Kconfig | 3 +- drivers/platform/raspberrypi/vchiq-mmal/mmal-common.h | 5 + drivers/platform/raspberrypi/vchiq-mmal/mmal-encodings.h | 41 +++ drivers/platform/raspberrypi/vchiq-mmal/mmal-msg-format.h | 10 + drivers/platform/raspberrypi/vchiq-mmal/mmal-msg.h | 35 +++ drivers/platform/raspberrypi/vchiq-mmal/mmal-parameters.h | 38 ++- drivers/platform/raspberrypi/vchiq-mmal/mmal-vchiq.c | 269 +++++++++++++++++-- drivers/platform/raspberrypi/vchiq-mmal/mmal-vchiq.h | 5 + include/linux/raspberrypi/vc_sm_cma_ioctl.h | 114 ++++++++ 21 files changed, 3132 insertions(+), 23 deletions(-) --- base-commit: 3a8660878839faadb4f1a6dd72c3179c1df56787 change-id: 20251030-b4-vc-sm-cma-f6727c39cd25 prerequisite-message-id: [ref] prerequisite-patch-id: b0a98fe9aa5b5cd548c55f01fb51962d15c2a86d prerequisite-patch-id: a745143658be8020e9c906f7b503473b54cacb82 prerequisite-patch-id: 163c9bc2d42a9b743ae726d1e5559fdc8988d5a2 prerequisite-patch-id: 8d81e9507d7e47daca70eb681b1400d96e5cd869 prerequisite-patch-id: 28f7ab0db3909b8ab9201d47741e7f941322680f prerequisite-patch-id: c39620e68ca4ef9441f621db946c072f3be66721 prerequisite-patch-id: 47af76c416f5d80839e384ffb5b2d37032d2ee7a Best regards, -- Jai Luthra [off-list ref]