From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E0C10C35FFF for ; Fri, 21 Mar 2025 11:03:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: References:In-Reply-To:Subject:Cc:To:From:Message-ID:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=wvNeHQIOTX8UvgAI5g4QoVSfB4NCZcuxvEEPT/YNPaQ=; b=2ga+AuohPRskBRi8HlUzW63n0+ UQBj9HpQlTVQq4CsjQaTE9Lz03rQ6mO44UYHroDX/b/J1vSzq5eiX9C1SBKCUWWYLZtjjBsKqeqIy kEimYVoIaUX5O3EghLjb7it5bLKaTuZ0CxNP+ZKX14f8OyK0kjguJTiSvuzeFw9fKzoX2JKvdAQr5 N2kt/38Uqlis+KdSFP/nm4df7TDDsIXsGoMGnIx1SGBfA6fgohmLVyWONKPzfnY4cmK7e1V8km+/Z eENJ5ocnCJ1VLiaYLji6pbof1E5s+ycjo2Xg25L/F3kV2C7CAtJJlpcfXjOmXHe+HLawkbO8ioXQf ziCby4pg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tvaA2-0000000Ebuy-1M31; Fri, 21 Mar 2025 11:03:34 +0000 Received: from tor.source.kernel.org ([172.105.4.254]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tva8N-0000000Ebfe-0j1x for linux-arm-kernel@lists.infradead.org; Fri, 21 Mar 2025 11:01:51 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 36446615CD; Fri, 21 Mar 2025 11:01:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A8A9C4CEE7; Fri, 21 Mar 2025 11:01:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1742554910; bh=lNYSQAqs2tXjdXifey+AJAEii2quKt+rJKsXZVd4dGU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=RgVG9l/5vUv5+OhjcapFEIZgL1kox50pLgt3B2BDj5xzGWALY+nxxWPnDmpEcbEQz Sv86Cmi+aopHwYQikKq/FTFLwZpGUy0En/vZw86wQaN0kfLVQyR89Rqb4KVZtUhnZS 10qF567Ed+rf+50P8azVfwlLBKn5e1nFaykjWw0qSufiFipXKkwKI+7PlDCVUuXuux ef5rUTeOxwT4NuCVG40PonuZl3xnSC6CNnrzNR/+YlLCK32T7koj6+aIu4SiUImSZu DSchYarx1vCJHoq+7Q10msNoOvMA5FZ0AKpHxBZx+fy+Wv1RIeR3wuEGHyTIZplH4w v3Dirc+F11qnQ== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1tva8J-00Fl2b-Tk; Fri, 21 Mar 2025 11:01:48 +0000 Date: Fri, 21 Mar 2025 11:01:47 +0000 Message-ID: <868qoymyuc.wl-maz@kernel.org> From: Marc Zyngier To: Peter Chen Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, catalin.marinas@arm.com, will@kernel.org, arnd@arndb.de, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, cix-kernel-upstream@cixtech.com, marcin@juszkiewicz.com.pl, Krzysztof Kozlowski , Fugang Duan Subject: Re: [PATCH v4 5/6] arm64: dts: cix: add initial CIX P1(SKY1) dts support In-Reply-To: References: <20250305053823.2048217-1-peter.chen@cixtech.com> <20250305053823.2048217-6-peter.chen@cixtech.com> <86frj8m4be.wl-maz@kernel.org> <86bjtun4an.wl-maz@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/29.4 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: peter.chen@cixtech.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, catalin.marinas@arm.com, will@kernel.org, arnd@arndb.de, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, cix-kernel-upstream@cixtech.com, marcin@juszkiewicz.com.pl, krzysztof.kozlowski@linaro.org, fugang.duan@cixtech.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, 21 Mar 2025 10:31:55 +0000, Peter Chen wrote: > > On 25-03-21 09:04:00, Marc Zyngier wrote: > > > On 25-03-20 09:36:37, Marc Zyngier wrote: > > > > Peter Chen wrote: > > > > > > > > > > + pmu-a520 { > > > > > + compatible = "arm,cortex-a520-pmu"; > > > > > + interrupts = ; > > > > > + }; > > > > > + > > > > > + pmu-a720 { > > > > > + compatible = "arm,cortex-a720-pmu"; > > > > > + interrupts = ; > > > > > + }; > > > > > + > > > > > + pmu-spe { > > > > > + compatible = "arm,statistical-profiling-extension-v1"; > > > > > + interrupts = ; > > > > > + }; > > > > > > > > SPE should follow the same model as the PMU, as each CPU has its own > > > > SPE implementation, exposing different micro-architectural details. > > > > > > > > > > Hi Marc, > > > > > > Thanks for your reply. But there is only one compatible string > > > "statistical-profiling-extension-v1" at drivers/perf/arm_spe_pmu.c, > > > how could differentiate pmu-spe-a720 and pmu-spe-a520, do I need > > > to change arm_spe_pmu.c as well? > > > > I don't think there is a need to have different compatible. The driver > > can probe which CPU this is on, and work out the implemented > > subfeatures from the PMSIDR_EL1 register. New compatible strings are > > better avoided when there is a way to probe/discover the HW (and in > > most cases, there is). > > > > Note that this equally applies to TRBE, which also explicitly deals > > with interrupt partitioning and yet only has a single compatible. > > Please consider adding TRBE support when you repost this series. > > > > Hi Marc, > > Thanks for your comment, we need to discuss it internally. Since it > is very initial dts support for CIX sky1 SoC, I will delete pmu-spe > support at this time, and add better support for it when adding > more components next time. And therefore making this machine even less useful than it already is? I think this is a great plan. M. -- Without deviation from the norm, progress is not possible.