Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp316994pxp; Wed, 16 Mar 2022 06:29:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkgxqf0/JFJcwqPcNgajjO3mJLFPn4zl6lcyN6BMTI5lMnNlsafMRshZb8bL1F/p7n8vdZ X-Received: by 2002:a17:907:6da0:b0:6df:8834:4f35 with SMTP id sb32-20020a1709076da000b006df88344f35mr356155ejc.19.1647437357117; Wed, 16 Mar 2022 06:29:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647437357; cv=none; d=google.com; s=arc-20160816; b=aMH1sVElj84OIv27NmSA3skDbwd/USgRpFOpm9dgj0YLjbSPcnthrTEMfeFNjlgGka Ki2YqHAG+/72tVh0FA2zLTAY3oMlAs8IDw+OITGLasebeD3HGA0M0sGoIf5a5qGOGXYR fW6C/dMaCL4+x0M4dsv8+C/rGOeCRVCehubaJUb6Q+amkBRl5kjIoFs9UiucUsx/OwlS scAU7y9DG1v1BnSifYjXozUPOSGPXbctJSTX5sKS28NEW2uhOD3h9/iA/bFGyPxLgz6W sj+iZ+FWEUbUNz8knFhqM7FsyRw2DIESbWT0O7DNjQ5W945PjLQN+czUNLBl42C6jQwZ NscQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :dlp-version:dlp-reaction:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=pKMmDpccsrNAMxYjMScpjbWuDagLj2OfvY5g8Pb6YbI=; b=XNcfJoZ/7gM6ERGHbSOi+/v4naq2Pd9YEe5gH6cH5oQm1dWbKby5B7FAnoLK4D0L+t MuzQ7FQciTMoAuDZnBhmam+HfRCF51SVoxI5GEeSX2CmR/0aftli2MzM+WrdWY/9J4dq tlwwLrHbrxqJ6QYW8SQIIwkGTjNNjc0hXmeTD3PZqdgcZU6KfBk00ydJK9i6MNKIPrus D2URnitHO8EAA5UUHMA0TQBfixeaLYBx6akW+g5/WopUU/0RuW1VGsz6V3eOe0fk4kmm hgaOrvQIc028HWR7x8SaFb1A5dfLJIq5DZ2KRWxlYaVkMV8oVGsAUsMfcg7nrtbPlQf5 geJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HQLlDw9q; 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 hr16-20020a1709073f9000b006da6363576fsi1238320ejc.621.2022.03.16.06.28.49; Wed, 16 Mar 2022 06:29:17 -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=HQLlDw9q; 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 S1349534AbiCOPAW (ORCPT + 99 others); Tue, 15 Mar 2022 11:00:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349545AbiCOPAU (ORCPT ); Tue, 15 Mar 2022 11:00:20 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A8C32655F; Tue, 15 Mar 2022 07:59:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1647356346; x=1678892346; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=GyNyfKahJzTHsEIBBRJIhFWT/tnEv+2kPDiw/r6E+k4=; b=HQLlDw9qtrAfxhh7fFJY3uga7lyOQJf7GrhSSKj1r86OqsEGXdsXuWpj mCKkk5bE+X3p/zEf9LhvwLrqmo/Y8CVZb5kBJBLdHUNvpoWhK0MrCpqBP jTcrMH2VFFwJe7sdrE789dutF7l1BC5ud4SOv+GZ3+gQWBJmDj0dRCCpA AQs4O36GnYFy4mHak25NoxKYJwyGBwgzQY5+viwiKR15n9GHtw2Q5VXto 6CE3CVeegHf7DUXGT9O/WhlWueB7vVwanaAdu09yKIBDEv4unl+ZyJZBp IUL6uwunywTC1h14xcOrt26gOsHk1mkOOvSdcl1NtKPWsXd+RdIudJoSE w==; X-IronPort-AV: E=McAfee;i="6200,9189,10286"; a="236929303" X-IronPort-AV: E=Sophos;i="5.90,183,1643702400"; d="scan'208";a="236929303" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2022 07:59:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,183,1643702400"; d="scan'208";a="644286209" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by fmsmga002.fm.intel.com with ESMTP; 15 Mar 2022 07:59:06 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Tue, 15 Mar 2022 07:59:05 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Tue, 15 Mar 2022 07:59:04 -0700 Received: from fmsmsx610.amr.corp.intel.com ([10.18.126.90]) by fmsmsx610.amr.corp.intel.com ([10.18.126.90]) with mapi id 15.01.2308.021; Tue, 15 Mar 2022 07:59:04 -0700 From: "Luck, Tony" To: Greg KH CC: "Joseph, Jithu" , "hdegoede@redhat.com" , "markgross@kernel.org" , "tglx@linutronix.de" , "mingo@redhat.com" , "bp@alien8.de" , "dave.hansen@linux.intel.com" , "x86@kernel.org" , "hpa@zytor.com" , "corbet@lwn.net" , "andriy.shevchenko@linux.intel.com" , "Raj, Ashok" , "rostedt@goodmis.org" , "linux-kernel@vger.kernel.org" , "linux-doc@vger.kernel.org" , "platform-driver-x86@vger.kernel.org" , "patches@lists.linux.dev" , "Shankar, Ravi V" , "Williams, Dan J" Subject: RE: [RFC 00/10] Introduce In Field Scan driver Thread-Topic: [RFC 00/10] Introduce In Field Scan driver Thread-Index: AQHYLaZcmKq0UuRYGU6xp1k7P7vRw6yre5AAgAABJQCAFBlxgIABAjIAgAAEKTA= Date: Tue, 15 Mar 2022 14:59:03 +0000 Message-ID: References: <20220301195457.21152-1-jithu.joseph@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.6.401.20 x-originating-ip: [10.1.200.100] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 >> This seems a novel use of uevent ... is it OK, or is is abuse? > > Don't create "novel" uses of uevents. They are there to express a > change in state of a device so that userspace can then go and do > something with that information. If that pattern fits here, wonderful. Maybe Dan will chime in here to better explain his idea. I think for the case where the core test fails, there is a good match with uevent. The device (one CPU core) has changed state from "working" to "untrustworthy". Userspace can do things like: take the logical CPUs on that core offline, initiate a service call, or in a VMM cluster environm= ent migrate work to a different node. > I doubt you can report "test results" via a uevent in a way that the > current uevent states and messages would properly convey, but hey, maybe > I'm wrong. But here things get a bit sketchy. Reporting "pass", or "didn't complete th= e test" isn't a state change. But it seems like a poor interface if there is no fe= edback that the test was run. Using different methods to report pass/fail/incomple= te also seems user hostile. > good luck! Thanks ... we may need it :-) -Tony