Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp440027imn; Fri, 29 Jul 2022 11:36:25 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ui5I+AASlZ4754CoQScrv3LL7ePWZpuJF5IZeaEfb+m5kKysJ48cDzjJvzGhR/g7AfVrl2 X-Received: by 2002:a05:6402:5212:b0:43a:ad74:b336 with SMTP id s18-20020a056402521200b0043aad74b336mr4820957edd.16.1659119785409; Fri, 29 Jul 2022 11:36:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659119785; cv=none; d=google.com; s=arc-20160816; b=Qbv4UolOXp33FKTXGk9CRmVRLZEOA2NM1gb8bxITlq4/Lge9oyAeHyHf64mUMbBIEb LrJ7EZF37ITsH4tXW3oZjCoz8OvUlbB76FOMykpYY9RSSATvRwXtya/ZrQzPuFqP8xru j/7yGYsM95nRLxHm0Y93bfMrYhakdLcA9DO7NxHG8ofuEEAcdbq3n3BfztanRPhQ9n2T NVLGwySD9NUQc3Ys7mDU97Xi8VWlYS9VZsJ1vnL+qWhCnDLOPZqWJR7UNu5Nw0Hs4BrG g9U3PsCzDMLz3XigQ+lKC5y0zbLjEcOJVWaA8sMqklabOi6q0cXs3XaWdNW9ZROFUFAy Z5Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=ekZxj0Q4fihuPapKq1Si6zkaK7nT1SHVchKqQCPWkc0=; b=o7PP2Zo4lk4OkFZWGSbDiJMVvQbWl5rhvKJQjySDHmp+GcSIsUdmabVDLTV7mVthBn xufe5xLhLJ6SWYaZ1MgmwiI96eoYhioT6xU/LTlAaxME0ltZ0QnGlMZygV2Hypj0p+EL Ao1m7p7HnbcRoItcRvHqKDa9V7jx4ZVOB9lS93Aus0ALesufAZJY739IwQOp6LRy7MFr SuX49o9P2OUi0Hnh3SVEdkBjNibES4GBingmgIumhw4kR0xCeZvILh+06/0jpkwScwF0 J88s6lwJlsYSTsnP8vA6w3nYu2vB1MZNOXBmcqZo/rHaN41a52mreo86pPV8uHJ5SXbE 3rIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=g1PMCXTH; 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 ji16-20020a170907981000b007262a929fcasi4329800ejc.50.2022.07.29.11.36.00; Fri, 29 Jul 2022 11:36:25 -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=g1PMCXTH; 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 S238513AbiG2SCe (ORCPT + 99 others); Fri, 29 Jul 2022 14:02:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238452AbiG2SCc (ORCPT ); Fri, 29 Jul 2022 14:02:32 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39D7087C20; Fri, 29 Jul 2022 11:02:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1659117752; x=1690653752; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=Y0+P/vHWqaRgVIxlZZfHJ7Fd2MGWeehyke55xUiYtkk=; b=g1PMCXTHGQsqulMzRFcaEjcHlrqECD0YqkVB5ouyhCqdfz8yLSE87EoV sLcSEUoy4vsWoAWdWZjGDXMcfxUHPIUL3hLqg0RsHrJy22kHt5xm4s7a6 rMZlvt0eOOl+lNhFfRAOfINluqOW8aM08MtxFejgk9RLj170rsBg6vpj1 TeUPl5RBMDUi/JJaZTltRiLd5xyU+XroIImcO8hJkv2hpNuB2uNJy/ieA bUfk2shhaRGcf8+36QQrHP6qyiVNecsFEEm+WJlH1jLpqpQMq4u/kce5X WeSXdxHZThOjN0WaRoN5aiWGPRILWeQTIYMe2Ga/O0tNJGMfUK8G9gZWp g==; X-IronPort-AV: E=McAfee;i="6400,9594,10423"; a="314624637" X-IronPort-AV: E=Sophos;i="5.93,201,1654585200"; d="scan'208";a="314624637" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jul 2022 11:02:31 -0700 X-IronPort-AV: E=Sophos;i="5.93,201,1654585200"; d="scan'208";a="669348643" Received: from svdas-mobl.amr.corp.intel.com (HELO [10.209.20.175]) ([10.209.20.175]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jul 2022 11:02:30 -0700 Message-ID: Date: Fri, 29 Jul 2022 11:02:30 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [RESEND RFC PATCH] x86/bugs: Add "unknown" reporting for MMIO Stale Data Content-Language: en-US To: Pawan Gupta Cc: Jonathan Corbet , Thomas Gleixner , Ingo Molnar , Borislav Petkov , 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 References: <20220729175959.w7gd5z7dsbxrnydn@desk> From: Dave Hansen In-Reply-To: <20220729175959.w7gd5z7dsbxrnydn@desk> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 7/29/22 10:59, Pawan Gupta wrote: >> + if (!boot_cpu_unknown_bug(bug)) >> + return sprintf(buf, "Unknown\n"); >> >> Thoughts? > Sounds good. Similar to this Borislav suggested to add > X86_BUG_MMIO_UNKNOWN. I will see if I can combine both approaches. I'd say Borislav's is better if there is going to be a small number of "unknown" things in total. Mine might be better if we expect a *bunch* of them. In other words, I'm rooting for Borislav's.