Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2284653rdb; Mon, 20 Nov 2023 07:08:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IH8mrsgXBwwwRBHZ+7YAmpgr0BqzVTI5Sg3M7GW2ijNwBjOFMTwUCfYiunBk5d5iZhMl8l7 X-Received: by 2002:a05:6870:ae08:b0:1c5:dcd:5d64 with SMTP id uu8-20020a056870ae0800b001c50dcd5d64mr6026872oab.7.1700492921028; Mon, 20 Nov 2023 07:08:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700492921; cv=pass; d=google.com; s=arc-20160816; b=zS0Xs06hh2zOUCC0qjDeGzKelSOphwyqhKMOex0gI+JhCiwmRKdeJWd+/HwUv3wHhN bPfi1jfDOhPqwiO4/cpspXsqZzRY3YntZIA0rbGaz2ZxbSZoFbFVmfCCKMA+jFmcb2rQ 0B9AnO77Y6n8W3qBkTRkJyjUvXnLyY9cDi+nIKsDNvjsdYvKFUbHpZpdU5ZlfCtj0Z+R +WFtLzPKMOB0L4xAqy5wYHzf5QS3jexOA+eGBeTjgYVa1dEh9NFQ57ltVJgiPWiEyXnp +AiXDTBpgGOnS4T/yLwRmRkQREyiZIDNAXnffHF7rXwN6ytJ6ekJqAIKpZbFY2byR9Kx fS4A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=mQtzUQXjzUo5Wrxum5yXGOU8kfF+BYrtpZuKBdKI68Y=; fh=6LYrjt2C8+n8oZJqh4UfKQQIbZx/uXWb++PjYthlam8=; b=kP3r0R1vYHwhtLDldRHdZ0pTBvEMMlwPjt3a1u8qcYUsMu8SqMuGuetiO4GMV3a2Af a7tDHdH+03KgnvcYU7JBZAEQ/uO2YwdT+FKRKVQAXDRtAQT6kysLnytE2qGlXCJGKCzx 8delNo8eBCgexs6YEqi7VqPv9wHWXoTcF2bNbSX4YrhSvzcAE4EzUiyoxB33VUR72uSo nQKPF/L5tY+/amKkd2SwegBrhby0e4WEgaAc3QwkHVVPSEMdD26DVyr75tr44nuarzaw WT20voowTvG1Ua5FLq3sLfhj6ogd9u588AvBdcUjEISudMyUXbPNaczOACP8X552RMXb gtGQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=selector1 header.b=eDty5ne9; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id qa25-20020a056871e71900b001f5ed3c5721si1301833oac.129.2023.11.20.07.08.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 07:08:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=selector1 header.b=eDty5ne9; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 164BD8032EE4; Mon, 20 Nov 2023 07:08:36 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234017AbjKTPIZ (ORCPT + 99 others); Mon, 20 Nov 2023 10:08:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233243AbjKTPIX (ORCPT ); Mon, 20 Nov 2023 10:08:23 -0500 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2068.outbound.protection.outlook.com [40.107.247.68]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F0A1C5 for ; Mon, 20 Nov 2023 07:08:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LWL04hqZSSjYw3SqjFaumCfcIDjZ0oFnGG9pQww2SbK0wCiIriHuXvryUZ7g/Gk0GrHTvLcBAWHYph86367TSn4NA85HGDXq0tv5w8Aas3SQKd+xC2+Ras/I9eMGd5vwEsNbWyvEDJLQETeXGl/vBNI6bYJHiQrk08usqn9PLvaMB50x4jF/Uimj35ByBkkvwz0csc+KtyzqrGxt7huU4zrijig/eKgl7kAyIPszg7ewhecV+rrg6rkUbi/FESGb6ILkfnDi/d5C5UJBDFI7vC9h14qA7mW4fUm2zbrGWEt+nm6PUwWiacYgXwd7NYuQXQYOE8qsn1UnGXFHGdV0nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=mQtzUQXjzUo5Wrxum5yXGOU8kfF+BYrtpZuKBdKI68Y=; b=djbdb9GjCMa/Soi4FTZnzE9GA3eRXDgTj18IjYuNoXSj35aNRn28HGDhWTnFcloXsrmDNId07E35yOlOqOtkPEaNbdxqVEk8iVb1aPExGZMBWlwBicBWxXFHD2J7b+LnCs5e1BDlI13lu1dR8sqgOclwJnLXbDTXig+CbXFJhL1gPix8cSnmjvqkaOSw5DIuz+QN7rlqCmhx1gVFlrXbGUQvSmMMSZJTNa7r/FUgnwXsxJuzt3oiej26SXM9QGlFw2EJWXvvazi9o8a1nrSGhxk/tvtjwubZX6vBDGNco8T7NPmKOn3y2LLylYoi+Hb1LemX29IBmneR9479YZCsFQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mQtzUQXjzUo5Wrxum5yXGOU8kfF+BYrtpZuKBdKI68Y=; b=eDty5ne9QIkxxLAbxFg572xl8REukJzcqRi2R3fjxVWg693yRFyuGE4v6A4WSV/lTjgSa97ANPDmA8lzxIJ+f4pxYxNjZcp+oN/VQ1JyjyRc1U1K25qrnRVmTHxnYPoeNxYmNC2yS2arwjnwWkQ5ZoUerpH5juTTOOMPG9eEB7W6McOVlFXuVwBbRJ8nTFU8OG/V/vTYGWEt+qrJkcKrRWDToQcx2LLTDLx8vRX64aY1Hp2IUNgZ2KJchQvYRSV61/mB9bzSLjGARk8AkP8zIxcCTJWZBl5E0J8Bs+cLYTf6+qKa4ts9nEKsq0dCRed5OhnQ4dkezcQOIFORZNH98w== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com; Received: from PA4PR04MB7790.eurprd04.prod.outlook.com (2603:10a6:102:cc::8) by AM9PR04MB8338.eurprd04.prod.outlook.com (2603:10a6:20b:3ec::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.16; Mon, 20 Nov 2023 15:08:14 +0000 Received: from PA4PR04MB7790.eurprd04.prod.outlook.com ([fe80::e665:a062:c68b:dd17]) by PA4PR04MB7790.eurprd04.prod.outlook.com ([fe80::e665:a062:c68b:dd17%3]) with mapi id 15.20.7025.015; Mon, 20 Nov 2023 15:08:14 +0000 Message-ID: Date: Mon, 20 Nov 2023 17:08:10 +0200 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 00/13] x86/CPU/AMD: Rework Zen family detection and other fun Content-Language: en-US To: Borislav Petkov , X86 ML Cc: LKML References: <20231120104152.13740-1-bp@alien8.de> From: Nikolay Borisov In-Reply-To: <20231120104152.13740-1-bp@alien8.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: VI1PR09CA0128.eurprd09.prod.outlook.com (2603:10a6:803:12c::12) To PA4PR04MB7790.eurprd04.prod.outlook.com (2603:10a6:102:cc::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA4PR04MB7790:EE_|AM9PR04MB8338:EE_ X-MS-Office365-Filtering-Correlation-Id: d386416f-35f2-410b-7dc1-08dbe9da84df X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ULt9N9KZFafmVF8GmVC5Td+NoFOzFetNdEFZdcg/vZq4JtmjRap8Vnq/zBQ2k6RwQBSuxI/qzo9y6dqvRBn9ibkFQVdgNNLCe9FevDd/l/JbUW8ytPY/Lz4EbZ3XAsZugrcr6sMqmP1oBsb02AIxyNsTjsUUDGqTj7Acul5HkoYCTH7SUsacdpuDsiQ37f44cmr6WwnhpCkucxUQHU5ZJk/Pa2Z3UJ9iS/QnvBVLxYykyTdGoBUg30kk0fuWnYTPfCMGZiZx044Arts4EAiAy6fcyl2qsBFze8OaYmw0/u3oRO5+khC9XvcW60Naysteav9ZAM/ZKuWb1euUudHINME4LmdHQGEom/A5uVW+Tpfe8I0yWokSHF/TBFtt1RZyifq7lwdUnkkwEEstPcU6/eXGKnRHIzgPWOXErwgcuh3+d79w5RaRUsq4tttdwmFMtZM6TaIsm8UMdP+lEu3+e4dQQpovFgSPGkh9X76z2DhZB88Jbil8RoW/ZJ6+W5U6vTBvtz1PvOPEo+w6oJQ30UG7zXyHNG69Dj1HeRn89tr393SeBo8NNtOvhi7yZnFaK++/5NbHLqLprOL9RJbDh5Bn+4RbZDstKsq1OdU5cq2DQBvBq21nvFatLla5veVuSyOqWEj5Bxp18Fe8pvISEA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PA4PR04MB7790.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39860400002)(366004)(136003)(396003)(346002)(376002)(230922051799003)(64100799003)(186009)(1800799012)(451199024)(6506007)(66574015)(6512007)(8936002)(8676002)(38100700002)(4326008)(66946007)(316002)(110136005)(66556008)(66476007)(6486002)(478600001)(2616005)(83380400001)(6666004)(31686004)(31696002)(86362001)(41300700001)(5660300002)(36756003)(2906002)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?UDZ6bUY0K1N1NFdyMnBPdjhCWjMzUGtkTEpBaUhnbVBFbnd1cElsYVA2WkN3?= =?utf-8?B?ZnF5NEZtY0tvRU0xREpQNU9ycTVlYThxdXRzYStYb3RpMkh5Njh4MUg4aHIz?= =?utf-8?B?bG9yRU1xbUdEcVpFZ2hIZE9PdVNuTFZsTnhGYkgyMzM3MExCck1mSzFUWXAx?= =?utf-8?B?d29UYktBZnFYdFEwMVQvWDVreUYxS2V6VVdYZFdUcFYydERqdnV1ZkU0ZjBk?= =?utf-8?B?aEVOMThyUzh2VXROY3ZlRWZzNFRIM1htYWpYN3JuUTYwTDBPSWFsbHhPS0VB?= =?utf-8?B?bVUxcnAzZjhBa2d4OE5C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f-8?B?d093eUFYNUxxeXZnZEZYeGIwNEcwMGUwUUVlOHpkZ3VpaS90RmpBZTFTZ2dK?= =?utf-8?Q?w44VUyQAl9eyFzCqnhjaF270AY1wuqeoDzTzJ+tgjttk?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: d386416f-35f2-410b-7dc1-08dbe9da84df X-MS-Exchange-CrossTenant-AuthSource: PA4PR04MB7790.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Nov 2023 15:08:14.6568 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: QQ041t0ftmU6SsSYdxwhdcxhsV/5nrOqa7YFk1SEQVglisoNeccxTOT5I9e+3jCZQK4tJ3WSkLdVt+0BG+hj1A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8338 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 20 Nov 2023 07:08:36 -0800 (PST) On 20.11.23 г. 12:41 ч., Borislav Petkov wrote: > From: "Borislav Petkov (AMD)" > > Add Zen generation flags which will be used to check on what type of Zen > the kernel runs. Distribute the per-generation init work into the > respective functions and cleanup amd.c properly. > > As a result, drop the errata checking gunk which is not needed anymore. > > There should be no functionality change resulting from these changes. > > Borislav Petkov (AMD) (13): > 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 > > arch/x86/include/asm/cpufeatures.h | 6 +- > arch/x86/kernel/cpu/amd.c | 266 ++++++++++++++--------------- > 2 files changed, 135 insertions(+), 137 deletions(-) > The whole series LGTM: Reviewed-by: Nikolay Borisov