From nobody Sun Aug 20 22:00:38 2023 X-Original-To: dev-commits-src-main@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 4RTV0k53Mbz4qmTZ; Sun, 20 Aug 2023 22:00:38 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RTV0k4MxCz4Prq; Sun, 20 Aug 2023 22:00:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692568838; 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=ey1DmQa1DpPjkvziCplXlW2rj3Yugbmvr9PdagBu500=; b=nEjXUul8TqdRKUFBQak/YHDGBFB5rNDpUOyZ6qMOaAP7sBwg1WhZR3QQhaqT5JmX2YRMYN VCE4f0B4Xund17jgVNYZwttFgqqH9VAmUx/hj6k86MAjW/SiXANB9/GV91OPVVPhD9xEAz JX3LVgiADG0WXkgIGrvz4QMukSs9PE8HI6EWDWcyb3ACm4T2iOYXdHFf2HKe+nBCXPnDUV qt5oxnvifJeZ4rxnoES8MfHVnkbnuyQsRYykYa1oeSTlUjVBSXzD+a+2ahiiq9jqJ3Syiy Wir/GZ5tyQFv2dwPXa5mq7go9P691S4hDt/uDy0wS6uqH+yBaVfsMhRNKPlkQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692568838; 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=ey1DmQa1DpPjkvziCplXlW2rj3Yugbmvr9PdagBu500=; b=i93sAm6POs1AYyDQtFXc7CgukGrL1TKshIEuxfDwluuoruLRBvGGsHn6X5eQS7fDuUapm6 lJiTMXfwL1EZA2UbOCj/o+9F+BT5VWjNPT1eZaQD1E80Yycm+Hc3aot57ArcSHGSM0fPH6 NIWv6FxzOMpYkWaqECeGYSB+DMNfuHXt5ocRZgByx4dz/gHAPi35L9lGKi6wJL5ekymTKS q+/G2NKYwHfg7rWFhOXpenurafgyT20CGj+HLo95vSzmzIx8o1sXaH6zJH81YbIQBAS/sE CAsHCQXOTBmDnyt21zIF36jl+ecmKBMlQwo3vYmRerJ88+LdA+70oFERN2O1CA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1692568838; a=rsa-sha256; cv=none; b=hK3drTdJUQhCC5qP8dRAVXCk6lFeXThh7C5+kzHzFfo1VHJ+mQ9tTFtitEsItDWF2cDKHD 1e9xH5fi+1BZmXuvNJKkIkZ4eMfZib1zabW7xX2frF1c084omX/96psdN53FLZvEk0ew3M hjlxDcrnCgpvMgpoZAtBQ/k8ldmXfrQbv+ZAARQHiUyBno3BBBbFgPqfXQm1St0dXmvePk ZUbw/rVrVovCglT//b6sq4wvtn2sQ2uN5QZ3+/YOok0FMUgvUtcbJKWU/u8HPoVYHw11yW zbzL8Es7ht2rEq23ZqwmizyIdVGD35M54Z+W/GGdgDoq87dQD2HH3XBcH1s+XA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4RTV0k3QZFzvlJ; Sun, 20 Aug 2023 22:00:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 37KM0cii085108; Sun, 20 Aug 2023 22:00:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 37KM0cCp085105; Sun, 20 Aug 2023 22:00:38 GMT (envelope-from git) Date: Sun, 20 Aug 2023 22:00:38 GMT Message-Id: <202308202200.37KM0cCp085105@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Daniel Engberg Subject: git: ed3fb74e44b9 - main - share/mk/bsd.cpu.mk: Add AMD Zen 4 for x86 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: diizzy X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ed3fb74e44b9ef37837cebc5acfd7e68867206ca Auto-Submitted: auto-generated The branch main has been updated by diizzy: URL: https://cgit.FreeBSD.org/src/commit/?id=ed3fb74e44b9ef37837cebc5acfd7e68867206ca commit ed3fb74e44b9ef37837cebc5acfd7e68867206ca Author: Daniel Engberg AuthorDate: 2023-08-20 21:54:19 +0000 Commit: Daniel Engberg CommitDate: 2023-08-20 21:54:29 +0000 share/mk/bsd.cpu.mk: Add AMD Zen 4 for x86 Main difference between older Zen variants is that this supports AVX-512 Reviewed by: imp (previous version), emaste Approved by: emaste Differential Revision: https://reviews.freebsd.org/D41331 --- share/mk/bsd.cpu.mk | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/share/mk/bsd.cpu.mk b/share/mk/bsd.cpu.mk index 80fb2e1f3398..3fee105e901d 100644 --- a/share/mk/bsd.cpu.mk +++ b/share/mk/bsd.cpu.mk @@ -148,7 +148,9 @@ _CPUCFLAGS = -mcpu=${CPUTYPE} ########## i386 . if ${MACHINE_CPUARCH} == "i386" -. if ${CPUTYPE} == "znver3" || ${CPUTYPE} == "znver2" || \ +. if ${CPUTYPE} == "znver4" +MACHINE_CPU = avx512 avx2 avx sse42 sse41 ssse3 sse4a sse3 sse2 sse mmx k6 k5 i586 +. elif ${CPUTYPE} == "znver3" || ${CPUTYPE} == "znver2" || \ ${CPUTYPE} == "znver1" MACHINE_CPU = avx2 avx sse42 sse41 ssse3 sse4a sse3 sse2 sse mmx k6 k5 i586 . elif ${CPUTYPE} == "bdver4" @@ -229,7 +231,9 @@ MACHINE_CPU = mmx MACHINE_CPU += i486 ########## amd64 . elif ${MACHINE_CPUARCH} == "amd64" -. if ${CPUTYPE} == "znver3" || ${CPUTYPE} == "znver2" || \ +. if ${CPUTYPE} == "znver4" +MACHINE_CPU = avx512 avx2 avx sse42 sse41 ssse3 sse4a sse3 +. elif ${CPUTYPE} == "znver3" || ${CPUTYPE} == "znver2" || \ ${CPUTYPE} == "znver1" MACHINE_CPU = avx2 avx sse42 sse41 ssse3 sse4a sse3 . elif ${CPUTYPE} == "bdver4"