Skip to content

PENDING: media: iris: add context bank support via iommu-map#918

Merged
vgarodia merged 4 commits intoqualcomm-linux:tech/mm/videofrom
gouravk-qualcomm:cb-iris-lemans
Apr 10, 2026
Merged

PENDING: media: iris: add context bank support via iommu-map#918
vgarodia merged 4 commits intoqualcomm-linux:tech/mm/videofrom
gouravk-qualcomm:cb-iris-lemans

Conversation

@gouravk-qualcomm
Copy link
Copy Markdown

@gouravk-qualcomm gouravk-qualcomm commented Apr 8, 2026

This series adds context bank support to the Qualcomm iris video codec
driver by migrating from the legacy 'iommus' DT property to 'iommu-map',
enabling per-context-bank IOMMU domain management.

Exception JIRA: https://jira-dc.qualcomm.com/jira/browse/QLIJIRA-115
CRs-Fixed: 4496236

@gouravk-qualcomm gouravk-qualcomm force-pushed the cb-iris-lemans branch 3 times, most recently from b34fde2 to 9e3e344 Compare April 9, 2026 05:53
iommus = <&apps_smmu 0x1940 0>,
<&apps_smmu 0x1947 0>;
iommu-map = <IRIS_NON_PIXEL_VCODEC &apps_smmu 0x1940 0x0 0x1>,
<IRIS_PIXEL &apps_smmu 0x1947 0x0 0x1>;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make the change for hamoa.dtsi as well

@gouravk-qualcomm gouravk-qualcomm force-pushed the cb-iris-lemans branch 4 times, most recently from b09ddbd to fb53b70 Compare April 9, 2026 15:39
Vishnu Reddy and others added 3 commits April 10, 2026 12:13
Wire up sm8550_init_cb_devs() in iris_platform_gen2.c to register the
two child context-bank devices (iris_non_pixel and iris_pixel)
using iris_create_cb_dev(), and hook it into the sm8550_data platform
data via the .init_cb_devs callback.

Signed-off-by: Vishnu Reddy <busanna.reddy@oss.qualcomm.com>
Signed-off-by: Vikash Garodia <vikash.garodia@oss.qualcomm.com>
Signed-off-by: Gourav Kumar <gouravk@qti.qualcomm.com>
Different stream IDs from VPU would be associated to one of these CB.
Multiple CBs are needed to increase the IOVA for the video usecases
like higher concurrent sessions.

Co-developed-by: Vishnu Reddy <busanna.reddy@oss.qualcomm.com>
Signed-off-by: Vishnu Reddy <busanna.reddy@oss.qualcomm.com>
Signed-off-by: Vikash Garodia <vikash.garodia@oss.qualcomm.com>
Depending on the buffer type (input, output and internal), associated
context bank is selected, if available. Fallback to parent device for
backward compatibility.

Co-developed-by: Vishnu Reddy <busanna.reddy@oss.qualcomm.com>
Signed-off-by: Vishnu Reddy <busanna.reddy@oss.qualcomm.com>
Signed-off-by: Vikash Garodia <vikash.garodia@oss.qualcomm.com>
…ion IDs

Add a dt-bindings header include/dt-bindings/media/qcom,sm8550-iris.h
defining IRIS_NON_PIXEL_VCODEC (0) and IRIS_PIXEL (1) function IDs
used to identify the non-pixel and pixel context bank SMMU stream
mappings via iommu-map.

Signed-off-by: Vishnu Reddy <busanna.reddy@oss.qualcomm.com>
Signed-off-by: Vikash Garodia <vikash.garodia@oss.qualcomm.com>
Signed-off-by: Gourav Kumar <gouravk@qti.qualcomm.com>
@vgarodia vgarodia merged commit 3125925 into qualcomm-linux:tech/mm/video Apr 10, 2026
3 of 5 checks passed
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.

2 participants