All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: Suma Hegde <suma.hegde@amd.com>
Cc: platform-driver-x86@vger.kernel.org,
	Hans de Goede <hdegoede@redhat.com>,
	 Naveen Krishna Chatradhi <nchatrad@amd.com>
Subject: Re: [PATCH v3 7/7] platform/x86: Non-ACPI support for AMD F1A_M00~0Fh
Date: Fri, 22 Dec 2023 10:24:22 +0200 (EET)	[thread overview]
Message-ID: <3ee53cf-2cc-7e43-e8c0-46fa5b203f90@linux.intel.com> (raw)
In-Reply-To: <20231221172114.1569559-7-suma.hegde@amd.com>

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

On Thu, 21 Dec 2023, Suma Hegde wrote:

> AMD EPYC family 0x1A and Model 0x0-0xF are having different
> mailbox message ID offset compared to previous
> platforms. In case of ACPI based BIOS, this information will be read
> from ACPI table, for non-ACPI BIOS, this needs to be #defined.
> 
> Signed-off-by: Suma Hegde <suma.hegde@amd.com>
> Signed-off-by: Naveen Krishna Chatradhi <nchatrad@amd.com>
> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
> Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
> 
> ---
> Changes since v1:
> Add "Reviewed-by: Hans de Goede <hdegoede@redhat.com>"
> Changes since v2:
> 1. Change "non ACPI" to "non-ACPI"
> 2. Add "Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>"
> 
>  drivers/platform/x86/amd/hsmp.c | 23 +++++++++++++++++++++--
>  1 file changed, 21 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/platform/x86/amd/hsmp.c b/drivers/platform/x86/amd/hsmp.c
> index 46924c572055..cc5e5e8124c9 100644
> --- a/drivers/platform/x86/amd/hsmp.c
> +++ b/drivers/platform/x86/amd/hsmp.c
> @@ -44,6 +44,7 @@
>   */
>  #define SMN_HSMP_BASE		0x3B00000
>  #define SMN_HSMP_MSG_ID		0x0010534
> +#define SMN_HSMP_MSG_ID_F1A_M0H	0x0010934
>  #define SMN_HSMP_MSG_RESP	0x0010980
>  #define SMN_HSMP_MSG_DATA	0x00109E0
>  
> @@ -712,6 +713,15 @@ static int hsmp_cache_proto_ver(u16 sock_ind)
>  	return ret;
>  }
>  
> +static inline bool is_f1a_m0h(void)
> +{
> +	if (boot_cpu_data.x86 == 0x1A &&
> +	    (boot_cpu_data.x86_model >= 0x00 && boot_cpu_data.x86_model <= 0x0F))
> +		return true;
> +
> +	return false;
> +}
> +
>  static int init_socket_objects(struct device *dev)
>  {
>  	struct hsmp_socket *sock;
> @@ -725,10 +735,19 @@ static int init_socket_objects(struct device *dev)
>  		sock->sock_ind			= i;
>  		sock->dev			= dev;
>  		sock->mbinfo.base_addr		= SMN_HSMP_BASE;
> -		sock->mbinfo.msg_id_off		= SMN_HSMP_MSG_ID;
> +		sema_init(&sock->hsmp_sem, 1);
> +
> +		/*
> +		 * This is a tranisitional change from non-ACPI to ACPI, only

transitional ?


-- 
 i.

  reply	other threads:[~2023-12-22  8:24 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-21 17:21 [PATCH v3 1/7] platform/x86: Move hsmp_test to probe Suma Hegde
2023-12-21 17:21 ` [PATCH v3 2/7] platform/x86: Cache pci_dev in struct hsmp_socket Suma Hegde
2023-12-21 17:21 ` [PATCH v3 3/7] platform/x86: Create static func to handle platdev Suma Hegde
2023-12-21 17:21 ` [PATCH v3 4/7] platform/x86: Define a struct to hold mailbox regs Suma Hegde
2023-12-21 17:21 ` [PATCH v3 5/7] platform/x86: Move dev from platdev to hsmp_socket Suma Hegde
2023-12-21 17:21 ` [PATCH v3 6/7] platform/x86: Convert to ACPI based probing Suma Hegde
2023-12-22  8:51   ` Ilpo Järvinen
2024-01-02 12:41     ` Hans de Goede
2024-01-02 13:24       ` Hegde, Suma
2023-12-21 17:21 ` [PATCH v3 7/7] platform/x86: Non-ACPI support for AMD F1A_M00~0Fh Suma Hegde
2023-12-22  8:24   ` Ilpo Järvinen [this message]
2023-12-21 17:27 ` [PATCH v3 1/7] platform/x86: Move hsmp_test to probe Thomas Weißschuh 
2023-12-21 20:20   ` Hans de Goede
2023-12-22  6:43     ` Hegde, Suma

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=3ee53cf-2cc-7e43-e8c0-46fa5b203f90@linux.intel.com \
    --to=ilpo.jarvinen@linux.intel.com \
    --cc=hdegoede@redhat.com \
    --cc=nchatrad@amd.com \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=suma.hegde@amd.com \
    /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.