Linux Kernel Selftest development
 help / color / mirror / Atom feed
From: Lukasz Luba <lukasz.luba@arm.com>
To: Daniel Lezcano <daniel.lezcano@oss.qualcomm.com>, rafael@kernel.org
Cc: Daniel Lezcano <daniel.lezcano@kernel.org>,
	Heiko Stuebner <heiko@sntech.de>, Shuah Khan <shuah@kernel.org>,
	Manaf Meethalavalappu Pallikunhi
	<manaf.pallikunhi@oss.qualcomm.com>,
	linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-rockchip@lists.infradead.org,
	linux-kselftest@vger.kernel.org
Subject: Re: [PATCH v4 6/6] powercap: dtpm: Add RK3588 hierarchy
Date: Fri, 30 Oct 2026 14:09:08 +0000	[thread overview]
Message-ID: <c614e414-0f9b-464f-90bb-dc1cd63b09d2@arm.com> (raw)
In-Reply-To: <50f06fc06f0e83ee59ecf9037071e02344ecd15b.1793288783.git.daniel.lezcano@oss.qualcomm.com>



On 10/29/26 16:56, Daniel Lezcano wrote:
> The RK3588 has three CPU frequency domains, with CPUs grouped into
> three cpufreq policies.
> 
> Add a DTPM hierarchy for the RK3588 with one CPU node per cpufreq
> policy, represented by cpu@0, cpu@400 and cpu@600. Group the three CPU
> domains under a virtual package node attached to the RK3588 root node.
> 
> Add the RK3588 compatible to the Rockchip DTPM match table to select
> the new hierarchy.
> 
> Signed-off-by: Daniel Lezcano <daniel.lezcano@oss.qualcomm.com>
> ---
> Changes in v4 (since v3):
> - Rebase on v7.3; no code or commit-description changes.
> 
> Changes in v3 (since v2):
> - Rebase on v7.3-rc7.
> - Fix __initdata placement and the RK3588 match-entry indentation.
> - No functional changes.
> 
>   drivers/soc/rockchip/dtpm.c | 48 +++++++++++++++++++++++++++++++++++++
>   1 file changed, 48 insertions(+)
> 
> diff --git a/drivers/soc/rockchip/dtpm.c b/drivers/soc/rockchip/dtpm.c
> index 5ae00680602f..664764f4b460 100644
> --- a/drivers/soc/rockchip/dtpm.c
> +++ b/drivers/soc/rockchip/dtpm.c
> @@ -62,8 +62,56 @@ static struct powercap_hierarchy rk3399_hierarchy __initdata = {
>   	.nr_nodes = ARRAY_SIZE(rk3399_nodes),
>   };
>   
> +static struct dtpm_node rk3588_cpu0 = {
> +	.type = DTPM_NODE_DT,
> +	.path = "/cpus/cpu@0",
> +};
> +
> +static struct dtpm_node rk3588_cpu4 = {
> +	.type = DTPM_NODE_DT,
> +	.path = "/cpus/cpu@400",
> +};
> +
> +static struct dtpm_node rk3588_cpu6 = {
> +	.type = DTPM_NODE_DT,
> +	.path = "/cpus/cpu@600",
> +};
> +
> +static struct powercap_node rk3588_nodes[] __initdata = {
> +	[0] = {
> +		.name = "rk3588",
> +		.data = &rockchip_virtual,
> +	},
> +	[1] = {
> +		.name = "package",
> +		.parent = &rk3588_nodes[0],
> +		.data = &rockchip_virtual,
> +	},
> +	[2] = {
> +		.name = "cpu0-cpufreq",
> +		.parent = &rk3588_nodes[1],
> +		.data = &rk3588_cpu0,
> +	},
> +	[3] = {
> +		.name = "cpu4-cpufreq",
> +		.parent = &rk3588_nodes[1],
> +		.data = &rk3588_cpu4,
> +	},
> +	[4] = {
> +		.name = "cpu6-cpufreq",
> +		.parent = &rk3588_nodes[1],
> +		.data = &rk3588_cpu6,
> +	},
> +};
> +
> +static struct powercap_hierarchy rk3588_hierarchy __initdata = {
> +	.nodes = rk3588_nodes,
> +	.nr_nodes = ARRAY_SIZE(rk3588_nodes),
> +};
> +
>   static struct of_device_id __initdata rockchip_dtpm_match_table[] = {
>   	{ .compatible = "rockchip,rk3399", .data = &rk3399_hierarchy },
> +	{ .compatible = "rockchip,rk3588", .data = &rk3588_hierarchy },
>   	{},
>   };
>   

Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>

  reply	other threads:[~2026-10-30 14:08 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-29 16:56 [PATCH v4 0/6] powercap: Add generic hierarchy support and convert DTPM Daniel Lezcano
2026-10-29 16:56 ` [PATCH v4 1/6] powercap: Add generic zone hierarchy creation helpers Daniel Lezcano
2026-10-30 14:02   ` Lukasz Luba
2026-10-30 14:26     ` Daniel Lezcano
2026-10-29 16:56 ` [PATCH v4 2/6] selftests/powercap: Add powercap hierarchy creation API tests Daniel Lezcano
2026-10-29 16:56 ` [PATCH v4 3/6] powercap: dtpm: Remove duplicate RK3399 CPU hierarchy nodes Daniel Lezcano
2026-10-30 14:03   ` Lukasz Luba
2026-10-29 16:56 ` [PATCH v4 4/6] powercap: dtpm: Use generic powercap hierarchy helpers Daniel Lezcano
2026-10-29 16:56 ` [PATCH v4 5/6] powercap: dtpm: Rename Rockchip virtual node descriptor Daniel Lezcano
2026-10-30 14:07   ` Lukasz Luba
2026-10-29 16:56 ` [PATCH v4 6/6] powercap: dtpm: Add RK3588 hierarchy Daniel Lezcano
2026-10-30 14:09   ` Lukasz Luba [this message]
2026-10-30  9:08 ` [PATCH v4 0/6] powercap: Add generic hierarchy support and convert DTPM Daniel Lezcano

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=c614e414-0f9b-464f-90bb-dc1cd63b09d2@arm.com \
    --to=lukasz.luba@arm.com \
    --cc=daniel.lezcano@kernel.org \
    --cc=daniel.lezcano@oss.qualcomm.com \
    --cc=heiko@sntech.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=manaf.pallikunhi@oss.qualcomm.com \
    --cc=rafael@kernel.org \
    --cc=shuah@kernel.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