From patchwork Sat Jan 24 02:10:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 4789 Received: (qmail 17311 invoked by alias); 24 Jan 2015 02:10:19 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 16744 invoked by uid 89); 24 Jan 2015 02:10:17 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f48.google.com X-Received: by 10.70.35.167 with SMTP id i7mr16217362pdj.64.1422065412518; Fri, 23 Jan 2015 18:10:12 -0800 (PST) Date: Fri, 23 Jan 2015 18:10:10 -0800 From: "H.J. Lu" To: Carlos O'Donell , GNU C Library , David Miller , Richard Henderson , Mike Frysinger , Andreas Schwab , "Joseph S. Myers" , Kaz Kojima , Thomas Schwinge , Marcus Shawcroft , Chris Metcalf , Chung-Lin Tang , Adhemerval Zanella , Andreas Krebbel , "Senkevich, Andrew" Subject: Re: glibc 2.21 - Machine maintainers, please test your machines. Message-ID: <20150124021010.GA25492@gmail.com> References: <54C2BDD7.7000304@redhat.com> <20150124014016.GA23003@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20150124014016.GA23003@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) On Fri, Jan 23, 2015 at 05:40:16PM -0800, H.J. Lu wrote: > On Fri, Jan 23, 2015 at 04:36:51PM -0800, H.J. Lu wrote: > > On Fri, Jan 23, 2015 at 1:32 PM, Carlos O'Donell wrote: > > > Dear Machine Maintainers, > > > > > > Please start testing your machines against glibc > > > master. > > > > > > Please update the glibc 2.21 release page with your > > > testing results: > > > > > > https://sourceware.org/glibc/wiki/Release/2.21 > > > > > > If nobody objects I want to cut the release as soon > > > as we have results for all the machines. > > > > > > > We need to update __init_cpu_features in > > sysdeps/x86_64/multiarch/init-arch.c to support the current > > Intel processors. > > > > Andrew, please find out the model numbers for the current > > Ivy Bridge, Haswell, Broadwell and Silvermont server, desktop > > and mobile processors. > > > > > > We only need to deal with Silvermont since Ivy Bridge, Haswell and > Broadwell, which have AVX, are treated as Core i7. The new Silvermont > model numbers are in > > http://www.intel.com/content/dam/www/public/us/en/documents/manuals/64-ia-32-architectures-optimization-manual.pdf > > I am testing this patch and I will check it in shortly. > This is what I checked in. Andrew, please check if it works on your Silvermont machine. H.J. --- From d37d432b715cefb695c09b41676338f25a91d30f Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 23 Jan 2015 17:27:09 -0800 Subject: [PATCH] Treat model numbers 0x4a/0x4d as Silvermont * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Treat model numbers 0x4a/0x4d as Intel Silvermont architecture. --- ChangeLog | 5 +++++ sysdeps/x86_64/multiarch/init-arch.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 306341c..c199a5d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2015-01-23 H.J. Lu + * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): + Treat model numbers 0x4a/0x4d as Intel Silvermont architecture. + +2015-01-23 H.J. Lu + [BZ #17870] * nptl/sem_post.c (__new_sem_post): Replace unsigned long int with uint64_t. diff --git a/sysdeps/x86_64/multiarch/init-arch.c b/sysdeps/x86_64/multiarch/init-arch.c index 47b9655..ec71918 100644 --- a/sysdeps/x86_64/multiarch/init-arch.c +++ b/sysdeps/x86_64/multiarch/init-arch.c @@ -79,6 +79,8 @@ __init_cpu_features (void) break; case 0x37: + case 0x4a: + case 0x4d: /* Unaligned load versions are faster than SSSE3 on Silvermont. */ #if index_Fast_Unaligned_Load != index_Prefer_PMINUB_for_stringop