All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alejandro Vallejo" <alejandro.garciavallejo@amd.com>
To: "Andrew Cooper" <andrew.cooper3@citrix.com>,
	<xen-devel@lists.xenproject.org>
Cc: "Jan Beulich" <jbeulich@suse.com>,
	"Roger Pau Monné" <roger@xenproject.org>,
	"Teddy Astie" <teddy.astie@vates.tech>
Subject: Re: [PATCH v2 1/3] x86/amd: Consider only Fam10h affected by erratum 383
Date: Thu, 26 Nov 2026 16:34:48 +0100	[thread overview]
Message-ID: <DN593VRUTESC.U246UVFIC413@amd.com> (raw)
In-Reply-To: <4d301ab3-484e-4a7d-8f97-4efa90c9f6d0@citrix.com>

On Mon Nov 23, 2026 at 5:53 PM CET, Andrew Cooper wrote:
> On 19/11/2026 2:44 pm, Alejandro Vallejo wrote:
> > 2604adda4f81 introduced the cpu_has_amd_erratum() machinary while adding
> > erratum 383. The commit message claims it was based on Linux's, but in
> > addition to cosmetic changes it also added Fam12h as affected. It is not
> > acknowledged as so the relevant Fam12h revision guide, and Linux itself
> > never considered it.
>
> You need the NDA revision guide, not the public one.
>
> Fam12h, Model 0 Steppings 0 and 1 are affected.  It was fixed starting
> in Model 1.

They are 15yo engineering samples...

More interestingly, the fallback list is wrong. It considers
model1/stepping0 affected when it shouldn't. THAT's actual silicon
people could buy.  The range is inclusive, but it was  written as
exclusive.

I'll rewrite the patch keeping Fam12h, even if it's silly to do so. with
the last item being model0/steppingF.

Cheers,
Alejandro

>
>
> > My best guess is that OSVW always returns early and
> > doesn't let the "legacy" mechanism ever match Fam12h (the relevant bit
> > is always 0, according to its Revision Guide).
>
> The OSVW MSRs are fully writeable, with a note saying "OS/VMM should
> treat them as read-only".
>
> Getting helpful OSVW information requires a firmware update, which means
> OS/VMM software needs the fallback list irrespective.
>
> This is why we have the legacy list as well, but it also means it
> suffices to only have the legacy list.  (Yes, technically we could be
> levelled and OSVW says vulnerable outside of the range, but for the sake
> of one 20-year-old errata, I'm not overly bothered about this corner case).
>
> Anyway, this can be given as the justification for getting rid of OSVW,
> with the Fam12 range reinstated.
>
> ~Andrew



  reply	other threads:[~2026-11-26 15:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-19 14:44 [PATCH v2 0/3] x86: Add in-scope files under cpu/ to MISRA scans Alejandro Vallejo
2026-11-19 14:44 ` [PATCH v2 1/3] x86/amd: Consider only Fam10h affected by erratum 383 Alejandro Vallejo
2026-11-23 16:53   ` Andrew Cooper
2026-11-26 15:34     ` Alejandro Vallejo [this message]
2026-11-19 14:44 ` [PATCH v2 2/3] x86/amd: Drop cpu_has_amd_erratum() Alejandro Vallejo
2026-11-23 17:08   ` Andrew Cooper
2026-11-19 14:44 ` [PATCH v2 3/3] eclair/x86: Scan in-scope files inside cpu/ Alejandro Vallejo
  -- strict thread matches above, loose matches on Subject: below --
2026-11-20  1:20 [PATCH v2 1/3] x86/amd: Consider only Fam10h affected by erratum 383 Christian Ludloff

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=DN593VRUTESC.U246UVFIC413@amd.com \
    --to=alejandro.garciavallejo@amd.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=jbeulich@suse.com \
    --cc=roger@xenproject.org \
    --cc=teddy.astie@vates.tech \
    --cc=xen-devel@lists.xenproject.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 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.