From: Yazen Ghannam <yazen.ghannam@amd.com>
To: Borislav Petkov <bp@alien8.de>
Cc: yazen.ghannam@amd.com, linux-edac@vger.kernel.org,
linux-kernel@vger.kernel.org, tony.luck@intel.com,
x86@kernel.org, avadhut.naik@amd.com, john.allen@amd.com,
william.roche@oracle.com, muralidhara.mk@amd.com
Subject: Re: [PATCH v3 1/3] RAS: Introduce AMD Address Translation Library
Date: Wed, 13 Dec 2023 12:04:04 -0500 [thread overview]
Message-ID: <58d1f6a6-458d-44d1-8bcb-adb90aab50a5@amd.com> (raw)
In-Reply-To: <20231213164837.GHZXngZW3TYvBN41Ma@fat_crate.local>
On 12/13/2023 11:48 AM, Borislav Petkov wrote:
> On Wed, Dec 13, 2023 at 10:35:55AM -0500, Yazen Ghannam wrote:
>> I agree in principle. But I don't think it hurts to include an additional
>> line to avoid the confusion when the module doesn't load.
>
> It does hurt because this turns into constant family updating the moment
> a new family appears. This is one of the major reasons why we do CPUID
> bits.
>
>> Also, the SMCA feature is used here as a short-cut to match on systems with
>> a Data Fabric. We could use the Zen feature in the same way.
>
> We could.
>
> What is the main description of the environment an ATL library belongs
> into: a SMCA system or a Zen-based system?
>
Systems with an AMD Data Fabric.
I wrote up this comment for the amd_atl_cpuids[].
/*
This library provides functionality for AMD-based systems with a Data
Fabric. The set of systems with a Data Fabric is equivalent to the set
of Zen-based systems and the set of systems with the Scalable MCA
feature at this time. However, these are technically independent things.
It's possible to match on the PCI IDs of the Data Fabric devices, but
this will be an ever-expanding list. Instead match on the SMCA and Zen
features to cover all relevant systems.
*/
We could also introduce another software feature bit for Data Fabrics
"DF". And this could be set when we discover them, like in the AMD_NB code.
Thoughts?
The library init has three checks for system support. Comments added here.
// Load on systems with Data Fabrics (ZEN || SMCA).
// Filters out legacy systems.
if (!x86_match_cpu(amd_atl_cpuids))
return -ENODEV;
// Make sure the kernel recognizes this system's Data Fabric.
// Filters out new hardware.
if (!amd_nb_num())
return -ENODEV;
...
// Make sure the library supports this Data Fabric revision.
// Filters out totally new logic that requires library updates.
if (get_df_system_info())
return -ENODEV;
Thanks,
Yazen
next prev parent reply other threads:[~2023-12-13 17:04 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-10 19:49 [PATCH v3 0/3] AMD Address Translation Library Yazen Ghannam
2023-12-10 19:49 ` [PATCH v3 1/3] RAS: Introduce " Yazen Ghannam
2023-12-11 14:20 ` Borislav Petkov
2023-12-11 15:28 ` Yazen Ghannam
2023-12-11 19:57 ` Borislav Petkov
2023-12-12 14:23 ` Yazen Ghannam
2023-12-12 15:34 ` Borislav Petkov
2023-12-13 15:35 ` Yazen Ghannam
2023-12-13 16:48 ` Borislav Petkov
2023-12-13 17:04 ` Yazen Ghannam [this message]
2023-12-13 17:07 ` Borislav Petkov
2023-12-12 13:29 ` Borislav Petkov
2023-12-12 14:33 ` Yazen Ghannam
2023-12-12 16:07 ` Borislav Petkov
2023-12-14 10:54 ` Borislav Petkov
2023-12-14 14:30 ` Borislav Petkov
2023-12-10 19:49 ` [PATCH v3 2/3] EDAC/amd64: Use new " Yazen Ghannam
2023-12-10 19:49 ` [PATCH v3 3/3] Documentation: RAS: Add index and address translation section Yazen Ghannam
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=58d1f6a6-458d-44d1-8bcb-adb90aab50a5@amd.com \
--to=yazen.ghannam@amd.com \
--cc=avadhut.naik@amd.com \
--cc=bp@alien8.de \
--cc=john.allen@amd.com \
--cc=linux-edac@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=muralidhara.mk@amd.com \
--cc=tony.luck@intel.com \
--cc=william.roche@oracle.com \
--cc=x86@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