Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2403741rwd; Fri, 16 Jun 2023 03:26:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4aVUzvoI8GerR05hy8uL94mYmXcsCNHx73/VKh9YLqE/VdgFfsbthoUFw4G9iXl6rUhcMu X-Received: by 2002:a05:6a00:134b:b0:666:8f48:d4a7 with SMTP id k11-20020a056a00134b00b006668f48d4a7mr1741539pfu.21.1686911160474; Fri, 16 Jun 2023 03:26:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686911160; cv=none; d=google.com; s=arc-20160816; b=rd92kkQpr9nA9IDNW9Q0tW8YA2MzQKveJpb49gYsCccHXpeUgLRrmFmp4lh2XbESF+ ClpaDEqrS3wgEYn4L3SwI4sO6RqbVuxDn04WtF009fG0ZBLHdVoNsyp4oGXLo4NAIt8S un/4P9fY2l+DUOmUX7Lk3/+Dlg+yzml7p1FuFReINB0YKqbmTKwz9+x5ztrFMGaGebQD j1i7D4fFW7Gl5gho5JE+4dXnN0ISU/IDOrwEsAxLQWQ8wkb7gsyqAWAANILkuVCE/aBS 3t5OkFVPYx8SZ7xjQ8Lb0ruDyhkexC9/jDwnu5VBW0CQRlybAPEuKu3lfTeXS4E6LKpO KQiQ== 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:dkim-signature; bh=0HRuq4W5udVGlQIwjjlZZyObp/LgM8b1Pv7bt2ca528=; b=HmsxTG4f5pNfytyPHqMB+RhmGXMt6jIpXUSi2F4LivQppz3w9Q8OuwED6nv4lW2VLH KxF5lytLnsYZCYdr5p8AcPUIjEovkyG/rbm/nwZLFSKSCDk+JAeIJEzPjeyrHA8Cjlp+ KrtnVZeW84EaO+6fqcud9ptCyX1lNX5tW3hHJoBYBPexip0maaNK2vA57GCWXeo9MllF qlYVO5TQ36WCV7Rt/fIbE4UaJR5ykrL5Uw0tedXDVhNe/CKzFBV06sEMNkTS6FUdqlvZ a2HEURoxJmsbO2Q7ZpDjd8T/U01EyhiYKtT3cnozv9cWYFKYJ+SpCSeQRZAI/e3r4ndE hPpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=x8GaDBO9; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x5-20020a63b205000000b00541710a9d44si10332657pge.114.2023.06.16.03.25.47; Fri, 16 Jun 2023 03:26:00 -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; dkim=pass header.i=@microchip.com header.s=mchp header.b=x8GaDBO9; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240492AbjFPKNb (ORCPT + 99 others); Fri, 16 Jun 2023 06:13:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233557AbjFPKN3 (ORCPT ); Fri, 16 Jun 2023 06:13:29 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DBA5AC; Fri, 16 Jun 2023 03:13:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1686910408; x=1718446408; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=YpSM1w+IYXXoUKSojagF+UoCf/8hiOK0HsM860yz38E=; b=x8GaDBO93AJNI8beGQfsCylbIlpJpJ1JtTbkYnJJ2VixP1g/c5tHwlEj mwOZMy22M9szW7tj+PWRko9VdMntMEmJFxSQpEQ4Xsni6N08QnyrdPoED whnePP9zBT/opuxDiSo4b9Ny+Yk0MtQKtAPnLrsb1C6YBl4WmampdEPFn yvsGfErYNlmY+mUPjHVyKvQaMY5hH48//RmX0EDWaqsGz+8V7I7wUs1hs oOQQo2zb74lZjeIAuHA4Xkwbz5TGKPPauPSyMeLyaUqSm3E5m7hWXtzUi 3Xj+AC/Of7TGmjYdIX3lrYtQ4GuMEbhWxoyPzdcztwmRfZpEQHId0OqsP w==; X-IronPort-AV: E=Sophos;i="6.00,247,1681196400"; d="asc'?scan'208";a="157251792" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 16 Jun 2023 03:13:27 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Fri, 16 Jun 2023 03:13:27 -0700 Received: from wendy (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Fri, 16 Jun 2023 03:13:23 -0700 Date: Fri, 16 Jun 2023 11:12:57 +0100 From: Conor Dooley To: Eric Lin CC: , , , , , , , , , , , , , , , , , , , , , Greentime Hu , Zong Li , Nick Hu Subject: Re: [PATCH 2/3] soc: sifive: Add SiFive private L2 cache PMU driver Message-ID: <20230616-revision-speed-a83dc926b334@wendy> References: <20230616063210.19063-1-eric.lin@sifive.com> <20230616063210.19063-3-eric.lin@sifive.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ElvD8fTDzec/LOV5" Content-Disposition: inline In-Reply-To: <20230616063210.19063-3-eric.lin@sifive.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 --ElvD8fTDzec/LOV5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 16, 2023 at 02:32:09PM +0800, Eric Lin wrote: > From: Greentime Hu >=20 > This adds SiFive private L2 cache PMU driver. User > can use perf tool to profile by event name and event id. >=20 > Example: > $ perf stat -C 0 -e /sifive_pl2_pmu/inner_acquire_block_btot/ > -e /sifive_pl2_pmu/inner_acquire_block_ntob/ > -e /sifive_pl2_pmu/inner_acquire_block_ntot/ ls >=20 > Performance counter stats for 'CPU(s) 0': >=20 > 300 sifive_pl2_pmu/inner_acquire_block_btot/ > 17801 sifive_pl2_pmu/inner_acquire_block_ntob/ > 5253 sifive_pl2_pmu/inner_acquire_block_ntot/ >=20 > 0.088917326 seconds time elapsed >=20 > $ perf stat -C 0 -e /sifive_pl2_pmu/event=3D0x10001/ > -e /sifive_pl2_pmu/event=3D0x4001/ > -e /sifive_pl2_pmu/event=3D0x8001/ ls >=20 > Performance counter stats for 'CPU(s) 0': >=20 > 251 sifive_pl2_pmu/event=3D0x10001/ > 2620 sifive_pl2_pmu/event=3D0x4001/ > 644 sifive_pl2_pmu/event=3D0x8001/ >=20 > 0.092827110 seconds time elapsed >=20 > Signed-off-by: Greentime Hu > Signed-off-by: Eric Lin > Reviewed-by: Zong Li > Reviewed-by: Nick Hu > --- > drivers/soc/sifive/Kconfig | 9 + > drivers/soc/sifive/Makefile | 1 + > drivers/soc/sifive/sifive_pl2.h | 20 + > drivers/soc/sifive/sifive_pl2_cache.c | 16 + > drivers/soc/sifive/sifive_pl2_pmu.c | 669 ++++++++++++++++++++++++++ Perf drivers should be in drivers/perf, no? Cheers, Conor. --ElvD8fTDzec/LOV5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZIw1qQAKCRB4tDGHoIJi 0q20AP0SJ+XMu+AbrLQcuJNmsYqvVW9wc6xBagHa9pzRoEw0mwD+K5s2+gB8wow+ BqnI6l1BRUx8VsrF6VfTnTaE4ZlUJQM= =YDC2 -----END PGP SIGNATURE----- --ElvD8fTDzec/LOV5--