From: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
To: Reza Arbab <arbab@linux.ibm.com>
Cc: "Madhavan Srinivasan" <maddy@linux.ibm.com>,
"Dan Horák" <dan@danny.cz>,
"Mahesh J Salgaonkar" <mahesh@linux.ibm.com>,
"Kajol Jain" <kjain@linux.ibm.com>,
skiboot@lists.ozlabs.org, "Disha Goel" <disgoel@linux.ibm.com>,
linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH V5 3/3] skiboot: Update IMC PMU node names for power10
Date: Mon, 11 Sep 2023 10:31:31 +0530 [thread overview]
Message-ID: <7B2C376F-4326-4C79-9EEA-FD1EC2E677FC@linux.vnet.ibm.com> (raw)
In-Reply-To: <f45ca55e-7d63-451a-9763-d3a6b8196179@arbab-laptop>
> On 10-Aug-2023, at 3:28 AM, Reza Arbab <arbab@linux.ibm.com> wrote:
>
> On Mon, Jul 17, 2023 at 08:54:31AM +0530, Athira Rajeev wrote:
>> @@ -408,14 +469,129 @@ static void disable_unavailable_units(struct dt_node *dev)
>> avl_vec = (0xffULL) << 56;
>> }
>>
>> - for (i = 0; i < ARRAY_SIZE(nest_pmus); i++) {
>> - if (!(PPC_BITMASK(i, i) & avl_vec)) {
>> - /* Check if the device node exists */
>> - target = dt_find_by_name_before_addr(dev, nest_pmus[i]);
>> - if (!target)
>> - continue;
>> - /* Remove the device node */
>> - dt_free(target);
>> + if (proc_gen == proc_gen_p9) {
>> + for (i = 0; i < ARRAY_SIZE(nest_pmus_p9); i++) {
>> + if (!(PPC_BITMASK(i, i) & avl_vec)) {
>
> I think all these PPC_BITMASK(i, i) can be changed to PPC_BIT(i).
Hi Reza,
Thanks for reviewing the changes.
Yes. I will add the change in next version
Thanks
Athira
>
>> + /* Check if the device node exists */
>> + target = dt_find_by_name_before_addr(dev, nest_pmus_p9[i]);
>> + if (!target)
>> + continue;
>> + /* Remove the device node */
>> + dt_free(target);
>> + }
>> + }
>> + } else if (proc_gen == proc_gen_p10) {
>> + int val;
>> + char name[8];
>> +
>> + for (i = 0; i < 11; i++) {
>> + if (!(PPC_BITMASK(i, i) & avl_vec)) {
>> + /* Check if the device node exists */
>> + target = dt_find_by_name_before_addr(dev, nest_pmus_p10[i]);
>> + if (!target)
>> + continue;
>> + /* Remove the device node */
>> + dt_free(target);
>> + }
>> + }
>> +
>> + for (i = 35; i < 41; i++) {
>> + if (!(PPC_BITMASK(i, i) & avl_vec)) {
>> + /* Check if the device node exists for phb */
>> + for (j = 0; j < 3; j++) {
>> + snprintf(name, sizeof(name), "phb%d_%d", (i-35), j);
>> + target = dt_find_by_name_before_addr(dev, name);
>> + if (!target)
>> + continue;
>> + /* Remove the device node */
>> + dt_free(target);
>> + }
>> + }
>> + }
>> +
>> + for (i = 41; i < 58; i++) {
>> + if (!(PPC_BITMASK(i, i) & avl_vec)) {
>> + /* Check if the device node exists */
>> + target = dt_find_by_name_before_addr(dev, nest_pmus_p10[i]);
>> + if (!target)
>> + continue;
>> + /* Remove the device node */
>> + dt_free(target);
>> + }
>> + }
>
> --
> Reza Arbab
next prev parent reply other threads:[~2023-09-11 5:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-17 3:24 [PATCH V5 1/3] core/device: Add function to return child node using name at substring "@" Athira Rajeev
2023-07-17 3:24 ` [PATCH V5 2/3] skiboot: Update IMC code to use dt_find_by_name_before_addr for checking dt nodes Athira Rajeev
2023-07-17 3:24 ` [PATCH V5 3/3] skiboot: Update IMC PMU node names for power10 Athira Rajeev
2023-08-09 21:58 ` Reza Arbab
2023-09-11 5:01 ` Athira Rajeev [this message]
2023-08-09 21:51 ` [PATCH V5 1/3] core/device: Add function to return child node using name at substring "@" Reza Arbab
2023-09-11 5:15 ` Athira Rajeev
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=7B2C376F-4326-4C79-9EEA-FD1EC2E677FC@linux.vnet.ibm.com \
--to=atrajeev@linux.vnet.ibm.com \
--cc=arbab@linux.ibm.com \
--cc=dan@danny.cz \
--cc=disgoel@linux.ibm.com \
--cc=kjain@linux.ibm.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=maddy@linux.ibm.com \
--cc=mahesh@linux.ibm.com \
--cc=skiboot@lists.ozlabs.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;
as well as URLs for NNTP newsgroup(s).