From: sashiko-bot@kernel.org
To: "Alexander Koskovich" <akoskovich@pm.me>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, robh@kernel.org
Subject: Re: [PATCH v3 2/3] media: iris: Add support for Milos (VPU v2.0)
Date: Sun, 05 Jul 2026 10:27:20 +0000 [thread overview]
Message-ID: <20260705102720.A45D51F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260705-milos-iris-v3-2-8c1353530f24@pm.me>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] Incorrect VPU capacity initialization in `platform_inst_cap_milos` missing `mb_cycles_vsp`.
--
commit 9ae4cf8b25a90957e77a00cd4a1116d4be3f9fae
Author: Alexander Koskovich <akoskovich@pm.me>
media: iris: Add support for Milos (VPU v2.0)
Add support for the Milos Iris codec variant found on the SM7635-AB.
> diff --git a/drivers/media/platform/qcom/iris/iris_platform_milos.h b/drivers/media/platform/qcom/iris/iris_platform_milos.h
> new file mode 100644
> index 0000000000000..3b6feeda76cbd
> --- /dev/null
> +++ b/drivers/media/platform/qcom/iris/iris_platform_milos.h
> @@ -0,0 +1,28 @@
[ ... ]
> +static struct platform_inst_caps platform_inst_cap_milos = {
> + .min_frame_width = 96,
> + .max_frame_width = 4096,
> + .min_frame_height = 96,
> + .max_frame_height = 4096,
> + .max_mbpf = (4096 * 2176) / 256,
> + .mb_cycles_vpp = 200,
> + .mb_cycles_fw = 326389,
> + .mb_cycles_fw_vpp = 44156,
[Severity: Low]
Does this code mistakenly initialize VPU3 fields instead of the required
VPU2 field (mb_cycles_vsp) for the Milos platform?
Because mb_cycles_vsp is missing, it defaults to 0, which causes the
macroblock-dependent component to evaluate to 0 in:
drivers/media/platform/qcom/iris/iris_vpu2.c:iris_vpu2_calc_freq() {
...
vsp_freq = mbs_per_second * caps->mb_cycles_vsp;
...
}
While vpp_freq (calculated from mb_cycles_vpp = 200) typically dwarfs
the missing VSP component in almost all practical scenarios, making this
unlikely to cause a severe bottleneck, shouldn't we still provide the
correct mb_cycles_vsp value here and remove the unused VPU3 fields?
> + .max_frame_rate = MILOS_MAXIMUM_FPS,
> + .max_operating_rate = MILOS_MAXIMUM_FPS,
> +};
> +
> +#endif
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260705-milos-iris-v3-0-8c1353530f24@pm.me?part=2
next prev parent reply other threads:[~2026-07-05 10:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-05 10:10 [PATCH v3 0/3] Add support for the Iris codec on Milos Alexander Koskovich
2026-07-05 10:10 ` [PATCH v3 1/3] dt-bindings: media: qcom,milos-iris: Add Milos video codec Alexander Koskovich
2026-07-05 10:10 ` [PATCH v3 2/3] media: iris: Add support for Milos (VPU v2.0) Alexander Koskovich
2026-07-05 10:27 ` sashiko-bot [this message]
2026-07-06 13:59 ` Dmitry Baryshkov
2026-07-05 10:10 ` [PATCH v3 3/3] arm64: dts: qcom: milos: Add Iris VPU v2.0 Alexander Koskovich
2026-07-06 11:13 ` Konrad Dybcio
2026-07-06 14:24 ` Dmitry Baryshkov
2026-07-06 14:01 ` [PATCH v3 0/3] Add support for the Iris codec on Milos Dmitry Baryshkov
2026-07-06 15:36 ` Alexander Koskovich
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=20260705102720.A45D51F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=akoskovich@pm.me \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox