Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Alexander Koskovich" <akoskovich@pm.me>
Cc: conor+dt@kernel.org, linux-media@vger.kernel.org,
	devicetree@vger.kernel.org, robh@kernel.org
Subject: Re: [PATCH v2 2/3] media: iris: Add support for Milos (VPU v2.0)
Date: Fri, 29 May 2026 21:48:47 +0000	[thread overview]
Message-ID: <20260529214848.1F7671F00893@smtp.kernel.org> (raw)
In-Reply-To: <20260529-milos-iris-v2-2-7a763d7195ae@pm.me>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] Missing 'mb_cycles_vsp' in platform capabilities leads to severe VSP hardware under-clocking.
--

commit fb28be6de0281a92b4bb987cda425cdebb0eb9c1
Author: Alexander Koskovich <akoskovich@pm.me>

media: iris: Add support for Milos (VPU v2.0)

Add support for the Milos Iris codec. This only supports the variant
found on the SM7635-AB that has half of it's pipes disabled via efuse.

> diff --git a/drivers/media/platform/qcom/iris/iris_platform_gen2.c b/drivers/media/platform/qcom/iris/iris_platform_gen2.c
> index 5da90d47f9c6e..1690e463c8ce5 100644
> --- a/drivers/media/platform/qcom/iris/iris_platform_gen2.c
> +++ b/drivers/media/platform/qcom/iris/iris_platform_gen2.c
[ ... ]
> @@ -1317,3 +1318,108 @@ const struct iris_platform_data qcs8300_data = {
[ ... ]
> +const struct iris_platform_data milos_data = {
> +	.get_instance = iris_hfi_gen2_get_instance,
> +	.init_hfi_command_ops = iris_hfi_gen2_command_ops_init,
> +	.init_hfi_response_ops = iris_hfi_gen2_response_ops_init,
> +	.get_vpu_buffer_size = iris_vpu_buf_size,
> +	.vpu_ops = &iris_vpu2_ops,
[ ... ]
> +	.inst_caps = &platform_inst_cap_milos,
[ ... ]
> 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..dacd3ad5aa7e8
> --- /dev/null
> +++ b/drivers/media/platform/qcom/iris/iris_platform_milos.h
[ ... ]
> +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: High]
Does this struct unintentionally omit .mb_cycles_vsp?

Because milos_data uses iris_vpu2_ops, the platform expects .mb_cycles_vsp
to be defined for calculating the VSP hardware clock frequency in
iris_vpu2_calc_freq().

With .mb_cycles_vsp missing, it will default to 0. This causes the main
mbs_per_second factor to be multiplied by 0, leading to severe hardware
under-clocking, frame drops, and potential timeouts.

Also, should .mb_cycles_fw and .mb_cycles_fw_vpp be removed here, since they
are used exclusively by VPU v3.0+ platforms?

> +	.num_comv = 0,
> +	.max_frame_rate = MILOS_V1_MAX_FPS,
> +	.max_operating_rate = MILOS_V1_MAX_FPS,
> +};

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260529-milos-iris-v2-0-7a763d7195ae@pm.me?part=2

  reply	other threads:[~2026-05-29 21:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-29 20:58 [PATCH v2 0/3] Add support for the Iris codec on Milos Alexander Koskovich
2026-05-29 20:58 ` [PATCH v2 1/3] dt-bindings: media: qcom,milos-iris: Add Milos video codec Alexander Koskovich
2026-05-29 20:58 ` [PATCH v2 2/3] media: iris: Add support for Milos (VPU v2.0) Alexander Koskovich
2026-05-29 21:48   ` sashiko-bot [this message]
2026-05-29 20:58 ` [PATCH v2 3/3] arm64: dts: qcom: milos: Add Iris VPU v2.0 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=20260529214848.1F7671F00893@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=akoskovich@pm.me \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-media@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