All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] x86: Add in-scope files under cpu/ to MISRA scans
@ 2026-11-19 14:44 Alejandro Vallejo
  2026-11-19 14:44 ` [PATCH v2 1/3] x86/amd: Consider only Fam10h affected by erratum 383 Alejandro Vallejo
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Alejandro Vallejo @ 2026-11-19 14:44 UTC (permalink / raw)
  To: xen-devel
  Cc: Alejandro Vallejo, Jan Beulich, Andrew Cooper,
	Roger Pau Monné, Teddy Astie, Jason Andryuk, Nicola Vetrini,
	Doug Goldstein, Stefano Stabellini, Anthony PERARD, Michal Orzel,
	Julien Grall

Hi,

v1: https://lore.kernel.org/xen-devel/20261118171758.1125066-1-alejandro.garciavallejo@amd.com/
pipeline: https://gitlab.com/xen-project/people/agvallejo/xen/-/pipelines/3089539179
  (slightly different. fpu.c has different macros, but functionally identical)

v2:

I've reworked the cpu_has_amd_erratum() function into small helpers and
brought the 383 erratum in line with Linux. It turns out a mistake was
made when merging it originally. OSVW is gone and bloat-o-meter reports
200 bytes of net code reduction.

Original cover letter:

The files under cpu/ are excluded from MISRA scans due to their Linux
provenance but they aren't kept in close sync. At best they get
semiregular updates (mwait_idle.c), but most often the files grow with
Xen specifics bops that get a free pass on MISRA scans merely due to
colocation with ancient Linux code. Some files just were never part of
Linux (hygon.c) to begin with, which makes the blanket exclusion even
less credible.

This series brings everything under the MISRA scan umbrella, with the
surprisingly few fixes involved.

Alejandro Vallejo (3):
  x86/amd: Consider only Fam10h affected by erratum 383
  x86/amd: Drop cpu_has_amd_erratum()
  eclair/x86: Scan in-scope files inside cpu/

 .../eclair_analysis/ECLAIR/deviations.ecl     |  3 -
 docs/misra/exclude-list.json                  | 36 -----------
 xen/arch/x86/cpu/amd.c                        | 47 +-------------
 xen/arch/x86/domain.c                         |  2 +-
 xen/arch/x86/hvm/svm/asid.c                   |  2 +-
 xen/arch/x86/hvm/svm/svm.c                    |  2 +-
 xen/arch/x86/include/asm/amd.h                | 62 ++++++-------------
 xen/arch/x86/x86_emulate/fpu.c                |  7 +--
 xen/arch/x86/x86_emulate/x86_emulate.c        |  5 --
 9 files changed, 27 insertions(+), 139 deletions(-)


base-commit: 92ddcda17fb00020c6215d51df4c6a25d5eb0b5e
-- 
2.43.0



^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: [PATCH v2 1/3] x86/amd: Consider only Fam10h affected by erratum 383
@ 2026-11-20  1:20 Christian Ludloff
  0 siblings, 0 replies; 8+ messages in thread
From: Christian Ludloff @ 2026-11-20  1:20 UTC (permalink / raw)
  To: xen-devel

> [...] added Fam12h as affected. It is not acknowledged
> as so the relevant Fam12h revision guide [...]

That's because the public RG (#44739-3.10) only lists
a subset of what the non-public one (3.11) contains. In
particular, erratum #383 does affect LN-A0 and LN-A1
but not LN-B0. One school of thought foolishly argues
that A0 and A1 were samples, while another school of
thought doesn't argue but just points at silicon which is
out there in the wild.

00300F00h (LN-A0) affected
00300F01h (LN-A1) affected
00300F10h (LN-B0) not affected

--
C.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-11-26 15:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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.