Message ID | 20230814043747.2877403-1-lili.cui@intel.com |
---|---|
State | Unresolved |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp2518101vqi; Sun, 13 Aug 2023 21:38:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE43e3T2khhIGLFOczrsOov3vCWjd7UysSH0UOs/mKAdt7e+9gG4Qh34teIMOBH4S9JGYSy X-Received: by 2002:a17:906:7395:b0:99b:f554:1f10 with SMTP id f21-20020a170906739500b0099bf5541f10mr7157937ejl.7.1691987914949; Sun, 13 Aug 2023 21:38:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691987914; cv=none; d=google.com; s=arc-20160816; b=n+Uz3pmKuMFHhj3uGOrC0L0B0dOCRABBHxkBQtFj+TI1X7o5xG388F4RNvgleYCwID DnJQrIQIoCcUJsPL9B5a9z2/a29muysPDWROADiHA05KMNAH55ooJYEqaIUBUCFBRbze ft8pPEoRcrsYY7739gxQaRHUK/8hzmUKHl+ZVuSZzl734PL4eeG7cb8GcdaXtSNYOgHE s5PCtrXXOSZoW6F9yLDucuVzByAMv33Weuoofgkx1J/L9+t5itgZYB1cAi496VKsLGgo QNCrcYuu51lcaiy55CHx6NAx4lJzaIcFVJi0vunY3mAvs+YIZVb7ZHAT6V+H+cAo2oOj c5+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=/pvjhny8yMVnGcCpnT27i4Za8igxvnA01qByJUDVA10=; fh=6yTBmyh4tXV//y/alXtkBVz051x8vh3/7sUkSVCpO2k=; b=EQ3XeFAy+q7BhYFW5kX7RpxKkQTSYMrOPpCpm7C/Xmj2MMEY/SBJyi2tYKcYV73qq5 HrCeyTr7heYxoXJqLUSdnaf560v+xgsKSnZQbhgqAJ0A0dELa42iqp7M7zJ5w8XGUQwQ Hf2m3UUBlecPoeuhqxBc9Y5HLVMwMTH4rMruxS3Q0CP3S6q+qMWbFy7dcfg41EHv9oys M+kvGv3OFfNav33P4hEf/dYtbjtBqsVRD1UEeKZEQNLh3CTRVR5aKjznYaDDWGlROOPy NsQ0gup6IN8TlKSXnPZXPxZlslL5enXgc0y8PImdJMWGk2JowlckXI/xfxTI075vdoS1 lcKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=cqgQbd0N; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id lh12-20020a170906f8cc00b009930740da67si7023577ejb.380.2023.08.13.21.38.34 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Aug 2023 21:38:34 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=cqgQbd0N; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9F6573858C2B for <ouuuleilei@gmail.com>; Mon, 14 Aug 2023 04:38:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9F6573858C2B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1691987913; bh=/pvjhny8yMVnGcCpnT27i4Za8igxvnA01qByJUDVA10=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=cqgQbd0NR5sBcI7bANcc4kjE+6f67Eo31j8jQUcglxHmHvnLCjWJw1iXjjQeiSV2X rmsTdwPGq4evi62qLombd6QMKZKMBbBA0PhkDd/+Uo7xaquE7RStbWtpzB4/J4X2Lo ybKG2m2cVodPOJTtqUo2Y4afzHf+xKTPOxB8XH7U= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by sourceware.org (Postfix) with ESMTPS id 893D73858D39 for <gcc-patches@gcc.gnu.org>; Mon, 14 Aug 2023 04:37:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 893D73858D39 X-IronPort-AV: E=McAfee;i="6600,9927,10801"; a="435853790" X-IronPort-AV: E=Sophos;i="6.01,171,1684825200"; d="scan'208";a="435853790" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Aug 2023 21:37:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10801"; a="683171870" X-IronPort-AV: E=Sophos;i="6.01,171,1684825200"; d="scan'208";a="683171870" Received: from scymds04.sc.intel.com ([10.82.73.238]) by orsmga003.jf.intel.com with ESMTP; 13 Aug 2023 21:37:48 -0700 Received: from shgcc101.sh.intel.com (shgcc101.sh.intel.com [10.239.85.97]) by scymds04.sc.intel.com (Postfix) with ESMTP id 59E4F18002A8; Sun, 13 Aug 2023 21:37:48 -0700 (PDT) To: gcc-patches@gcc.gnu.org Cc: hongtao.liu@intel.com Subject: [PATCH] x86: Update model values for Raptorlake. Date: Mon, 14 Aug 2023 04:37:47 +0000 Message-Id: <20230814043747.2877403-1-lili.cui@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: "Cui, Lili via Gcc-patches" <gcc-patches@gcc.gnu.org> Reply-To: "Cui, Lili" <lili.cui@intel.com> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1774177919961647840 X-GMAIL-MSGID: 1774177919961647840 |
Series |
x86: Update model values for Raptorlake.
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | warning | Git am fail log |
Commit Message
Li, Pan2 via Gcc-patches
Aug. 14, 2023, 4:37 a.m. UTC
Committed as obvious, and backported to GCC13. Lili. Update model values for Raptorlake according to SDM. gcc/ChangeLog * common/config/i386/cpuinfo.h (get_intel_cpu): Add model value 0xba to Raptorlake. --- gcc/common/config/i386/cpuinfo.h | 1 + 1 file changed, 1 insertion(+)
Comments
On 14/08/23 04:37 +0000, Pan Li via Gcc-patches wrote: >Committed as obvious, and backported to GCC13. Did you try building it on gcc-13? case 0x97: case 0x9a: case 0xbf: /* Alder Lake. */ case 0xb7: case 0xba: case 0xbf: /* Raptor Lake. */ This fails: In file included from /home/test/src/gcc-13/gcc/config/i386/driver-i386.cc:31: /home/test/src/gcc-13/gcc/common/config/i386/cpuinfo.h: In function ‘const char* get_intel_cpu(__processor_model*, __processor_model2*, unsigned int*)’: /home/test/src/gcc-13/gcc/common/config/i386/cpuinfo.h:543:5: error: duplicate case value 543 | case 0xbf: | ^~~~ /home/test/src/gcc-13/gcc/common/config/i386/cpuinfo.h:539:5: note: previously used here 539 | case 0xbf: | ^~~~ Please fix or revert. >Lili. > > >Update model values for Raptorlake according to SDM. > >gcc/ChangeLog > > * common/config/i386/cpuinfo.h (get_intel_cpu): Add model value 0xba > to Raptorlake. >--- > gcc/common/config/i386/cpuinfo.h | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/gcc/common/config/i386/cpuinfo.h b/gcc/common/config/i386/cpuinfo.h >index ae48bc17771..dd7f0f6abfd 100644 >--- a/gcc/common/config/i386/cpuinfo.h >+++ b/gcc/common/config/i386/cpuinfo.h >@@ -537,6 +537,7 @@ get_intel_cpu (struct __processor_model *cpu_model, > case 0x9a: > /* Alder Lake. */ > case 0xb7: >+ case 0xba: > case 0xbf: > /* Raptor Lake. */ > case 0xaa:
On 14/08/23 15:19 +0100, Jonathan Wakely wrote: >On 14/08/23 04:37 +0000, Pan Li via Gcc-patches wrote: >>Committed as obvious, and backported to GCC13. > >Did you try building it on gcc-13? > > case 0x97: > case 0x9a: > case 0xbf: > /* Alder Lake. */ > case 0xb7: > case 0xba: > case 0xbf: > /* Raptor Lake. */ > > >This fails: > >In file included from /home/test/src/gcc-13/gcc/config/i386/driver-i386.cc:31: >/home/test/src/gcc-13/gcc/common/config/i386/cpuinfo.h: In function ‘const char* get_intel_cpu(__processor_model*, __processor_model2*, unsigned int*)’: >/home/test/src/gcc-13/gcc/common/config/i386/cpuinfo.h:543:5: error: duplicate case value > 543 | case 0xbf: > | ^~~~ >/home/test/src/gcc-13/gcc/common/config/i386/cpuinfo.h:539:5: note: previously used here > 539 | case 0xbf: > | ^~~~ > >Please fix or revert. The backported patch is not the same as the trunk one, it adds two new cases not one. But one of them is a duplicate of one you already added in January 2022, in 4bd5297f665fd3ba5691297c016809f3501e7fba No matter how obvious a patch is, if it touches code (not just comments or docs) please don't commit without even building it once. Also, backports should typically say something in the git commit message, e.g. using git gcc-backport (or git cherry-pick -x) will automatically add: (cherry picked from commit 003016a40844701c48851020df672b70f3446bdb) to the commit message. >>Lili. >> >> >>Update model values for Raptorlake according to SDM. >> >>gcc/ChangeLog >> >> * common/config/i386/cpuinfo.h (get_intel_cpu): Add model value 0xba >> to Raptorlake. >>--- >>gcc/common/config/i386/cpuinfo.h | 1 + >>1 file changed, 1 insertion(+) >> >>diff --git a/gcc/common/config/i386/cpuinfo.h b/gcc/common/config/i386/cpuinfo.h >>index ae48bc17771..dd7f0f6abfd 100644 >>--- a/gcc/common/config/i386/cpuinfo.h >>+++ b/gcc/common/config/i386/cpuinfo.h >>@@ -537,6 +537,7 @@ get_intel_cpu (struct __processor_model *cpu_model, >> case 0x9a: >> /* Alder Lake. */ >> case 0xb7: >>+ case 0xba: >> case 0xbf: >> /* Raptor Lake. */ >> case 0xaa:
Sorry, I should have built the patch while backporting, and thanks for your report and suggestions. I'll backport another patch to fix the problems after finishing bootstraps, probably in couple hours. Thank you! Lili. > -----Original Message----- > From: Jonathan Wakely <jwakely@redhat.com> > Sent: Monday, August 14, 2023 10:26 PM > To: Cui, Lili <lili.cui@intel.com> > Cc: gcc-patches@gcc.gnu.org; Liu, Hongtao <hongtao.liu@intel.com> > Subject: Re: [PATCH] x86: Update model values for Raptorlake. > > On 14/08/23 15:19 +0100, Jonathan Wakely wrote: > >On 14/08/23 04:37 +0000, Pan Li via Gcc-patches wrote: > >>Committed as obvious, and backported to GCC13. > > > >Did you try building it on gcc-13? > > > > case 0x97: > > case 0x9a: > > case 0xbf: > > /* Alder Lake. */ > > case 0xb7: > > case 0xba: > > case 0xbf: > > /* Raptor Lake. */ > > > > > >This fails: > > > >In file included from /home/test/src/gcc-13/gcc/config/i386/driver- > i386.cc:31: > >/home/test/src/gcc-13/gcc/common/config/i386/cpuinfo.h: In function ‘const > char* get_intel_cpu(__processor_model*, __processor_model2*, unsigned > int*)’: > >/home/test/src/gcc-13/gcc/common/config/i386/cpuinfo.h:543:5: error: > duplicate case value > > 543 | case 0xbf: > > | ^~~~ > >/home/test/src/gcc-13/gcc/common/config/i386/cpuinfo.h:539:5: note: > previously used here > > 539 | case 0xbf: > > | ^~~~ > > > >Please fix or revert. > > > The backported patch is not the same as the trunk one, it adds two new cases > not one. But one of them is a duplicate of one you already added in January > 2022, in 4bd5297f665fd3ba5691297c016809f3501e7fba > > No matter how obvious a patch is, if it touches code (not just comments or > docs) please don't commit without even building it once. > > Also, backports should typically say something in the git commit message, e.g. > using git gcc-backport (or git cherry-pick -x) will automatically add: > > (cherry picked from commit 003016a40844701c48851020df672b70f3446bdb) > > to the commit message. > > > > > > >>Lili. > >> > >> > >>Update model values for Raptorlake according to SDM. > >> > >>gcc/ChangeLog > >> > >> * common/config/i386/cpuinfo.h (get_intel_cpu): Add model value > 0xba > >> to Raptorlake. > >>--- > >>gcc/common/config/i386/cpuinfo.h | 1 + > >>1 file changed, 1 insertion(+) > >> > >>diff --git a/gcc/common/config/i386/cpuinfo.h > >>b/gcc/common/config/i386/cpuinfo.h > >>index ae48bc17771..dd7f0f6abfd 100644 > >>--- a/gcc/common/config/i386/cpuinfo.h > >>+++ b/gcc/common/config/i386/cpuinfo.h > >>@@ -537,6 +537,7 @@ get_intel_cpu (struct __processor_model > *cpu_model, > >> case 0x9a: > >> /* Alder Lake. */ > >> case 0xb7: > >>+ case 0xba: > >> case 0xbf: > >> /* Raptor Lake. */ > >> case 0xaa:
diff --git a/gcc/common/config/i386/cpuinfo.h b/gcc/common/config/i386/cpuinfo.h index ae48bc17771..dd7f0f6abfd 100644 --- a/gcc/common/config/i386/cpuinfo.h +++ b/gcc/common/config/i386/cpuinfo.h @@ -537,6 +537,7 @@ get_intel_cpu (struct __processor_model *cpu_model, case 0x9a: /* Alder Lake. */ case 0xb7: + case 0xba: case 0xbf: /* Raptor Lake. */ case 0xaa: