From: Vikash Garodia <vikash.garodia@oss.qualcomm.com>
To: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Cc: Abhinav Kumar <abhinav.kumar@linux.dev>,
Bryan O'Donoghue <bod@kernel.org>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Vishnu Reddy <busanna.reddy@oss.qualcomm.com>,
linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
Dikshita Agarwal <dikshita.agarwal@oss.qualcomm.com>
Subject: Re: [PATCH v7 04/18] media: iris: Filter UBWC raw formats based on hardware capabilities
Date: Tue, 21 Jul 2026 21:53:46 +0530 [thread overview]
Message-ID: <2323abe7-ecd3-4504-8790-ef1a2dacec8f@oss.qualcomm.com> (raw)
In-Reply-To: <CAO9ioeW3y0ck2k3H2XK4W7z6YCFO6nuENN6=SmKxjQjNUNKWPw@mail.gmail.com>
On 7/21/2026 8:34 PM, Dmitry Baryshkov wrote:
> On Tue, 21 Jul 2026 at 17:08, Vikash Garodia
> <vikash.garodia@oss.qualcomm.com> wrote:
>>
>>
>> On 7/9/2026 7:11 PM, Dmitry Baryshkov wrote:
>>> From: Dikshita Agarwal <dikshita.agarwal@oss.qualcomm.com>
>>>
>>> The raw formats supported by Iris were previously advertised
>>> unconditionally, assuming UBWC support on all platforms. However, some
>>> platforms do not support UBWC which results in incorrect format
>>> capability exposure.
>>>
>>> Use the UBWC configuration provided by the platform to dynamically
>>> filter raw formats at runtime. If UBWC is not supported, UBWC-based
>>> formats are omitted from the advertised capability list, while linear
>>> formats remain available.
>>>
>>> Signed-off-by: Dikshita Agarwal <dikshita.agarwal@oss.qualcomm.com>
>>> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
>>> ---
>>> drivers/media/platform/qcom/iris/iris_vdec.c | 26 ++++++++++++++++++++++----
>>> drivers/media/platform/qcom/iris/iris_venc.c | 25 +++++++++++++++++++++----
>>> 2 files changed, 43 insertions(+), 8 deletions(-)
>>>
>>> diff --git a/drivers/media/platform/qcom/iris/iris_vdec.c b/drivers/media/platform/qcom/iris/iris_vdec.c
>>> index 4c8bc7aac135..9fee5f28097d 100644
>>> --- a/drivers/media/platform/qcom/iris/iris_vdec.c
>>> +++ b/drivers/media/platform/qcom/iris/iris_vdec.c
>>> @@ -3,6 +3,7 @@
>>> * Copyright (c) 2022-2024 Qualcomm Innovation Center, Inc. All rights reserved.
>>> */
>>>
>>> +#include <linux/soc/qcom/ubwc.h>
>>> #include <media/v4l2-event.h>
>>> #include <media/v4l2-mem2mem.h>
>>>
>>> @@ -69,8 +70,14 @@ static const u32 iris_vdec_formats_cap[] = {
>>> V4L2_PIX_FMT_QC10C,
>>> };
>>>
>>> +static const u32 iris_vdec_formats_noubwc_cap[] = {
>>> + V4L2_PIX_FMT_NV12,
>>> + V4L2_PIX_FMT_P010,
>>> +};
>>> +
>>> static bool check_format(struct iris_inst *inst, u32 pixfmt, u32 type)
>>> {
>>> + const struct qcom_ubwc_cfg_data *ubwc = inst->core->ubwc_cfg;
>>> unsigned int size, i;
>>> const u32 *fmt;
>>>
>>> @@ -80,8 +87,13 @@ static bool check_format(struct iris_inst *inst, u32 pixfmt, u32 type)
>>> size = inst->core->iris_platform_data->inst_iris_fmts_size;
>>> break;
>>> case V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE:
>>> - fmt = iris_vdec_formats_cap;
>>> - size = ARRAY_SIZE(iris_vdec_formats_cap);
>>> + if (ubwc->ubwc_enc_version) {
>>
>> Do you see a possibility that ubwc is enabled for a SOC while VPU
>> hardware does not support UBWC. IP document for qcom,qcm2290 lists some
>> UBWC configuration, while VPU does not support UBWC. Not sure at this
>> point if other blocks indeed support UBWC for qcom,qcm2290.
>
> No, QCM2290 doesn't really support UBWC between the IP cores (as such
> it has ubwc_enc_version = 0).
> Currently the database defines a least common denominator for all IP
> cores. If we ever get to a point where we want to define UBWC params
> per the core, we will need to restructure the database.
>
Ack.
next prev parent reply other threads:[~2026-07-21 16:23 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-09 13:41 [PATCH v7 00/18] media: iris: Add AR50LT core support and enable Agatti platform Dmitry Baryshkov
2026-07-09 13:41 ` [PATCH v7 01/18] media: iris: Add Gen2 firmware autodetect and fallback Dmitry Baryshkov
2026-07-09 13:58 ` sashiko-bot
2026-07-10 4:23 ` Vishnu Reddy
2026-07-21 13:49 ` Vikash Garodia
2026-07-21 22:15 ` Bryan O'Donoghue
2026-07-21 22:17 ` Dmitry Baryshkov
2026-07-09 13:41 ` [PATCH v7 02/18] media: iris: Skip UBWC configuration when not supported Dmitry Baryshkov
2026-07-09 13:41 ` [PATCH v7 03/18] media: iris: drop IRIS_FMT_foo enumeration Dmitry Baryshkov
2026-07-17 3:38 ` Vishnu Reddy
2026-07-09 13:41 ` [PATCH v7 04/18] media: iris: Filter UBWC raw formats based on hardware capabilities Dmitry Baryshkov
2026-07-17 3:46 ` Vishnu Reddy
2026-07-21 14:07 ` Vikash Garodia
2026-07-21 15:04 ` Dmitry Baryshkov
2026-07-21 16:23 ` Vikash Garodia [this message]
2026-07-21 22:16 ` Bryan O'Donoghue
2026-07-22 5:54 ` Vikash Garodia
2026-07-09 13:41 ` [PATCH v7 05/18] media: iris: Introduce set_preset_register as a vpu_op Dmitry Baryshkov
2026-07-09 13:41 ` [PATCH v7 06/18] media: iris: Introduce interrupt_init " Dmitry Baryshkov
2026-07-09 13:41 ` [PATCH v7 07/18] media: iris: add vpu op hook to disable ARP buffer Dmitry Baryshkov
2026-07-09 13:41 ` [PATCH v7 08/18] media: iris: Add platform data field for watchdog interrupt mask Dmitry Baryshkov
2026-07-09 13:42 ` [PATCH v7 09/18] media: iris: Add platform flag for instantaneous bandwidth voting Dmitry Baryshkov
2026-07-09 13:59 ` sashiko-bot
2026-07-09 13:42 ` [PATCH v7 10/18] media: iris: skip PIPE if it is not supported by the platform Dmitry Baryshkov
2026-07-09 14:14 ` sashiko-bot
2026-07-09 13:42 ` [PATCH v7 11/18] media: iris: Add framework support for AR50_LITE video core Dmitry Baryshkov
2026-07-09 13:59 ` sashiko-bot
2026-07-10 10:25 ` Vikash Garodia
2026-07-17 4:30 ` Vishnu Reddy
2026-07-09 13:42 ` [PATCH v7 12/18] media: iris: add minimal GET_PROPERTY implementation Dmitry Baryshkov
2026-07-09 14:06 ` sashiko-bot
2026-07-09 13:42 ` [PATCH v7 13/18] media: iris: update buffer requirements based on received info Dmitry Baryshkov
2026-07-09 14:05 ` sashiko-bot
2026-07-09 13:42 ` [PATCH v7 14/18] media: iris: implement support for the Agatti platform Dmitry Baryshkov
2026-07-09 14:19 ` sashiko-bot
2026-07-21 15:23 ` Vikash Garodia
2026-07-09 13:42 ` [PATCH v7 15/18] media: iris: Introduce buffer size calculations for AR50LT Dmitry Baryshkov
2026-07-09 14:09 ` sashiko-bot
2026-07-21 15:30 ` Vikash Garodia
2026-07-21 20:30 ` Dmitry Baryshkov
2026-07-09 13:42 ` [PATCH v7 16/18] media: iris: add Gen2 firmware support on the Agatti platform Dmitry Baryshkov
2026-07-09 14:25 ` sashiko-bot
2026-07-09 13:42 ` [PATCH v7 17/18] media: venus: skip QCM2290 if Iris driver is enabled Dmitry Baryshkov
2026-07-09 13:42 ` [PATCH v7 18/18] media: iris: constify inst_fw_cap_sm8250_dec Dmitry Baryshkov
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=2323abe7-ecd3-4504-8790-ef1a2dacec8f@oss.qualcomm.com \
--to=vikash.garodia@oss.qualcomm.com \
--cc=abhinav.kumar@linux.dev \
--cc=andersson@kernel.org \
--cc=bod@kernel.org \
--cc=busanna.reddy@oss.qualcomm.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dikshita.agarwal@oss.qualcomm.com \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--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 \
/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