From: Dikshita Agarwal <dikshita.agarwal@oss.qualcomm.com>
To: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>,
Vikash Garodia <vikash.garodia@oss.qualcomm.com>,
Abhinav Kumar <abhinav.kumar@linux.dev>,
Bryan O'Donoghue <bod@kernel.org>,
Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4 7/8] media: qcom: iris: split firmware_data from raw platform data
Date: Fri, 13 Mar 2026 14:26:12 +0530 [thread overview]
Message-ID: <efa27939-67d1-9315-96cd-8b6e7f99a3f3@oss.qualcomm.com> (raw)
In-Reply-To: <20260313-iris-platform-data-v4-7-14927df4906d@oss.qualcomm.com>
> diff --git a/drivers/media/platform/qcom/iris/iris_platform_common.h b/drivers/media/platform/qcom/iris/iris_platform_common.h
> index d1daef2d874b..1a870fec4f31 100644
> --- a/drivers/media/platform/qcom/iris/iris_platform_common.h
> +++ b/drivers/media/platform/qcom/iris/iris_platform_common.h
> @@ -201,45 +201,16 @@ enum platform_pm_domain_type {
> IRIS_APV_HW_POWER_DOMAIN,
> };
>
> -struct iris_platform_data {
> +struct iris_firmware_data {
> void (*init_hfi_ops)(struct iris_core *core);
> +
> u32 (*get_vpu_buffer_size)(struct iris_inst *inst, enum iris_buffer_type buffer_type);
> - const struct vpu_ops *vpu_ops;
> - const struct icc_info *icc_tbl;
> - unsigned int icc_tbl_size;
> - const struct bw_info *bw_tbl_dec;
> - unsigned int bw_tbl_dec_size;
> - const char * const *pmdomain_tbl;
> - unsigned int pmdomain_tbl_size;
> - const char * const *opp_pd_tbl;
> - unsigned int opp_pd_tbl_size;
> - const struct platform_clk_data *clk_tbl;
> - const char * const *opp_clk_tbl;
> - unsigned int clk_tbl_size;
> - const char * const *clk_rst_tbl;
> - unsigned int clk_rst_tbl_size;
> - const char * const *controller_rst_tbl;
> - unsigned int controller_rst_tbl_size;
> - u64 dma_mask;
> - const char *fwname;
> - struct iris_fmt *inst_iris_fmts;
> - u32 inst_iris_fmts_size;
> - struct platform_inst_caps *inst_caps;
> +
> const struct platform_inst_fw_cap *inst_fw_caps_dec;
> u32 inst_fw_caps_dec_size;
> const struct platform_inst_fw_cap *inst_fw_caps_enc;
Thinking further about this split, I see another potential issue here.
Some of the inst_fw_caps are not purely HFI dependent, but also vary with
the VPU architecture. For example, on AR50LT (Agatti), certain capabilities
such as rotation/flip are not supported, even though these platforms still
use HFI Gen2.
With the current approach, handling this would likely require having the
structure in lets say iris_plaform_agatti.h which would be included in both
iris_hfi_gen2.c and iris_platform_ar50lt.c which would lead to duplicate
inclusion, the same concern you raised in kodiak gen2 patches.
How do we tackle this problem?
Thanks,
Dikshita
next prev parent reply other threads:[~2026-03-13 8:56 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-13 3:30 [PATCH v4 0/8] media: qcom: iris: rework platform data handling Dmitry Baryshkov
2026-03-13 3:30 ` [PATCH v4 1/8] media: qcom: iris: drop pas_id from the iris_platform_data struct Dmitry Baryshkov
2026-03-13 3:30 ` [PATCH v4 2/8] media: qcom: iris: use common set_preset_registers function Dmitry Baryshkov
2026-03-13 5:07 ` Dikshita Agarwal
2026-03-13 3:30 ` [PATCH v4 3/8] media: qcom: iris: don't use function indirection in gen2-specific code Dmitry Baryshkov
2026-03-13 3:30 ` [PATCH v4 4/8] media: qcom: iris: split HFI session ops from core ops Dmitry Baryshkov
2026-03-13 7:11 ` Dikshita Agarwal
2026-03-13 3:30 ` [PATCH v4 5/8] media: qcom: iris: merge hfi_response_ops and hfi_command_ops Dmitry Baryshkov
2026-03-13 7:12 ` Dikshita Agarwal
2026-03-13 3:30 ` [PATCH v4 6/8] media: qcom: iris: move get_instance to iris_hfi_sys_ops Dmitry Baryshkov
2026-03-13 7:12 ` Dikshita Agarwal
2026-03-13 3:30 ` [PATCH v4 7/8] media: qcom: iris: split firmware_data from raw platform data Dmitry Baryshkov
2026-03-13 7:49 ` Dikshita Agarwal
2026-03-13 8:07 ` Dmitry Baryshkov
2026-03-13 9:25 ` Dikshita Agarwal
2026-03-16 6:31 ` Dikshita Agarwal
2026-03-16 19:59 ` Dmitry Baryshkov
2026-03-17 5:45 ` Dikshita Agarwal
2026-03-13 8:56 ` Dikshita Agarwal [this message]
2026-03-13 16:56 ` Dmitry Baryshkov
2026-03-13 3:30 ` [PATCH v4 8/8] media: qcom: iris: split platform data from firmware data Dmitry Baryshkov
2026-03-13 8:07 ` Dikshita Agarwal
2026-03-13 19:23 ` Dmitry Baryshkov
2026-03-16 6:29 ` Dikshita Agarwal
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=efa27939-67d1-9315-96cd-8b6e7f99a3f3@oss.qualcomm.com \
--to=dikshita.agarwal@oss.qualcomm.com \
--cc=abhinav.kumar@linux.dev \
--cc=bod@kernel.org \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=vikash.garodia@oss.qualcomm.com \
/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
all inboxes | Powered by JetHome®