2022-10-01 03:10:36

by Melody Olvera

[permalink] [raw]
Subject: [PATCH 4/5] soc: qcom: rpmhpd: Add QDU1000/QRU1000 power domains

Add the power domains exposed by RPMH in the Qualcomm QDU1000
and QRU1000 platforms.

Signed-off-by: Melody Olvera <[email protected]>
---
drivers/soc/qcom/rpmhpd.c | 13 +++++++++++++
1 file changed, 13 insertions(+)

diff --git a/drivers/soc/qcom/rpmhpd.c b/drivers/soc/qcom/rpmhpd.c
index 092f6ab09acf..f70573cbc636 100644
--- a/drivers/soc/qcom/rpmhpd.c
+++ b/drivers/soc/qcom/rpmhpd.c
@@ -353,6 +353,19 @@ static const struct rpmhpd_desc sm8450_desc = {
.num_pds = ARRAY_SIZE(sm8450_rpmhpds),
};

+/* QDU1000/QRU1000 RPMH powerdomains */
+static struct rpmhpd *qdru1000_rpmhpds[] = {
+ [QDRU1000_CX] = &cx,
+ [QDRU1000_EBI] = &ebi,
+ [QDRU1000_MSS] = &mss,
+ [QDRU1000_MX] = &mx,
+};
+
+static const struct rpmhpd_desc qdru1000_desc = {
+ .rpmhpds = qdru1000_rpmhpds,
+ .num_pds = ARRAY_SIZE(qdru1000_rpmhpds),
+};
+
/* SC7180 RPMH powerdomains */
static struct rpmhpd *sc7180_rpmhpds[] = {
[SC7180_CX] = &cx_w_mx_parent,
--
2.37.3


2022-10-01 08:38:22

by Dmitry Baryshkov

[permalink] [raw]
Subject: Re: [PATCH 4/5] soc: qcom: rpmhpd: Add QDU1000/QRU1000 power domains

On 01/10/2022 06:06, Melody Olvera wrote:
> Add the power domains exposed by RPMH in the Qualcomm QDU1000
> and QRU1000 platforms.
>
> Signed-off-by: Melody Olvera <[email protected]>

Reviewed-by: Dmitry Baryshkov <[email protected]>

> ---
> drivers/soc/qcom/rpmhpd.c | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
>
> diff --git a/drivers/soc/qcom/rpmhpd.c b/drivers/soc/qcom/rpmhpd.c
> index 092f6ab09acf..f70573cbc636 100644
> --- a/drivers/soc/qcom/rpmhpd.c
> +++ b/drivers/soc/qcom/rpmhpd.c
> @@ -353,6 +353,19 @@ static const struct rpmhpd_desc sm8450_desc = {
> .num_pds = ARRAY_SIZE(sm8450_rpmhpds),
> };
>
> +/* QDU1000/QRU1000 RPMH powerdomains */
> +static struct rpmhpd *qdru1000_rpmhpds[] = {
> + [QDRU1000_CX] = &cx,
> + [QDRU1000_EBI] = &ebi,
> + [QDRU1000_MSS] = &mss,
> + [QDRU1000_MX] = &mx,
> +};
> +
> +static const struct rpmhpd_desc qdru1000_desc = {
> + .rpmhpds = qdru1000_rpmhpds,
> + .num_pds = ARRAY_SIZE(qdru1000_rpmhpds),
> +};
> +
> /* SC7180 RPMH powerdomains */
> static struct rpmhpd *sc7180_rpmhpds[] = {
> [SC7180_CX] = &cx_w_mx_parent,

--
With best wishes
Dmitry

2022-10-02 03:31:58

by kernel test robot

[permalink] [raw]
Subject: Re: [PATCH 4/5] soc: qcom: rpmhpd: Add QDU1000/QRU1000 power domains

Hi Melody,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on 987a926c1d8a40e4256953b04771fbdb63bc7938]

url: https://github.com/intel-lab-lkp/linux/commits/Melody-Olvera/Add-misc-support-for-QDU1000-QRU1000-SoCs/20221001-111140
base: 987a926c1d8a40e4256953b04771fbdb63bc7938
config: hexagon-randconfig-r001-20221002
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/fc61c357ddde657995cd0f200df393966486a594
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Melody-Olvera/Add-misc-support-for-QDU1000-QRU1000-SoCs/20221001-111140
git checkout fc61c357ddde657995cd0f200df393966486a594
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/soc/qcom/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <[email protected]>

All warnings (new ones prefixed by >>):

>> drivers/soc/qcom/rpmhpd.c:364:33: warning: unused variable 'qdru1000_desc' [-Wunused-const-variable]
static const struct rpmhpd_desc qdru1000_desc = {
^
1 warning generated.


vim +/qdru1000_desc +364 drivers/soc/qcom/rpmhpd.c

363
> 364 static const struct rpmhpd_desc qdru1000_desc = {
365 .rpmhpds = qdru1000_rpmhpds,
366 .num_pds = ARRAY_SIZE(qdru1000_rpmhpds),
367 };
368

--
0-DAY CI Kernel Test Service
https://01.org/lkp


Attachments:
(No filename) (1.85 kB)
config (123.42 kB)
Download all attachments

2022-10-07 04:22:33

by Bjorn Andersson

[permalink] [raw]
Subject: Re: [PATCH 4/5] soc: qcom: rpmhpd: Add QDU1000/QRU1000 power domains

On Fri, Sep 30, 2022 at 08:06:40PM -0700, Melody Olvera wrote:
> Add the power domains exposed by RPMH in the Qualcomm QDU1000
> and QRU1000 platforms.
>
> Signed-off-by: Melody Olvera <[email protected]>
> ---
> drivers/soc/qcom/rpmhpd.c | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
>
> diff --git a/drivers/soc/qcom/rpmhpd.c b/drivers/soc/qcom/rpmhpd.c
> index 092f6ab09acf..f70573cbc636 100644
> --- a/drivers/soc/qcom/rpmhpd.c
> +++ b/drivers/soc/qcom/rpmhpd.c
> @@ -353,6 +353,19 @@ static const struct rpmhpd_desc sm8450_desc = {
> .num_pds = ARRAY_SIZE(sm8450_rpmhpds),
> };
>
> +/* QDU1000/QRU1000 RPMH powerdomains */
> +static struct rpmhpd *qdru1000_rpmhpds[] = {
> + [QDRU1000_CX] = &cx,
> + [QDRU1000_EBI] = &ebi,
> + [QDRU1000_MSS] = &mss,
> + [QDRU1000_MX] = &mx,
> +};
> +
> +static const struct rpmhpd_desc qdru1000_desc = {
> + .rpmhpds = qdru1000_rpmhpds,
> + .num_pds = ARRAY_SIZE(qdru1000_rpmhpds),
> +};
> +

Looks like you missed adding a (or two) entires to rpmhpd_match_table.

Regards,
Bjorn

> /* SC7180 RPMH powerdomains */
> static struct rpmhpd *sc7180_rpmhpds[] = {
> [SC7180_CX] = &cx_w_mx_parent,
> --
> 2.37.3
>

2022-10-12 20:58:46

by Melody Olvera

[permalink] [raw]
Subject: Re: [PATCH 4/5] soc: qcom: rpmhpd: Add QDU1000/QRU1000 power domains



On 10/6/2022 8:11 PM, Bjorn Andersson wrote:
> On Fri, Sep 30, 2022 at 08:06:40PM -0700, Melody Olvera wrote:
>> Add the power domains exposed by RPMH in the Qualcomm QDU1000
>> and QRU1000 platforms.
>>
>> Signed-off-by: Melody Olvera <[email protected]>
>> ---
>> drivers/soc/qcom/rpmhpd.c | 13 +++++++++++++
>> 1 file changed, 13 insertions(+)
>>
>> diff --git a/drivers/soc/qcom/rpmhpd.c b/drivers/soc/qcom/rpmhpd.c
>> index 092f6ab09acf..f70573cbc636 100644
>> --- a/drivers/soc/qcom/rpmhpd.c
>> +++ b/drivers/soc/qcom/rpmhpd.c
>> @@ -353,6 +353,19 @@ static const struct rpmhpd_desc sm8450_desc = {
>> .num_pds = ARRAY_SIZE(sm8450_rpmhpds),
>> };
>>
>> +/* QDU1000/QRU1000 RPMH powerdomains */
>> +static struct rpmhpd *qdru1000_rpmhpds[] = {
>> + [QDRU1000_CX] = &cx,
>> + [QDRU1000_EBI] = &ebi,
>> + [QDRU1000_MSS] = &mss,
>> + [QDRU1000_MX] = &mx,
>> +};
>> +
>> +static const struct rpmhpd_desc qdru1000_desc = {
>> + .rpmhpds = qdru1000_rpmhpds,
>> + .num_pds = ARRAY_SIZE(qdru1000_rpmhpds),
>> +};
>> +
> Looks like you missed adding a (or two) entires to rpmhpd_match_table.
So I did. Will add.
>
> Regards,
> Bjorn
>
>> /* SC7180 RPMH powerdomains */
>> static struct rpmhpd *sc7180_rpmhpds[] = {
>> [SC7180_CX] = &cx_w_mx_parent,
>> --
>> 2.37.3
>>
Thanks,
Melody