Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2729295pxp; Tue, 8 Mar 2022 00:05:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJwjtychfO6JHk037GR+3okz8ZV0DLmnJ94LA471fa8M+u0eATM+9Z9XugR1PNrwMffFh8m+ X-Received: by 2002:a17:90b:8d6:b0:1bd:3596:e97e with SMTP id ds22-20020a17090b08d600b001bd3596e97emr3485902pjb.50.1646726757263; Tue, 08 Mar 2022 00:05:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646726757; cv=none; d=google.com; s=arc-20160816; b=YNgu2bJyooBCU5p7TTMw2dyHAjmlhtYXaDb0Ac8pUDXMY9zfwn/nnEeOncYD3npxP6 xrNSb07Izy9ff6+sShq6KJyYj080mNd8fAXLUBWlqnpJoQ4JHPZ1ONiI0n2bjHxoQ+4c WB9qN2T4M4AAmph50W03NJaUvlaKKByEivymzFxLNSgsQ2vlwIgUSVjVSrMg/YDjxgWQ O3Od0OrzV1Mf9nKH2P5sDXCYDA3GQxx99keyFZIixfQuNgSMojiyrZwVr4TebFqNbIpM MMTJ9b9Cgy7eLxhNscT1UHOdk6f5/T44kU9wcrpJpYazVf5LW8kzDtnB7756ZlILbgmj Uj0A== 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=PXf2NqNoCobX/CKFF2qvdCFMp9GaKbGLckBxG0qLCUs=; b=nV5wfu9sMamPwFVG1zp5Zkt6MOJm8yqWYy7d8SpnAkMvZ0QcROsuvttVp/jfmLRhfA kIEuyMGr5sP3Nk4J0zD/w7fg2730adw3SfPd9+bmN6hpJ3+IIZ1lc69/rDVSd++rZzQo Y81AvMeOzzdgTLgy2fmSuDWKD4LMjzZ/7XVUExFQj99wwnqYhiFUcyMBNf3QjZCYSfVA WbNVz9y3uWlxkD6McP1lcY0rC3Eo7trTlhPjXzWeRMm+sjyjRBxQ0tFlF1tSzCs4stVn EZKCF/2KYIlr7f8UXXUlknrA2IafeeF5GVCwApIlTA/37sC/xOcoAqMveR92n0NPWQJi o/fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gE84yXIf; 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 nu1-20020a17090b1b0100b001bef37a5fdesi1777746pjb.117.2022.03.08.00.05.30; Tue, 08 Mar 2022 00:05:57 -0800 (PST) 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=gE84yXIf; 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 S245396AbiCGVbY (ORCPT + 99 others); Mon, 7 Mar 2022 16:31:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236560AbiCGVbW (ORCPT ); Mon, 7 Mar 2022 16:31:22 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E7C44B877; Mon, 7 Mar 2022 13:30:26 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id 9B250B8171C; Mon, 7 Mar 2022 21:30:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5EBFC340F3; Mon, 7 Mar 2022 21:30:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1646688624; bh=25OEIosfzfLsgOqshpbBYPHXAtM3hYgfp1P/4yp+bJw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gE84yXIf2xfNZsellXdbqzUntaL74KJQdmB1VNVIGG9/YF8JBUx3R2Z6XGAUkBKw3 4Yop2fPzh6jUshBGTWunXWH06bEJ9G2DW+TQN1pSxpAMOFk6l08AU4Q5Cd6smMSVqv W/4bqIAklo3xf70iYy35w1kM0f+rc3JPLrNQScno= Date: Mon, 7 Mar 2022 22:30:21 +0100 From: "gregkh@linuxfoundation.org" To: "Joseph, Jithu" Cc: Dan Williams , "hdegoede@redhat.com" , "markgross@kernel.org" , "corbet@lwn.net" , "Raj, Ashok" , "Luck, Tony" , "dave.hansen@linux.intel.com" , "patches@lists.linux.dev" , "linux-kernel@vger.kernel.org" , "mingo@redhat.com" , "rostedt@goodmis.org" , "Shankar, Ravi V" , "tglx@linutronix.de" , "platform-driver-x86@vger.kernel.org" , "linux-doc@vger.kernel.org" , "hpa@zytor.com" , "bp@alien8.de" , "andriy.shevchenko@linux.intel.com" , "x86@kernel.org" Subject: Re: [RFC 08/10] platform/x86/intel/ifs: Add IFS sysfs interface Message-ID: References: <20220301195457.21152-1-jithu.joseph@intel.com> <20220301195457.21152-9-jithu.joseph@intel.com> <188492dc80c017375da76d444347b1d00c2031f6.camel@intel.com> <7b9c788e-21dc-eedc-a1b4-9c6877fa48fe@intel.com> <33d0e764-86d9-8504-17fa-14b31c87de4e@intel.com> <7c620f8a-189e-5ac4-30fe-1fa14ba799ea@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.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 07, 2022 at 12:56:08PM -0800, Joseph, Jithu wrote: > > > On 3/7/2022 12:25 PM, Dan Williams wrote: > > > > > I am speaking of the state of the case where 2 threads are doing > > run_test and polling for results. Unless you can guarantee that run2 > > does not start before the results of run1 have been collected then > > they are lost in that scenario. No amount of kernel locking can > > resolve that race to collect previous result which would not be a > > problem in the first place if there was an atomic way to log test > > results. > > > Yes "status" shows the status of the latest run. You cannot get the status of the previous run. > > Also some context on test frequency: Hardware has strict rate limiting of tests. > Every core can be tested only once in every 30 minutes. So it is pointless to test at high frequency. What limits this, the kernel?