Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1142513pxb; Wed, 6 Apr 2022 09:41:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzeAtKqmeHRkXCmoCMm048NrI6uDPsIZUN7aFeuzSZXy7qQPRnpawf3PljPPBLw1MaUipqK X-Received: by 2002:a17:90a:d0c5:b0:1c9:ec78:18e5 with SMTP id y5-20020a17090ad0c500b001c9ec7818e5mr10978678pjw.53.1649263311692; Wed, 06 Apr 2022 09:41:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649263311; cv=none; d=google.com; s=arc-20160816; b=FutZCZnA4ugxvHM/xnEfNIoN8sQLaLd5PqFa8x/RFXHuNpW7Kymk3At9b5HKK4Y3sr 6FWyaJsdi4Jqn9V1d+Dl3GSuUeJZoFd/tqJqvWVJE56qNgosUh6WIauL7Wv4ytpneD4l JSspRJoECWeR0UyDpeDeidLmaKs66HESiawXO0aFyu24j1qjzP4CxKpXvzgsZSf5CvuG YDT+e9e8eW9TyVqro82/4LlGrotMsF4vLuNKzdkg5sRXqv4I4OC1Vvs/cgYYL6V+0K1Y +AZicdXRKJkcWwVUbCXnegvw2slesGbpzYbQHYIbTAiIdxh9yyKS5524+5iDpqYldPQD exUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=0FQc76hjkumZRb0ef3sm4lyuJ9dDneJQs2XYFpXinew=; b=HzfszNnIqImMtDElSdNRuS2x7XQFS6KaY1FzVMLhkrZqV/rdQieKC4VAW0HWm6PxT2 nYEx63ye+XdQxp4MRqi1BG25iONR7rhV7HSer8nSYrnx7cOIoekW4RolJGsnwFjI3azr rueysJAp4uy2f3xZYsK9p2E5gVwVGy2qYdn5G7SVufGNYesQ2qVxcUt0lBYtTVpf1pOZ KiL18RRMTlezbycxe6CYoxo9xawAUZGjaRANkGO2SW54E9sRBP8Glmokqc5wngPVo6Zq aYwakD/e4Z4/szx1ljCUekj0qrX7FZrUqRrjbcKtTen//lD8SKIZhldCP1kWfx68lfWM 43GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=213m3rZ0; dkim=neutral (no key) header.i=@linutronix.de; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id q4-20020a170902f78400b00153b2d1663asi15099050pln.578.2022.04.06.09.41.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 09:41:51 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=213m3rZ0; dkim=neutral (no key) header.i=@linutronix.de; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C74ED32B71C; Wed, 6 Apr 2022 09:29:37 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237556AbiDFQbY (ORCPT + 99 others); Wed, 6 Apr 2022 12:31:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237734AbiDFQal (ORCPT ); Wed, 6 Apr 2022 12:30:41 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B4B12EF17E for ; Tue, 5 Apr 2022 18:44:20 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1649209459; 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: in-reply-to:in-reply-to:references:references; bh=0FQc76hjkumZRb0ef3sm4lyuJ9dDneJQs2XYFpXinew=; b=213m3rZ0KLU5Eu0hBKewzbweOZpySZN6OV61gHJimd/7JeEreR71y3Ey0y35wKxn4WJrzI TFdGe1p/602glRhZx+wBjf4nc9XvKV8Hi9OGH9S/b1UjWDSzk1FKEH8+vmp56Kb0bV2W9l UFHFvlX/yUCmHioI8bEoP7cx6Bt/ARs7eD7n/A6aIeYmTVNC1SjiouR4ACO5CNmd7HzFah fu14BJSyaD/Br0lv7RVox4Aec98GwcFkY0NCuqr8XrOok1R8veUjE+VmQBhKydGZ79RqfX 6+cmkZsrcL8ktGXfj4rI1epqU9A4C0/nZZBB2OqrL1FiIOAevQ3VTy6IlDZqjA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1649209459; 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: in-reply-to:in-reply-to:references:references; bh=0FQc76hjkumZRb0ef3sm4lyuJ9dDneJQs2XYFpXinew=; b=EYz1XW4YJ5aPrJtrGMIWZkcekdSxXo4QFhSDh+PbKmMOwBcWReyVnH3jdH/AnruKBHEH7o XC6RaRq4LPl0UbDw== To: "Limonciello, Mario" , Dave Hansen , Peter Zijlstra , "Karny, Wyes" Cc: "linux-kernel@vger.kernel.org" , "Carroll, Lewis" , "Shenoy, Gautham Ranjal" , "Narayan, Ananth" , "Rao, Bharata Bhasker" , "len.brown@intel.com" , "x86@kernel.org" , "mingo@redhat.com" , "bp@alien8.de" , "dave.hansen@linux.intel.com" , "hpa@zytor.com" , "chang.seok.bae@intel.com" , "keescook@chromium.org" , "metze@samba.org" , "zhengqi.arch@bytedance.com" , "mark.rutland@arm.com" Subject: RE: [PATCH] x86: Prefer MWAIT over HALT on AMD processors In-Reply-To: References: <20220405130021.557880-1-wyes.karny@amd.com> <7cdc2103-c6d4-e1b6-9804-6739112eee4d@intel.com> <5873a444-bb32-f0d5-27f1-173f469baf21@intel.com> Date: Wed, 06 Apr 2022 03:44:18 +0200 Message-ID: <87a6cz0yvh.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Mario, On Tue, Apr 05 2022 at 20:40, Mario Limonciello wrote: > [Public] Really useful information that your post is public while some of the earlier posts in this _public_ thread were marked '[AMD confidential]'. >> >> This seem _bit_ at odds with the commit message (and the AMD SSBD >> >> whitepaper): >> >> >> >>> Add the necessary synchronization logic for AMD family 17H. >> >> So, is X86_FEATURE_ZEN for family==0x17, or family>=0x17? >> > There are Zen family CPUs and APUs from family 0x19. Perhaps at the >> > time of the whitepaper there weren't yet though. >> >> Is this a gap in the documentation, then? Is there some documentation >> of the availability of SSBD mitigations on family 0x19? > > It looks like a misinterpretation of the document. Not at all. The document does not mention family 19h at all. So where is the misinterpretation? Dave was asking for documentation for family 0x19, right? > Notice it mentions in Non-architectural MSRs explicitly: > > "some models of family 17h have logic that allow loads to bypass older stores > but lack the architectural SPEC_CTRL or VIRT_SPEC_CTR" That's relevant to Dave's question in which way? > But that is not for all family 17h nor for family 19h. You can see earlier in > the document the method to detect presence for SSBD which applies to the > rest of 17h and 19h. We know how to read this document. But this document does not mention anything else than family 17h. So what are you talking about? > That code in amd_set_core_ssb_state is only used for one of the > mitigation codepaths without MSR support, not for all Zen CPUs. Again, how is that relevant to the legitimate question whether that document applies to family 17h only or to 17h+ which includes 19h? We need to make a decison about what X86_FEATURE_ZEN means. Is it that hard to give an authoritive answer? Thanks, tglx