Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2992769lqt; Tue, 23 Apr 2024 07:41:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV7F5ynNQ8fnKRdRnnMR0zPfJR0hoqL3LH7u94Yyl3nWF9FztsgbpcB08M1NMA3qcED51s0vMIoeMYB1p0/5L2zsu2FmagiA51u8deOew== X-Google-Smtp-Source: AGHT+IHb16FTsqS7nHxnfQQwhjHzUKMXxkwJ+RbWzBSHMO3c9gwixD/NEXpfC9osZB1ijynH1Hug X-Received: by 2002:a17:902:f651:b0:1ea:2838:e590 with SMTP id m17-20020a170902f65100b001ea2838e590mr2102574plg.14.1713883282072; Tue, 23 Apr 2024 07:41:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713883282; cv=pass; d=google.com; s=arc-20160816; b=zvec2Li+yz8n71d0wRGkT2AEmyughc8j7biBI4TDCBB4BM2+lh2ljv6rFoxJN0buuZ cVt6hu1mIKleECfHqDRyDitKe5uKt4z5uyVphj3iiMo8OiZzYYlk96Xbbr1SbbibQfSL p3gooAMW5/ckOc8w7HSW5KG2w8FbnR24CNeZ8Ln11dvDUL6Jm7mdyExNfGnpZ7iqOoy2 uTEZ2Mu3o1J6xXi7XGgqV4YOpF6z3cS8c+YR2yIYHwI/MydKQwxQexttDWGaHmBVEvqn tNz9KBjRcTOHgrk51sj4KAYq1Za4GeTXu80vNmnKFe8OAeUfoV4eTQljZ14Xll6rYSv1 l/qQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=vm62XJh30XJZG92KY6H+/NKGiRTCfKf2q5bzVcMkmBY=; fh=Xn4vh7jxrs2Mxb7VzF2HI9qWHVDZH/oq6ACd2E11/tg=; b=oX7IOUMShHyKZPr1J5F18MCTtEt59JKu1TNN65MW0GvhImQfoErTvaa5O/ZeYMbFOP 4vJaRRywrz5oAaUKLnhW8Vj4QFfqnHlp/WK7rFTX1pvvIQkMUE9JXugKzdHt7BxTroDb 6yeRX9jtBvCIu9vsfwMAj8fsmI2hPhoikMllRnJX2Y6dIJPLq+sT0n2H8AN+Uy5laSSN beh+oQBQB2O1U7vXVWRgFSLlMHB4UiG8c8J6zV7CERCIOqIr+neMn33q5gcU7keYPbbw oEvsCAfWdZbUh8HR0aqHsIW188SZhn4DQSmbt+GUWPqlCcKi59gF76JAX51//2RKlJtm ARlw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LhJMRiDu; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-155387-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155387-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id u17-20020a170902e5d100b001e913eef63csi6180426plf.208.2024.04.23.07.41.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 07:41:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155387-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LhJMRiDu; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-155387-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155387-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 B41BA288FD4 for ; Tue, 23 Apr 2024 14:41:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 37BD784FC5; Tue, 23 Apr 2024 14:41:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LhJMRiDu" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 621F845C0C for ; Tue, 23 Apr 2024 14:41:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713883275; cv=none; b=r5Ts9tL4NaT2BcBDMLq4To4zxCkXDzjpvVrkbT7Sn3PyoWWwLz4gS1nSnHq4mWJ4AM3y1BI76WQzylbpX6nwCSkF8iruPfCQBXzFVSzW7o3LAp+jNieoP+kzDghpTgWbKpL/XFOhbPu/Zgg52BceDx7qLjV+DCbZYTsv48PvlCo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713883275; c=relaxed/simple; bh=f3l1B1ROT5WgMnyYTGNqcQT1a+Nd3onAdjpdJ5GT0Ng=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=U5vJeULURn7wxyjwxoNCOrX3kWW2djUlV/roxmxLrIFC9I6UePKwzCcoTBkVHRoy8OcQ7VqNUfkeFZitf1XrC38RvECDM7kE/Y3blP0YOh/jYirj6jX5cb5sJha1E0LNQIF2skYO0eumQWXMijRYkb4GDnXkNWnTaNg56i1qgSU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LhJMRiDu; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 077FBC116B1; Tue, 23 Apr 2024 14:41:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713883274; bh=f3l1B1ROT5WgMnyYTGNqcQT1a+Nd3onAdjpdJ5GT0Ng=; h=From:To:Cc:Subject:Date:From; b=LhJMRiDuh+sbo9IavZcA+cpSO3Fgra4A8UZX5RLvj/IlmhhvkfE2hwRYZ5Xqoaky7 iGEF9qnjhELIK3tKyexC/v9O057zFuKyKzbC3cTmjGVnHpxlfcyAnElp0levQ3vegk pR1f8tbDmhRbWY2CbuqD5EUxHNiiZGSDXfaplVGM3VScSaVOxM3Om7ZLq6qf3FsM5a p+TU7FG2pZHt+eNHWj+CJtQVyMOjEgGYdhxGXcLmBcNFxQ1+pQucMPzFSYQSBO47yf QwU1WLm1MLZveDDOO8qBsvomzWzpPlCFzKuF7tLXnCQA7jPuSirGW6WYiahdK047/k 37a4ZWDnja37g== From: Borislav Petkov To: X86 ML Cc: LKML , Wenkuan Wang , Borislav Petkov Subject: [PATCH] x86/CPU/AMD: Add models 0x10-0x1f to the Zen5 range Date: Tue, 23 Apr 2024 16:41:11 +0200 Message-ID: <20240423144111.1362-1-bp@kernel.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Wenkuan Wang Add some more Zen5 models. Fixes: 3e4147f33f8b ("x86/CPU/AMD: Add X86_FEATURE_ZEN5") Signed-off-by: Wenkuan Wang Signed-off-by: Borislav Petkov (AMD) --- arch/x86/kernel/cpu/amd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c index cb9eece55904..307302af0aee 100644 --- a/arch/x86/kernel/cpu/amd.c +++ b/arch/x86/kernel/cpu/amd.c @@ -459,8 +459,7 @@ static void bsp_init_amd(struct cpuinfo_x86 *c) case 0x1a: switch (c->x86_model) { - case 0x00 ... 0x0f: - case 0x20 ... 0x2f: + case 0x00 ... 0x2f: case 0x40 ... 0x4f: case 0x70 ... 0x7f: setup_force_cpu_cap(X86_FEATURE_ZEN5); -- 2.43.0