[v2,3/3] x86: Add the test case of __get_cpu_features support for Zhaoxin processors
Message ID | 1585546430-6167-4-git-send-email-MayShao@zhaoxin.com |
---|---|
State | Committed |
Headers |
Return-Path: <MayShao@zhaoxin.com> X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from ZXSHCAS2.zhaoxin.com (unknown [203.148.12.82]) by sourceware.org (Postfix) with ESMTPS id E6B12385C426 for <libc-alpha@sourceware.org>; Mon, 30 Mar 2020 05:33:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E6B12385C426 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=zhaoxin.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=MayShao@zhaoxin.com Received: from zxbjmbx1.zhaoxin.com (10.29.252.163) by ZXSHCAS2.zhaoxin.com (10.28.252.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1261.35; Mon, 30 Mar 2020 13:33:54 +0800 Received: from dmdba-HX001EM2.zhaoxin.com (10.29.8.4) by zxbjmbx1.zhaoxin.com (10.29.252.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1261.35; Mon, 30 Mar 2020 13:33:53 +0800 From: MayShao <MayShao@zhaoxin.com> To: <libc-alpha@sourceware.org> CC: <carlos@redhat.com>, <CooperYan@zhaoxin.com>, <QiyuanWang@zhaoxin.com>, <HerryYang@zhaoxin.com>, <RickyLi@zhaoxin.com> Subject: [PATCH v2 3/3] x86: Add the test case of __get_cpu_features support for Zhaoxin processors Date: Mon, 30 Mar 2020 13:33:50 +0800 Message-ID: <1585546430-6167-4-git-send-email-MayShao@zhaoxin.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1585546430-6167-1-git-send-email-MayShao@zhaoxin.com> References: <1585546430-6167-1-git-send-email-MayShao@zhaoxin.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Originating-IP: [10.29.8.4] X-ClientProxiedBy: ZXSHCAS2.zhaoxin.com (10.28.252.162) To zxbjmbx1.zhaoxin.com (10.29.252.163) Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-22.9 required=5.0 tests=BAYES_00, BODY_8BITS, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list <libc-alpha.sourceware.org> List-Unsubscribe: <http://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <http://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <http://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> X-List-Received-Date: Mon, 30 Mar 2020 05:34:01 -0000 |
Series |
x86: Add support for Zhaoxin processors
|
|
Commit Message
May Shao(BJ-RD)
March 30, 2020, 5:33 a.m. UTC
For the test case of the __get_cpu_features interface, add an item in cpu_kinds and a switch case for Zhaoxin support. --- sysdeps/x86/tst-get-cpu-features.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.7.4 保密声明: 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。 CONFIDENTIAL NOTE: This email contains confidential or legally privileged information and is for the sole use of its intended recipient. Any unauthorized review, use, copying or forwarding of this email or the content of this email is strictly prohibited.
Comments
On Sun, Mar 29, 2020 at 10:35 PM MayShao <MayShao@zhaoxin.com> wrote: > > For the test case of the __get_cpu_features interface, add an item in > cpu_kinds and a switch case for Zhaoxin support. > > --- > sysdeps/x86/tst-get-cpu-features.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/sysdeps/x86/tst-get-cpu-features.c b/sysdeps/x86/tst-get-cpu-features.c > index 0f55987..0dcb906 100644 > --- a/sysdeps/x86/tst-get-cpu-features.c > +++ b/sysdeps/x86/tst-get-cpu-features.c > @@ -38,6 +38,7 @@ static const char * const cpu_kinds[] = > "Unknown", > "Intel", > "AMD", > + "ZHAOXIN", > "Other", > }; > > @@ -50,6 +51,7 @@ do_test (void) > { > case arch_kind_intel: > case arch_kind_amd: > + case arch_kind_zhaoxin: > case arch_kind_other: > printf ("Vendor: %s\n", cpu_kinds[cpu_features->basic.kind]); > printf ("Family: 0x%x\n", cpu_features->basic.family); > -- > 2.7.4 LGTM. BTW, have you finished your paperwork with FSF?
On Tue, April 7, 2020 at 8:38 PM H.J. Lu <hjl.tools@gmail.com> wrote: > > On Sun, Mar 29, 2020 at 10:35 PM MayShao <MayShao@zhaoxin.com> wrote: > > > > For the test case of the __get_cpu_features interface, add an item in > > cpu_kinds and a switch case for Zhaoxin support. > > > > --- > > sysdeps/x86/tst-get-cpu-features.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/sysdeps/x86/tst-get-cpu-features.c > b/sysdeps/x86/tst-get-cpu-features.c > > index 0f55987..0dcb906 100644 > > --- a/sysdeps/x86/tst-get-cpu-features.c > > +++ b/sysdeps/x86/tst-get-cpu-features.c > > @@ -38,6 +38,7 @@ static const char * const cpu_kinds[] = > > "Unknown", > > "Intel", > > "AMD", > > + "ZHAOXIN", > > "Other", > > }; > > > > @@ -50,6 +51,7 @@ do_test (void) > > { > > case arch_kind_intel: > > case arch_kind_amd: > > + case arch_kind_zhaoxin: > > case arch_kind_other: > > printf ("Vendor: %s\n", cpu_kinds[cpu_features->basic.kind]); > > printf ("Family: 0x%x\n", cpu_features->basic.family); > > -- > > 2.7.4 > > LGTM. > > BTW, have you finished your paperwork with FSF? Yes, I have finished the paperwork with FSF. If there is any problem, please let me know. Thanks for the review. Best Regards, May Shao > -- > H.J. 保密声明: 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。 CONFIDENTIAL NOTE: This email contains confidential or legally privileged information and is for the sole use of its intended recipient. Any unauthorized review, use, copying or forwarding of this email or the content of this email is strictly prohibited.
On 4/7/20 10:36 PM, May Shao(BJ-RD) wrote: > > > On Tue, April 7, 2020 at 8:38 PM H.J. Lu <hjl.tools@gmail.com> wrote: >> >> On Sun, Mar 29, 2020 at 10:35 PM MayShao <MayShao@zhaoxin.com> wrote: >>> >>> For the test case of the __get_cpu_features interface, add an item in >>> cpu_kinds and a switch case for Zhaoxin support. >>> >>> --- >>> sysdeps/x86/tst-get-cpu-features.c | 2 ++ >>> 1 file changed, 2 insertions(+) >>> >>> diff --git a/sysdeps/x86/tst-get-cpu-features.c >> b/sysdeps/x86/tst-get-cpu-features.c >>> index 0f55987..0dcb906 100644 >>> --- a/sysdeps/x86/tst-get-cpu-features.c >>> +++ b/sysdeps/x86/tst-get-cpu-features.c >>> @@ -38,6 +38,7 @@ static const char * const cpu_kinds[] = >>> "Unknown", >>> "Intel", >>> "AMD", >>> + "ZHAOXIN", >>> "Other", >>> }; >>> >>> @@ -50,6 +51,7 @@ do_test (void) >>> { >>> case arch_kind_intel: >>> case arch_kind_amd: >>> + case arch_kind_zhaoxin: >>> case arch_kind_other: >>> printf ("Vendor: %s\n", cpu_kinds[cpu_features->basic.kind]); >>> printf ("Family: 0x%x\n", cpu_features->basic.family); >>> -- >>> 2.7.4 >> >> LGTM. >> >> BTW, have you finished your paperwork with FSF? > > Yes, I have finished the paperwork with FSF. If there is any problem, > please let me know. I confirm that we can accept patches only from May Shao from Zhaoxin.
diff --git a/sysdeps/x86/tst-get-cpu-features.c b/sysdeps/x86/tst-get-cpu-features.c index 0f55987..0dcb906 100644 --- a/sysdeps/x86/tst-get-cpu-features.c +++ b/sysdeps/x86/tst-get-cpu-features.c @@ -38,6 +38,7 @@ static const char * const cpu_kinds[] = "Unknown", "Intel", "AMD", + "ZHAOXIN", "Other", }; @@ -50,6 +51,7 @@ do_test (void) { case arch_kind_intel: case arch_kind_amd: + case arch_kind_zhaoxin: case arch_kind_other: printf ("Vendor: %s\n", cpu_kinds[cpu_features->basic.kind]); printf ("Family: 0x%x\n", cpu_features->basic.family);