Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1159248rdb; Fri, 1 Dec 2023 08:25:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IHF9GGkjoBCyKsue39x5SKc3ucATj21yJxv3n8jblt8tLrG2SIQ17DlyF1ugqcW631r+xDT X-Received: by 2002:a17:903:1207:b0:1ce:5f67:cfd3 with SMTP id l7-20020a170903120700b001ce5f67cfd3mr26704421plh.18.1701447931871; Fri, 01 Dec 2023 08:25:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701447931; cv=none; d=google.com; s=arc-20160816; b=Y9wZPu6sKMjr8e1RIhvMQGBke/6d700cMb1QfFtitnb9iZVvw84ICDwYGsVmJrRE0s i0Fa5TekjAt1zcnKiowN/9Cke+GCKfeEHCqku8CgWo3QwvtVfnIoADtdSFULjx91cOfv zywcteLEFYvbFr7voDTVowLd294QjT3O+U9z6V6TxnuvvxQaF2Ym4EsDamrzrSpOBtEv ReAYwJyzZbFZ7Vx2nvDdD5vriVdEkyTBfuzo8Tqr8vJ/Vrg7OG2zeQiFtlOMSylzdHQp +6rLacuZw48CyllHO+toGmCXWlTh9R0xSHKAwAgCAabCOQl8dgaP2+3QbVtqQGwYHEN/ 7/pA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=rapiwZDlWnBbpAMEhaygRwuZfjLV0wnHZQnxjAZcvyg=; fh=EKiF39eQe/w9waXI/jkgntA3sKE7GB8GGN62V89YLTs=; b=UNzTdry3CQjBkqhhlLIUeI0XS59CnYv3nc3zprvfJF8JZ0cW2nryLBYRBDfsodgIFO ZLhF5G7Ip/DiSoWglRe/COnkUI4hgliiPly/QEGgHtz5b3guuj9YsMkS3VnH6uSmfKzl +2mhdl59LsFFIqFkVNcM4Imu8t5qullzs4BjfX5/wbtBcZ4z+pf4oPmjM744CwXZO7rx X2HkVKQivNINHcxt5bipMnV4T1mjJGkUfASgqI1XIMeXMU0waPErji6cQdcOs6wz7cT0 5kFK0R3t6uZljb4KQPCfCLRT95d3x/1yUnbpUvSrs7de/QsoTnOg1eXObvqc6eORirkX KIjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=DtdsvPVH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id l12-20020a170902f68c00b001c4062a0e43si3482938plg.169.2023.12.01.08.25.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 08:25:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=DtdsvPVH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 3CDAC82B8A79; Thu, 30 Nov 2023 10:51:17 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346561AbjK3SvB (ORCPT + 99 others); Thu, 30 Nov 2023 13:51:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231199AbjK3Su7 (ORCPT ); Thu, 30 Nov 2023 13:50:59 -0500 Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FB6C194 for ; Thu, 30 Nov 2023 10:51:02 -0800 (PST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id 7BC6340E0239; Thu, 30 Nov 2023 18:51:00 +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 luf6zEsWk3BT; Thu, 30 Nov 2023 18:50:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1701370258; bh=rapiwZDlWnBbpAMEhaygRwuZfjLV0wnHZQnxjAZcvyg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DtdsvPVH9edVoTCu5TBnMiqyxE8V2ApUzZy8w704bA96VMy/uwxzRQieu4nrFVi9i vNVzCzgJtBhIHL/hOX+n9+XU1btpZRg1LYQ+EAmDUjz+ds2fqWYBZcp9zUlgqtCgPT Z6juqksP3haowTR5MSHhOUMV4+tzYtSXpwHYiGCuWLXzHDhmtxCnqVFSALHKrDpFcx pv0aP6CtW5oee/iXzXaFS2hh9F4Qy7PLybaqs/23LWGos556msiaiL5GwZC2rPXKpU 8MSei9xb+rbOxj2hFg3PkBxJbPjOhSCmP0DZUn/BPT8luKson3EEkd+/1dAXY5bvEw A9j0FWuIasmqG1Svt5TTbO/HYCaU383zq+GEnF9P+f+EpnL8VKP5XGCCetopCd1pLO tXKqPtyYg3vf4sAv2ocvAvG2zCOoRFW2rJrc0awSotuTRL2eQi6z4oCqd/n+hMqQt5 zilqDxCWWxWZ4H+poJpmRf4nZ4sTMf1i7DPq5ESiH3eczh4sFltX0yLvm5Lwx2HYFi xU8P2PRjnc91GzOl+HiSXgPkD5+XSuDc3wogESuR8qHXj/JDmIr3cYENGKnXXDCjz6 M5I1ehUKvAnv6Xx2CHWMyqkdju9D8cUlXTCDp3nhWj88Ceii7zddNmBsVGEHPjY+ur 1Fo8YgCIISPjOXbWJcFVrH/0= Received: from zn.tnic (pd95304da.dip0.t-ipconnect.de [217.83.4.218]) (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 2E70D40E01AD; Thu, 30 Nov 2023 18:50:54 +0000 (UTC) Date: Thu, 30 Nov 2023 19:50:48 +0100 From: Borislav Petkov To: Tom Lendacky , Brian Gerst Cc: X86 ML , LKML Subject: Re: [PATCH 01/13] x86/CPU/AMD: Add ZenX generations flags Message-ID: <20231130185048.GMZWjZiIjhpjrv4rPf@fat_crate.local> References: <20231120104152.13740-1-bp@alien8.de> <20231120104152.13740-2-bp@alien8.de> <20231130171316.GLZWjCrHGHl+VVp724@fat_crate.local> <16400d3d-8264-4f3f-96ca-168064944462@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <16400d3d-8264-4f3f-96ca-168064944462@amd.com> 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 morse.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 (morse.vger.email [0.0.0.0]); Thu, 30 Nov 2023 10:51:17 -0800 (PST) On Thu, Nov 30, 2023 at 12:17:02PM -0600, Tom Lendacky wrote: > There are references to X86_FEATURE_ZEN in arch/x86/kernel/process.c and > drivers/acpi/resource.c that should probably be vetted. > > Maybe having X86_FEATURE_ZEN mean all ZEN (and set for anything family 17h > or higher) and a separate per generation, e.g. X86_FEATURE_ZEN1, when you > need to be specific, would work. Yap, looks like it. Those process.c and resource.c things mean all Zen - and perhaps that really should mean that - Zen and newer. This all falls nicely into place anyway since Zen stopped using a family number per generation so that's a natural cutoff point where we're going to start using those synthetic feature flags for the generations and one for all Zens. And yap, the Zen1 stuff should probably be behind X86_FEATURE_ZEN1. Yap, sounds good. Lemme cook up a patch tomorrow. Thx to you and Brian for the suggestions. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette