From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linutronix.de (193.142.43.55:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 20 Feb 2020 19:08:48 -0000 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]) by Galois.linutronix.de with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1j4rBn-0005hu-OE for speck@linutronix.de; Thu, 20 Feb 2020 20:08:48 +0100 Received: from [192.168.4.242] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1j4rBn-0004Jm-6V for speck@linutronix.de; Thu, 20 Feb 2020 19:08:47 +0000 Received: from ben by deadeye with local (Exim 4.93) (envelope-from ) id 1j4rBm-001L6c-HT for speck@linutronix.de; Thu, 20 Feb 2020 19:08:46 +0000 Message-ID: <2847e79bd70becdc174a4bd890c1be6b37247e43.camel@decadent.org.uk> Subject: [MODERATED] Re: [PATCH 1/2] more sampling fun 1 From: Ben Hutchings Date: Thu, 20 Feb 2020 19:08:45 +0000 In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-KQptmoqMEYhGouKEtiSA" To: speck@linutronix.de List-ID: --=-KQptmoqMEYhGouKEtiSA Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2020-02-06 at 14:11 -0800, speck for mark gross wrote: > From: mark gross > Subject: [PATCH 1/2] Add capability to specify a range of steppings in th= e [...] > --- a/arch/x86/include/asm/cpu_device_id.h > +++ b/arch/x86/include/asm/cpu_device_id.h > @@ -35,7 +35,19 @@ struct x86_cpu_desc { > .x86_microcode_rev =3D (revision), \ > } > =20 > +/* > + * Match a range of steppings > + */ > + > +struct x86_cpu_id_ext { > + struct x86_cpu_id id; > + __u16 steppings; /* bit map of steppings to match against */ > +}; > + > +#define X86_STEPPING_ANY 0 [...] Minor point, but wouldn't it make more sense to define X86_STEPPING_ANY as GENMASK(15, 0)? Then it's no longer a special case. Ben. --=20 Ben Hutchings Unix is many things to many people, but it's never been everything to anybody. --=-KQptmoqMEYhGouKEtiSA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEErCspvTSmr92z9o8157/I7JWGEQkFAl5O2T4ACgkQ57/I7JWG EQk1Bw/8DVF6o2p//Tm5QYY/gd8Wn6S9hDAF0vJ/Pt9IeGYyrvK+hhbS1kvbnJ2i zIGB2I7Qz//1BUhUGOk7Nq1dQhOvSYzqJU17PVpL4f8rJrSTnFijoP5YMoI9hfpT v5Wvi/wga3bnLY9lc7RgK5wvtc4btF1J7Kqgi+lSG77dOmZS9sGs1EXLxe8NiPnz otfFeVpKWSXRB2GveK5mFwEzlUrqFOYGQe47v9cRf1tQWEtXIAROZT2Qq1RT7fy1 Cdlc9hFx+47CIhsxgRCo9pkVlQGlxDYmh9SB8jDjtrdEElvBGPYg4cZxstV3NvLp Rw6WAHNy6Nl8Emp/CTr1tvbVaajX6uI9eTmB5Z0i1GQP3t/wogr6P+V/p2Tn9/Sk Nfrh+AtoKIAGz4iqsg9XlBEu40RWbaWuN/3BDXdoejY6Ntfn4yKrCiAdSWzWUte4 ZKMgAvnoOgkQXMIoT2Jbn1wt+2bHojpDq4O6u8jTvKHuc55PE0GvSpYy81xBG1m+ TPWqfwmMSP+lpRffPoFpZaipo3vsV6y6vfr0Pmhv57BX9NNKED1SJfCRqBUyo5QD LoEkSnHDC4K9QGa8h4zcgPEtePdZyG/pjSCx6CtwZ08s63WzskNeQoItSgLuk8ou OiLADtTu4zKvzTSNPB87YAgCpFQ2ecinOD/0l4rXkfqxZDiMpk4= =MzSF -----END PGP SIGNATURE----- --=-KQptmoqMEYhGouKEtiSA--