Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp646291imn; Fri, 29 Jul 2022 19:44:00 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sfu45GWR6Q6U0/nNtNS7sRH1EUBeFYCwPDccNKbc7FGS/rszbHR/Cf7dq/Hic/4/I5Iwdj X-Received: by 2002:a05:6402:2384:b0:43c:fb7d:82a1 with SMTP id j4-20020a056402238400b0043cfb7d82a1mr6012845eda.82.1659149040071; Fri, 29 Jul 2022 19:44:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659149040; cv=none; d=google.com; s=arc-20160816; b=sAlehmshZb/7ZbH20l6oDK1lF+HdRokSfs8D4pggulc6ZCHL0v/hsuRi3PC5xYjiIX nPxpFbPX90u9uum00543IqwejIuYKX/MJxEAVzBSkMVfAOqmBqocEQYz/UuL1WSttSc9 W86mGnotPd7PTkcKXcqu4a7ysdO6PaNdR/x7bQc/q684akiRcJDnge7rGzQ49CuNJisz PkOSDu8oRjLjL3DXQAg9kjDdHwfnp4HDYnqjqultlDp2HlX9+8161Z31Mc9S9MbYcrZD 6jbOgRq/PskPv38dxY1V9kcqEUAlPtsrhjg2mvwBJsEYAuzOYDq1Z23jXcDfLjX+6QbG AjEQ== 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=krsYolaSGCugKi1z+VODy6rQwAfK2jAE4AM7Q18KMEo=; b=j2k4g9DiQr/PJFcQyZWwiwdVjBz88xsxaMED50mdyeKI5FG3HmWU2J3mlaP33VRuiq ST7JcViKtNd8/rpLhQ0+gjoMLqZ0bXWY2PwMMlZSoRkGMlxzsi4C7fAPtBc5UOZkVc4R RVBEwFIDBurd0hX77YdSaQecJPLRs9dHStp5cs9BdFwZoIv8ilM/zq1FcoxQ7xQj4W2U UMazye2TBLppghzaUVPoe1v/LSBJkB2Gex8cqY+jCkTny+Z1A5K+QKHduk9GlnrmPkVM wNdZHhyHxenbiLJ0HJdS/QaXJV1DnNVSVTE/ptALPDiEq4s0cohYfM5m1rb2J2tjlhNi mP6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DWC4JAFU; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x19-20020a1709064bd300b0072b9b9c2a74si3601960ejv.251.2022.07.29.19.43.34; Fri, 29 Jul 2022 19:44:00 -0700 (PDT) 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=@intel.com header.s=Intel header.b=DWC4JAFU; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239786AbiG3Cb5 (ORCPT + 99 others); Fri, 29 Jul 2022 22:31:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232937AbiG3Cbz (ORCPT ); Fri, 29 Jul 2022 22:31:55 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6A03F5B0; Fri, 29 Jul 2022 19:31:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1659148313; x=1690684313; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=PcbwJg9Nq+orwj9qt2TIBWrJonHyULIKW9jq5xBZJlY=; b=DWC4JAFU8zH/m7E92G/WNCaD8kTAddLJ/K9O/Gsp56vkcWcYHKyEC7jG HyUFahuiZi1zgo/nUueelpxhAh21oF392wOSXkfUQfiicymXTqaZANiNv GlZDe6KesyjqxPqebyqmpJ/w6KoY7LE0qcqzws+qsl7da2ST/q+jCczE1 SeI8vaZlUZuz52GE5WqeQf0LwvqaSAyNbED5JGRLbs8OwpSVE3X/FUwe+ IAFv2BVOSDVVa6nZazpLceJjPA0NNn0ouC5MO8bVSCHE90FOp4oFFyNIJ RlAeUhITILNX/bO7m5usK67DpqvuWOcjz0HizKXMWwAxdF9Xz5lcIcbEa Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10423"; a="286440000" X-IronPort-AV: E=Sophos;i="5.93,202,1654585200"; d="scan'208";a="286440000" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jul 2022 19:31:53 -0700 X-IronPort-AV: E=Sophos;i="5.93,202,1654585200"; d="scan'208";a="629589983" Received: from unknown (HELO desk) ([10.252.135.102]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jul 2022 19:31:52 -0700 Date: Fri, 29 Jul 2022 19:31:51 -0700 From: Pawan Gupta To: Borislav Petkov Cc: Jonathan Corbet , Thomas Gleixner , Ingo Molnar , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, tony.luck@intel.com, antonio.gomez.iglesias@linux.intel.com, Daniel Sneddon , andrew.cooper3@citrix.com, Josh Poimboeuf Subject: Re: [RESEND RFC PATCH] x86/bugs: Add "unknown" reporting for MMIO Stale Data Message-ID: <20220730023151.kogebjrhsvhitklj@desk> References: <20220729022851.mdj3wuevkztspodh@desk> <20220729173609.45o7lllpvsgjttqt@desk> <20220729214627.wowu5sny226c5pe4@desk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_NONE 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 Sat, Jul 30, 2022 at 12:02:34AM +0200, Borislav Petkov wrote: > On Fri, Jul 29, 2022 at 02:46:27PM -0700, Pawan Gupta wrote: > > Let me see if there is a way to distinguish between 4. and 5. below: > > > > CPU category X86_BUG_MMIO_STALE_DATA X86_BUG_MMIO_UNKNOWN > > ----------------------------------------------------------------------------------------------- > > 1. Known affected (in cpu list) 1 0 > > 2. CPUs with HW immunity (MMIO_NO=1) 0 0 > > 3. Other vendors 0 0 > > 4. Older Intel CPUs 0 1 > > 5. Not affected current CPUs (but MMIO_NO=0) 0 ? > > Not affected current CPUs should be arch_cap_mmio_immune() == true, no? That would be true in most cases, with some exceptions like systems that did not update the microcode.