From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
To: Sreeshankar K <sreeshankar0910@gmail.com>,
Bjorn Andersson <andersson@kernel.org>,
Abel Vesa <abelvesa@kernel.org>, Stephen Boyd <sboyd@kernel.org>,
Brian Masney <bmasney+clk@redhat.com>,
Jerome Brunet <jbrunet+clk@baylibre.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Taniya Das <taniya.das@oss.qualcomm.com>,
Amit Kucheria <amitk@kernel.org>,
Thara Gopinath <thara.gopinath@gmail.com>,
"Rafael J. Wysocki" <rafael@kernel.org>,
Daniel Lezcano <daniel.lezcano@kernel.org>,
Zhang Rui <rui.zhang@intel.com>,
Lukasz Luba <lukasz.luba@arm.com>,
Konrad Dybcio <konradybcio@kernel.org>,
Robert Marko <robimarko@gmail.com>,
Guru Das Srinagesh <linux@gurudas.dev>,
Viresh Kumar <viresh.kumar@linaro.org>,
Manivannan Sadhasivam <mani@kernel.org>
Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-pm@vger.kernel.org
Subject: Re: [PATCH v15 3/8] thermal/qcom/lmh: Switch to match data for SoC CPU-to-node mappings
Date: Tue, 1 Dec 2026 11:15:53 +0100 [thread overview]
Message-ID: <e6a3b908-3387-4fe2-bfc6-f762ef8a9ca0@oss.qualcomm.com> (raw)
In-Reply-To: <20261116-sm7250-v15-3-6acbb232fef8@gmail.com>
On 11/16/26 6:33 AM, Sreeshankar K wrote:
> lmh_probe() hardcodes the mapping of logical CPU IDs to LMh
> hardware cluster node IDs: CPU 0 maps to LMH_CLUSTER0_NODE_ID, and CPU 4
> maps to LMH_CLUSTER1_NODE_ID.
>
> This assumption only holds true for 4+4 big.LITTLE architectures like
> SDM845 and SM8150. On platforms with asymmetric cluster layouts, such as
> the 6+2 topology on SM7250 where the big cluster starts at logical CPU 6,
> lmh_probe() fails with -EINVAL. Consequently, the second LMh node does
> not register its interrupt domain, which in turn causes dependent drivers
> like qcom-cpufreq-hw to fail or indefinitely defer probing via fw_devlink.
>
> Address this by introducing a SoC descriptor structure (struct qcom_lmh_soc_data)
> and an explicit mapping table (struct qcom_lmh_node_map) associated with of_device_id
> match data. This encapsulates both the algorithm enable flags and the CPU-to-node
> mappings per compatible string.
Please re-wrap the commit messages at 72 chars.
The struct names you mentioned in there don't match the diff.
[...]
> +struct lmh_soc_data {
> + uintptr_t flags;
This should be an unsigned int, since we need to carry a bitmask
and no longer need to make sure that it's compatible with the
match table's .data (which is a voidptr)
> + const struct lmh_soc_map *map;
> + size_t num_nodes;
> +};
> +
> +static const struct lmh_soc_map sdm845_map[] = {
> + { .cpu_id = 0, .node_id = LMH_CLUSTER0_NODE_ID },
> + { .cpu_id = 4, .node_id = LMH_CLUSTER1_NODE_ID },
> +};
Let's do "cluster_cpu04_map" or something like this
Konrad
next prev parent reply other threads:[~2026-12-01 10:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-16 5:33 [PATCH v15 0/8] Add initial support for Qualcomm SM7250 SoC Sreeshankar K
2026-11-16 5:33 ` [PATCH v15 1/8] dt-bindings: clock: Add SM7250 global clock controller Sreeshankar K
2026-11-16 5:33 ` [PATCH v15 2/8] clk: qcom: Add Global Clock Controller (GCC) driver for SM7250 Sreeshankar K
2026-11-16 5:33 ` [PATCH v15 3/8] thermal/qcom/lmh: Switch to match data for SoC CPU-to-node mappings Sreeshankar K
2026-12-01 10:15 ` Konrad Dybcio [this message]
2026-11-16 5:33 ` [PATCH v15 4/8] dt-bindings: thermal: lmh: Document SM7250 LMh Sreeshankar K
2026-11-16 5:33 ` [PATCH v15 5/8] thermal/qcom/lmh: Add support for Qualcomm SM7250 Sreeshankar K
2026-11-16 5:33 ` [PATCH v15 6/8] dt-bindings: firmware: qcom,scm: Document SM7250 SCM Sreeshankar K
2026-11-16 5:33 ` [PATCH v15 7/8] dt-bindings: cpufreq: qcom-hw: Document SM7250 cpufreq hardware Sreeshankar K
2026-11-16 5:33 ` [PATCH v15 8/8] arm64: dts: qcom: Add SM7250 devicetree file Sreeshankar K
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=e6a3b908-3387-4fe2-bfc6-f762ef8a9ca0@oss.qualcomm.com \
--to=konrad.dybcio@oss.qualcomm.com \
--cc=abelvesa@kernel.org \
--cc=amitk@kernel.org \
--cc=andersson@kernel.org \
--cc=bmasney+clk@redhat.com \
--cc=conor+dt@kernel.org \
--cc=daniel.lezcano@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jbrunet+clk@baylibre.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux@gurudas.dev \
--cc=lukasz.luba@arm.com \
--cc=mani@kernel.org \
--cc=rafael@kernel.org \
--cc=robh@kernel.org \
--cc=robimarko@gmail.com \
--cc=rui.zhang@intel.com \
--cc=sboyd@kernel.org \
--cc=sreeshankar0910@gmail.com \
--cc=taniya.das@oss.qualcomm.com \
--cc=thara.gopinath@gmail.com \
--cc=viresh.kumar@linaro.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
all inboxes | Powered by JetHome®