Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp3353792rdb; Thu, 16 Nov 2023 07:25:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IFxoBpX/k2D0es/eNQ+siFfeh6HkNLTUqozhlAdk+yH7i+YglCW5V4vTFGC9oTgZbzoXHuZ X-Received: by 2002:a05:6a20:8429:b0:181:15:5755 with SMTP id c41-20020a056a20842900b0018100155755mr23151619pzd.56.1700148352316; Thu, 16 Nov 2023 07:25:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700148352; cv=none; d=google.com; s=arc-20160816; b=lVCykXZRWtGUPtFNDET6Tj/Xmk1E5NiOPwS6CC4ReBSOrVjpzF9cm4NSri22BnoTIu TbxVDg9UXi7aADAFC7PHfKUVUX8isG/YdsdVqbVKOvYQLZ1MrI7ANi+350NIaEdhVVLp V0aNCHYQZGCm4yAJC9m/5pO3vBYQZz4n8okLCvdGGCARYhfWILyU1gH/vAmAU0JlIG/S tyih1ZbImCAFvHocbI5L6V3AFpyl+Jj3cuYmM58d9PsQZDLzsT80W1Swr1iNo89vlaUO 9BS5+WM52yu9yFjEp6xP4k+MdzzkiuPWhNL60JPwKfwUSHKeycwnduICChu6kK1/P9NV JAjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Fk9CiRTAzRQP2frda7INZKwJqBo/OJs9MsDFSbInwuE=; fh=j90zbBfSV/4iu7szL9W7wo+/VYejF6auJ/2P3VyZ/X8=; b=Ae9+V/zqnhqDEUBSCe4EYz538119gtMtLPn58RzmjP+HMbvgvZzhuODbmH7UmAnqHZ FNXXzdQsVQbLXshytWzfQCrqy0jzIYE9gEGVFqo9A/fje3Rr34Gt7QYI640FUXUzsfUq 9V/4DhYVGiB/Mm9aHIRebdrxtI4iTOLixVvZUhwis5Fk6WNBDjXusbqMYJHgbs0Zzpla FUvGymmZWPT/Yr1iSnJe8IAJEj0SzCnafLIT28WJ72XvSZ5YMhtut98j84/jjIUQ3yXT S0qiyoYkH/4YBySpp2YranSZvJNXjtTZfL0vugQeO3TWBWVU9KJOFjsgjz013y340lYd 4Zsw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id u5-20020a656705000000b005ab05858e70si12831050pgf.782.2023.11.16.07.25.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 07:25:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id BBE2C80204AC; Thu, 16 Nov 2023 07:25:48 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230399AbjKPPZl convert rfc822-to-8bit (ORCPT + 99 others); Thu, 16 Nov 2023 10:25:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230435AbjKPPZj (ORCPT ); Thu, 16 Nov 2023 10:25:39 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A95C319D; Thu, 16 Nov 2023 07:25:30 -0800 (PST) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id 84ABC24DCA6; Thu, 16 Nov 2023 23:25:13 +0800 (CST) Received: from EXMBX172.cuchost.com (172.16.6.92) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 16 Nov 2023 23:25:13 +0800 Received: from localhost.localdomain (202.188.176.82) by EXMBX172.cuchost.com (172.16.6.92) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 16 Nov 2023 23:25:05 +0800 From: Ji Sheng Teoh To: CC: , , , , , , , , , , , Subject: Re: [PATCH v3 2/2] dt-bindings: perf: starfive: Add StarLink PMU Date: Thu, 16 Nov 2023 23:24:56 +0800 Message-ID: <20231116152456.1039195-1-jisheng.teoh@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231116-penalize-turbojet-bf8ea2a9a2ad@squawk> References: <20231116-penalize-turbojet-bf8ea2a9a2ad@squawk> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [202.188.176.82] X-ClientProxiedBy: EXCAS062.cuchost.com (172.16.6.22) To EXMBX172.cuchost.com (172.16.6.92) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 16 Nov 2023 07:25:49 -0800 (PST) On Thu, 16 Nov 2023 14:34:00 +0000 Conor Dooley wrote: > On Thu, Nov 16, 2023 at 10:10:35AM +0800, Ji Sheng Teoh wrote: > > On Wed, 15 Nov 2023 20:03:53 +0000 > > Conor Dooley wrote: > > > On Wed, Nov 15, 2023 at 11:36:08AM +0800, Ji Sheng Teoh wrote: > > > > Add device tree binding for StarFive's StarLink PMU (Performance > > > > Monitor Unit). > > > > > > > > Signed-off-by: Ji Sheng Teoh > > > > --- > > > > .../bindings/perf/starfive,starlink-pmu.yaml | 46 > > > > +++++++++++++++++++ 1 file changed, 46 insertions(+) > > > > create mode 100644 > > > > Documentation/devicetree/bindings/perf/starfive,starlink-pmu.yaml > > > > > > > > diff --git > > > > a/Documentation/devicetree/bindings/perf/starfive,starlink-pmu.yaml > > > > b/Documentation/devicetree/bindings/perf/starfive,starlink-pmu.yaml > > > > new file mode 100644 index 000000000000..a9426a7faeae --- > > > > /dev/null +++ > > > > b/Documentation/devicetree/bindings/perf/starfive,starlink-pmu.yaml > > > > > > > > > > btw, since you changed the compatible, the filename should have > > > been changed to match it. > > > > The intention to keep the filename generic is to allow addition of > > new version of StarLink PMU in future if any, similar to what > > arm,cmn.yaml is doing. Hope that makes sense. > > No, please keep the filename matching the compatible. Even if the > filename contains "500", there's nothing stopping you from then adding > other pmu variants. There are many many examples of this in the tree. > Sure, will do that in v4. > > > > @@ -0,0 +1,46 @@ > > > > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > > > > +%YAML 1.2 > > > > +--- > > > > +$id: > > > > http://devicetree.org/schemas/perf/starfive,starlink-pmu.yaml# > > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# + > > > > +title: StarFive StarLink PMU > > > > + > > > > +maintainers: > > > > + - Ji Sheng Teoh > > > > + > > > > +description: > > > > + StarFive's StarLink PMU integrates one or more CPU cores > > > > with a shared L3 > > > > + memory system. The PMU support overflow interrupt, up to 16 > > > > programmable > > > > + 64bit event counters, and an independent 64bit cycle counter. > > > > + StarLink PMU is accessed via MMIO. > > > > + > > > > +properties: > > > > + compatible: > > > > + const: starfive,starlink-500-pmu > > > > > > So this is not what I had in mind by a "device". I was looking > > > for a compatible representing an soc in which this IP had been > > > integrated. A soc-specific compatible, rather than something > > > generic, is requirement for devicetree - we don't want various > > > integrations of this IP to all be using a generic compatible when > > > there may be subtle (or less subtle) differences between > > > integrations. > > > > > > I'm trying to come up with the syntax for enforcing having two > > > compatibles with your current one as the fallback, but I have yet > > > to come up with the correct syntax for that that works correctly. > > > > > > Hopefully by the time you get some feedback on the driver side of > > > this submission I will have a concrete suggestion for what to do > > > here. > > > > Thanks Conor for the enlightenment. In the meantime, to fit the > > requirement I would suggest going for > > "starfive,jh8100-starlink-pmu", making it JH8100 SOC specific if > > that makes sense. > > Okay, you could definitely do that! > > Cheers, > Conor. > Ok, will use that in v4. Thanks!