All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] arch: Fix typo breaking use of core-avx2 arch
@ 2019-06-07 12:53 Esben Haabendal
  2019-06-07 12:53 ` [Buildroot] [PATCH 2/2] arch: Add support for Westmere targets Esben Haabendal
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Esben Haabendal @ 2019-06-07 12:53 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Esben Haabendal <esben@geanix.com>
---
 arch/Config.in.x86 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/Config.in.x86 b/arch/Config.in.x86
index ce91317dc6ae..3f6983ac1b63 100644
--- a/arch/Config.in.x86
+++ b/arch/Config.in.x86
@@ -236,7 +236,7 @@ config BR2_ARCH
 	default "i686"		if BR2_x86_core2 && BR2_i386
 	default "i686"		if BR2_x86_corei7 && BR2_i386
 	default "i686"		if BR2_x86_corei7_avx && BR2_i386
-	default "i686"		if BR2_x86_corei7_avx2 && BR2_i386
+	default "i686"		if BR2_x86_core_avx2 && BR2_i386
 	default "i686"		if BR2_x86_atom && BR2_i386
 	default "i686"		if BR2_x86_silvermont && BR2_i386
 	default "i686"		if BR2_x86_opteron && BR2_i386
-- 
2.21.0

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

* [Buildroot] [PATCH 2/2] arch: Add support for Westmere targets
  2019-06-07 12:53 [Buildroot] [PATCH 1/2] arch: Fix typo breaking use of core-avx2 arch Esben Haabendal
@ 2019-06-07 12:53 ` Esben Haabendal
  2019-06-08 10:08   ` Peter Korsgaard
  2019-06-08 10:04 ` [Buildroot] [PATCH 1/2] arch: Fix typo breaking use of core-avx2 arch Peter Korsgaard
  2019-06-23 19:06 ` Peter Korsgaard
  2 siblings, 1 reply; 6+ messages in thread
From: Esben Haabendal @ 2019-06-07 12:53 UTC (permalink / raw)
  To: buildroot

The westmere line of x86_64 targets lies between nehalem (corei7) and
sandybridge (corei7-avx).  Allowing use of -march=westmere enables use of AES
instruction set on these targets.

Signed-off-by: Esben Haabendal <esben@geanix.com>
---
 arch/Config.in.x86         | 10 ++++++++++
 package/openblas/Config.in |  2 +-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/arch/Config.in.x86 b/arch/Config.in.x86
index 3f6983ac1b63..26496b8d08e9 100644
--- a/arch/Config.in.x86
+++ b/arch/Config.in.x86
@@ -101,6 +101,15 @@ config BR2_x86_corei7
 	select BR2_X86_CPU_HAS_SSSE3
 	select BR2_X86_CPU_HAS_SSE4
 	select BR2_X86_CPU_HAS_SSE42
+config BR2_x86_westmere
+	bool "westmere"
+	select BR2_X86_CPU_HAS_MMX
+	select BR2_X86_CPU_HAS_SSE
+	select BR2_X86_CPU_HAS_SSE2
+	select BR2_X86_CPU_HAS_SSE3
+	select BR2_X86_CPU_HAS_SSSE3
+	select BR2_X86_CPU_HAS_SSE4
+	select BR2_X86_CPU_HAS_SSE42
 config BR2_x86_corei7_avx
 	bool "corei7-avx"
 	select BR2_X86_CPU_HAS_MMX
@@ -235,6 +244,7 @@ config BR2_ARCH
 	default "i686"		if BR2_x86_nocona && BR2_i386
 	default "i686"		if BR2_x86_core2 && BR2_i386
 	default "i686"		if BR2_x86_corei7 && BR2_i386
+	default "i686"		if BR2_x86_westmere && BR2_i386
 	default "i686"		if BR2_x86_corei7_avx && BR2_i386
 	default "i686"		if BR2_x86_core_avx2 && BR2_i386
 	default "i686"		if BR2_x86_atom && BR2_i386
diff --git a/package/openblas/Config.in b/package/openblas/Config.in
index 8e71a43f982c..c8a516bb9f93 100644
--- a/package/openblas/Config.in
+++ b/package/openblas/Config.in
@@ -6,7 +6,7 @@ config BR2_PACKAGE_OPENBLAS_DEFAULT_TARGET
 	default "PRESCOTT"     if BR2_x86_prescott || BR2_x86_nocona
 	default "BANIAS"       if BR2_x86_pentium_m
 	default "CORE2"        if BR2_x86_core2
-	default "NEHALEM"      if BR2_x86_corei7 || BR2_x86_silvermont
+	default "NEHALEM"      if BR2_x86_corei7 || BR2_x86_westmere || BR2_x86_silvermont
 	default "SANDYBRIDGE"  if BR2_x86_corei7_avx
 	default "HASWELL"      if BR2_x86_core_avx2
 	default "ATOM"         if BR2_x86_atom
-- 
2.21.0

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

* [Buildroot] [PATCH 1/2] arch: Fix typo breaking use of core-avx2 arch
  2019-06-07 12:53 [Buildroot] [PATCH 1/2] arch: Fix typo breaking use of core-avx2 arch Esben Haabendal
  2019-06-07 12:53 ` [Buildroot] [PATCH 2/2] arch: Add support for Westmere targets Esben Haabendal
@ 2019-06-08 10:04 ` Peter Korsgaard
  2019-06-23 19:06 ` Peter Korsgaard
  2 siblings, 0 replies; 6+ messages in thread
From: Peter Korsgaard @ 2019-06-08 10:04 UTC (permalink / raw)
  To: buildroot

>>>>> "Esben" == Esben Haabendal <esben@geanix.com> writes:

 > Signed-off-by: Esben Haabendal <esben@geanix.com>

Committed, thanks.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH 2/2] arch: Add support for Westmere targets
  2019-06-07 12:53 ` [Buildroot] [PATCH 2/2] arch: Add support for Westmere targets Esben Haabendal
@ 2019-06-08 10:08   ` Peter Korsgaard
  2019-06-11  8:42     ` Esben Haabendal
  0 siblings, 1 reply; 6+ messages in thread
From: Peter Korsgaard @ 2019-06-08 10:08 UTC (permalink / raw)
  To: buildroot

>>>>> "Esben" == Esben Haabendal <esben@geanix.com> writes:

 > The westmere line of x86_64 targets lies between nehalem (corei7) and
 > sandybridge (corei7-avx).  Allowing use of -march=westmere enables use of AES
 > instruction set on these targets.

 > Signed-off-by: Esben Haabendal <esben@geanix.com>
 > ---
 >  arch/Config.in.x86         | 10 ++++++++++
 >  package/openblas/Config.in |  2 +-
 >  2 files changed, 11 insertions(+), 1 deletion(-)

 > diff --git a/arch/Config.in.x86 b/arch/Config.in.x86
 > index 3f6983ac1b63..26496b8d08e9 100644
 > --- a/arch/Config.in.x86
 > +++ b/arch/Config.in.x86
 > @@ -101,6 +101,15 @@ config BR2_x86_corei7
 >  	select BR2_X86_CPU_HAS_SSSE3
 >  	select BR2_X86_CPU_HAS_SSE4
 >  	select BR2_X86_CPU_HAS_SSE42
 > +config BR2_x86_westmere
 > +	bool "westmere"
 > +	select BR2_X86_CPU_HAS_MMX
 > +	select BR2_X86_CPU_HAS_SSE
 > +	select BR2_X86_CPU_HAS_SSE2
 > +	select BR2_X86_CPU_HAS_SSE3
 > +	select BR2_X86_CPU_HAS_SSSE3
 > +	select BR2_X86_CPU_HAS_SSE4
 > +	select BR2_X86_CPU_HAS_SSE42
 >  config BR2_x86_corei7_avx
 >  	bool "corei7-avx"
 >  	select BR2_X86_CPU_HAS_MMX
 > @@ -235,6 +244,7 @@ config BR2_ARCH
 >  	default "i686"		if BR2_x86_nocona && BR2_i386
 >  	default "i686"		if BR2_x86_core2 && BR2_i386
 >  	default "i686"		if BR2_x86_corei7 && BR2_i386
 > +	default "i686"		if BR2_x86_westmere && BR2_i386
 >  	default "i686"		if BR2_x86_corei7_avx && BR2_i386
 >  	default "i686"		if BR2_x86_core_avx2 && BR2_i386
 >  	default "i686"		if BR2_x86_atom && BR2_i386

No BR2_GCC_TARGET_ARCH? That doesn't seem right.

> diff --git a/package/openblas/Config.in b/package/openblas/Config.in
 > index 8e71a43f982c..c8a516bb9f93 100644
 > --- a/package/openblas/Config.in
 > +++ b/package/openblas/Config.in
 > @@ -6,7 +6,7 @@ config BR2_PACKAGE_OPENBLAS_DEFAULT_TARGET
 >  	default "PRESCOTT"     if BR2_x86_prescott || BR2_x86_nocona
 >  	default "BANIAS"       if BR2_x86_pentium_m
 >  	default "CORE2"        if BR2_x86_core2
 > -	default "NEHALEM"      if BR2_x86_corei7 || BR2_x86_silvermont
 > +	default "NEHALEM"      if BR2_x86_corei7 || BR2_x86_westmere || BR2_x86_silvermont

Please put this openblas change in a separate patch. I know we don't do
it consistently, but please sort these alphabetically - E.G. put
westmere after silvermont.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH 2/2] arch: Add support for Westmere targets
  2019-06-08 10:08   ` Peter Korsgaard
@ 2019-06-11  8:42     ` Esben Haabendal
  0 siblings, 0 replies; 6+ messages in thread
From: Esben Haabendal @ 2019-06-11  8:42 UTC (permalink / raw)
  To: buildroot

Peter Korsgaard <peter@korsgaard.com> writes:

>>>>>> "Esben" == Esben Haabendal <esben@geanix.com> writes:
>
>  > The westmere line of x86_64 targets lies between nehalem (corei7) and
>  > sandybridge (corei7-avx).  Allowing use of -march=westmere enables use of AES
>  > instruction set on these targets.
>
>  > Signed-off-by: Esben Haabendal <esben@geanix.com>
>  > ---
>  >  arch/Config.in.x86         | 10 ++++++++++
>  >  package/openblas/Config.in |  2 +-
>  >  2 files changed, 11 insertions(+), 1 deletion(-)
>
>  > diff --git a/arch/Config.in.x86 b/arch/Config.in.x86
>  > index 3f6983ac1b63..26496b8d08e9 100644
>  > --- a/arch/Config.in.x86
>  > +++ b/arch/Config.in.x86
>  > @@ -101,6 +101,15 @@ config BR2_x86_corei7
>  >  	select BR2_X86_CPU_HAS_SSSE3
>  >  	select BR2_X86_CPU_HAS_SSE4
>  >  	select BR2_X86_CPU_HAS_SSE42
>  > +config BR2_x86_westmere
>  > +	bool "westmere"
>  > +	select BR2_X86_CPU_HAS_MMX
>  > +	select BR2_X86_CPU_HAS_SSE
>  > +	select BR2_X86_CPU_HAS_SSE2
>  > +	select BR2_X86_CPU_HAS_SSE3
>  > +	select BR2_X86_CPU_HAS_SSSE3
>  > +	select BR2_X86_CPU_HAS_SSE4
>  > +	select BR2_X86_CPU_HAS_SSE42
>  >  config BR2_x86_corei7_avx
>  >  	bool "corei7-avx"
>  >  	select BR2_X86_CPU_HAS_MMX
>  > @@ -235,6 +244,7 @@ config BR2_ARCH
>  >  	default "i686"		if BR2_x86_nocona && BR2_i386
>  >  	default "i686"		if BR2_x86_core2 && BR2_i386
>  >  	default "i686"		if BR2_x86_corei7 && BR2_i386
>  > +	default "i686"		if BR2_x86_westmere && BR2_i386
>  >  	default "i686"		if BR2_x86_corei7_avx && BR2_i386
>  >  	default "i686"		if BR2_x86_core_avx2 && BR2_i386
>  >  	default "i686"		if BR2_x86_atom && BR2_i386
>
> No BR2_GCC_TARGET_ARCH? That doesn't seem right.

Definitely not right.

>> diff --git a/package/openblas/Config.in b/package/openblas/Config.in
>  > index 8e71a43f982c..c8a516bb9f93 100644
>  > --- a/package/openblas/Config.in
>  > +++ b/package/openblas/Config.in
>  > @@ -6,7 +6,7 @@ config BR2_PACKAGE_OPENBLAS_DEFAULT_TARGET
>  >  	default "PRESCOTT"     if BR2_x86_prescott || BR2_x86_nocona
>  >  	default "BANIAS"       if BR2_x86_pentium_m
>  >  	default "CORE2"        if BR2_x86_core2
>  > -	default "NEHALEM"      if BR2_x86_corei7 || BR2_x86_silvermont
>  > + default "NEHALEM" if BR2_x86_corei7 || BR2_x86_westmere ||
>  > BR2_x86_silvermont
>
> Please put this openblas change in a separate patch. I know we don't do
> it consistently, but please sort these alphabetically - E.G. put
> westmere after silvermont.

Ok, will do.

I just tried to keep the split identical to the most recent similar
change, which is 1eecd462ae05 ("arch: add Atom CPUs as Silvermont
Architecture target").

Sending v2...

/Esben

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

* [Buildroot] [PATCH 1/2] arch: Fix typo breaking use of core-avx2 arch
  2019-06-07 12:53 [Buildroot] [PATCH 1/2] arch: Fix typo breaking use of core-avx2 arch Esben Haabendal
  2019-06-07 12:53 ` [Buildroot] [PATCH 2/2] arch: Add support for Westmere targets Esben Haabendal
  2019-06-08 10:04 ` [Buildroot] [PATCH 1/2] arch: Fix typo breaking use of core-avx2 arch Peter Korsgaard
@ 2019-06-23 19:06 ` Peter Korsgaard
  2 siblings, 0 replies; 6+ messages in thread
From: Peter Korsgaard @ 2019-06-23 19:06 UTC (permalink / raw)
  To: buildroot

>>>>> "Esben" == Esben Haabendal <esben@geanix.com> writes:

 > Signed-off-by: Esben Haabendal <esben@geanix.com>

Committed to 2019.02.x and 2019.05.x, thanks.

-- 
Bye, Peter Korsgaard

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

end of thread, other threads:[~2019-06-23 19:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-07 12:53 [Buildroot] [PATCH 1/2] arch: Fix typo breaking use of core-avx2 arch Esben Haabendal
2019-06-07 12:53 ` [Buildroot] [PATCH 2/2] arch: Add support for Westmere targets Esben Haabendal
2019-06-08 10:08   ` Peter Korsgaard
2019-06-11  8:42     ` Esben Haabendal
2019-06-08 10:04 ` [Buildroot] [PATCH 1/2] arch: Fix typo breaking use of core-avx2 arch Peter Korsgaard
2019-06-23 19:06 ` Peter Korsgaard

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.