Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8632073ybl; Thu, 16 Jan 2020 21:23:14 -0800 (PST) X-Google-Smtp-Source: APXvYqzlnPOU0aN6EW+uRZH8vfRRlQOSRc/G1ryIj71iY8kykeputlJFnBpde4Xpad+IcoZrQxUC X-Received: by 2002:aca:af8b:: with SMTP id y133mr2183951oie.73.1579238594548; Thu, 16 Jan 2020 21:23:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579238594; cv=none; d=google.com; s=arc-20160816; b=JbL0OoDUIo2JDhJpaEoqNO5qo68UQqck1R8To8fRK+8LYqEE5s4e41/e+/Wb1JY7yg YGae5RB7g9889dO+YE3TnqJPoUdBlKbVO3xz9MLHDDbv8+yRJyjyR0IEQ+oJ16PR35Hy v2MjtC6XdlGfvo9AUG5PCZbhFKsaQcfdEmXm+kMbsvzl3EG75HVzhHPLrYgWHYDlwJwQ iToHEQLxqczMbmKrJVQ3pMKa41+spTu9Tc/HvytJ1jZCrCnfQAIeOjL/FlSuCwgEncgU gYBfAaFUa+UxL8BkJqZ2nSaeuO6MegbwexLXuaap8VOK8JmS6YOP6GYfDVH70ytY9nH6 1u9Q== 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=8ATMzbhq3MHWXLvqo3srVKLJKmVn3hbYN8Xw1Yk/J9M=; b=Xci/epayEtBnkebN8LBLRu+ntiuj491KuNemZ0zg0VHKlhSUUI3lzLrvSi3ZnFUMqc FP2z6VrYnjS0ueSif02YikCHLyJq0Ta3WmN7GHM/ZsYCZaQZUjAp1fucLRn9okXy2EyW XYg+2sBvtV2W5Z/eKwC8KhwgbFilkz/QTW4lX6ejHTC/Z0QHNts/99jFY7Ide5o2N4NG 03wBFMlphMSX4nQbabol2r1DufawXGkgiq44CJU1GN9RlJ1xVAYkWFMqaHwsVL3lH+/f YpaM8lXVTMQNNSMk5N916kTv1GEtEsCoQNLTftsiNkfkVqlohVQLqfigirai1JIRS7+o g95w== 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 t2si14411158otq.196.2020.01.16.21.23.01; Thu, 16 Jan 2020 21:23:14 -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 S1729730AbgAQD7x (ORCPT + 99 others); Thu, 16 Jan 2020 22:59:53 -0500 Received: from mga01.intel.com ([192.55.52.88]:38286 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726378AbgAQD7x (ORCPT ); Thu, 16 Jan 2020 22:59:53 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Jan 2020 19:59:52 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,328,1574150400"; d="scan'208";a="257652981" Received: from hao-dev.bj.intel.com (HELO localhost) ([10.238.157.65]) by fmsmga002.fm.intel.com with ESMTP; 16 Jan 2020 19:59:52 -0800 Date: Fri, 17 Jan 2020 11:39:34 +0800 From: Wu Hao To: will@kernel.org Cc: 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, gregkh@linuxfoundation.org Subject: Re: [RESEND Patch v6 0/2] add performance reporting support to FPGA DFL drivers Message-ID: <20200117033934.GA23536@hao-dev> References: <1579230628-22243-1-git-send-email-hao.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1579230628-22243-1-git-send-email-hao.wu@intel.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 Hi Will I resend this patch per suggestion from Greg. Actually this is one important feature for users, but was blocked by code review for quite a long time (no comments since last November). We really need your help on code review from perf, please help us.. Many Thanks! Hao On Fri, Jan 17, 2020 at 11:10:26AM +0800, Wu Hao wrote: > Hi all, > > This patchset adds performance reporting support for FPGA DFL drivers. It > introduces one pmu to expose userspace interfaces via standard perf API. > User could use standard perf tool to access perf events exposed via pmu. > > This patchset is generated based on latest fpga/for-next branch. > > Main changes from v5: > - use dev_ext_attribute instead of fme_perf_event_attr. > - use is_visible function to decide which events to expose per > hardware capability, and add event_init checking for all events. > > Main changes from v4: > - rebase and clean up. > - update Kconfig for PERF_EVENTS dependency. > > Main changes from v3: > - add more descriptions in doc, including how to use perf tool for these > hardware counters. (patch #1) > - use standard perf API instead of sysfs entries. (patch #2) > > Wu Hao (1): > fpga: dfl: fme: add performance reporting support > > Xu Yilun (1): > Documentation: fpga: dfl: add description for performance reporting > support > > Documentation/fpga/dfl.rst | 83 ++++ > drivers/fpga/Makefile | 1 + > drivers/fpga/dfl-fme-main.c | 4 + > drivers/fpga/dfl-fme-perf.c | 943 ++++++++++++++++++++++++++++++++++++++++++++ > drivers/fpga/dfl-fme.h | 2 + > drivers/fpga/dfl.h | 2 + > 6 files changed, 1035 insertions(+) > create mode 100644 drivers/fpga/dfl-fme-perf.c > > -- > 1.8.3.1