Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4335807rwb; Tue, 8 Nov 2022 15:49:45 -0800 (PST) X-Google-Smtp-Source: AMsMyM5Ko/0b20TGqavJfPOxU1loklC+258/A6DDnzBSRJIHUbuAqSy6MOFj/brodZnzbBRxhbxB X-Received: by 2002:a17:90a:6909:b0:212:f535:a34b with SMTP id r9-20020a17090a690900b00212f535a34bmr61435773pjj.6.1667951385332; Tue, 08 Nov 2022 15:49:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667951385; cv=none; d=google.com; s=arc-20160816; b=iSkxynWjtZyGWun7vE8FcjYN7RTiDHAXlnLLw+K9Jmpwao0gzn9HA1jw0VP0g4gDnt oHKDXYFrPXFfD4z71DaCK9R/cEMxz4lYsUvzQ35DmilNg9NY9PAG4kPmg+OUQKZ1oc/+ jjEkS815UShkkgAo1VBjNA9qVqqD45TLJM9TMoRpa8X3XMqwRjfakqSjpi91irxA3dBT E0vycaB101f4Q+vZLcs7WnUukPerzDtv8jqcQIylnOCOx4wNb5DVtTVmPnMoiJDTPgq2 PwJoNPumLsOERN2oKghryMY1e5ABcSbHXIRulMUr5wskSr6/eh0tsR/S7VWhFdkAtun0 6FnQ== 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=MzGRpumXAyDorB94qJhH4CdO9wTTZaFcqHTtZT9tz4U=; b=Iw/YSGWw4LLGSOJLLQchECINGT8Sxf1IDQd8Z5i68caKMBbjax04A80cHYgkW+NJy9 na8fi0s6SWTc2NKB2n8Pxw+e4KptF9t04PtUN22vmIbZKHSMF6haFJnusWOyJMD+FBSh mr9EN/CXECUlNYPkTQcHg27h+QTmx1Q6wzysuKMTQvD2nyCXiD8tlvk8mbj4OudHWK+j 0Z0Nsr882beFpCB+GyqYcBZOCuxIZCgwKhb3dbgRftxO2AsLeao/voDUEwLqIVLKQVn8 QMRD6eWd4epaqFy8/BiN8/ckq73BrNhuyutbTtQyC3fkXbddUPVY8G7zMZE0gPRSo9VO WzkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=nk03BrMj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 12-20020a17090a190c00b00208e05957c9si17006748pjg.20.2022.11.08.15.49.33; Tue, 08 Nov 2022 15:49:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=nk03BrMj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229912AbiKHXK5 (ORCPT + 93 others); Tue, 8 Nov 2022 18:10:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230048AbiKHXKo (ORCPT ); Tue, 8 Nov 2022 18:10:44 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 926F422B06; Tue, 8 Nov 2022 15:10:39 -0800 (PST) Received: from zn.tnic (p200300ea9733e7e8329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9733:e7e8:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id DBC121EC03B9; Wed, 9 Nov 2022 00:10:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1667949037; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=MzGRpumXAyDorB94qJhH4CdO9wTTZaFcqHTtZT9tz4U=; b=nk03BrMjaQjePwEJbGR3s60Yvw80tchgGtAKXD30v9fkOEMLVfrXEQPMVKFETG8YXdeiL2 1JlyaIARB2hfe2OYC/WEvJrp4csioagXFh1TnpGu+sptEKVJZjyg9FMZYXlkVJ+A8IsMGD CDtPSn4fnuU9WKia1gD3DlDc9mMYHx0= Date: Wed, 9 Nov 2022 00:10:32 +0100 From: Borislav Petkov To: Pawan Gupta Cc: Thomas Gleixner , Ingo Molnar , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , "Rafael J. Wysocki" , Pavel Machek , Andrew Cooper , hdegoede@redhat.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Daniel Sneddon , antonio.gomez.iglesias@linux.intel.com Subject: Re: [PATCH 2/3] x86/cpu/amd: Add feature bit for MSR_AMD64_LS_CFG enumeration Message-ID: References: <034c7f5ac243ee7b40ba1a8cc3f9b10b1e380674.1663025154.git.pawan.kumar.gupta@linux.intel.com> <20221108225141.aikng7veemp25p62@desk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221108225141.aikng7veemp25p62@desk> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 08, 2022 at 02:51:41PM -0800, Pawan Gupta wrote: > Looking at bsp_init_amd() this feature bit will only be set on AMD > families 0x15-0x17. Andrew mentioned that the MSR LS_CFG is present on > AMD family >= 0x10 && family <= 0x18. Do you need to save that MSR on those families? Or do 0x15-0x18 suffice? Yes, 0x18 because that's Hygon and that does its own detection. So, do you need to save it on families 0x10-0x14? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette