Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5904241ybv; Wed, 12 Feb 2020 02:24:35 -0800 (PST) X-Google-Smtp-Source: APXvYqxzn5ked8996gw/dRTmaSoWKMQrg8npxjrfsUbDWC1DPgsEzE9yPc4XmOjgZy8tvaA5or41 X-Received: by 2002:a05:6830:145:: with SMTP id j5mr8239547otp.242.1581503075735; Wed, 12 Feb 2020 02:24:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581503075; cv=none; d=google.com; s=arc-20160816; b=CHZ5vLVg2+D7SgLsBDMOppxrw441mNXpYg+6K4R9rK0hy07OqtVZWaMBpBoooBJW0n 64KD+5Oje2WePT0njXHKwlK3TbGo9AtDx+EKDoOJxEmHeZmCleP8KqRpG3LfOyBO6M1R u4IaJz8vv/y4dox8Gtk2ERWXxCCft8wDZ6DIY061QCGvb53tr59IGuGTO2MZfKbXfTad BmUrKB579VLTWMgH5guNHr+tvcbKtemFTuhtGR3K9J61rzbJQzBmY6UB3qPYOD82mpe6 BB9vPRrIydsD/52/xd9UDD+JWAO5G5Amx7kBhE061kpL/4/Afg5PvQyZqoMfGBWwJTsI W7jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=DVgghfBxtoIczpSIq8IoMlDremy7s8CL9jjdnuB1xvU=; b=JhObN+XtGTSVueJ5z9roMpuN9mroCvsRQDH8yOYxAoR4SE7xy+rLJGkW0Rd8kmGP2+ 0pmKJOmxKP+y7pf284D/YfWDXoZs2ngwtAYjMg6IGdV55ddG8QYOtgflsGsVi6zi7QVN gpGo3pmOehSmRRqqiftl5vFdxvl/P37RRiJPP/zEpNzuPnUgPd1T7ToN8Ma1Y7LLCPKw E5NVMsznib/dfQP1OK4TR1tKiKpUwRNsYXGY/R38/cQbwX9Cr3leDp8CI+Amb6ZBGxtA AORZCvdaNChLT7rwt/uriLlkV/B7l2OUAL1ujorS2TtupaIO6XaB0V1cgS4pZg84zB5q qoqw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id s17si3353329otr.320.2020.02.12.02.24.23; Wed, 12 Feb 2020 02:24:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727558AbgBLKW6 (ORCPT + 99 others); Wed, 12 Feb 2020 05:22:58 -0500 Received: from mga07.intel.com ([134.134.136.100]:46280 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725710AbgBLKW5 (ORCPT ); Wed, 12 Feb 2020 05:22:57 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Feb 2020 02:22:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,428,1574150400"; d="scan'208";a="226820686" Received: from hao-dev.bj.intel.com (HELO localhost) ([10.238.157.65]) by orsmga008.jf.intel.com with ESMTP; 12 Feb 2020 02:22:53 -0800 Date: Wed, 12 Feb 2020 18:02:11 +0800 From: Wu Hao To: Greg KH Cc: Will Deacon , mdf@kernel.org, mark.rutland@arm.com, linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, atull@kernel.org, yilun.xu@intel.com, Luwei Kang Subject: Re: [PATCH v7 2/2] fpga: dfl: fme: add performance reporting support Message-ID: <20200212100211.GA10436@hao-dev> References: <1581306469-22629-1-git-send-email-hao.wu@intel.com> <1581306469-22629-3-git-send-email-hao.wu@intel.com> <20200210163400.GA21900@willie-the-truck> <20200212031929.GB5645@hao-dev> <20200212053035.GA382718@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200212053035.GA382718@kroah.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 11, 2020 at 09:30:35PM -0800, Greg KH wrote: > On Wed, Feb 12, 2020 at 11:19:29AM +0800, Wu Hao wrote: > > On Mon, Feb 10, 2020 at 04:34:01PM +0000, Will Deacon wrote: > > > Hi, > > > > > > On Mon, Feb 10, 2020 at 11:47:49AM +0800, Wu Hao wrote: > > > > This patch adds support for performance reporting private feature > > > > for FPGA Management Engine (FME). Now it supports several different > > > > performance counters, including 'basic', 'cache', 'fabric', 'vtd' > > > > and 'vtd_sip'. It allows user to use standard linux tools to access > > > > these performance counters. > > > > > > I had a quick look at this, and it mostly looks alright to me. Just a few > > > high-level comments/questions: > > > > Hi Will > > > > Thanks a lot for the review! :) > > > > > > > > - I would still prefer for the PMU drivers to live under drivers/perf/ > > > > Hm.. one possible way is to create a platform device, and introduce a new > > platform device driver under drivers/perf/. > > No, do not abuse platform drivers, you have a real device, use it. Sure, thanks for the comments. Then I don't have any other idea to move code to drivers/perf/ directory, so probably only can live with current code. Thanks Hao