All of lore.kernel.org
 help / color / mirror / Atom feed
From: Song Liu <song@kernel.org>
To: "Chatradhi, Naveen Krishna" <nchatrad@amd.com>
Cc: Nathan Fontenot <nafonten@amd.com>,
	platform-driver-x86@vger.kernel.org,
	Hans de Goede <hdegoede@redhat.com>,
	carlos.bilbao@amd.com, siva.sathappan@amd.com,
	suma.hegde@amd.com
Subject: Re: [PATCH v4 1/2] platforms/x86: Add AMD system management interface
Date: Mon, 14 Feb 2022 09:21:28 -0800	[thread overview]
Message-ID: <CAPhsuW5OMLcFWt8iUu0K57iSvxGME=Dj1PCO8VZ0QL1gHZ-dpw@mail.gmail.com> (raw)
In-Reply-To: <2549f688-c148-f893-1fe0-52a09a8fb1d5@amd.com>

On Mon, Feb 14, 2022 at 7:32 AM Chatradhi, Naveen Krishna
<nchatrad@amd.com> wrote:
>
> Hi Song,
>
> On 2/11/2022 3:10 AM, Song Liu wrote:
[...]
>
> HSMP mailbox messages are evolving and each platform defines a supported
> list of messages.
>
> On a given platform these messages are described in the PPR.
>
> Eg: Milan PPR has "7 Host System Management Port (HSMP)", is made public
>
> https://www.amd.com/system/files/TechDocs/55898_B1_pub_0.50.zip
>
>
> Bringing detailed description of these messages from PPR into the kernel
> would be a
>
> duplicating effort. Which will also bring in challenges such as
> maintaining the details
>
> for every supported platform and submitting kernel patches for every
> platform.
>
>
> We would like to avoid bringing more details of these messages to the
> kernel documentation.
>
> Such a structure can be described as part of esmi_oob_library to ease
> user space tool development.

I agree there is  extra effort to adding extra logic and documentations to
the kernel. How about we ship current version with a few minor changes:
1). msg_desc_table is in the header, so please prefix it with hsmp_
2) as Nathan suggested, add more comments to msg_desc_table. Maybe
something like:
/*
 * HSMP_GET_FCLK_MCLK,
 * output arg0 = fclk (MHz); arg1 = mclk (MHz)
 */
{0, 2, GET},

Besides these, I have a question. Per the hardware design, args and
reponse in hsmp_message share the same registers. Shall we make
them in/out argments in hsmp_message and save 256 bytes per
hsmp_message?

Thanks,
Song

  reply	other threads:[~2022-02-14 17:21 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-09 18:44 [PATCH v4 1/2] platforms/x86: Add AMD system management interface Naveen Krishna Chatradhi
2022-02-09 18:44 ` [PATCH v4 2/2] Documentation: Add x86/amd_hsmp driver Naveen Krishna Chatradhi
2022-02-09 21:08 ` [PATCH v4 1/2] platforms/x86: Add AMD system management interface Nathan Fontenot
2022-02-10  1:10   ` Song Liu
2022-02-10 19:52     ` Nathan Fontenot
2022-02-10 20:32       ` Song Liu
2022-02-10 20:42         ` Nathan Fontenot
2022-02-10 21:40           ` Song Liu
2022-02-14 15:32             ` Chatradhi, Naveen Krishna
2022-02-14 17:21               ` Song Liu [this message]
2022-02-15 17:24                 ` Nathan Fontenot
2022-02-15 18:21                   ` Song Liu
2022-02-16 13:42                     ` Chatradhi, Naveen Krishna

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='CAPhsuW5OMLcFWt8iUu0K57iSvxGME=Dj1PCO8VZ0QL1gHZ-dpw@mail.gmail.com' \
    --to=song@kernel.org \
    --cc=carlos.bilbao@amd.com \
    --cc=hdegoede@redhat.com \
    --cc=nafonten@amd.com \
    --cc=nchatrad@amd.com \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=siva.sathappan@amd.com \
    --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.