Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp794011pxb; Tue, 14 Sep 2021 08:52:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkQJNgAFlJ3po1+GPt0X3HJuaX5vEauIAtTVR7EWX/BuGqU0v69gOztj2GhBlc9o3aDAx6 X-Received: by 2002:a5e:c00a:: with SMTP id u10mr14070341iol.60.1631634744214; Tue, 14 Sep 2021 08:52:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631634744; cv=none; d=google.com; s=arc-20160816; b=cIbb9ZHQkahBgl85JRP1oxinX6Q9ZDQZBUorXsaUaQhcprFFGj2qjMosFMvYsTQawW q+vAjk7RzCL9f/95K+VAtx7Fi4+CvmYqk42w5kdn5wD4eDYYLe1YQw37mhGRuXBICJWi t85D22CfXSj5/lgFZvZPciYY29dAzkqmnT0bRO7C9vpyEb2NxLOUgoX65Cp67IaTEI2B +frSviH0w3dqMpjRZt5/CpDrY83a+K0LH063E7/LFSSQWXD7H6texO6Uuhtu+GpGXt/u pvrKOT25jnDTpCeyoMW3pOhAl+RDXaQ6Vz3MzSIxi3M5uJUABrJHwcCO+WlBQ2B2SLvW B30w== 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=rnTeP9MXgZMY0ccObwY7v7BGqeBnLTs9n9kuMAleLtU=; b=cOSJ4tT9fP7h9QNdOx6s2+2oJRFII1XSvY6ZpR+BsCba/9D5BR8u+I7eeH2lG1M3Sq l5DwjIjnhxg4lq0lbHqss27WCsyyyti2PmSEGdfz+jxZLoo1rjknMcEKJTT1IH3xbl9r m9DE+8HclwuI+mbxryMt+2zaa06rNQJjdwk8fBNsk/GmfGSsXjNyYF/H6l8lshCNt7wf AtBkv3unZQlMOZT7TNw8FIlCwEPEtV7ogmTJN0FtMUPySopZr6Jp91FLTO51dz2QZCFd rTCRIzDI29TIviPLpv0Dl0QXAQTxqeaSuAPcvpi0lDTndBVSAHqg3tH713/tAybCsfLT MT3Q== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n13si10329705ilo.25.2021.09.14.08.52.12; Tue, 14 Sep 2021 08:52:24 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235648AbhINPwX (ORCPT + 99 others); Tue, 14 Sep 2021 11:52:23 -0400 Received: from mail-ot1-f53.google.com ([209.85.210.53]:39707 "EHLO mail-ot1-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234974AbhINPvy (ORCPT ); Tue, 14 Sep 2021 11:51:54 -0400 Received: by mail-ot1-f53.google.com with SMTP id m7-20020a9d4c87000000b0051875f56b95so19086814otf.6; Tue, 14 Sep 2021 08:50:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=rnTeP9MXgZMY0ccObwY7v7BGqeBnLTs9n9kuMAleLtU=; b=uMrQXwPkwZQI4u+fgY8x57N5Sf+XGFPy3a8dSWB+Q9NcZRmI6ihQh2yirR+Kw1z8wb S8foRUr6DmH56Gf9Al9phiQ8tmlTb6RdYCeYhQeM1ENspC71mqbXTPVweD9wvJhfJckZ oYy9Di6Yiy2kJ9eGCVAqN0tYECNV7FxYYEGu3tbVCEtkm9FOa3Cd0zCHlfpd6RYdbwgl MdzjbEH4v9mdLQcBKOF6cKLjlYfiYkdocHc+Pto+rsMuey9sxsI3/Qe5zzgaIZT85UzM 8BrVvb+kFknkVNqmqiDNx9wa8cKiDgEuJQulv2HGZ5z0Ddkg0wXoeMy/Kt5Gj8lKN2Zn dMnA== X-Gm-Message-State: AOAM531M2yFKqmvqKmA147eth7VylNoymW4pLD4038jkFlI6qi70G2Bu xEJkvsG1hW/4035MUTneUQ== X-Received: by 2002:a05:6830:4124:: with SMTP id w36mr15592836ott.72.1631634636081; Tue, 14 Sep 2021 08:50:36 -0700 (PDT) Received: from robh.at.kernel.org (66-90-148-213.dyn.grandenetworks.net. [66.90.148.213]) by smtp.gmail.com with ESMTPSA id a13sm2726549oos.4.2021.09.14.08.50.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Sep 2021 08:50:35 -0700 (PDT) Received: (nullmailer pid 3462681 invoked by uid 1000); Tue, 14 Sep 2021 15:50:33 -0000 Date: Tue, 14 Sep 2021 10:50:33 -0500 From: Rob Herring To: Atish Patra Cc: linux-kernel@vger.kernel.org, Alexander Shishkin , Anup Patel , Ard Biesheuvel , "Darrick J. Wong" , devicetree@vger.kernel.org, Guo Ren , Heinrich Schuchardt , Jiri Olsa , John Garry , Jonathan Corbet , linux-doc@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-riscv@lists.infradead.org, Nick Kossifidis , Palmer Dabbelt , Paul Walmsley , Vincent Chen Subject: Re: [v3 06/10] dt-binding: pmu: Add RISC-V PMU DT bindings Message-ID: References: <20210910192757.2309100-1-atish.patra@wdc.com> <20210910192757.2309100-7-atish.patra@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210910192757.2309100-7-atish.patra@wdc.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 10, 2021 at 12:27:53PM -0700, Atish Patra wrote: > This patch adds the DT bindings for RISC-V PMU driver. It also defines > the interrupt related properties to allow counter overflow interrupt. > > Signed-off-by: Atish Patra > --- > .../devicetree/bindings/perf/riscv,pmu.yaml | 51 +++++++++++++++++++ > 1 file changed, 51 insertions(+) > create mode 100644 Documentation/devicetree/bindings/perf/riscv,pmu.yaml > > diff --git a/Documentation/devicetree/bindings/perf/riscv,pmu.yaml b/Documentation/devicetree/bindings/perf/riscv,pmu.yaml > new file mode 100644 > index 000000000000..497caad63f16 > --- /dev/null > +++ b/Documentation/devicetree/bindings/perf/riscv,pmu.yaml > @@ -0,0 +1,51 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/pmu/riscv,pmu.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: RISC-V PMU > + > +maintainers: > + - Atish Patra > + > +description: > + The "Sscofpmf" extension allows the RISC-V PMU counters to overflow and > + generate a local interrupt so that event sampling can be done from user-space. > + The above said ISA extension is an optional extension to maintain backward > + compatibility and will be included in privilege specification v1.12 . That's > + why the interrupt property is marked as optional. The platforms with sscofpmf > + extension should add this property to enable event sampling. > + The device tree node with the compatible string is mandatory for any platform > + that wants to use pmu counter start/stop methods using SBI PMU extension. > + > +properties: > + compatible: > + enum: > + - riscv,pmu > + > + description: > + Should be "riscv,pmu". The schema already says this. Just 'pmu' isn't very specific. No version to attach here? > + > + interrupts-extended: > + minItems: 1 > + maxItems: 4095 > + > +additionalProperties: false > + > +required: > + - None > +optional: > + - compatible Besides 'optional' not being the in vocabulary, 'compatible' is never optional. > + - interrupts-extended > + > +examples: > + - | > + pmu { > + compatible = "riscv,pmu"; > + interrupts-extended = <&cpu0intc 13>, > + <&cpu1intc 13>, > + <&cpu2intc 13>, > + <&cpu3intc 13>; > + }; > +... > -- > 2.31.1 > >