Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp4223218pxp; Tue, 15 Mar 2022 15:43:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPSjilAAbHf/qrePJwWIu8IAZ7Hre+M6BQto1uLbRk53YYKQeJknIQw1uhu04MLAs+5Tg0 X-Received: by 2002:a17:90a:d3d0:b0:1bb:f5b3:2fbf with SMTP id d16-20020a17090ad3d000b001bbf5b32fbfmr7044604pjw.87.1647384232976; Tue, 15 Mar 2022 15:43:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647384232; cv=none; d=google.com; s=arc-20160816; b=0PK/eLIfClXXfVQoLlCSQYyApt1FzlFcrZHKv/lpeYeSTzqLpK38WBDxp4RVl7etUk 6DnxFhhIbetFhfD6KAZJdFX97C9q8ErMwshOiRLwOH2ceLO1blOAutAYv50NndmQSk6y d4zVIDB9Vau24TlyOZ/uSJCq79JB+dm/iOEz0GrzgNPrfHSurcq7avWfaUbOIIA2AU5O xdw9WPBw3CQbLoSzmCK/f2EauSRgL0RUjF++0+Y/mY4P9U3PS3ZcVJ10DB6twHpHiUPC 6gPg7Ic4V0wZoKw+j9y3glG1OYWaxjtMCecHgaGL50SYK/xLsQntJ8M4xCedXLketbjK d3iQ== 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=ymeXRbv710KdqcBcmRdfPF4flq3ZLHRL5AZrpRuf/3Y=; b=ATLiAk7gcX3GpqRedHs5q8llAPFhQF070StuuQRmKHoGPmMb6xONiKsGzN7fHYXYDu 5zCa1IpnaSCAB/vsbe479rWs+30r0V7YJfBwn331Ez40VgTIPznK9yKfMzLHjfuuglgI 70LimD5Lr4Qf7G3/aKnS81EMhHcfUaZLV22zLmO6V7izIE1ftQ01/FloAc4qx2ADYzPs iw6nugRK4OkhMwsrIVTRvzJu355WbIHdHeY4DpAm0e5fM9bAEiPHmiqOzjCm7a0qbDEB vLGWphoY379emq1ukCJmtKpDGXB9PLClwSIC7Cru/pbNC5WEddbq8Qa8RM9ljB9Pbe+W UMvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2P+oJGeE; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t1-20020a17090aae0100b001bd14e01fbasi3121003pjq.168.2022.03.15.15.43.39; Tue, 15 Mar 2022 15:43:52 -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=@linuxfoundation.org header.s=korg header.b=2P+oJGeE; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349585AbiCOP1v (ORCPT + 99 others); Tue, 15 Mar 2022 11:27:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349589AbiCOP1t (ORCPT ); Tue, 15 Mar 2022 11:27:49 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A456506E6; Tue, 15 Mar 2022 08:26:37 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 82CBBCE1B5C; Tue, 15 Mar 2022 15:26:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DCC64C340E8; Tue, 15 Mar 2022 15:26:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1647357993; bh=1qZvbzMNRKv0qve5g7XZi7lfN+NjMPizyZXg7d9qImM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=2P+oJGeEKL480UE+3P8IkGKwHtbTrpp8jjvHca1milkij2fwwFx5bLc0iwI1KumeK HYoouOQ04UG/98KISLGDoYiCxCxEv/f85Mn+4h2xN9o+n7sh1ATROmhV2M2VcqJ3jc GLTTmsA0p7+AO6qOr4qKWpWPGpqmGBWYsb3I7bww= Date: Tue, 15 Mar 2022 16:26:27 +0100 From: Greg KH To: "Luck, Tony" 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 Message-ID: References: <20220301195457.21152-1-jithu.joseph@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-8.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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 On Tue, Mar 15, 2022 at 02:59:03PM +0000, Luck, Tony wrote: > >> 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 environment > migrate work to a different node. Again, I have no idea what you are doing at all with this driver, nor what you want to do with it. Start over please. What is the hardware you have to support? What is the expectation from userspace with regards to using the hardware? > > 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 the test" > isn't a state change. But it seems like a poor interface if there is no feedback > that the test was run. Using different methods to report pass/fail/incomplete > also seems user hostile. We have an in-kernel "test" framework. Yes, it's for kernel code, but why not extend that to also include hardware tests? thanks, greg k-h