From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: Mario Limonciello <mario.limonciello@amd.com>
Cc: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>,
Hans de Goede <hdegoede@redhat.com>,
markgross@kernel.org, Sanket.Goswami@amd.com,
platform-driver-x86@vger.kernel.org,
Mark Hasemeyer <markhas@chromium.org>
Subject: Re: [PATCH v4] platform/x86/amd/pmc: adjust getting DRAM size behavior
Date: Thu, 16 Nov 2023 19:15:12 +0200 (EET) [thread overview]
Message-ID: <7f838ef1-b554-1710-f62-aaed202a9cd1@linux.intel.com> (raw)
In-Reply-To: <db938696-6ac1-4ac5-9143-f3b54bd2cf40@amd.com>
On Thu, 16 Nov 2023, Mario Limonciello wrote:
> On 11/16/2023 11:01, Shyam Sundar S K wrote:
> > amd_pmc_get_dram_size() is used to get the DRAM size information. But in
> > the current code, mailbox command to get the DRAM size info is sent based
> > on the values of dev->major and dev->minor.
> >
> > But dev->major and dev->minor will have either junk or zero assigned to
> > them until at least once a call to amd_pmc_get_smu_version() is made which
> > ideally populates dev->major and dev->minor.
> >
> > Ideally to suffice this, adding a amd_pmc_get_smu_version() call to
> > amd_pmc_get_dram_size() would solve, but that has a downside of elevating
> > the boot times.
> >
> > After talking to the PMFW team, its understood that the "get dram size"
> > mbox command would only be supported on specific platforms (like Mendocino)
> > and not all. So, adjust getting DRAM size behavior such that,
> >
> > - if that's Rembrandt or Mendocino and the underlying PMFW knows how
> > to execute the "get dram size" command it shall give the custom dram size.
> >
> > - if the underlying FW does not report the dram size, we just proceed
> > further and assign the default dram size.
> >
> > Simplest way to address this is to remove amd_pmc_get_dram_size() function
> > and directly call the "get dram size" command in the amd_pmc_s2d_init().
> >
> > Reported-by: Mark Hasemeyer <markhas@chromium.org>
> > Closes:
> > https://lore.kernel.org/platform-driver-x86/3b224c62-a1d8-41bd-aced-5825f5f20e66@amd.com/
> > Fixes: be8325fb3d8c ("platform/x86/amd: pmc: Get STB DRAM size from PMFW")
> > Suggested-by: Sanket Goswami <Sanket.Goswami@amd.com>
> > Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
>
> Ilpo when committing can you please add a stable tag for this?
>
> Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
I'll add it, thanks.
--
i.
next prev parent reply other threads:[~2023-11-16 17:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-16 17:01 [PATCH v4] platform/x86/amd/pmc: adjust getting DRAM size behavior Shyam Sundar S K
2023-11-16 17:05 ` Mario Limonciello
2023-11-16 17:15 ` Ilpo Järvinen [this message]
2023-11-17 10:11 ` Ilpo Järvinen
2023-11-20 6:52 ` Shyam Sundar S K
2023-11-20 8:03 ` Ilpo Järvinen
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=7f838ef1-b554-1710-f62-aaed202a9cd1@linux.intel.com \
--to=ilpo.jarvinen@linux.intel.com \
--cc=Sanket.Goswami@amd.com \
--cc=Shyam-sundar.S-k@amd.com \
--cc=hdegoede@redhat.com \
--cc=mario.limonciello@amd.com \
--cc=markgross@kernel.org \
--cc=markhas@chromium.org \
--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