[PATCH v3 0/4] media: qcom: camss: contiguous buffers, RDI and CSID1 streaming fixes

From: Allan Siriani

Date: Wed Nov 11 2026 - 09:01:15 EST


Fixes found while bringing up the CAMSS on MSM8226 (Moto G 2013). The
SoC has an IOMMU in front of the CAMSS, but it is not described in the
upstream DT, so the CAMSS runs without one there today.

1. Loic's patch: use vb2_dma_contig, the write masters take a single
address per plane.
2. Program the VFE 4.1 write master buffer size in frame based (RDI)
mode.
3. Do not abort stop_streaming on -ENOIOCTLCMD from a subdev without
.s_stream().
4. Do not fail CSID power up when there is no VFE with the same index
(CSID1 on MSM8916/MSM8226).

Build tested (W=1, LLVM, ARM) on next-20261105, each patch on its own.
Runtime tested on MSM8226 with the same patches on a 6.16 based kernel.
Known issue: on the MT9M114 the first frame after STREAMON can still run
128 bytes past sizeimage; later frames are exact.

Changes in v3:
- Patch 2: added Fixes: tag, removed the comments, no clamp on the
height (Bryan).
- Patch 3: removed the comment (Bryan), added Loic's Reviewed-by.

Changes in v2:
- Patch 1 replaced by Loic's "media: qcom: camss: Use contiguous DMA
buffers", with his Signed-off-by fixed and Bryan's Reviewed-by.
- Reworded the IOMMU statements (Konrad).
- Patch 3: added Fixes: tag and Bryan's Reviewed-by.

v2: https://lore.kernel.org/all/20261109112611.94010-1-allan@xxxxxxxxxxxxxxxxxxx/
v1: https://lore.kernel.org/all/20261104202313.72494-1-allan@xxxxxxxxxxxxxxxxxxx/

Allan Siriani (3):
media: qcom: camss: vfe-4-1: program the RDI write master buffer size
media: qcom: camss: always stop the pipeline in stop_streaming
media: qcom: camss: do not fail CSID power up without a matching VFE

Loic Poulain (1):
media: qcom: camss: Use contiguous DMA buffers

drivers/media/platform/qcom/camss/Kconfig | 2 +-
.../media/platform/qcom/camss/camss-vfe-4-1.c | 23 +++++++++++++++----
.../media/platform/qcom/camss/camss-vfe-4-7.c | 3 ++-
.../media/platform/qcom/camss/camss-vfe-4-8.c | 3 ++-
.../platform/qcom/camss/camss-vfe-gen1.c | 5 ++--
.../platform/qcom/camss/camss-vfe-gen1.h | 3 ++-
.../media/platform/qcom/camss/camss-video.c | 22 ++++++------------
drivers/media/platform/qcom/camss/camss.c | 17 +++++++-------
8 files changed, 45 insertions(+), 33 deletions(-)


base-commit: ddfe51b0a0f5dc9e415cc2c8ad8db17532dd426b
--
2.43.0