Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1562404pxb; Tue, 8 Feb 2022 22:23:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJxxP+VNZvxoG0MG4oyGOQK4Pnof5fGPp0WuW3hSJg+0iRSPmHYNtPTMzWRhKNZC7wFFY7B0 X-Received: by 2002:a63:fb0c:: with SMTP id o12mr748778pgh.542.1644387822793; Tue, 08 Feb 2022 22:23:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644387822; cv=none; d=google.com; s=arc-20160816; b=RICt6+Bsgko31cvB8NipaPYddKa5+AmMhlfY9GLCWk1ijU3nbvMYnzvHvkobIkZfjn jbWqJOYqRwjk4hU4QMlATcVQsp9KCUNCTS4l3fmw0ZQ0av8kkoVchFNM4GLmL8x+gwHt S++9XsoZKKMdhWWQc9vd8JQpxfkuvDju4jI82qiNUq1dbgXuZOrTY0FJ9uVxInC3mMVW Um4I7ToHDCBDpLbJdRn4posOz73WqDkhhLv9hitktUEAtMu+3ychVGM1uKydHMYtNae5 FvOVIB9HtLzftebd0hzSoSx9KQLyNiVP54x3P24YnQaLdDuwwZErfYTpLVCRFUTeLNgk nEFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=tA+fRpvOxe+uA42A1aS6aDI7xF22cjNaMqNbsrMVRiU=; b=J1n1dFAdcmMvEnbD46l57VFz+pnHqDhXLsgHSBBsciC6Y4T6P31BB+ByWOgYmOXhBr mHEwjxTI83rH09MjfQPSNwFFoiF15xXxpuMQz77k3jI49UyJHsIvZX9oeGWPQWwMmHsR VZ41jFdQoiXFMH++CUgpteg/yWnaz2EFaQ+5mzrRMGiUPCMOoyV//80aKEjZE2/lb/Yy KuDNoBZdZFOrochdbg+o4XqA+phLc/W6CbLitfd6OIo1Gr2JC9zC8NpSt9oj7k/qTD0G rL0erKg0VpCJrIUpBORKvtxHEjA59FT0DeaWz0+DrQtqbc4IVOFu5bRdQrEopgnFx46T YdWA== 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:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id e7si16270884plh.614.2022.02.08.22.23.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Feb 2022 22:23:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AE1E4C0A88C4; Tue, 8 Feb 2022 22:04:12 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1389068AbiBGNvF (ORCPT + 99 others); Mon, 7 Feb 2022 08:51:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380484AbiBGN2f (ORCPT ); Mon, 7 Feb 2022 08:28:35 -0500 X-Greylist: delayed 485 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 07 Feb 2022 05:28:33 PST Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E05F5C043181; Mon, 7 Feb 2022 05:28:33 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 73CC511D4; Mon, 7 Feb 2022 05:20:28 -0800 (PST) Received: from [10.57.70.156] (unknown [10.57.70.156]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 223483F70D; Mon, 7 Feb 2022 05:20:25 -0800 (PST) Message-ID: <65cde84a-8f8b-ac57-9b66-2b8d6378dbfa@arm.com> Date: Mon, 7 Feb 2022 13:20:22 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: [PATCH v2] add pmu to amlogic meson sm1 Content-Language: en-GB To: Neil Armstrong , Benjamin Mordaunt , Rob Herring , Kevin Hilman , Jerome Brunet , Martin Blumenstingl Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org References: <20220205234554.4403-1-crawford.benjamin15@gmail.com> <20220206144343.2194-1-crawford.benjamin15@gmail.com> <42c51f9d-d122-2d09-cdcd-f733cbc60d5b@baylibre.com> From: Robin Murphy In-Reply-To: <42c51f9d-d122-2d09-cdcd-f733cbc60d5b@baylibre.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 2022-02-07 08:14, Neil Armstrong wrote: > Hi, > > On 06/02/2022 15:43, Benjamin Mordaunt wrote: >> --- >> The dts for meson sm1 appears to omit the SoC's PMU, >> which is essential for accessing perf events regarding >> e.g. cache on e.g. the Odroid C4 platform. Add it. >> >>   arch/arm64/boot/dts/amlogic/meson-sm1.dtsi | 13 ++++++++++++- >>   1 file changed, 12 insertions(+), 1 deletion(-) >> >> diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1.dtsi >> b/arch/arm64/boot/dts/amlogic/meson-sm1.dtsi >> index 3d8b1f4f2..4147eecd2 100644 >> --- a/arch/arm64/boot/dts/amlogic/meson-sm1.dtsi >> +++ b/arch/arm64/boot/dts/amlogic/meson-sm1.dtsi >> @@ -6,6 +6,8 @@ >>   #include "meson-g12-common.dtsi" >>   #include >> +#include >> +#include >>   #include >>   #include >>   #include >> @@ -90,7 +92,16 @@ l2: l2-cache0 { >>               compatible = "cache"; >>           }; >>       }; >> - >> + >> +    arm-pmu { >> +        compatible = "arm,cortex-a55-pmu"; >> +        interrupts = , >> +                 , >> +                 , >> +                 ; >> +        interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>; >> +    }; >> + >>       cpu_opp_table: opp-table { >>           compatible = "operating-points-v2"; >>           opp-shared; > > Please see Marc's comments about PMU support: > http://lore.kernel.org/r/8735pcq63o.wl-maz@kernel.org If SM1 actually has distinct per-core interrupts as the patch implies then it's fine - it's only G12B and anything else that combines multiple PMU IRQs into a single SPI which are unsupportable. Robin.