X86 platform drivers
 help / color / mirror / Atom feed
From: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
To: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
Cc: hdegoede@redhat.com, markgross@kernel.org,
	Sanket.Goswami@amd.com, mario.limonciello@amd.com,
	platform-driver-x86@vger.kernel.org
Subject: Re: [PATCH v3 3/4] platform/x86/amd: pmc: Add helper function to check the cpu id
Date: Thu, 25 May 2023 15:16:55 +0530	[thread overview]
Message-ID: <378b7e91-3b14-c6fa-036a-c91a30ab4665@amd.com> (raw)
In-Reply-To: <d4e98445-d2f2-10f7-7f62-9bcb16deef79@linux.intel.com>



On 5/23/2023 1:56 PM, Ilpo Järvinen wrote:
> On Tue, 16 May 2023, Shyam Sundar S K wrote:
> 
>> Add a helper routine to check the underlying cpu id, that can be used
>> across the PMC driver to remove the duplicate code.
>>
>> Co-developed-by: Sanket Goswami <Sanket.Goswami@amd.com>
>> Signed-off-by: Sanket Goswami <Sanket.Goswami@amd.com>
>> Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
>> ---
>>  drivers/platform/x86/amd/pmc.c | 17 ++++++++++++++---
>>  1 file changed, 14 insertions(+), 3 deletions(-)
>>
>> diff --git a/drivers/platform/x86/amd/pmc.c b/drivers/platform/x86/amd/pmc.c
>> index e2439fda5c02..7e5e6afb3410 100644
>> --- a/drivers/platform/x86/amd/pmc.c
>> +++ b/drivers/platform/x86/amd/pmc.c
>> @@ -564,6 +564,18 @@ static void amd_pmc_dbgfs_unregister(struct amd_pmc_dev *dev)
>>  	debugfs_remove_recursive(dev->dbgfs_dir);
>>  }
>>  
>> +static bool amd_pmc_check_sup_cpuid(struct amd_pmc_dev *dev)
> 
> Does sup refer to "supported" or some other acronym? If the latter,

Yes, please read that as "supported"

> you should mention/open it in the changelog and/or in a comment. If the 
> former, the function naming seems too generic (an observation entirely 
> based on how/where the function is used, you're not exactly verbose on 
> what this actually checks for other than what looks like a set of CPU 
> IDs but clearly there's more behind it).

OK. renaming the function as amd_pmc_is_cpu_supported() would be fine?

> 

  reply	other threads:[~2023-05-25  9:47 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-16  9:13 [PATCH v3 0/4] Updates to AMD PMC driver Shyam Sundar S K
2023-05-16  9:13 ` [PATCH v3 1/4] platform/x86/amd: pmc: Pass true/false to bool argument Shyam Sundar S K
2023-05-23  8:10   ` Ilpo Järvinen
2023-05-16  9:13 ` [PATCH v3 2/4] platform/x86/amd: pmc: Get STB DRAM size from PMFW Shyam Sundar S K
2023-05-23  8:15   ` Ilpo Järvinen
2023-05-16  9:13 ` [PATCH v3 3/4] platform/x86/amd: pmc: Add helper function to check the cpu id Shyam Sundar S K
2023-05-23  8:26   ` Ilpo Järvinen
2023-05-25  9:46     ` Shyam Sundar S K [this message]
2023-05-25  9:50       ` Hans de Goede
2023-05-25  9:59       ` Ilpo Järvinen
2023-05-25 10:21         ` Shyam Sundar S K
2023-05-25 10:44           ` Ilpo Järvinen
2023-05-25 11:25             ` Shyam Sundar S K
2023-05-25 11:58               ` Ilpo Järvinen
2023-05-25 12:19                 ` Shyam Sundar S K
2023-05-16  9:13 ` [PATCH v3 4/4] platform/x86/amd: pmc: Update metrics table info for Pink Sardine Shyam Sundar S K
2023-05-23  8:31   ` Ilpo Järvinen
2023-05-23 10:36 ` [PATCH v3 0/4] Updates to AMD PMC driver Hans de Goede

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=378b7e91-3b14-c6fa-036a-c91a30ab4665@amd.com \
    --to=shyam-sundar.s-k@amd.com \
    --cc=Sanket.Goswami@amd.com \
    --cc=hdegoede@redhat.com \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=mario.limonciello@amd.com \
    --cc=markgross@kernel.org \
    --cc=platform-driver-x86@vger.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