platform-driver-x86.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: Mario Limonciello <mario.limonciello@amd.com>
Cc: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>,
	 Hans de Goede <hdegoede@redhat.com>,
	Sanket.Goswami@amd.com,  platform-driver-x86@vger.kernel.org
Subject: Re: [PATCH] platform/x86/amd/pmc: Extend support for PMC features on new AMD platform
Date: Wed, 21 Aug 2024 20:54:37 +0300 (EEST)	[thread overview]
Message-ID: <b81c2300-f18f-7087-8531-ce7bbe3a03be@linux.intel.com> (raw)
In-Reply-To: <ed50679e-114f-4e7b-8465-1b8d4e0622d9@amd.com>

On Wed, 21 Aug 2024, Mario Limonciello wrote:

> On 8/21/2024 10:04, Shyam Sundar S K wrote:
> > PMC driver has capability to get the IP information, idle mask values and
> > STB data from the PMFW. Extend this support to the platforms that belong
> > to family 1Ah model 60h series.
> > 
> > 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>
> 
> Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
> 
> This is actually a fix for another commit in 6.11.  Hans, Ilpo, can you please
> take it in fixes?
> 
> Fixes: 426463d94d45d ("platform/x86/amd/pmc: Send OS_HINT command for new AMD
> platform")

For that, a proper justification is necessary in the commit message (but 
I guess Shyam was going to improve that too while respinning given the 
other replies).

-- 
 i.

> > ---
> >   drivers/platform/x86/amd/pmc/pmc.c | 3 +++
> >   1 file changed, 3 insertions(+)
> > 
> > diff --git a/drivers/platform/x86/amd/pmc/pmc.c
> > b/drivers/platform/x86/amd/pmc/pmc.c
> > index c3e51f0a5c33..bbb8edb62e00 100644
> > --- a/drivers/platform/x86/amd/pmc/pmc.c
> > +++ b/drivers/platform/x86/amd/pmc/pmc.c
> > @@ -359,6 +359,7 @@ static void amd_pmc_get_ip_info(struct amd_pmc_dev *dev)
> >   		dev->smu_msg = 0x538;
> >   		break;
> >   	case PCI_DEVICE_ID_AMD_1AH_M20H_ROOT:
> > +	case PCI_DEVICE_ID_AMD_1AH_M60H_ROOT:
> >   		dev->num_ips = 22;
> >   		dev->s2d_msg_id = 0xDE;
> >   		dev->smu_msg = 0x938;
> > @@ -597,6 +598,7 @@ static int amd_pmc_idlemask_read(struct amd_pmc_dev
> > *pdev, struct device *dev,
> >   		val = amd_pmc_reg_read(pdev, AMD_PMC_SCRATCH_REG_YC);
> >   		break;
> >   	case PCI_DEVICE_ID_AMD_1AH_M20H_ROOT:
> > +	case PCI_DEVICE_ID_AMD_1AH_M60H_ROOT:
> >   		val = amd_pmc_reg_read(pdev, AMD_PMC_SCRATCH_REG_1AH);
> >   		break;
> >   	default:
> > @@ -630,6 +632,7 @@ static bool amd_pmc_is_stb_supported(struct amd_pmc_dev
> > *dev)
> >   	case AMD_CPU_ID_CB:
> >   	case AMD_CPU_ID_PS:
> >   	case PCI_DEVICE_ID_AMD_1AH_M20H_ROOT:
> > +	case PCI_DEVICE_ID_AMD_1AH_M60H_ROOT:
> >   		return true;
> >   	default:
> >   		return false;
> 

      parent reply	other threads:[~2024-08-21 17:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-21 15:04 [PATCH] platform/x86/amd/pmc: Extend support for PMC features on new AMD platform Shyam Sundar S K
2024-08-21 16:48 ` Mario Limonciello
2024-08-21 17:40   ` Shyam Sundar S K
2024-08-21 17:42     ` Mario Limonciello
2024-08-21 17:44       ` Shyam Sundar S K
2024-08-21 17:54   ` Ilpo Järvinen [this message]

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=b81c2300-f18f-7087-8531-ce7bbe3a03be@linux.intel.com \
    --to=ilpo.jarvinen@linux.intel.com \
    --cc=Sanket.Goswami@amd.com \
    --cc=Shyam-sundar.S-k@amd.com \
    --cc=hdegoede@redhat.com \
    --cc=mario.limonciello@amd.com \
    --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;
as well as URLs for NNTP newsgroup(s).