Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp423683pxb; Tue, 14 Sep 2021 00:04:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdh+ZRNtOMCyMhetyfw03PF9Pmfg+0//ILmK0vnPsDQTHr7oEwJ/m8vUmLlg4zNHrLFmsV X-Received: by 2002:a05:6602:2c05:: with SMTP id w5mr12640799iov.160.1631603040265; Tue, 14 Sep 2021 00:04:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631603040; cv=none; d=google.com; s=arc-20160816; b=W1ZjEAexmVyVNmbK5Hz9vdzO+1BV4m/ps+NMCZCdUAcyZFrq/x89Sbqd4N7srV09la joeC1gODpfq4XvM04e915yw01jQIbpb3wLnVGgVaRzSuuvd3mW3F6ZDbP/5PZ0uV/9p/ aE63e6EvuDm+zNpjkjflypNpc01Y34m4KqtyArUUJNUAn8JaLg4pIdYszhiKqrqsgiks l+HXViAzfQl113DJpp02ZBuIKmDvuucrpxAncglXTiE5G0HFYbDTAHVvSz1TtbitVtzm LwSAOT+OniiWmcC7VFK7jjLmLsY+M+JqoWkvLl8ZEsSA2r7X3eZ+ijug5Bhd/odfQrJb NjbQ== 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; bh=7WTSRC4MW+NP5wLUwBtuLLem0zO5B4nROJqEwDogJ7Q=; b=qwTv5KN3zVyLRhZ2OPP4dk96b/h990MqrpIO7vvxXe3DW91OoHCuL/u3oabUMlhS1J PiPKmSqgl/mg/3hm0rV8PAv/udx21jlGrWY6QjMbk7EzcLr7uoC5Bp9StOfVsIy2EZ/Y sq3Ad1CCHWReuZ0l4x3AajviAX8K3Zc70NWHTUWdfARG9/FQFriFj0iNyfsvZAvvMpa8 g+w/qoPBiCheJVu9iIDPzJn8Q6unqCVr+3vCjSxF45tHjEtXIBblRX20tkBVJGbJYJ5e nP4VEB9V1AetZqqWJDAwS+FY7jSUcTP4/dKABHVEMnw4b6XA+sQnC293re21/SLeu0WF dk1w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 12si11507595ilx.115.2021.09.14.00.03.48; Tue, 14 Sep 2021 00:04:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240407AbhINHEX (ORCPT + 99 others); Tue, 14 Sep 2021 03:04:23 -0400 Received: from mga01.intel.com ([192.55.52.88]:43416 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240327AbhINHEN (ORCPT ); Tue, 14 Sep 2021 03:04:13 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10106"; a="244234463" X-IronPort-AV: E=Sophos;i="5.85,292,1624345200"; d="scan'208";a="244234463" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Sep 2021 00:02:56 -0700 X-IronPort-AV: E=Sophos;i="5.85,292,1624345200"; d="scan'208";a="543817039" Received: from chenyu-desktop.sh.intel.com (HELO chenyu-desktop) ([10.239.158.176]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Sep 2021 00:02:53 -0700 Date: Tue, 14 Sep 2021 15:08:46 +0800 From: Chen Yu To: Mike Rapoport Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , Len Brown , Dan Williams , Andy Shevchenko , Aubrey Li , Ashok Raj , Shuah Khan , linux-kselftest@vger.kernel.org, Dou Shengnan Subject: Re: [PATCH 5/5][RFC] selftests/pfru: add test for Platform Firmware Runtime Update and Telemetry Message-ID: <20210914070846.GA80235@chenyu-desktop> References: <1cef405de3484eef108251562fbf461bad4294c7.1631025237.git.yu.c.chen@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mike, On Wed, Sep 08, 2021 at 12:08:40PM +0300, Mike Rapoport wrote: > On Tue, Sep 07, 2021 at 11:40:30PM +0800, Chen Yu wrote: > > Introduce a simple test for Platform Firmware Runtime Update and Telemetry > > drivers. It is based on ioctl to either update firmware driver or code injection, > > and read corresponding PFRU Telemetry log into user space. > > [snip.. > > +struct updated_result { > > + enum dsm_status status; > > + enum dsm_status ext_status; > > + unsigned long low_auth_time; > > + unsigned long high_auth_time; > > + unsigned long low_exec_time; > > + unsigned long high_exec_time; > > +}; > > Most of these types and constants seem to be a copy of uapu/linux/pfru.h. > Shouldn't the test get them from there? > Yes they have shared structures. The next version will reuse the uapi header. thanks, Chenyu