From nobody Fri Oct 11 21:17:56 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XQKGY1js5z5ZQly; Fri, 11 Oct 2024 21:17:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XQKGY1BQlz4LpB; Fri, 11 Oct 2024 21:17:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728681477; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=F0/e7PlL4NIiH8IEo1o+OKqOs9U3TB6CoDVeSztT0J4=; b=EBpAqy+kr4qUjV/3HyT57oVlonNVTKgtmCG6ajzRoaGaeP68sobXoKEdyl1ohBmcI0wX1d CI8wCXUXYQMQB0DyBkDeIR516vbpcMgr+xZe3AqKU1JXybFCPWsDqFJ4Iv4pRscRY7gP4Q XhXo7yTay//qRDUbMxy+rvMqL9DHNAd5YxzR6xHme7z5m5/i9mUkKMVOdGNEOaXE/6ZBo9 TELOZErsXRUJgTAeWcLpdg2OWdfhZPNGkUOB9bIO9LQZiRCTSZEiZcGAUrLNUMGl5/N4YC 4nvpSw7hdhlNCgTPOlztuKVcoSDXTZqkui0oqpF9mRvTVZCJXPrNW525QGOCBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728681477; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=F0/e7PlL4NIiH8IEo1o+OKqOs9U3TB6CoDVeSztT0J4=; b=XZiIG2vQ90rzIzuYVSbnYjofqd4WQrVUKTauhz78pe2C5EaXgLPhJSSHkVKi5TFB2EBHVd sb2H1ub7Zz9O5rG065E8iWhBURRw9qmNYf8RQjW1qtMRCyYAf7lcXVs7QGhkUryYI7I1xM tKX0nifFjXeJ+Pfb5xabEISVxY3C9/9xE1R89txTm20GA5DCbGfyZ0a0Ls7FX7OIf2jRYQ z3O35a2dfNPWsw3QlgxTU3Y25ZAqoR++IIepsbwz/U3cjPLbTizxFR1M7D6E+NPIqiaEey VgTDnVk2UUwhfDmbH7Gx6TgXE7DzXjVsb2H279UJgEJjhHCgjsnuGRsk7grL/A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728681477; a=rsa-sha256; cv=none; b=I1EEIH17u3goKEn6lsfRVcuqVX+8jB8d9zIdxwmx818YEL8hPLELOgIFc3MPQ8YylX/kPT +wWoX3Kf1KiRRiQaa4mXowpjrCpkVmAULLwOlSaz+GxlWMIw3OfRVDisZdrJzAW+eSjAfy ry0KNgq23/6kAXmJLymL01vzkxlcW5+c9mYN7FUrgWhUnV6cRtP6HZAYBfPbNMfMMiI0JB bMPwIAwtPnK+jqkERaWSvxc3RcOQmczjD44/xwPngE/14n+kUVsXibj/oFpWK5QwzNh62P KMPq6BhJcEYvDGgZsaCG0vyyGkVXxNmIahlPNTneSag3jXFDLvPP8/nu6v5k+w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XQKGY0fv0zxcH; Fri, 11 Oct 2024 21:17:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49BLHuwZ034308; Fri, 11 Oct 2024 21:17:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49BLHuYZ034305; Fri, 11 Oct 2024 21:17:56 GMT (envelope-from git) Date: Fri, 11 Oct 2024 21:17:56 GMT Message-Id: <202410112117.49BLHuYZ034305@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Justin Hibbits Subject: git: 1e434da3b065 - main - powerpc: Add nominal support for POWER10 and POWER11 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhibbits X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1e434da3b065ef96b389e5e0b604ae05a51e794e Auto-Submitted: auto-generated The branch main has been updated by jhibbits: URL: https://cgit.FreeBSD.org/src/commit/?id=1e434da3b065ef96b389e5e0b604ae05a51e794e commit 1e434da3b065ef96b389e5e0b604ae05a51e794e Author: Justin Hibbits AuthorDate: 2024-10-11 21:03:12 +0000 Commit: Justin Hibbits CommitDate: 2024-10-11 21:17:43 +0000 powerpc: Add nominal support for POWER10 and POWER11 --- sys/powerpc/include/cpu.h | 2 ++ sys/powerpc/include/spr.h | 2 ++ sys/powerpc/powerpc/cpu.c | 18 ++++++++++++++++++ 3 files changed, 22 insertions(+) diff --git a/sys/powerpc/include/cpu.h b/sys/powerpc/include/cpu.h index 02ff42877f0e..35b32566484c 100644 --- a/sys/powerpc/include/cpu.h +++ b/sys/powerpc/include/cpu.h @@ -90,6 +90,8 @@ extern u_long cpu_features2; #define PPC_FEATURE2_DARN 0x00200000 #define PPC_FEATURE2_SCV 0x00100000 #define PPC_FEATURE2_HTM_NOSUSPEND 0x00080000 +#define PPC_FEATURE2_ARCH_3_1 0x00040000 +#define PPC_FEATURE2_MMA 0x00020000 #define PPC_FEATURE_BITMASK \ "\20" \ diff --git a/sys/powerpc/include/spr.h b/sys/powerpc/include/spr.h index 751a9e8184b6..5bb3858b0fb5 100644 --- a/sys/powerpc/include/spr.h +++ b/sys/powerpc/include/spr.h @@ -220,7 +220,9 @@ #define IBMPOWER9 0x004e #define MPC860 0x0050 #define IBMCELLBE 0x0070 +#define IBMPOWER10 0x0080 #define MPC8240 0x0081 +#define IBMPOWER11 0x0082 #define PA6T 0x0090 #define IBM405GP 0x4011 #define IBM405L 0x4161 diff --git a/sys/powerpc/powerpc/cpu.c b/sys/powerpc/powerpc/cpu.c index 19907e3973e7..f73ed25c8924 100644 --- a/sys/powerpc/powerpc/cpu.c +++ b/sys/powerpc/powerpc/cpu.c @@ -192,6 +192,24 @@ static const struct cputab models[] = { PPC_FEATURE2_ISEL | PPC_FEATURE2_TAR | PPC_FEATURE2_HAS_VEC_CRYPTO | PPC_FEATURE2_ARCH_3_00 | PPC_FEATURE2_HAS_IEEE128 | PPC_FEATURE2_DARN, cpu_powerx_setup }, + { "IBM POWER10", IBMPOWER10, REVFMT_MAJMIN, + PPC_FEATURE_64 | PPC_FEATURE_HAS_ALTIVEC | PPC_FEATURE_HAS_FPU | + PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP | PPC_FEATURE_ARCH_2_05 | + PPC_FEATURE_ARCH_2_06 | PPC_FEATURE_HAS_VSX | PPC_FEATURE_TRUE_LE, + PPC_FEATURE2_ARCH_2_07 | PPC_FEATURE2_DSCR | PPC_FEATURE2_EBB | + PPC_FEATURE2_ISEL | PPC_FEATURE2_TAR | PPC_FEATURE2_HAS_VEC_CRYPTO | + PPC_FEATURE2_ARCH_3_00 | PPC_FEATURE2_HAS_IEEE128 | + PPC_FEATURE2_DARN | PPC_FEATURE2_ARCH_3_1 | PPC_FEATURE2_MMA, + cpu_powerx_setup }, + { "IBM POWER11", IBMPOWER11, REVFMT_MAJMIN, + PPC_FEATURE_64 | PPC_FEATURE_HAS_ALTIVEC | PPC_FEATURE_HAS_FPU | + PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP | PPC_FEATURE_ARCH_2_05 | + PPC_FEATURE_ARCH_2_06 | PPC_FEATURE_HAS_VSX | PPC_FEATURE_TRUE_LE, + PPC_FEATURE2_ARCH_2_07 | PPC_FEATURE2_DSCR | PPC_FEATURE2_EBB | + PPC_FEATURE2_ISEL | PPC_FEATURE2_TAR | PPC_FEATURE2_HAS_VEC_CRYPTO | + PPC_FEATURE2_ARCH_3_00 | PPC_FEATURE2_HAS_IEEE128 | + PPC_FEATURE2_DARN | PPC_FEATURE2_ARCH_3_1 | PPC_FEATURE2_MMA, + cpu_powerx_setup }, { "Motorola PowerPC 7400", MPC7400, REVFMT_MAJMIN, PPC_FEATURE_HAS_ALTIVEC | PPC_FEATURE_HAS_FPU, 0, cpu_6xx_setup }, { "Motorola PowerPC 7410", MPC7410, REVFMT_MAJMIN,