Skip to content

FROMLIST: arm64: dts: qcom: sc7280: Add dma-coherent property - #1641

Open
gouravk-qualcomm wants to merge 1 commit into
qualcomm-linux:tech/all/dt/qcs6490from
gouravk-qualcomm:dma-fix
Open

FROMLIST: arm64: dts: qcom: sc7280: Add dma-coherent property#1641
gouravk-qualcomm wants to merge 1 commit into
qualcomm-linux:tech/all/dt/qcs6490from
gouravk-qualcomm:dma-fix

Conversation

@gouravk-qualcomm

@gouravk-qualcomm gouravk-qualcomm commented Aug 4, 2026

Copy link
Copy Markdown

DMA coherency fix for sc7280 venus node (dts ): The venus DT node was missing dma-coherent, so DMA buffers shared between the CPU and the venus hardware were not guaranteed I/O coherent. This caused hardware faults with high-resolution clips and data corruption in captured output. Adds dma-coherent to the binding and to the sc7280 venus node.

Depends-On :#1640
CRs-fixed: 4446385

…nus node

While testing with some higher resolution clips, the venus hardware
triggers a fault due to wrong input data being received. Corruption
was also observed in the captured output when the client dumped it
to a file.

On debugging, this was traced to the venus node not declaring
dma-coherent. As a result, DMA buffers shared between the CPU and the
venus video hardware/controller are not guaranteed to be I/O coherent:
CPU writes to an input buffer can remain in CPU caches without being
visible to the video hardware when it reads the same buffer, so the
hardware receives input data that does not match what the CPU wrote.
Likewise, on the capture path, data written by the video hardware to
the output buffer may not be visible to the CPU, so the client reads
stale or partial data, resulting in corruption.

Add the dma-coherent property to the venus node so that DMA buffers
shared between the CPU and the video hardware and controller remain
coherent.

Link: https://lore.kernel.org/all/20260801-iris-fixes-dma-pseq-fint-v1-2-aba0cb22f6ab@oss.qualcomm.com/
Fixes: 37613ae ("arm64: dts: qcom: sc7280: Add venus DT node")
Cc: stable@vger.kernel.org
Signed-off-by: Vishnu Reddy <busanna.reddy@oss.qualcomm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant