Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3969890pxp; Tue, 15 Mar 2022 09:45:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2a8S0YdONKFZcknYCXyb7bnMMssCOJYC/+FEvuSZx1ZQkBp6CHkXRx4AYkTNMWZWR1nVp X-Received: by 2002:a17:90b:1809:b0:1bf:59c:d20b with SMTP id lw9-20020a17090b180900b001bf059cd20bmr5631694pjb.220.1647362733322; Tue, 15 Mar 2022 09:45:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647362733; cv=none; d=google.com; s=arc-20160816; b=AvdOktO3Hw3YuHkUp/AzNJRApuAA1/7ZngUqPFWysUa9bB8cLorDF4/D2r6pAhax0A mN2Mg1IezxAGWTiitsOh54/8yN+S9xAuMn0TPlCjFDQIFu6ulybTa29TCTT5beIvyqnH myxF7+e+/E3YXvhKKvJsr6JnuR4Fo3o2Qk0RMHiEPUrhKDxC3bpXnMiiqsm+VmfIcLsL Gbixt5SW1BbiP05w1mA6+UgDH6tMjM6c+Yek5Fgy/LVrQ+XJHhNFz39lO1h1UXiFnMkq ObHM9ot/tGVH2hAw94nBSfFqrLzHuwEc+Y+nwxTnmEqsWEtWsNbpvCIAgzGuYD/JI5cW DeJQ== 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=VHcs+K42GPaL1O/zWLHihtIcexv3CxvwVco4lNr9090=; b=lxglpIgHYApvU6Nwo36c1oLbb9cMjRfJpadrWJMqixKY+7WhVI1d0U6pWO+fqEM0qf +ToKRd9PWIzSAXH7bBA6Kb9DWzQ07RIDbCC+LMS1jHCW92l4+0Ptsx9VTJQh0+t9jmMq sb7A/mabvcaJB+5u6I03yS+NCW8uDNtU+2aZjFEGN5YVcW5XyNfwmJf/xt0Fbt69S60h O2Zjgl1kT6Wbxlp6Ug4ehISJroh7bWl0aELlTD+z7uZIVH2X6xqyxlpJetXJfyGYK6hG Y0KvGFTQRRa2Yp5M+IL7qayQL+ccggJYmI0OL1UnsxAQUC5DYob64TyRdB1X1u+zuZOD /AnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="u/OKLCXN"; 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 c134-20020a624e8c000000b004f3931d98b0si17357253pfb.301.2022.03.15.09.45.18; Tue, 15 Mar 2022 09:45:33 -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="u/OKLCXN"; 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 S1345477AbiCOHgN (ORCPT + 99 others); Tue, 15 Mar 2022 03:36:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232431AbiCOHgK (ORCPT ); Tue, 15 Mar 2022 03:36:10 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF7384B1C0; Tue, 15 Mar 2022 00:34:57 -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 dfw.source.kernel.org (Postfix) with ESMTPS id E2852613DC; Tue, 15 Mar 2022 07:34:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B6BA6C340E8; Tue, 15 Mar 2022 07:34:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1647329693; bh=9t5nbjS6o46IYV0HqycSY7vUg/zpQpjyLn2xTnP5TPs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=u/OKLCXN+zqRQwxpMuvhRoVL7KZucbSVV/Qg665/NCRsHNj7b/kZNMB1x/9ARSknA hS7mtBLvMgnVqF1frARHwFl5GT7PUmPkkgIjWBW9HMcoa3rJLRFvOdSBD02WE32FJV d+fkNpzTwsZUws600ExqZVL7xWS7HUpDjs2znJn0= Date: Tue, 15 Mar 2022 08:34:48 +0100 From: Greg KH To: "Luck, Tony" Cc: Jithu Joseph , 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, ashok.raj@intel.com, rostedt@goodmis.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, platform-driver-x86@vger.kernel.org, patches@lists.linux.dev, ravi.v.shankar@intel.com, Dan Williams 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 Mon, Mar 14, 2022 at 04:10:39PM -0700, Luck, Tony wrote: > On Tue, Mar 01, 2022 at 09:14:26PM +0100, Greg KH wrote: > > On Tue, Mar 01, 2022 at 09:10:20PM +0100, Greg KH wrote: > > > On Tue, Mar 01, 2022 at 11:54:47AM -0800, Jithu Joseph wrote: > > > > Note to Maintainers: > > > > Requesting x86 Maintainers to take a look at patch01 as it > > > > touches arch/x86 portion of the kernel. Also would like to guide them > > > > to patch07 which sets up hotplug notifiers and creates kthreads. > > > > > > > > Patch 2/10 - Adds Documentation. Requesting Documentation maintainer to review it. > > > > > > > > Requesting Greg KH to review the sysfs changes added by patch08. > > > > > > "RFC" means you are not comfortable submitting the changes yet, so you > > > don't need my review at this point in time. Become confident in your > > > changes before asking for others to review the code please. > > > > Hint, it needs work, sysfs_emit() for one thing, lack of reference > > counting on your cpu objects is another... > > Greg, > > Thanks for the comments. They triggered a bunch of internal > re-thinking of the interface. One idea that has some traction > (Credit/Blame: Dan Williams) is to: First off, I did not pay attention to this thread at all, given that the very basics of this patch series had such obvious problems. I only saw the contents, not the context in which you wanted to make these changes. So I have no real thoughts as to what your design should be, as I have no idea what it is you even want to accomplish at all. That being said, I do have one comment: > 1) Don't put anything in /sys/devices/system/cpu/* > 2) Driver creates some info/control files in its own > corner of /sys/devices/.../ifs > 3) No per-cpu files ... run a test with: > # echo ${cpu} > /sys/devices/.../ifs/run_test > 4) No test result files. > When tests complete they report using uevents > > Using uevent to report means that we can easily have > mutiple parts to the result (pass/fail/incomplete status, as well > as diagnostic details about the reason for the failure, > or why the test was not completed). > > 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. 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. good luck! greg k-h