Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3927549pxp; Tue, 15 Mar 2022 08:59:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsu1zi5EftNTwibCtLghVvnX6fjUUVTttFTsNw20wMMfdhoInDXAQmAnMaEOnphm6FPdaX X-Received: by 2002:a17:906:d964:b0:6ca:4019:3928 with SMTP id rp4-20020a170906d96400b006ca40193928mr23426282ejb.762.1647359956929; Tue, 15 Mar 2022 08:59:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647359956; cv=none; d=google.com; s=arc-20160816; b=N3ss9/W4QOI4gZelzBmNXqGC/bjitxJOJXiqY/ipn7FB4B3WHltotNmLE8r991Zvc0 F/eOaeXIYtfxIPTu0CKwxcairgteXT4HR91NjIGmFAZ8cqdCZ11Pv+F+eDROW+FxAbNC tHfkBx1xN/mAxIv6HDFRBTVGxFqp/BIHwd00XRxZK6xRNcNRj2Kz4OcgBqQOtcLB6HKV HvWX3lgit74awmXLDDPljra45GlYMH6l0+HMoezvip6BUpJfPhFiMb2haJD5Tnpis0Ep ttGw3RL4vBzhrQ2qEIeZANO6Awy2eCSkuBsutKAKA+UA8dkDKs0OYsdYxKfEFRwnhgd+ IN/A== 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=sAFx5nU1bBgNFNRDid7hVzaRkxTCul+crYLdnuM+Y0A=; b=nssxhBA4tgJiwrVZI848fVLWj6p8NS/kPmR4bJVYBfUtYwWs9+SRf7OnuoEf2wYIGb jrRmaYjNmUlgFlsj8STdS7hprHmtShU0xll9ACbPeSGyqGCLXT2WxMOH4524Z0EWrYPS T2xw56B3HfcyZdO5HZbnDU0UJoxLjby26U0GwanNbKpyREX1eLd+rpfRr0+XbB39u3wW SegkPDc2nrfi2sp31NAypHCop9e6PY6B45zSnaEA+8De/AngniFKPMBKHG5MHmlEBBU6 yfczgt9xphmjGsv2zd9jGwWXlYYpJhnTSSmuUXYFtmLN3Fk8oPPuDuhA6ppWGWYwQFe9 vTeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RsAX6Ixq; 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 p27-20020a170906141b00b006dbb83d397dsi5611138ejc.458.2022.03.15.08.58.47; Tue, 15 Mar 2022 08:59:16 -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=RsAX6Ixq; 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 S1343583AbiCNXLv (ORCPT + 99 others); Mon, 14 Mar 2022 19:11:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230021AbiCNXLu (ORCPT ); Mon, 14 Mar 2022 19:11:50 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A64273BF8E; Mon, 14 Mar 2022 16:10:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1647299440; x=1678835440; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=6C9nVg8jyii5VHo88KHjPTiSG9eWD7pgA09gtw2HDFo=; b=RsAX6IxqipUuwfY7L5im2eSk7jSsDzRGNpSRuCJNOK3xhy7X8PCFAaZM +Y9fQWmMewXbJNdDydzHKR99l+Sbu17WRI+QegzDqbac43yL9KdaM1nca 4XCvv4J8S2+pUZwfnUrwuUkJXsmZYsRlyNcR0vK0MKYtIFlatUTdm17dA 7UmjjRxYqG99NXIXoYV25OFZslmANhf8KzGUCSPDUH4HVcvUZEvjcqtxi fhKiFhY8OJkIqW21P/M+Vj3ua4sdGxT4IIPduhgrx6unKT3o52AlgkS5A 1dxpxxuXStS7yo315mwf4lgB4cPd3813eysApsHQft7W7Zs+oH52yMpWV w==; X-IronPort-AV: E=McAfee;i="6200,9189,10286"; a="253726560" X-IronPort-AV: E=Sophos;i="5.90,181,1643702400"; d="scan'208";a="253726560" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Mar 2022 16:10:40 -0700 X-IronPort-AV: E=Sophos;i="5.90,181,1643702400"; d="scan'208";a="598096916" Received: from agluck-desk3.sc.intel.com ([172.25.222.60]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Mar 2022 16:10:40 -0700 Date: Mon, 14 Mar 2022 16:10:39 -0700 From: "Luck, Tony" To: Greg KH 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_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 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: 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? Thanks -Tony