Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp507914rdb; Thu, 22 Feb 2024 10:12:33 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWWKkygreigzJn01b/5RSAOY2lo53wglTUvAVoxUNRW9TwkQuhV/T7z0/4x0k8xv9JpzO/wdDj1il+XEEWF4iILTwrAgJ094LqDSpYF+w== X-Google-Smtp-Source: AGHT+IHj7c/1rNO7jrJ5w4VF3OGWmr6sjw/5LVLl1IdUN41osaPkfikkjKlgCFb4f7uL8L6fgNrc X-Received: by 2002:a17:906:d294:b0:a3e:9231:fe7e with SMTP id ay20-20020a170906d29400b00a3e9231fe7emr8267808ejb.71.1708625553723; Thu, 22 Feb 2024 10:12:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708625553; cv=pass; d=google.com; s=arc-20160816; b=WDw/b2qWSItsIYldaYSdLIRFNOobcGzSkPs0SjGBOUgKV7emU1mQzb7srhNqitu62t 3IXAR2IqiHFc8VpZ14x2w2RaDbfTGUv0R2uDhY4Ft6Yzrjdxw0vVw7rpZftcH8BoCOSn cgXXARZo9Qsylr5WHMx4POC5JvsYY8wWOkAhWTgBREsQnrXvCwsdQRz1bSACa7xN+hsl oPAHyyL25cyZWDy/DiPfGWHVDioZ0zQouqYKhdHDvoUNKKa7bC429WhP0xbHQIOUX7du dMKqaGPxnUXPf/jKBvS5BoA1fDXWtII6nsjSno99M75F7ZHT5Lnp1AzikeMyvn5ldyxs 3Pqg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:to:from:cc:in-reply-to :subject:date:dkim-signature; bh=74bdP9ntSNlgi9eqvP/1WueCOOc9bZEyjpMNXvBbiyI=; fh=aSaHW/lsGFNo6/l7ui8Q7cgs4LVIZVrrCv0GK4oUc9g=; b=WzzJdUzIrh6H9PdXvfCSQ9IxislNng7ORd+1nr8Q3rMYGWVsGX+md7nE3eSMUxwD5U BJdTOSYx8NqrTZ66zPcKpYxCjzvrvUY3nX07s2xXOJEtai//3eBBCmFRwFv93o/I4c0p wdJNYWK3OOd1xHaaCyOw9epNrna4BVR+CLZO1w8g0PT+aECc3r587NK8LsPdjYZ1DGZN /Ool4MLgbWnwV/mxAhPW8Jh2uJpCzquDqB+gKAoE2pBbNHrQ4n5sv2tYmjx1zGIN7ED7 8fPzrs8RvP7xCl1iHk6H43G4m2OBPLCNWJ8LQT5ubCqRV1jD1yt0TRdznGKfmlZjyJ8T RuVA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@dabbelt-com.20230601.gappssmtp.com header.s=20230601 header.b=W+zp04zb; arc=pass (i=1 spf=pass spfdomain=dabbelt.com dkim=pass dkdomain=dabbelt-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-77054-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77054-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id w19-20020a170906b19300b00a3e95d8559csi3888703ejy.392.2024.02.22.10.12.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 10:12:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77054-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@dabbelt-com.20230601.gappssmtp.com header.s=20230601 header.b=W+zp04zb; arc=pass (i=1 spf=pass spfdomain=dabbelt.com dkim=pass dkdomain=dabbelt-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-77054-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77054-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 53FC21F249B6 for ; Thu, 22 Feb 2024 18:12:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D5B731586C2; Thu, 22 Feb 2024 18:12:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dabbelt-com.20230601.gappssmtp.com header.i=@dabbelt-com.20230601.gappssmtp.com header.b="W+zp04zb" Received: from mail-il1-f173.google.com (mail-il1-f173.google.com [209.85.166.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1BD0E2BB01 for ; Thu, 22 Feb 2024 18:12:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708625537; cv=none; b=vD5tfz3+HHzj2j4sMhbFNIxEN8MtMh8TK2lbmrDDr/ekMtEwlZmUYq2/kM3XH9qHpQsjojJW77rgoEm7+SEvUQXFH/b8IHd/kiqbz0Zkwdgfpcn0+nUOuZ5xJbV6HcIkC4KwpOdLNnCKqceoJSzltXZ8dqs+7YzEayBYRI82SUk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708625537; c=relaxed/simple; bh=DPKDXhwMKF+B21xfPp2Xh9Ev5+Rn/9eQmV8Q0bIY9iE=; h=Date:Subject:In-Reply-To:CC:From:To:Message-ID:Mime-Version: Content-Type; b=ozo7Wvt2z4RKO6eufitKU8kT2Xy801SV/uo5rQRRr56RrrW27t/FgWLu8+bJ4SXTscH4R+oFHYmS8c88Kk9qA7Y/E79WErf+Asf8acgDDVEsc78v4IUKLPF5p9oiLVm9OVm01pxJo1YnljCW/uc54R62sxkF3Ah9BcrEF+XMKrg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dabbelt.com; spf=pass smtp.mailfrom=dabbelt.com; dkim=pass (2048-bit key) header.d=dabbelt-com.20230601.gappssmtp.com header.i=@dabbelt-com.20230601.gappssmtp.com header.b=W+zp04zb; arc=none smtp.client-ip=209.85.166.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dabbelt.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dabbelt.com Received: by mail-il1-f173.google.com with SMTP id e9e14a558f8ab-364f794f237so34349275ab.1 for ; Thu, 22 Feb 2024 10:12:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20230601.gappssmtp.com; s=20230601; t=1708625534; x=1709230334; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:from:to:cc:subject:date:message-id :reply-to; bh=74bdP9ntSNlgi9eqvP/1WueCOOc9bZEyjpMNXvBbiyI=; b=W+zp04zbyjqTCxfQRXCx621YhAmOf+B96JbNgZpvMjWbLP2aHAEzXPR5MorGb4vT5i qW+pI/XY85DmiekKmANtZJ3FEh/kMkCgSTvzd2tQjKCY98Bifwy82NMF3mO2lPVG51vG FLvb2J8V6+KLeeKpIcHRPpMskbMcWOJ+nq6vNvmbJjiVyBaA5BQasCALbTAj5J6ICO7I ublgMrVmmwZHjlFhkM3k6A1qrE5xUAayCWYt7sKqGYEvhzZwgfDz2PB1AcrgqTwpcptG /+SuH+xWtDZWVK8zGFPfj68Am3uhOvQS/k9bLIcMyfpKx2Epzrwg0Hf2066KegRB3kLB WaLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708625534; x=1709230334; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=74bdP9ntSNlgi9eqvP/1WueCOOc9bZEyjpMNXvBbiyI=; b=YT6Yb1+QU7/ImhGXs8RL/yFXydLbe3emEFlqAh44gM4siyjv3kyNITdHM2/qPqFF1H ec5jJu4ZC1Bj5QZy3OjCmHE99H0T+CKjclwAc8G7YpkmBUpNuSFs59IL65tcrPkr/fr2 YQvGqwfPmt00696Nf0LXja5LbxdLZWUM7SfRfMDLF5jF/gO1b2qho8VEs+Ox5yzyBSR6 wyfEYa4Fw+kEZgUhfroxVwu6jAJxy22W0KasmHAn6rIrnbbXoR8i7SClxLLOi/qtI5qe z8+U9S/Z2bUNqgsUKe71NBFOlU7uo3qvhkdL+2Gm2QysQtFyj8PAVIXP0h+FLiveh1nx eIvA== X-Forwarded-Encrypted: i=1; AJvYcCV350hyG15nPfbfk6oFwaUvQmrCeAU61VRuAYfk19ycAev22f8ZPH0VSD3f2ud/sSgQN2K9y8Hvk6DpyBp6b8/NWR6kdx7mE3uvBuVA X-Gm-Message-State: AOJu0YwXHruC10BNzHCGQNd4JIS77G0bQ83sHVPawPO4B2wKdm0nMTNi 49hW+WIuxLHMQSVbYo1qWHhth/Eh0lYYDpo9OqT0itxFePMX5JKHZp5h91/k38A= X-Received: by 2002:a05:6e02:f46:b0:363:dfc7:acc1 with SMTP id y6-20020a056e020f4600b00363dfc7acc1mr19081532ilj.2.1708625534044; Thu, 22 Feb 2024 10:12:14 -0800 (PST) Received: from localhost ([50.213.54.97]) by smtp.gmail.com with ESMTPSA id d188-20020a6336c5000000b005dc89957e06sm10749199pga.71.2024.02.22.10.12.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 10:12:13 -0800 (PST) Date: Thu, 22 Feb 2024 10:12:13 -0800 (PST) X-Google-Original-Date: Thu, 22 Feb 2024 10:12:11 PST (-0800) Subject: Re: [PATCH v6 0/4] StarFive's StarLink PMU Support In-Reply-To: <20240222125707.GA8589@willie-the-truck> CC: jisheng.teoh@starfivetech.com, corbet@lwn.net, Mark Rutland , robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, dan.j.williams@intel.com, ilkka@os.amperecomputing.com, Jonathan.Cameron@huawei.com, dave.jiang@intel.com, leyfoon.tan@starfivetech.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org From: Palmer Dabbelt To: Will Deacon Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On Thu, 22 Feb 2024 04:57:08 PST (-0800), Will Deacon wrote: > On Mon, Jan 29, 2024 at 05:51:37PM +0800, Ji Sheng Teoh wrote: >> This patch series adds support for StarFive's Starlink Performance >> Monitor Unit(PMU). >> StarFive's StarLink PMU integrates one or more CPU cores with >> a shared L3 memory system. The PMU supports overflow interrupt, >> up to 16 programmable 64bit event counters, and an independent >> 64bit cycle counter. >> StarLink PMU is accessed via MMIO. >> >> Example Perf stat output: >> [root@user]# perf stat -a -e /starfive_starlink_pmu/cycles/ \ >> -e /starfive_starlink_pmu/read_miss/ \ >> -e /starfive_starlink_pmu/read_hit/ \ >> -e /starfive_starlink_pmu/release_request/ \ >> -e /starfive_starlink_pmu/write_hit/ \ >> -e /starfive_starlink_pmu/write_miss/ \ >> -e /starfive_starlink_pmu/write_request/ \ >> -e /starfive_starlink_pmu/writeback/ \ >> -e /starfive_starlink_pmu/read_request/ \ >> -- openssl speed rsa2048 >> Doing 2048 bits private rsa's for 10s: 5 2048 bits private RSA's in >> 2.84s >> Doing 2048 bits public rsa's for 10s: 169 2048 bits public RSA's in >> 2.42s >> version: 3.0.11 >> built on: Tue Sep 19 13:02:31 2023 UTC >> options: bn(64,64) >> CPUINFO: N/A >> sign verify sign/s verify/s >> rsa 2048 bits 0.568000s 0.014320s 1.8 69.8 >> ///////// >> Performance counter stats for 'system wide': >> >> 649991998 starfive_starlink_pmu/cycles/ >> 1009690 starfive_starlink_pmu/read_miss/ >> 1079750 starfive_starlink_pmu/read_hit/ >> 2089405 starfive_starlink_pmu/release_request/ >> 129 starfive_starlink_pmu/write_hit/ >> 70 starfive_starlink_pmu/write_miss/ >> 194 starfive_starlink_pmu/write_request/ >> 150080 starfive_starlink_pmu/writeback/ >> 2089423 starfive_starlink_pmu/read_request/ >> >> 27.062755678 seconds time elapsed >> >> Ji Sheng Teoh (4): >> perf: starfive: Add StarLink PMU support >> dt-bindings: perf: starfive: Add JH8100 StarLink PMU >> docs: perf: Add description for StarFive's StarLink PMU >> MAINTAINERS: Add entry for StarFive StarLink PMU >> >> Documentation/admin-guide/perf/index.rst | 1 + >> .../perf/starfive_starlink_pmu.rst | 46 ++ >> .../perf/starfive,jh8100-starlink-pmu.yaml | 46 ++ >> MAINTAINERS | 7 + >> drivers/perf/Kconfig | 9 + >> drivers/perf/Makefile | 1 + >> drivers/perf/starfive_starlink_pmu.c | 643 ++++++++++++++++++ >> 7 files changed, 753 insertions(+) >> create mode 100644 Documentation/admin-guide/perf/starfive_starlink_pmu.rst >> create mode 100644 Documentation/devicetree/bindings/perf/starfive,jh8100-starlink-pmu.yaml >> create mode 100644 drivers/perf/starfive_starlink_pmu.c > > Palmer, are you ok with me taking this via the perf tree? I usually > leave the Risc-V stuff for you, but this one doesn't touch the arch code > at all. Sorry I missed these Acked-by: Palmer Dabbelt > Cheers, > > Will