From: sashiko-bot@kernel.org
To: "Vishnu Reddy" <busanna.reddy@oss.qualcomm.com>
Cc: robh@kernel.org, devicetree@vger.kernel.org,
media-ci@linuxtv.org, conor+dt@kernel.org
Subject: Re: [PATCH v10 09/14] media: iris: Handle CPU_CS_SCIACMDARG3 register write via program bootup registers hook
Date: Sun, 26 Jul 2026 06:03:28 +0000 [thread overview]
Message-ID: <20260726060329.24B6A1F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260726-glymur-v10-9-de451559e88b@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] The newly added `iris_vpu36_ops` structure, which contains the fix for the Glymur platform, is never assigned to any platform data.
- [Low] Bootup register programming is improperly placed inside a memory map setup function, creating an awkward double-write pattern.
--
--- Patch [9]: [PATCH v10 09/14] media: iris: Handle CPU_CS_SCIACMDARG3 register write via program bootup registers hook ---
commit 5b1dcdb0f86534dd18f11d0f09a2cbbcb73f7014
Author: Vishnu Reddy <busanna.reddy@oss.qualcomm.com>
media: iris: Handle CPU_CS_SCIACMDARG3 register write via program bootup registers hook
This commit adds a platform-specific hook to handle the CPU_CS_SCIACMDARG3
register during boot. It aims to fix the VM count on the Glymur platform by
writing 0x0 instead of the default 0x1.
> diff --git a/drivers/media/platform/qcom/iris/iris_vpu3x.c b/drivers/media/platform/qcom/iris/iris_vpu3x.c
> index 1b08461ee4d70..5212f7d4e606c 100644
> --- a/drivers/media/platform/qcom/iris/iris_vpu3x.c
> +++ b/drivers/media/platform/qcom/iris/iris_vpu3x.c
[ ... ]
> @@ -361,6 +366,7 @@ const struct vpu_ops iris_vpu36_ops = {
> .power_on_hw = iris_vpu36_power_on_hw,
> .power_off_controller = iris_vpu35_vpu4x_power_off_controller,
> .power_on_controller = iris_vpu35_vpu4x_power_on_controller,
> + .program_bootup_registers = iris_vpu36_program_bootup_registers,
> .calc_freq = iris_vpu3x_vpu4x_calculate_frequency,
> .set_hwmode = iris_vpu36_set_hwmode,
> };
[Severity: High]
Is iris_vpu36_ops assigned to any platform data?
Looking through the driver, it appears this new vpu_ops structure is
never referenced, nor is the Glymur platform added to the driver's
of_match_table in this patch series.
Does this mean the promised firmware boot fix for the Glymur platform
is currently unreachable dead code?
> diff --git a/drivers/media/platform/qcom/iris/iris_vpu_common.c b/drivers/media/platform/qcom/iris/iris_vpu_common.c
> index e690c566c8751..72eb8f6240b70 100644
> --- a/drivers/media/platform/qcom/iris/iris_vpu_common.c
> +++ b/drivers/media/platform/qcom/iris/iris_vpu_common.c
[ ... ]
> @@ -67,6 +66,8 @@ static void iris_vpu_setup_ucregion_memory_map(struct iris_core *core)
> writel(value, core->reg_base + SFR_ADDR);
> }
>
> + writel(0x1, core->reg_base + CPU_CS_SCIACMDARG3);
> +
> if (vpu_ops->program_bootup_registers)
> vpu_ops->program_bootup_registers(core);
> }
[Severity: Low]
Does this create an unnecessary double-write pattern?
By placing this inside iris_vpu_setup_ucregion_memory_map(), the code first
writes a default 0x1 to CPU_CS_SCIACMDARG3 (which is a boot argument
unrelated to memory mapping), and then immediately calls the hook.
On platforms using the workaround, this means writing 0x1 and then
immediately overwriting it with 0x0 before the firmware has started.
Could the default write and the hook be moved out of the memory map setup
and organized to avoid writing to this register twice?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260726-glymur-v10-0-de451559e88b@oss.qualcomm.com?part=9
next prev parent reply other threads:[~2026-07-26 6:03 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-26 5:49 [PATCH v10 00/14] media: iris: Add support for glymur platform Vishnu Reddy
2026-07-26 5:49 ` [PATCH v10 01/14] dt-bindings: media: qcom,glymur-iris: Add glymur video codec Vishnu Reddy
2026-07-26 6:00 ` sashiko-bot
2026-07-26 5:49 ` [PATCH v10 02/14] media: iris: Add hooks to initialize and tear down context banks Vishnu Reddy
2026-07-26 6:01 ` sashiko-bot
2026-07-26 5:49 ` [PATCH v10 03/14] media: iris: Add helper to create a context bank device Vishnu Reddy
2026-07-26 6:03 ` sashiko-bot
2026-07-26 5:49 ` [PATCH v10 04/14] media: iris: Add helper to select relevant " Vishnu Reddy
2026-07-26 6:11 ` sashiko-bot
2026-07-26 5:49 ` [PATCH v10 05/14] media: iris: Skip DMA mask setting to core device when IOMMU is not mapped Vishnu Reddy
2026-07-26 6:05 ` sashiko-bot
2026-07-26 5:49 ` [PATCH v10 06/14] media: iris: Enable Secure PAS support with IOMMU managed by Linux Vishnu Reddy
2026-07-26 6:08 ` sashiko-bot
2026-07-26 5:49 ` [PATCH v10 07/14] media: iris: Replace enum-indexed clock and power domain tables with per-block structures Vishnu Reddy
2026-07-26 6:06 ` sashiko-bot
2026-07-26 5:49 ` [PATCH v10 08/14] media: iris: Add power sequence for glymur Vishnu Reddy
2026-07-26 6:05 ` sashiko-bot
2026-07-26 5:49 ` [PATCH v10 09/14] media: iris: Handle CPU_CS_SCIACMDARG3 register write via program bootup registers hook Vishnu Reddy
2026-07-26 6:03 ` sashiko-bot [this message]
2026-07-26 5:49 ` [PATCH v10 10/14] media: iris: Add support to select core for dual core platforms Vishnu Reddy
2026-07-26 6:18 ` sashiko-bot
2026-07-26 5:49 ` [PATCH v10 11/14] media: iris: Add hooks for pixel and non-pixel context banks Vishnu Reddy
2026-07-26 6:03 ` sashiko-bot
2026-07-26 5:49 ` [PATCH v10 12/14] media: iris: Add platform data for glymur Vishnu Reddy
2026-07-26 5:49 ` [PATCH v10 13/14] arm64: dts: qcom: glymur: Add iris video node Vishnu Reddy
2026-07-26 5:49 ` [PATCH v10 14/14] arm64: dts: qcom: glymur-crd: Enable iris video codec node Vishnu Reddy
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=20260726060329.24B6A1F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=busanna.reddy@oss.qualcomm.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=media-ci@linuxtv.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.