lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20251031-b4-vc-sm-cma-v1-0-0dd5c0ec3f5c@ideasonboard.com>
Date: Fri, 31 Oct 2025 22:57:20 +0530
From: Jai Luthra <jai.luthra@...asonboard.com>
To: Florian Fainelli <florian.fainelli@...adcom.com>, 
 Raspberry Pi Kernel Maintenance <kernel-list@...pberrypi.com>, 
 bcm-kernel-feedback-list@...adcom.com
Cc: Dave Stevenson <dave.stevenson@...pberrypi.com>, 
 Phil Elwell <phil@...pberrypi.com>, Stefan Wahren <wahrenst@....net>, 
 Laurent Pinchart <laurent.pinchart@...asonboard.com>, 
 Kieran Bingham <kieran.bingham@...asonboard.com>, 
 Sumit Semwal <sumit.semwal@...aro.org>, 
 Christian König <christian.koenig@....com>, 
 linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org, 
 Jai Luthra <jai.luthra@...asonboard.com>, 
 Dave Stevenson <dave.stevenson@...pberrypi.org>, 
 Dom Cobley <popcornmix@...il.com>, 
 Alexander Winkowski <dereference23@...look.com>, 
 Greg Kroah-Hartman <gregkh@...uxfoundation.org>, 
 Juerg Haefliger <juerg.haefliger@...onical.com>
Subject: [PATCH 00/13] platform/raspberrypi: Add Broadcom Videocore shared
 memory support

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@...asonboard.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@...asonboard.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@...asonboard.com>


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ