public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/13] platform/raspberrypi: Add Broadcom Videocore shared memory support
@ 2025-10-31 17:27 Jai Luthra
  2025-10-31 17:27 ` [PATCH 01/13] platform/raspberrypi: vchiq-mmal: Avoid use of bool in structures Jai Luthra
                   ` (12 more replies)
  0 siblings, 13 replies; 27+ messages in thread
From: Jai Luthra @ 2025-10-31 17:27 UTC (permalink / raw)
  To: Florian Fainelli, Raspberry Pi Kernel Maintenance,
	bcm-kernel-feedback-list
  Cc: Dave Stevenson, Phil Elwell, Stefan Wahren, Laurent Pinchart,
	Kieran Bingham, Sumit Semwal, Christian König,
	linux-arm-kernel, linux-kernel, Jai Luthra, Dave Stevenson,
	Dom Cobley, Alexander Winkowski, Greg Kroah-Hartman,
	Juerg Haefliger

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/

Thanks,
	Jai

Signed-off-by: Jai Luthra <jai.luthra@ideasonboard.com>
---
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: <20251029-vchiq-destage-v3-0-da8d6c83c2c5@ideasonboard.com>
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 <jai.luthra@ideasonboard.com>


^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2025-11-03 14:07 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-31 17:27 [PATCH 00/13] platform/raspberrypi: Add Broadcom Videocore shared memory support Jai Luthra
2025-10-31 17:27 ` [PATCH 01/13] platform/raspberrypi: vchiq-mmal: Avoid use of bool in structures Jai Luthra
2025-11-02  9:20   ` Krzysztof Kozlowski
2025-11-03 11:09   ` Christian König
2025-11-03 13:22     ` Jai Luthra
2025-10-31 17:27 ` [PATCH 02/13] platform/raspberrypi: vchiq-mmal: Add support for event callbacks Jai Luthra
2025-11-01 14:03   ` Stefan Wahren
2025-10-31 17:27 ` [PATCH 03/13] platform/raspberrypi: vchiq-mmal: Support sending data to MMAL ports Jai Luthra
2025-10-31 17:27 ` [PATCH 04/13] platform/raspberrypi: vchiq-mmal: Fix client_component for 64 bit kernel Jai Luthra
2025-10-31 17:27 ` [PATCH 05/13] platform/raspberrypi: vchiq-mmal: Add in the bayer and gray formats Jai Luthra
2025-10-31 17:27 ` [PATCH 06/13] platform/raspberrypi: vchiq-mmal: Update video parameters Jai Luthra
2025-10-31 17:27 ` [PATCH 07/13] platform/raspberrypi: vchiq-mmal: Free the event context for control ports Jai Luthra
2025-11-02  9:20   ` Krzysztof Kozlowski
2025-10-31 17:27 ` [PATCH 08/13] platform/raspberrypi: vchiq-mmal: Fix memory leak in error path Jai Luthra
2025-10-31 17:27 ` [PATCH 09/13] platform/raspberrypi: Add new vc-sm-cma driver Jai Luthra
2025-11-02  9:30   ` Krzysztof Kozlowski
2025-11-03 13:49     ` Jai Luthra
2025-11-03 14:00       ` Krzysztof Kozlowski
2025-10-31 17:27 ` [PATCH 10/13] platform/raspberrypi: vchiq-mmal: Use vc-sm-cma to support zero copy Jai Luthra
2025-10-31 17:27 ` [PATCH 11/13] platform/raspberrypi: vchiq-mmal: Reset buffers_with_vpu on port_enable Jai Luthra
2025-10-31 17:27 ` [PATCH 12/13] platform/raspberrypi: vchiq-mmal: Add defines for mmal_es_format flags Jai Luthra
2025-11-02  9:33   ` Krzysztof Kozlowski
2025-10-31 17:27 ` [PATCH 13/13] platform/raspberrypi: vchiq: Register vc-sm-cma as a platform driver Jai Luthra
2025-11-02  9:33   ` Krzysztof Kozlowski
2025-11-03 13:57     ` Jai Luthra
2025-11-03 14:01       ` Krzysztof Kozlowski
2025-11-03 14:07       ` Jai Luthra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox