From: Jan Beulich <jbeulich@suse.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: "Roger Pau Monné" <roger.pau@citrix.com>,
Xen-devel <xen-devel@lists.xenproject.org>
Subject: Re: [PATCH 2/3] x86/intel-family: Resync with Linux
Date: Wed, 16 Jul 2025 15:56:42 +0200 [thread overview]
Message-ID: <f8808232-dc06-4ecc-85bb-e05d8f948d00@suse.com> (raw)
In-Reply-To: <20250716132843.2086965-3-andrew.cooper3@citrix.com>
On 16.07.2025 15:28, Andrew Cooper wrote:
> This snapshot is prior to Linux commit db4001f9cc32 ("x86/cpu/vfm: Delete all
> the *_FAM6_ CPU #defines") at the end of their conversion phase.
>
> In addition to non-FAM6 infixed names, defines are added for the Pentium Pro,
> ArrowLake U, and reintroduced the PHI defines which were incorrectly deleted
> in the past.
>
> In cpufeature.h, provide VFM_* macros to transform constants to/from the
> cpuinfo_x86 representation.
>
> No functional change.
>
> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
> ---
> CC: Jan Beulich <JBeulich@suse.com>
> CC: Roger Pau Monné <roger.pau@citrix.com>
>
> I meant to object to deleting PHI at the time, but was too late. Just because
> Xen has stopped supporting the PHI doesn't mean the model numbers have ceased
> existing.
I don't mind their re-introduction, yet I wonder what value their presence has
when we don't use them anywhere. In the public cpufeatureset.h they serve a
documentation purpose, to have less holes there. This could be view the same
here, yes, but it still seems (yet) less relevant.
> --- a/xen/arch/x86/include/asm/intel-family.h
> +++ b/xen/arch/x86/include/asm/intel-family.h
> @@ -13,8 +13,8 @@
> * INTEL_FAM6{OPTFAMILY}_{MICROARCH}{OPTDIFF}
> * where:
> * OPTFAMILY Describes the family of CPUs that this belongs to. Default
> - * is assumed to be "_CORE" (and should be omitted). The other
> - * value currently in use is _ATOM.
> + * is assumed to be "_CORE" (and should be omitted). Other values
> + * currently in use are _ATOM and _XEON_PHI
Nit: You lost the full stop.
> @@ -40,131 +40,223 @@
> * their own names :-(
> */
>
> +#define IFM(_fam, _model) VFM_MAKE(X86_VENDOR_INTEL, _fam, _model)
> +
> /* Wildcard match for FAM6 so X86_MATCH_INTEL_FAM6_MODEL(ANY) works */
> #define INTEL_FAM6_ANY X86_MODEL_ANY
> +/* Wildcard match for FAM6 so X86_MATCH_VFM(ANY) works */
> +#define INTEL_ANY IFM(X86_FAMILY_ANY, X86_MODEL_ANY)
> +
> +#define INTEL_PENTIUM_PRO IFM(6, 0x01)
>
> #define INTEL_FAM6_CORE_YONAH 0x0E
> +#define INTEL_CORE_YONAH IFM(6, 0x0E)
Here and below I assume it is deliberate that you use a raw number again,
rather than making use of the immediately preceding #define? Perhaps for
the sake of brevity?
Acked-by: Jan Beulich <jbeulich@suse.com>
Jan
next prev parent reply other threads:[~2025-07-16 13:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-16 13:28 [PATCH 0/3] x86: Overhaul of vendor/family/model logic to support DMR Andrew Cooper
2025-07-16 13:28 ` [PATCH 1/3] x86: Rearrange struct cpuinfo_x86 to introduce a vfm field Andrew Cooper
2025-07-16 13:47 ` Jan Beulich
2025-07-16 15:45 ` Andrew Cooper
2025-07-16 16:02 ` Jan Beulich
2025-07-16 13:28 ` [PATCH 2/3] x86/intel-family: Resync with Linux Andrew Cooper
2025-07-16 13:56 ` Jan Beulich [this message]
2025-07-16 16:32 ` Andrew Cooper
2025-07-16 13:28 ` [PATCH 3/3] x86/vtd: Switch model check to VFM Andrew Cooper
2025-07-16 13:32 ` Andrew Cooper
2025-07-16 14:01 ` Jan Beulich
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=f8808232-dc06-4ecc-85bb-e05d8f948d00@suse.com \
--to=jbeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=roger.pau@citrix.com \
--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.