From: Vishnu Reddy <busanna.reddy@oss.qualcomm.com>
To: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Cc: Vikash Garodia <vikash.garodia@oss.qualcomm.com>,
Dikshita Agarwal <dikshita.agarwal@oss.qualcomm.com>,
Abhinav Kumar <abhinav.kumar@linux.dev>,
Bryan O'Donoghue <bod@kernel.org>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Joerg Roedel <joro@8bytes.org>, Will Deacon <will@kernel.org>,
Robin Murphy <robin.murphy@arm.com>,
Hans Verkuil <hverkuil@kernel.org>,
Stefan Schmidt <stefan.schmidt@linaro.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Stanimir Varbanov <stanimir.k.varbanov@gmail.com>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
linux-kernel@vger.kernel.org, linux-media@vger.kernel.org,
linux-arm-msm@vger.kernel.org, iommu@lists.linux.dev,
devicetree@vger.kernel.org
Subject: Re: [PATCH v6 06/14] media: iris: Add context bank hooks for platform specific initialization
Date: Tue, 26 May 2026 16:51:52 +0530 [thread overview]
Message-ID: <b1888f5c-2613-99ca-ee12-fb4717a40731@oss.qualcomm.com> (raw)
In-Reply-To: <sqjbcmcy3wohzdiftb36i7ztfyt2k7mnxkrzxk5yuocpe7kfy6@ev2ouxxnf6cc>
On 5/17/2026 11:05 PM, Dmitry Baryshkov wrote:
> On Fri, May 15, 2026 at 04:51:21PM +0530, Vishnu Reddy wrote:
>> The Glymur platform requires a dedicated firmware context bank device
>> which is mapped to the firmware stream ID to load the firmware.
> Why is it required on Glymur? Is it _only_ on Glymur?
It is required for firmware booting on platforms where Linux runs as the
hypervisor (KVM/EL2), where the driver needs to manually manage the firmware
IOMMU mapping via a dedicated context bank device. This is currently specific
to Glymur.
>> Add init and deinit hooks in the platform data for context bank setup.
>> These hooks allow platform specific code to initialize and tear down
>> context banks.
>>
>> Reviewed-by: Vikash Garodia <vikash.garodia@oss.qualcomm.com>
>> Signed-off-by: Vishnu Reddy <busanna.reddy@oss.qualcomm.com>
>> ---
>> .../platform/qcom/iris/iris_platform_common.h | 2 ++
>> drivers/media/platform/qcom/iris/iris_probe.c | 23 +++++++++++++++++++++-
>> 2 files changed, 24 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/media/platform/qcom/iris/iris_platform_common.h b/drivers/media/platform/qcom/iris/iris_platform_common.h
>> index 6a108173be35..84fc68128c70 100644
>> --- a/drivers/media/platform/qcom/iris/iris_platform_common.h
>> +++ b/drivers/media/platform/qcom/iris/iris_platform_common.h
>> @@ -263,6 +263,8 @@ struct iris_platform_data {
>> */
>> const struct iris_firmware_desc *firmware_desc;
>>
>> + int (*init_cb_devs)(struct iris_core *core);
>> + void (*deinit_cb_devs)(struct iris_core *core);
> Why are they being added directly to iris_platform_data? Why not the
> vpu_ops?
Some vpu_ops are shared across more than one platform because of same
power sequence.
>> const struct vpu_ops *vpu_ops;
>> const struct icc_info *icc_tbl;
>> unsigned int icc_tbl_size;
next prev parent reply other threads:[~2026-05-26 11:22 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-15 11:21 [PATCH v6 00/14] media: iris: Add support for glymur platform Vishnu Reddy
2026-05-15 11:21 ` [PATCH v6 01/14] media: iris: Add iris vpu bus support Vishnu Reddy
2026-05-17 17:24 ` Dmitry Baryshkov
2026-05-15 11:21 ` [PATCH v6 02/14] iommu: Add iris-vpu-bus to iommu_buses Vishnu Reddy
2026-05-15 11:21 ` [PATCH v6 03/14] media: iris: Fix VM count passed to firmware Vishnu Reddy
2026-05-17 17:31 ` Dmitry Baryshkov
2026-05-15 11:21 ` [PATCH v6 04/14] dt-bindings: media: qcom,venus-common: Raise maxItems for clocks and power-domains Vishnu Reddy
2026-05-16 9:31 ` Krzysztof Kozlowski
2026-05-15 11:21 ` [PATCH v6 05/14] dt-bindings: media: qcom,glymur-iris: Add glymur video codec Vishnu Reddy
2026-05-15 11:21 ` [PATCH v6 06/14] media: iris: Add context bank hooks for platform specific initialization Vishnu Reddy
2026-05-17 17:35 ` Dmitry Baryshkov
2026-05-26 11:21 ` Vishnu Reddy [this message]
2026-05-28 10:59 ` Dmitry Baryshkov
2026-05-15 11:21 ` [PATCH v6 07/14] media: iris: Enable Secure PAS support with IOMMU managed by Linux Vishnu Reddy
2026-05-15 11:21 ` [PATCH v6 08/14] media: iris: Rename clock and power domain macros to use vcodec suffix Vishnu Reddy
2026-05-17 17:38 ` Dmitry Baryshkov
2026-05-15 11:21 ` [PATCH v6 09/14] media: iris: Use power domain type to look up pd_devs index Vishnu Reddy
2026-05-17 17:48 ` Dmitry Baryshkov
2026-05-15 11:21 ` [PATCH v6 10/14] media: iris: Add power sequence for Glymur Vishnu Reddy
2026-05-17 18:09 ` Dmitry Baryshkov
2026-05-26 11:21 ` Vishnu Reddy
2026-05-15 11:21 ` [PATCH v6 11/14] media: iris: Add support to select core for dual core platforms Vishnu Reddy
2026-05-17 18:10 ` Dmitry Baryshkov
2026-05-15 11:21 ` [PATCH v6 12/14] media: iris: Add platform data for glymur Vishnu Reddy
2026-05-15 11:21 ` [PATCH v6 13/14] arm64: dts: qcom: glymur: Add iris video node Vishnu Reddy
2026-05-17 18:11 ` Dmitry Baryshkov
2026-05-26 11:22 ` Vishnu Reddy
2026-05-15 11:21 ` [PATCH v6 14/14] arm64: dts: qcom: glymur-crd: Enable iris video codec node Vishnu Reddy
2026-05-17 18:12 ` Dmitry Baryshkov
2026-05-26 11:22 ` Vishnu Reddy
2026-05-28 10:54 ` [PATCH v6 00/14] media: iris: Add support for glymur platform Dmitry Baryshkov
2026-06-04 6:52 ` Vikash Garodia
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b1888f5c-2613-99ca-ee12-fb4717a40731@oss.qualcomm.com \
--to=busanna.reddy@oss.qualcomm.com \
--cc=abhinav.kumar@linux.dev \
--cc=andersson@kernel.org \
--cc=bod@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dikshita.agarwal@oss.qualcomm.com \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=hverkuil@kernel.org \
--cc=iommu@lists.linux.dev \
--cc=joro@8bytes.org \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=robh@kernel.org \
--cc=robin.murphy@arm.com \
--cc=stanimir.k.varbanov@gmail.com \
--cc=stefan.schmidt@linaro.org \
--cc=vikash.garodia@oss.qualcomm.com \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox