From nobody Tue Jul 26 08:19:00 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4LsVDh5JTmz4XXBw; Tue, 26 Jul 2022 08:19:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LsVDh4qBtz3cXv; Tue, 26 Jul 2022 08:19:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658823540; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KDWVDnOluUSKacSL90lExNgiG9wmbfL3wNAgwoB4Egk=; b=fOGVJQpGVg5L9HFE+vW8Rx+/kUg+qqPtzvyLZqaqvS5oKqiqerog6GmBhYDUOtlwHU2f7p w1ElbGZ5sAnJMnzYUqpXXepOebuo/NZgJNU/XGtGo58XBEWX7JrcRVSG7isVSM9IowDisO jpwVbQQqgsHVAOmkYaLxlNl9Htu84Yovj+egC7/cr7t+d8WklVDEfLrVqTmtTmVipPwEwf yQ5D+/vsc/q6pymWo5cbkRjSWSHdrYc9trowo8RtGAcpwt6wUyxxZu65Jbg32C0Vt+h/LB HHzJNm83KPrF8X/Z684856n5k03J0apGTt5cEJbTpyZYfVxVtYb8+/eOWr4XBg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4LsVDh3Zs9zVFL; Tue, 26 Jul 2022 08:19:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 26Q8J0pe010555; Tue, 26 Jul 2022 08:19:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26Q8J0Dp010554; Tue, 26 Jul 2022 08:19:00 GMT (envelope-from git) Date: Tue, 26 Jul 2022 08:19:00 GMT Message-Id: <202207260819.26Q8J0Dp010554@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Toomas Soome Subject: git: cedbdaf0e586 - main - Add pmc.dmc-620(3) man page. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tsoome X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cedbdaf0e586c72fa990dceaa20c12c0ec9e3eba Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658823540; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KDWVDnOluUSKacSL90lExNgiG9wmbfL3wNAgwoB4Egk=; b=mlIRilYO11LrqjnJHRl4zzJRSX9mdel3D7NoCbEm2lpqhYimraY7X4CXO8StOu9M3mKvmg cCzqUtqXXFMagPrNuQgaJ7DbBI9GKXg5/uXrvTk13LQVxMtdIY/3U4/1ZQaN3ZP6i0ZrQ4 DlTJZoYIMX1VDqogk/VSUKnHqu4vT34NBB4JvvuV0eByL6BYKlfl4XTqL2B0+apIE2Ni3k XueOg2DCM58wl+137OxykEdnVDNqJ/sdJSm2RMbOEG9csT44YvdQP3FmOgjN3RB2YJxXDr mIIadJc1WYR4LkHERzfUOf9vxPE7MjMa4jgBiAzn4mZvus9P8ZRpblAAQUncPA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658823540; a=rsa-sha256; cv=none; b=tI28qq/39nafS/ego2/NCNFnfx3Ba/lmNr98vhKV+BzJW+sATSkskJTDzl8VnmpBFoxOOE NtHEDA5tOJCYSm3HBKBAlMrFr4qjXd26dbMkA4gaAb3VPi5RXnO7g90UyHySVt0nDAoFLv 8+bGksV8WIiCrkYZluB7fA9dvXDDbCSvLlQ/JQ9idOcfHyA9rXTd/RRx36dpa/8kmRKOgj eRijPNVas0PNhwFxMvYUjqocDSC1m6FrV4PWb/1z8cSMWh5SUr8zRHfsdBsiqlZa8dQsmV vx9s3hf47nb35s5BiQmFP+Ixyr7dlr+wZ/LLWUI9WM7/crv5k9nItJQp+otyfw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by tsoome: URL: https://cgit.FreeBSD.org/src/commit/?id=cedbdaf0e586c72fa990dceaa20c12c0ec9e3eba commit cedbdaf0e586c72fa990dceaa20c12c0ec9e3eba Author: Aleksandr Rybalko AuthorDate: 2022-02-16 00:19:46 +0000 Commit: Toomas Soome CommitDate: 2022-07-26 08:17:50 +0000 Add pmc.dmc-620(3) man page. Reviewed by: pauamma Sponsored By: Ampere Computing Differential Revision: https://reviews.freebsd.org/D32669 --- lib/libpmc/Makefile | 1 + lib/libpmc/pmc.dmc-620.3 | 165 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 166 insertions(+) diff --git a/lib/libpmc/Makefile b/lib/libpmc/Makefile index a4e1cf8da0f0..46b2622653a7 100644 --- a/lib/libpmc/Makefile +++ b/lib/libpmc/Makefile @@ -74,6 +74,7 @@ MAN+= pmc.core.3 MAN+= pmc.core2.3 MAN+= pmc.corei7.3 MAN+= pmc.corei7uc.3 +MAN+= pmc.dmc-620.3 MAN+= pmc.haswell.3 MAN+= pmc.haswelluc.3 MAN+= pmc.haswellxeon.3 diff --git a/lib/libpmc/pmc.dmc-620.3 b/lib/libpmc/pmc.dmc-620.3 new file mode 100644 index 000000000000..606d92f7b8ea --- /dev/null +++ b/lib/libpmc/pmc.dmc-620.3 @@ -0,0 +1,165 @@ +.\" Copyright (c) 2022 Ampere Computing. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.Dd Jul 22, 2022 +.Dt PMC.DMC-620 3 +.Os +.Sh NAME +.Nm pmc.dmc-620 +.Nd measure the +.Tn Arm +.Tn DMC-620 +Dynamic Memory Controller performance counter events. +.Sh LIBRARY +.Lb libpmc +.Sh SYNOPSIS +.In pmc.h +.Sh DESCRIPTION +.Tn DMC-620 +PMU counters may be configured to count any one of a defined set of hardware +events. +.Pp +.Tn Arm +.Tn CoreLink +.Tn DMC-620 Dynamic Memory Controller performance counters are documented in +.Rs +.%B "ARM CoreLink DMC-620 Dynamic Memory Controller Technical Reference Manual" +.%T "Revision: r0p0" +.%D 2017 +.%Q "ARM Limited" +.Re +.Ss PMC Capabilities +.Tn DMC-620 +PMU counters support the following capabilities: +.Bl -column "PMC_CAP_INTERRUPT" "Support" +.It Sy Capability Ta Em Support +.It PMC_CAP_CASCADE Ta \&No +.It PMC_CAP_EDGE Ta \&No +.It PMC_CAP_INTERRUPT Ta Yes +.It PMC_CAP_INVERT Ta Yes +.It PMC_CAP_READ Ta Yes +.It PMC_CAP_PRECISE Ta \&No +.It PMC_CAP_SYSTEM Ta Yes +.It PMC_CAP_TAGGING Ta \&No +.It PMC_CAP_THRESHOLD Ta Yes +.It PMC_CAP_USER Ta \&No +.It PMC_CAP_WRITE Ta Yes +.El +.Ss Event Qualifiers +Event specifiers for these PMCs support the following common +qualifiers: +.Bl -tag -width indent +.It Li inc= Ns Ar value +Two-bit value that controls direction of count for PMC. +Behavior depend on selected event. +.It Li inv +Invert the sense of comparison. +.It Li match= Ns Ar value +Count only events matched by +.Ar value. +.It Li mask= Ns Ar qualifier +Allow to apply +.Ar qualifier +mask to compared +.Ar value . +.El +.Ss Class Name Prefix +These PMCs use a class name prefix of +.Dq Li DMC620_CD2_ +or +.Dq Li DMC620_C_ . +.Ss Event Specifiers +The following PMC events are available: +.Bl -column +.It Sy clkdiv2_cycle_count +.It Sy clkdiv2_allocate +.It Sy clkdiv2_queue_depth +.It Sy clkdiv2_waiting_for_wr_data +.It Sy clkdiv2_read_backlog +.It Sy clkdiv2_waiting_for_mi +.It Sy clkdiv2_hazard_resolution +.It Sy clkdiv2_enqueue +.It Sy clkdiv2_arbitrate +.It Sy clkdiv2_lrank_turnaround_activate +.It Sy clkdiv2_prank_turnaround_activate +.It Sy clkdiv2_read_depth +.It Sy clkdiv2_write_depth +.It Sy clkdiv2_highhigh_qos_depth +.It Sy clkdiv2_high_qos_depth +.It Sy clkdiv2_medium_qos_depth +.It Sy clkdiv2_low_qos_depth +.It Sy clkdiv2_activate +.It Sy clkdiv2_rdwr +.It Sy clkdiv2_refresh +.It Sy clkdiv2_training_request +.It Sy clkdiv2_t_mac_tracker +.It Sy clkdiv2_bk_fsm_tracker +.It Sy clkdiv2_bk_open_tracker +.It Sy clkdiv2_ranks_in_pwr_down +.It Sy clkdiv2_ranks_in_sref +.It Sy clk_cycle_count +.It Sy clk_request +.It Sy clk_upload_stall +.El +.Sh SEE ALSO +.Xr pmc 3 , +.Xr pmc.atom 3 , +.Xr pmc.core 3 , +.Xr pmc.core2 3 , +.Xr pmc.corei7 3 , +.Xr pmc.corei7uc 3 , +.Xr pmc.iaf 3 , +.Xr pmc.iaf 3 , +.Xr pmc.k7 3 , +.Xr pmc.k8 3 , +.Xr pmc.p4 3 , +.Xr pmc.p5 3 , +.Xr pmc.p6 3 , +.Xr pmc.soft 3 , +.Xr pmc.tsc 3 , +.Xr pmc.westmere 3 , +.Xr pmc.westmereuc 3 , +.Xr pmc_cpuinfo 3 , +.Xr pmclog 3 , +.Xr hwpmc 4 +.Sh HISTORY +The +.Nm pmc +library first appeared in +.Fx 6.0 . +.br +The +.Nm pmc.dmc-620 +driver was added in +.Fx 14.0 . +.Sh AUTHORS +.An -nosplit +The +.Lb libpmc +library was written by +.An Joseph Koshy Aq Mt jkoshy@FreeBSD.org . +.An Oleksandr Rybalko Aq Mt ray@FreeBSD.org . +.br +The DMC-620 PMU driver was sponsored by Ampere Computing LLC. +This manual page was written by +.An Oleksandr Rybalko Aq Mt ray@FreeBSD.org .