Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Atanas Filipov" <atanas.filipov@oss.qualcomm.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org,
	media-ci@linuxtv.org
Subject: Re: [PATCH v2 07/10] media: qcom: cam-icc: add the SA8775P data
Date: Fri, 04 Dec 2026 08:19:25 +0000	[thread overview]
Message-ID: <sashiko-outbox-249383@kernel.org> (raw)
In-Reply-To: <20261204075339.4077387-8-atanas.filipov@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] media: qcom: cam-icc: SA8775P runs camnoc_axi at 400 MHz
  without rail OPP
--

commit 796b8b0cbd8e5c49f62c8e1ebc62144d437261d3
Author: Atanas Filipov <atanas.filipov@oss.qualcomm.com>

media: qcom: cam-icc: add the SA8775P data

This commit adds the SA8775P camera NoC interconnect nodes, mmcx and mxc
rail power domains, static QoS settings, and error interrupt data to the
qcom-cam-icc driver.

> diff --git a/drivers/media/platform/qcom/cam-icc/qcom-cam-icc-sa8775p.c b/drivers/media/platform/qcom/cam-icc/qcom-cam-icc-sa8775p.c
> new file mode 100644
> index 0000000000000..a181c1c7540c6
> --- /dev/null
> +++ b/drivers/media/platform/qcom/cam-icc/qcom-cam-icc-sa8775p.c

[ ... ]

> +const struct qcom_cam_icc_data qcom_cam_icc_sa8775p_data = {
> +	.rate_clk	= "camnoc_axi",
> +	.nodes		= sa8775p_nodes,
> +	.num_nodes	= ARRAY_SIZE(sa8775p_nodes),
> +	.num_ids	= SA8775P_CAMNOC_NUM_NODES,
> +	.ahb_id		= SLAVE_CAMNOC_AHB,
> +	.rail_pd_data	= &sa8775p_rail_pd_data,

[Severity: High]
Can camnoc_axi be left running at 400 MHz without the required mmcx and mxc
OPP votes?

When aggregated AXI bandwidth drops to zero, qcom_cam_icc_set_axi_rate()
calls clk_set_rate(camnoc->axi_clk, 0) followed by
dev_pm_opp_set_opp(camnoc->dev, NULL), assuming the clock drops to XO before
clearing the rail votes.

On SA8775P, ftbl_cam_cc_camnoc_axi_clk_src in drivers/clk/qcom/camcc-sa8775p.c
only defines a 400 MHz entry with no 19.2 MHz P_BI_TCXO entry.  Because
cam_cc_camnoc_axi_clk_src uses clk_rcg2_shared_ops, clk_set_rate(..., 0)
rounds up to 400 MHz and the mmcx and mxc votes are dropped anyway.

On runtime suspend, clk_rcg2_shared_disable() caches that 400 MHz setting in
parked_cfg, so qcom_cam_icc_runtime_resume() also restores 400 MHz on every
later resume before any OPP is voted.  Running the camera NoC at 400 MHz
below SVS_L1 risks bus errors or hangs when no other consumer holds the rails.

Note that ftbl_cam_cc_slow_ahb_clk_src in camcc-sa8775p.c similarly lacks a
19.2 MHz P_BI_TCXO entry, leaving cpas_ahb at 80 MHz on clk_set_rate(..., 0).
Adding 19.2 MHz P_BI_TCXO entries in camcc-sa8775p.c as a prerequisite, or
keeping the rail OPP active while camnoc_axi stays at 400 MHz, would fix this.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204075339.4077387-1-atanas.filipov@oss.qualcomm.com?part=7

  reply	other threads:[~2026-12-04  8:19 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04  7:53 [PATCH v2 00/10] Add the Qualcomm Titan camera NoC interconnect provider Atanas Filipov
2026-12-04  7:53 ` [PATCH v2 01/10] dt-bindings: interconnect: add the Qualcomm SM8250 Titan camera NoC Atanas Filipov
2026-12-04  8:01   ` sashiko-bot
2026-12-04  7:53 ` [PATCH v2 02/10] dt-bindings: interconnect: add the Qualcomm SC7280 " Atanas Filipov
2026-12-04  8:04   ` sashiko-bot
2026-12-04  7:53 ` [PATCH v2 03/10] dt-bindings: interconnect: add the Qualcomm SA8775P " Atanas Filipov
2026-12-04  8:04   ` sashiko-bot
2026-12-04  7:53 ` [PATCH v2 04/10] media: qcom: cam-icc: add the Titan camera NoC driver Atanas Filipov
2026-12-04  8:27   ` sashiko-bot
2026-12-04  7:53 ` [PATCH v2 05/10] media: qcom: cam-icc: add the SM8250 data Atanas Filipov
2026-12-04  8:16   ` sashiko-bot
2026-12-04  7:53 ` [PATCH v2 06/10] media: qcom: cam-icc: add the SC7280 data Atanas Filipov
2026-12-04  7:53 ` [PATCH v2 07/10] media: qcom: cam-icc: add the SA8775P data Atanas Filipov
2026-12-04  8:19   ` sashiko-bot [this message]
2026-12-04  7:53 ` [PATCH v2 08/10] arm64: dts: qcom: sm8250: add the Titan camera NoC node Atanas Filipov
2026-12-04  8:25   ` sashiko-bot
2026-12-04  7:53 ` [PATCH v2 09/10] arm64: dts: qcom: sc7280: " Atanas Filipov
2026-12-04  8:30   ` sashiko-bot
2026-12-04  7:53 ` [PATCH v2 10/10] arm64: dts: qcom: sa8775p: " Atanas Filipov

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=sashiko-outbox-249383@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=atanas.filipov@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox