From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: Muralidhara M K <muralidhara.mk@amd.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
"Rafael J. Wysocki" <rafael@kernel.org>,
platform-driver-x86@vger.kernel.org,
LKML <linux-kernel@vger.kernel.org>,
driver-core@lists.linux.dev,
Muthusamy Ramalingam <muthusamy.ramalingam@amd.com>
Subject: Re: [PATCH v2 2/7] platform/x86/amd/hsmp: Add metrics table support for Family 1Ah Model 50h-5Fh
Date: Mon, 11 May 2026 20:38:28 +0300 (EEST) [thread overview]
Message-ID: <eea60cbe-1200-6c42-cfb6-f5eea88242ab@linux.intel.com> (raw)
In-Reply-To: <20260427155129.545327-3-muralidhara.mk@amd.com>
On Mon, 27 Apr 2026, Muralidhara M K wrote:
> Define the UAPI structures hsmp_metric_table_zen6_iod,
> hsmp_metric_table_zen6_ccd and the top-level hsmp_metric_table_zen6
> to describe the per-IOD and per-CCD metrics layout for AMD Family 1Ah
> Model 50h-5Fh processors (HSMP protocol version 7). These structures
> allow userspace tools to interpret the raw metric table binary exposed
> via sysfs.
>
> Widen the ACPI driver protocol version checks from
> == HSMP_PROTO_VER6 to >= HSMP_PROTO_VER6 so the metric table
> sysfs binary attribute is also created for protocol version 7 and
> future versions.
>
> Co-developed-by: Muthusamy Ramalingam <muthusamy.ramalingam@amd.com>
> Signed-off-by: Muthusamy Ramalingam <muthusamy.ramalingam@amd.com>
> Signed-off-by: Muralidhara M K <muralidhara.mk@amd.com>
> ---
> diff --git a/drivers/platform/x86/amd/hsmp/acpi.c b/drivers/platform/x86/amd/hsmp/acpi.c
> index 97ed71593bdf..8044df862275 100644
> --- a/drivers/platform/x86/amd/hsmp/acpi.c
> +++ b/drivers/platform/x86/amd/hsmp/acpi.c
> @@ -244,7 +244,7 @@ static ssize_t hsmp_metric_tbl_acpi_read(struct file *filp, struct kobject *kobj
> static umode_t hsmp_is_sock_attr_visible(struct kobject *kobj,
> const struct bin_attribute *battr, int id)
> {
> - if (hsmp_pdev->proto_ver == HSMP_PROTO_VER6)
> + if (hsmp_pdev->proto_ver >= HSMP_PROTO_VER6)
> return battr->attr.mode;
>
> return 0;
> @@ -491,7 +491,7 @@ static int init_acpi(struct device *dev)
> return ret;
> }
>
> - if (hsmp_pdev->proto_ver == HSMP_PROTO_VER6) {
> + if (hsmp_pdev->proto_ver >= HSMP_PROTO_VER6) {
> ret = hsmp_get_tbl_dram_base(sock_ind);
> if (ret)
> dev_info(dev, "Failed to init metric table\n");
I'm trying to understand is changing these checks safe at this point of
series, or should it be the last patch of the series? What will occur on
v7 hw when this patch is applied but not the rest of the series, are the
tables returned binary combatible with v6?
--
i.
prev parent reply other threads:[~2026-05-11 17:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20260427155129.545327-1-muralidhara.mk@amd.com>
[not found] ` <20260427155129.545327-4-muralidhara.mk@amd.com>
2026-05-08 5:13 ` [PATCH v2 3/7] platform/x86/amd/hsmp: Unify response_sz validation to an upper-bound check Suma Hegde
2026-05-11 11:20 ` [PATCH v2 0/7] AMD HSMP: metrics table improvements and Family 1Ah Model 50h-5Fh support M K, Muralidhara
[not found] ` <20260427155129.545327-7-muralidhara.mk@amd.com>
2026-05-11 17:27 ` [PATCH v2 6/7] platform/x86/amd/hsmp: Make metric table read locking use guard(mutex) Ilpo Järvinen
[not found] ` <20260427155129.545327-2-muralidhara.mk@amd.com>
2026-05-11 17:35 ` [PATCH v2 1/7] platform/x86/amd/hsmp: Add new HSMP messages for Family 1Ah, Model 50h-5Fh Ilpo Järvinen
[not found] ` <20260427155129.545327-3-muralidhara.mk@amd.com>
2026-05-08 5:12 ` [PATCH v2 2/7] platform/x86/amd/hsmp: Add metrics table support for Family 1Ah " Suma Hegde
2026-05-11 17:38 ` 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=eea60cbe-1200-6c42-cfb6-f5eea88242ab@linux.intel.com \
--to=ilpo.jarvinen@linux.intel.com \
--cc=driver-core@lists.linux.dev \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=muralidhara.mk@amd.com \
--cc=muthusamy.ramalingam@amd.com \
--cc=platform-driver-x86@vger.kernel.org \
--cc=rafael@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