Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1412579
| From | Darren Hart <dvhart@infradead.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 01/20] x86, intel: Introduce macros for Intel family numbers |
| Date | 2016-06-02 23:50 +0200 |
| Message-ID | <rFIF4-2WQ-25@gated-at.bofh.it> (permalink) |
| References | <rFowF-7d9-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, Jun 01, 2016 at 05:11:57PM -0700, Dave Hansen wrote: > > From: Dave Hansen <dave.hansen@linux.intel.com> > > If you are cc'd on this code, please check _your_ code vs. the > model list in "intel-family.h". Please make sure you have all > the models listed that you intend to. > > Problem: > > We have a boatload of open-coded family-6 model numbers. Half of > them have these model numbers in hex and the other half in > decimal. This makes grepping for them tons of fun, if you were > to try. > > Solution: > > Consolidate all the magic numbers. Put all the definitions in > one header. > > The names here are closely derived from the comments describing > the models from arch/x86/events/intel/core.c. We could easily > make them shorter by doing things like s/SANDYBRIDGE/SNB/, but > they seemed fine even with the longer versions to me. > > Do not take any of these names too literally, like "DESKTOP" > or "MOBILE". These are all colloquial names and not precise > descriptions of everywhere a given model will show up. > > Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com> > Cc: Adrian Hunter <adrian.hunter@intel.com> > Cc: Andi Kleen <ak@linux.intel.com> > Cc: Andy Lutomirski <luto@kernel.org> > Cc: Borislav Petkov <bp@alien8.de> > Cc: Darren Hart <dvhart@infradead.org> For platform/drivers/x86: Magic number to macro mapping verified. Acked-by: Darren Hart <dvhart@linux.intel.com> -- Darren Hart Intel Open Source Technology Center
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 01/20] x86, intel: Introduce macros for Intel family numbers Dave Hansen <dave@sr71.net> - 2016-06-02 02:20 +0200
[PATCH 20/20] x86, powercap, rapl: add Skylake Server model number Dave Hansen <dave@sr71.net> - 2016-06-02 02:20 +0200
[PATCH 08/20] x86, rapl: reorder cpu detection table Dave Hansen <dave@sr71.net> - 2016-06-02 02:20 +0200
Re: [PATCH 01/20] x86, intel: Introduce macros for Intel family numbers Borislav Petkov <bp@alien8.de> - 2016-06-02 09:00 +0200
Re: [PATCH 01/20] x86, intel: Introduce macros for Intel family numbers "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2016-06-02 23:50 +0200
Re: [PATCH 01/20] x86, intel: Introduce macros for Intel family numbers Darren Hart <dvhart@infradead.org> - 2016-06-02 23:50 +0200
csiph-web