Skip to content

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

Open
gouravk-qualcomm wants to merge 3 commits intoqualcomm-linux:tech/mm/videofrom
gouravk-qualcomm:cb-iris-lemans
Open

PENDING: media: iris: add context bank support via iommu-map#918
gouravk-qualcomm wants to merge 3 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.

@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 3 times, most recently from 22c4a86 to b09ddbd Compare April 9, 2026 15:30
Vishnu Reddy and others added 3 commits April 9, 2026 21:09
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>
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