Received: by 2002:a05:6358:98a5:b0:11e:80f4:e92 with SMTP id q37csp22623rwa; Thu, 4 May 2023 13:47:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5keGGim1ztV5NSuY+TNQ2cNh8myTaI39P55SI181WCVWJ7anD2lImsD5XW5kR0We5u4+fP X-Received: by 2002:a17:902:ce88:b0:1ac:2c8b:a0da with SMTP id f8-20020a170902ce8800b001ac2c8ba0damr4069247plg.51.1683233221439; Thu, 04 May 2023 13:47:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683233221; cv=none; d=google.com; s=arc-20160816; b=JykeN6gTSF9Rl609FAZJN6Nz3LMXxu4Iv5nUaHmWFS3U5oB2grv3+0VjmYc6NeyQZY 6cXZrpTPLWT8KDvIBcVTZcOtyWgShmlWoPl4A8BoHNofjfVDLCiVw4tMQ5Cxp9WC8zA2 y4Qq5aHfzwm374S50P16EZb6NyIOBrvlCdWofZGoZggxwG4bA9nQGWHp2g9KetJnqbmH +9AEGEKmGLM5zgE0EvLNKyfkn92oWLCGYQ7D+M/162p+GM0tZBqTlSS0+ZdiLU4A+7DI 6w5NfYe/r/q3L9LaUOUZWiXmbim6BeOuYBwb+ZJoFn4b+YAbENSHy1g4xz+E8Fu9cQiH H2vA== 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=gA20TOSek5QN06wRXiWT/dSTTLiibBANa8l3zZw/ZW0=; b=A2659g9sJyRL9PMuOdRFwVC1RTCNiwXCrum7iXpeqdwQCQEuRswuM/352yizaXUmxU ZGDUYfvGPoiFoXWrzVlE2qH6aNAeVapcIaVKdq2a6LwQvp4LvPaT0rod3/1utB64+Sgb 0X3j0KxVDPD0VvF+YfvhUuvvyIQ39T5xg5wVDwKtjvlT6Jfzr1QlFHlFRyYQPkD68YVW UGrn9MsspBaqqQ/GSIeuJrVyshLy+TpsThivqsXo0n/Aw/z1fGxx1deyVE1Z+07GPQ8G 2a/f6tNGtj2BC6Pr3zl0vP34ne2MBxE71h8V8mQpCBCPvGn6VVPzusUbr6ARHKc5iWxr khxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jf11-20020a170903268b00b001aaf2ced278si10559062plb.430.2023.05.04.13.46.48; Thu, 04 May 2023 13:47:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231223AbjEDUi7 (ORCPT + 99 others); Thu, 4 May 2023 16:38:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229978AbjEDUip (ORCPT ); Thu, 4 May 2023 16:38:45 -0400 Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B35DD203E0; Thu, 4 May 2023 13:32:45 -0700 (PDT) Received: by mail-io1-xd2d.google.com with SMTP id ca18e2360f4ac-763c34315c1so65129939f.3; Thu, 04 May 2023 13:32:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683232269; x=1685824269; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=gA20TOSek5QN06wRXiWT/dSTTLiibBANa8l3zZw/ZW0=; b=RBGdrH4d/NDnYIUyp7acK3moOupX/ttUtwAogNqJVEeVi/VHVyqCKufi/NhiBdSI0t FyKkYuOtYjDsZGoVPd24oG678JUNc+ZVHmRs304d1iCWVZ4Wjsy37v7iJyPSr5GuNSj5 VlxTVEoCcVk9AWPcWESQrucnD+SOFCTaSroqznHEDlZbzHZKy5ZSftylPsL8w1wxr7OY /1YndJDUxSTyO+94cuoLk8ZOzw9f8KUTqwvxfCBsEIMDwuy04cCFSD1dSRYbeQTozD8U qs3VJTidBu+3jUgZlr3TvUG9GObSb6lu5cAE/5ygU7ZtxCU6XK9TuHen6Z4BFq5kH7be opvw== X-Gm-Message-State: AC+VfDzzjRHterbyc1BSbySPBPYva2H0CP+QV3sSn7RB343elLxYebDb MmCvQE3MQXbcwQ2u02RdJ0ooQe/siA== X-Received: by 2002:a05:6808:2913:b0:389:21:9483 with SMTP id ev19-20020a056808291300b0038900219483mr2333168oib.59.1683231718082; Thu, 04 May 2023 13:21:58 -0700 (PDT) Received: from robh_at_kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id r2-20020acaf302000000b0038e086c764dsm2036478oih.43.2023.05.04.13.21.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 May 2023 13:21:57 -0700 (PDT) Received: (nullmailer pid 263633 invoked by uid 1000); Thu, 04 May 2023 20:21:56 -0000 Date: Thu, 4 May 2023 15:21:56 -0500 From: Rob Herring To: Conor Dooley Cc: Atish Patra , Conor Dooley , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Andrew Jones , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] dt-bindings: perf: riscv,pmu: fix property dependencies Message-ID: <20230504202156.GA260181-robh@kernel.org> References: <20230404-tractor-confusing-8852e552539a@spud> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230404-tractor-confusing-8852e552539a@spud> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 04, 2023 at 07:03:22PM +0100, Conor Dooley wrote: > From: Conor Dooley > > Seemingly I mis-implemented the dependencies here. The OpenSBI docs only > point out that the "riscv,event-to-mhpmcounters property is mandatory if > riscv,event-to-mhpmevent is present". It never claims that > riscv,event-to-mhpmcounters requires riscv,event-to-mhpmevent. > > Drop the dependency of riscv,event-to-mhpmcounters on > riscv,event-to-mhpmevent. > > Fixes: 7e38085d9c59 ("dt-bindings: riscv: add SBI PMU event mappings") > Signed-off-by: Conor Dooley > --- > > Atish, I'm not 100% on this one but I noticed it while doing dt-validate > on a dump of the qemu virt machine which doesn't use the > event-to-mhpmevent property. Waiting for comments before I apply this... > > CC: Rob Herring > CC: Krzysztof Kozlowski > CC: Paul Walmsley > CC: Palmer Dabbelt > CC: Atish Patra > CC: Andrew Jones > CC: devicetree@vger.kernel.org > CC: linux-riscv@lists.infradead.org > CC: linux-kernel@vger.kernel.org > --- > Documentation/devicetree/bindings/perf/riscv,pmu.yaml | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/perf/riscv,pmu.yaml b/Documentation/devicetree/bindings/perf/riscv,pmu.yaml > index a55a4d047d3f..c8448de2f2a0 100644 > --- a/Documentation/devicetree/bindings/perf/riscv,pmu.yaml > +++ b/Documentation/devicetree/bindings/perf/riscv,pmu.yaml > @@ -91,7 +91,6 @@ properties: > > dependencies: > "riscv,event-to-mhpmevent": [ "riscv,event-to-mhpmcounters" ] > - "riscv,event-to-mhpmcounters": [ "riscv,event-to-mhpmevent" ] > > required: > - compatible > -- > 2.39.2 >