From: "Ramalingam, Muthusamy" <muthus@amd.com>
To: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
Cc: Muthusamy Ramalingam <muthusamy.ramalingam@amd.com>,
Hans de Goede <hansg@kernel.org>,
platform-driver-x86@vger.kernel.org,
LKML <linux-kernel@vger.kernel.org>,
Muralidhara M K <muralimk@amd.com>
Subject: Re: [PATCH 2/2] platform/x86/amd/hsmp: Add support for variable-sized metrics tables
Date: Wed, 1 Apr 2026 17:27:24 +0530 [thread overview]
Message-ID: <405ec857-3035-46cb-b3d2-4f3808561ca4@amd.com> (raw)
In-Reply-To: <6ca38d8c-6419-57fa-cc08-50cd53e8408a@linux.intel.com>
Hi Ilpo,
Thanks for input.
On 01-04-2026 04:59 pm, Ilpo Järvinen wrote:
> On Wed, 1 Apr 2026, Ramalingam, Muthusamy wrote:
>
>> Hi Ilpo,
>>
>> Thank you for the suggestions. I will update version v2 shortly to address the
>> comments listed below.
>>
>> On 31-03-2026 02:13 pm, Ilpo Järvinen wrote:
>>> On Thu, 5 Mar 2026, Muthusamy Ramalingam wrote:
>>>
>>>> Add support for the new metrics table format introduced in AMD Family 1Ah
>>>> Model 50h-5Fh processors with HSMP protocol version 7.
>>>>
>>>> Use CPU family/model and protocol versions to map respective
>>>> variable-sized
>>>> metric table configurations.
>>>> The exported hsmp_metric_tbl_read() function provides offset support for
>>>> variable-sized tables.
>>>
>>> This patch should be split into multiple changes.
>> Sure.
>>>
>>>> Co-developed-by: Muralidhara M K <muralimk@amd.com>
>>>> Signed-off-by: Muralidhara M K <muralimk@amd.com>
>>>> Signed-off-by: Muthusamy Ramalingam <muthusamy.ramalingam@amd.com>
>>>> ---
>>>> arch/x86/include/uapi/asm/amd_hsmp.h | 86 ++++++++++++++++++++++++++++
>>>> drivers/platform/x86/amd/hsmp/acpi.c | 9 +--
>>>> drivers/platform/x86/amd/hsmp/hsmp.c | 83 ++++++++++++++++++++++-----
>>>> drivers/platform/x86/amd/hsmp/hsmp.h | 3 +-
>>>> drivers/platform/x86/amd/hsmp/plat.c | 3 +-
>>>> 5 files changed, 164 insertions(+), 20 deletions(-)
>>>>
>>>> --- a/drivers/platform/x86/amd/hsmp/acpi.c
>>>> +++ b/drivers/platform/x86/amd/hsmp/acpi.c
>
>>>> @@ -403,8 +424,44 @@ int hsmp_get_tbl_dram_base(u16 sock_ind)
>>>> dev_err(sock->dev, "Invalid DRAM address for metric table\n");
>>>> return -ENOMEM;
>>>> }
>>>> - sock->metric_tbl_addr = devm_ioremap(sock->dev, dram_addr,
>>>> - sizeof(struct
>>>> hsmp_metric_table));
>>>> +
>>>> + /* Get metric table version */
>>>> + msg_tbl_ver.sock_ind = sock_ind;
>>>> + msg_tbl_ver.response_sz =
>>>> hsmp_msg_desc_table[HSMP_GET_METRIC_TABLE_VER].response_sz;
>>>> + msg_tbl_ver.msg_id = HSMP_GET_METRIC_TABLE_VER;
>>>> +
>>>> + ret = hsmp_send_message(&msg_tbl_ver);
>>>> + if (ret)
>>>> + return ret;
>>>> +
>>>> + table_ver = msg_tbl_ver.args[0];
>>>> +
>>>> + hsmp_pdev.hsmp_table_size = 0;
>>>
>>> Is this necessary?
>>
>> Yes, We want this for unsupported family check.
>
> Isn't this initialized to its default value which is 0? So why it needs to
> be explicitly done again?
you are right, I will verify once and update in v2.
>
prev parent reply other threads:[~2026-04-01 11:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-05 10:50 [PATCH 0/2] platform/x86/amd/hsmp: Add Family 1Ah Model 50h-5Fh support Muthusamy Ramalingam
2026-03-05 10:50 ` [PATCH 1/2] platform/x86/amd/hsmp: Add new HSMP messages for Family 1Ah, Model 50h-5Fh Muthusamy Ramalingam
2026-03-05 10:50 ` [PATCH 2/2] platform/x86/amd/hsmp: Add support for variable-sized metrics tables Muthusamy Ramalingam
2026-03-31 8:43 ` Ilpo Järvinen
2026-04-01 11:20 ` Ramalingam, Muthusamy
2026-04-01 11:29 ` Ilpo Järvinen
2026-04-01 11:57 ` Ramalingam, Muthusamy [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=405ec857-3035-46cb-b3d2-4f3808561ca4@amd.com \
--to=muthus@amd.com \
--cc=hansg@kernel.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=muralimk@amd.com \
--cc=muthusamy.ramalingam@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
all inboxes | Powered by JetHome®