All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Cc: hdegoede@redhat.com, ilpo.jarvinen@linux.intel.com,
	 platform-driver-x86@vger.kernel.org, Patil.Reddy@amd.com
Subject: Re: [PATCH v3 1/2] platform/x86/amd/pmf: Relocate CPU ID macros to the PMF header
Date: Wed, 14 Aug 2024 14:00:40 +0300 (EEST)	[thread overview]
Message-ID: <b0b503f5-e257-064b-9695-a2a3d2ca62e0@linux.intel.com> (raw)
In-Reply-To: <20240813133540.367384-1-Shyam-sundar.S-k@amd.com>

[-- Attachment #1: Type: text/plain, Size: 1964 bytes --]

On Tue, 13 Aug 2024, Shyam Sundar S K wrote:

> The CPU ID macros are needed by the Smart PC builder. Therefore, transfer
> the CPU ID macros from core.c to the common PMF header file.
> 
> Co-developed-by: Patil Rajesh Reddy <Patil.Reddy@amd.com>
> Signed-off-by: Patil Rajesh Reddy <Patil.Reddy@amd.com>
> Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
> ---
> v3:
>  - No change
> 
> v2:
>  - No change
> 
>  drivers/platform/x86/amd/pmf/core.c | 6 ------
>  drivers/platform/x86/amd/pmf/pmf.h  | 6 ++++++
>  2 files changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/platform/x86/amd/pmf/core.c b/drivers/platform/x86/amd/pmf/core.c
> index 8f1f719befa3..88314b0277a3 100644
> --- a/drivers/platform/x86/amd/pmf/core.c
> +++ b/drivers/platform/x86/amd/pmf/core.c
> @@ -37,12 +37,6 @@
>  #define AMD_PMF_RESULT_CMD_UNKNOWN           0xFE
>  #define AMD_PMF_RESULT_FAILED                0xFF
>  
> -/* List of supported CPU ids */
> -#define AMD_CPU_ID_RMB			0x14b5
> -#define AMD_CPU_ID_PS			0x14e8
> -#define PCI_DEVICE_ID_AMD_1AH_M20H_ROOT	0x1507
> -#define PCI_DEVICE_ID_AMD_1AH_M60H_ROOT	0x1122
> -
>  #define PMF_MSG_DELAY_MIN_US		50
>  #define RESPONSE_REGISTER_LOOP_MAX	20000
>  
> diff --git a/drivers/platform/x86/amd/pmf/pmf.h b/drivers/platform/x86/amd/pmf/pmf.h
> index 9bf4326d06c3..9fc26f672f12 100644
> --- a/drivers/platform/x86/amd/pmf/pmf.h
> +++ b/drivers/platform/x86/amd/pmf/pmf.h
> @@ -19,6 +19,12 @@
>  #define POLICY_SIGN_COOKIE		0x31535024
>  #define POLICY_COOKIE_OFFSET		0x10
>  
> +/* List of supported CPU ids */
> +#define AMD_CPU_ID_RMB                  0x14b5
> +#define AMD_CPU_ID_PS                   0x14e8
> +#define PCI_DEVICE_ID_AMD_1AH_M20H_ROOT 0x1507
> +#define PCI_DEVICE_ID_AMD_1AH_M60H_ROOT 0x1122
> +
>  struct cookie_header {
>  	u32 sign;
>  	u32 length;
> 

Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>

-- 
 i.

      parent reply	other threads:[~2024-08-14 11:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-13 13:35 [PATCH v3 1/2] platform/x86/amd/pmf: Relocate CPU ID macros to the PMF header Shyam Sundar S K
2024-08-13 13:35 ` [PATCH v3 2/2] platform/x86/amd/pmf: Update SMU metrics table for 1AH family series Shyam Sundar S K
2024-08-14 11:00   ` Ilpo Järvinen
2024-08-19  6:16     ` Shyam Sundar S K
2024-08-14 11:00 ` 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=b0b503f5-e257-064b-9695-a2a3d2ca62e0@linux.intel.com \
    --to=ilpo.jarvinen@linux.intel.com \
    --cc=Patil.Reddy@amd.com \
    --cc=Shyam-sundar.S-k@amd.com \
    --cc=hdegoede@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.