Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754772AbdGTNOD (ORCPT ); Thu, 20 Jul 2017 09:14:03 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:53808 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753881AbdGTNOC (ORCPT ); Thu, 20 Jul 2017 09:14:02 -0400 Date: Thu, 20 Jul 2017 14:14:06 +0100 From: Will Deacon To: Zhangshaokun Cc: Jonathan Cameron , mark.rutland@arm.com, linuxarm@huawei.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org Subject: Re: [PATCH v3 1/6] Documentation: perf: hisi: Documentation for HiSilicon SoC PMU driver Message-ID: <20170720131406.GC16356@arm.com> References: <1500364799-90518-1-git-send-email-zhangshaokun@hisilicon.com> <1500364799-90518-2-git-send-email-zhangshaokun@hisilicon.com> <20170719171748.00005866@huawei.com> <20170720130847.GB16356@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170720130847.GB16356@arm.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1208 Lines: 25 On Thu, Jul 20, 2017 at 02:08:47PM +0100, Will Deacon wrote: > On Thu, Jul 20, 2017 at 08:54:36PM +0800, Zhangshaokun wrote: > > On 2017/7/19 17:17, Jonathan Cameron wrote: > > >> +Super CPU cluster (SCCL) and is made up of 6 CCLs. Each SCCL has two HHAs > > >> +(0 - 1) and four DDRCs (0 - 3), respectively. > > >> + > > >> +HiSilicon SoC uncore PMU driver > > >> +--------------------------------------- > > >> +Each device PMU has separate registers for event counting, control and > > >> +interrupt, and the PMU driver shall register perf PMU drivers like L3C, > > >> +HHA and DDRC etc. The available events and configuration options shall > > >> +be described in the sysfs, see /sys/devices/hisi_*. > > > Is there not a subsystem directory that would make more sense to > > > refer to than the full device list? > > > > > > > For uncore devices, it is more reasonable to list in /sys/devices/***. > > The usual place for these things is /sys/bus/event_source/devices/. ... which are symlinks to directories under /sys/devices/! I didn't realise that, so I suspect you're ok. Still worth getting the format of things correct though, so perf can read/parse them with minimal effort. Will