From patchwork Sun Jan 7 12:15:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Borislav Petkov X-Patchwork-Id: 185726 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp509697dyq; Sun, 7 Jan 2024 04:16:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IGhOzcfcnoBbW+1N1pDp7z3sBsVvsSo1KkVX+WzyHiSSm4VqcVAOJeYR7aQJ9kozJGsRUbs X-Received: by 2002:a17:902:7c98:b0:1d4:dff8:881d with SMTP id y24-20020a1709027c9800b001d4dff8881dmr2257065pll.35.1704629761394; Sun, 07 Jan 2024 04:16:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704629761; cv=none; d=google.com; s=arc-20160816; b=ndAjdzem2Dgi+orybFAu1C5gAcEF+NfGFHGeQuixZPMQ8NqjWjwOgZzycEK49KdxS2 0kFkVFN15maKLLgxhV4/9j1610U/rm+3KAIh7U58nJuYDOHRXXvdkHWk4uaCewNUmM+c NxPyRQ7AdoLRXq6o+VSXcyp8RIFx+sDJKeKBgTV1ioEArOf5+omtoKg7XTLqPsQtXKJs km0YbP8JIrVxNjVKuIJZvrq4ObR6pJBX8HBU3bAehbGkiml2xnt/70SHShJ3GKqr5mez pFGm//lPu0Lijtp6ajZ0RfG19TsnHVkcBraAXwWGDS+pWxMIIoQQlqsQln6Fowic0YgI Bs1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=UK9PlhwRB1r9QbRSHp+R0+WnUPfSxgkpm2vt+Z/Ek3U=; fh=5ZjxVYKXeWzXrQtuvh8WKOTEKQBUJ80ckFoMga5XCYE=; b=OUv8L2U+WupUDkxecb4/p3xWbr9NSi4U/Mj2YmV9pxssIfx72dhv7m8uNqIu5KA7rj MIhpopviLV3ISC5eL8kZuNf5jKezi4hTZmY/5EZolFHYDbVIKb7IeJNLG6vNi0zKqK5k peAtRMDnRGxX56ut/TlAxN2d7SadGTqBp7LFvRnQEri9X3DNiQiw/R59jco5DeCf5szB ESM1smKITAy2xDUn7ZHGzwgHgaRQ2lGnW1O9SE2VGIASZIHnQurNWaVmdhpEXrFaypTF FNTjEiUhvmQTe976dWGUzqpCh01ipGb+45/FErwckCTbiK54IgPkhiLEn6NpyIhY7UNR qnLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=RevGInoA; spf=pass (google.com: domain of linux-kernel+bounces-18853-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18853-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id x10-20020a170902ea8a00b001d381d2ea62si4310526plb.516.2024.01.07.04.16.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jan 2024 04:16:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-18853-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=RevGInoA; spf=pass (google.com: domain of linux-kernel+bounces-18853-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18853-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2B3C22823E2 for ; Sun, 7 Jan 2024 12:16:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E0DE1134B2; Sun, 7 Jan 2024 12:15:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="RevGInoA" X-Original-To: linux-kernel@vger.kernel.org Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5251012E4A for ; Sun, 7 Jan 2024 12:15:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alien8.de Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id 921D240E01B2; Sun, 7 Jan 2024 12:15:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id LFjwTw7XEB3A; Sun, 7 Jan 2024 12:15:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1704629738; bh=UK9PlhwRB1r9QbRSHp+R0+WnUPfSxgkpm2vt+Z/Ek3U=; h=Date:From:To:Cc:Subject:From; b=RevGInoAOcJMq8e11uD19FCsJ5+qgO8D0OXkmeYg0A6VI65X6+GHXBsAqqjFA3CP5 etm1NbO03Hz5yxdgJB0Ub+TxaPUIioPGlWJaVJQp4k0sgANaP2zjA+VFoqcQ6MOXuO 6HL5A+MErd+Oo4DXBd6fDaeSbjqIlyXIhE49mx2dNcczozaUH0XZmzYKBTPNL5/qkc FqAO9+DZdjIO86Cioktse7JbD7zniB9xzkyGFtkr54bm1a7iUX4xiiS+F2+QlcMmyE yjJVrkL/Xt6HwmHddbQ88GjBpva5XAgD2bOZuHEe79tjVjJzrcUOL5IttZL2xIFYS3 G2P5oGSdrfB+68pdUuAVKDA+T3C+mfNBWBa1twHPbHDGUxoxs27UHbK38NnzJpj6Xp OcqktCUSccsZXqssp9ysXQU0x+XowzTRSIw8zNH/KzsLUefaQUbY8Od/i581jZWtN9 yoV6gnX/onXnKyrailsykWN3iO1LSBnY2XcbZmpEsCp7p7n8pvU1bMp7TnS75dzJjr wVU/EYm7JwL129CBZgqRAYHL/IgOMcRJ5mnBkhs8Kk8Y7pV7hV51/uI2e73dIMPx9l 0TBN3AKkjUykz6Y0cec0C7Ch5eTiCv002uUwzoFrK5Yx36oah3FrPp42dJZ59FgL87 rVPfs5+2OPj98F/p6tpn5vw4= Received: from zn.tnic (pd9530f8c.dip0.t-ipconnect.de [217.83.15.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 578D440E00C5; Sun, 7 Jan 2024 12:15:35 +0000 (UTC) Date: Sun, 7 Jan 2024 13:15:28 +0100 From: Borislav Petkov To: Linus Torvalds Cc: x86-ml , lkml Subject: [GIT PULL] x86/cpu for v6.8 Message-ID: <20240107121528.GAZZqV4GF086iQw1zw@fat_crate.local> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787433856770510768 X-GMAIL-MSGID: 1787433856770510768 Hi Linus, please pull the pile of x86/cpu changes for v6.8. Thx. --- The following changes since commit b85ea95d086471afb4ad062012a4d73cd328fa86: Linux 6.7-rc1 (2023-11-12 16:19:07 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tags/x86_cpu_for_v6.8 for you to fetch changes up to 232afb557835d6f6859c73bf610bad308c96b131: x86/CPU/AMD: Add X86_FEATURE_ZEN1 (2023-12-12 11:17:37 +0100) ---------------------------------------------------------------- - Add synthetic X86_FEATURE flags for the different AMD Zen generations and use them everywhere instead of ad-hoc family/model checks. Drop an ancient AMD errata checking facility as a result - Fix a fragile initcall ordering in intel_epb - Do not issue the MFENCE+LFENCE barrier for the TSC deadline and X2APIC MSRs on AMD as it is not needed there ---------------------------------------------------------------- Borislav Petkov (AMD) (15): x86/barrier: Do not serialize MSR accesses on AMD x86/CPU/AMD: Add ZenX generations flags x86/CPU/AMD: Carve out the erratum 1386 fix x86/CPU/AMD: Move the Zen3 BTC_NO detection to the Zen3 init function x86/CPU/AMD: Move erratum 1076 fix into the Zen1 init function x86/CPU/AMD: Call the spectral chicken in the Zen2 init function x86/CPU/AMD: Rename init_amd_zn() to init_amd_zen_common() x86/CPU/AMD: Move Zenbleed check to the Zen2 init function x86/CPU/AMD: Move the DIV0 bug detection to the Zen1 init function x86/CPU/AMD: Get rid of amd_erratum_1054[] x86/CPU/AMD: Get rid of amd_erratum_383[] x86/CPU/AMD: Get rid of amd_erratum_400[] x86/CPU/AMD: Get rid of amd_erratum_1485[] x86/CPU/AMD: Drop now unused CPU erratum checking function x86/CPU/AMD: Add X86_FEATURE_ZEN1 James Morse (1): x86/cpu/intel_epb: Don't rely on link order arch/x86/include/asm/barrier.h | 18 --- arch/x86/include/asm/cpufeatures.h | 8 +- arch/x86/include/asm/processor.h | 18 +++ arch/x86/kernel/cpu/amd.c | 268 +++++++++++++++---------------- arch/x86/kernel/cpu/common.c | 7 + arch/x86/kernel/cpu/hygon.c | 3 + arch/x86/kernel/cpu/intel_epb.c | 2 +- tools/arch/x86/include/asm/cpufeatures.h | 2 +- 8 files changed, 170 insertions(+), 156 deletions(-)