Dnia 2015-01-20, o godz. 10:40:17
Michał Górny <mgo...@gentoo.org> napisał(a):

> Dnia 2015-01-18, o godz. 21:44:05
> Michał Górny <mgo...@gentoo.org> napisał(a):
> 
> > Hello,
> > 
> > I would like to commit the following flags as cpu_flags_x86_desc.
> > The list combines global USE flags with some local USE flags I've been
> > able to find.
> 
> Following your suggestions, I'm attaching three files:
> 
> 1. updated cpu_flags_x86.desc, with:
> 
>  a. fma3/fma4 distinction,
> 
>  b. aes-ni renamed to aes for consistency with cpuinfo, we no longer
>  have to worry about USE flag collision with other USE=aes uses,
> 
>  c. complete and machine-parseable listing of cpuinfo flags.
> 
> 2. cpuinfo2cpuflags-x86.py script that parses cpu_flags_x86.desc
> and /proc/cpuinfo and generates a nice CPU_FLAGS_X86 value for you. We
> need to decide where to put it (scripts/?).
> 
> 3. Initial text of the news item for review.

Ok, the hopefully-final text for the news item attached.

-- 
Best regards,
Michał Górny
Title: CPU_FLAGS_X86 introduction
Author: Michał Górny <mgo...@gentoo.org>
Content-Type: text/plain
Posted: 2015-01-xx
Revision: 1
News-Item-Format: 1.0
Display-If-Keyword: amd64 ~amd64 x86 ~x86

The USE flags corresponding to the instruction sets and other features
specific to the x86 architecture are being moved into a separate USE
flag group called CPU_FLAGS_X86.

In order not to lose CPU-specific optimizations, users will be required
to update their make.conf (and package.use) file. For example, if
the following USE flags were present:

  USE="mmx mmxext sse sse2 sse3"

Those flags need to be copied into:

  CPU_FLAGS_X86="mmx mmxext sse sse2 sse3"

Please note that the CPU_FLAGS_X86 variable is used both on x86 and
amd64 systems.

When in doubt, please consult the profiles/desc/cpu_flags_x86.desc file
available in the Gentoo repository checkout. Most of the flag names
match /proc/cpuinfo names, with the notable exception of SSE3 which is
called 'pni' in /proc/cpuinfo (please also do not confuse it with
distinct SSSE3).

To help users enable the correct USE flags, we are providing a Python
script that generates the correct value using /proc/cpuinfo. It can be
found in the app-portage/cpuinfo2cpuflags package:

  $ emerge -1v app-portage/cpuinfo2cpuflags
  $ cpuinfo2cpuflags-x86.py

In order to ensure safe migration and maintain compatibility with
external repositories, it is recommended to preserve the old USE
settings for a period of one year or until no package of interest is
still using them.

Attachment: pgp0bEvHez0mM.pgp
Description: OpenPGP digital signature

Reply via email to