1cedbdaf0SAleksandr Rybalko.\" Copyright (c) 2022 Ampere Computing. 2cedbdaf0SAleksandr Rybalko.\" 3cedbdaf0SAleksandr Rybalko.\" Redistribution and use in source and binary forms, with or without 4cedbdaf0SAleksandr Rybalko.\" modification, are permitted provided that the following conditions 5cedbdaf0SAleksandr Rybalko.\" are met: 6cedbdaf0SAleksandr Rybalko.\" 1. Redistributions of source code must retain the above copyright 7cedbdaf0SAleksandr Rybalko.\" notice, this list of conditions and the following disclaimer. 8cedbdaf0SAleksandr Rybalko.\" 2. Redistributions in binary form must reproduce the above copyright 9cedbdaf0SAleksandr Rybalko.\" notice, this list of conditions and the following disclaimer in the 10cedbdaf0SAleksandr Rybalko.\" documentation and/or other materials provided with the distribution. 11cedbdaf0SAleksandr Rybalko.\" 12cedbdaf0SAleksandr Rybalko.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 13cedbdaf0SAleksandr Rybalko.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 14cedbdaf0SAleksandr Rybalko.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 15cedbdaf0SAleksandr Rybalko.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 16cedbdaf0SAleksandr Rybalko.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 17cedbdaf0SAleksandr Rybalko.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 18cedbdaf0SAleksandr Rybalko.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 19cedbdaf0SAleksandr Rybalko.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 20cedbdaf0SAleksandr Rybalko.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 21cedbdaf0SAleksandr Rybalko.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 22cedbdaf0SAleksandr Rybalko.\" SUCH DAMAGE. 23cedbdaf0SAleksandr Rybalko.\" 24cedbdaf0SAleksandr Rybalko.Dd Jul 22, 2022 25cedbdaf0SAleksandr Rybalko.Dt PMC.DMC-620 3 26cedbdaf0SAleksandr Rybalko.Os 27cedbdaf0SAleksandr Rybalko.Sh NAME 28cedbdaf0SAleksandr Rybalko.Nm pmc.dmc-620 29cedbdaf0SAleksandr Rybalko.Nd measure the 30cedbdaf0SAleksandr Rybalko.Tn Arm 31cedbdaf0SAleksandr Rybalko.Tn DMC-620 32cedbdaf0SAleksandr RybalkoDynamic Memory Controller performance counter events. 33cedbdaf0SAleksandr Rybalko.Sh LIBRARY 34cedbdaf0SAleksandr Rybalko.Lb libpmc 35cedbdaf0SAleksandr Rybalko.Sh SYNOPSIS 36cedbdaf0SAleksandr Rybalko.In pmc.h 37cedbdaf0SAleksandr Rybalko.Sh DESCRIPTION 38cedbdaf0SAleksandr Rybalko.Tn DMC-620 39cedbdaf0SAleksandr RybalkoPMU counters may be configured to count any one of a defined set of hardware 40cedbdaf0SAleksandr Rybalkoevents. 41cedbdaf0SAleksandr Rybalko.Pp 42cedbdaf0SAleksandr Rybalko.Tn Arm 43cedbdaf0SAleksandr Rybalko.Tn CoreLink 44cedbdaf0SAleksandr Rybalko.Tn DMC-620 Dynamic Memory Controller performance counters are documented in 45cedbdaf0SAleksandr Rybalko.Rs 46cedbdaf0SAleksandr Rybalko.%B "ARM CoreLink DMC-620 Dynamic Memory Controller Technical Reference Manual" 47cedbdaf0SAleksandr Rybalko.%T "Revision: r0p0" 48cedbdaf0SAleksandr Rybalko.%D 2017 49cedbdaf0SAleksandr Rybalko.%Q "ARM Limited" 50cedbdaf0SAleksandr Rybalko.Re 51cedbdaf0SAleksandr Rybalko.Ss PMC Capabilities 52cedbdaf0SAleksandr Rybalko.Tn DMC-620 53cedbdaf0SAleksandr RybalkoPMU counters support the following capabilities: 54cedbdaf0SAleksandr Rybalko.Bl -column "PMC_CAP_INTERRUPT" "Support" 55cedbdaf0SAleksandr Rybalko.It Sy Capability Ta Em Support 56cedbdaf0SAleksandr Rybalko.It PMC_CAP_CASCADE Ta \&No 57cedbdaf0SAleksandr Rybalko.It PMC_CAP_EDGE Ta \&No 58cedbdaf0SAleksandr Rybalko.It PMC_CAP_INTERRUPT Ta Yes 59cedbdaf0SAleksandr Rybalko.It PMC_CAP_INVERT Ta Yes 60cedbdaf0SAleksandr Rybalko.It PMC_CAP_READ Ta Yes 61cedbdaf0SAleksandr Rybalko.It PMC_CAP_PRECISE Ta \&No 62cedbdaf0SAleksandr Rybalko.It PMC_CAP_SYSTEM Ta Yes 63cedbdaf0SAleksandr Rybalko.It PMC_CAP_TAGGING Ta \&No 64cedbdaf0SAleksandr Rybalko.It PMC_CAP_THRESHOLD Ta Yes 65cedbdaf0SAleksandr Rybalko.It PMC_CAP_USER Ta \&No 66cedbdaf0SAleksandr Rybalko.It PMC_CAP_WRITE Ta Yes 67cedbdaf0SAleksandr Rybalko.El 68cedbdaf0SAleksandr Rybalko.Ss Event Qualifiers 69cedbdaf0SAleksandr RybalkoEvent specifiers for these PMCs support the following common 70cedbdaf0SAleksandr Rybalkoqualifiers: 71cedbdaf0SAleksandr Rybalko.Bl -tag -width indent 72cedbdaf0SAleksandr Rybalko.It Li inc= Ns Ar value 73cedbdaf0SAleksandr RybalkoTwo-bit value that controls direction of count for PMC. 74cedbdaf0SAleksandr RybalkoBehavior depend on selected event. 75cedbdaf0SAleksandr Rybalko.It Li inv 76cedbdaf0SAleksandr RybalkoInvert the sense of comparison. 77cedbdaf0SAleksandr Rybalko.It Li match= Ns Ar value 78cedbdaf0SAleksandr RybalkoCount only events matched by 79cedbdaf0SAleksandr Rybalko.Ar value. 80cedbdaf0SAleksandr Rybalko.It Li mask= Ns Ar qualifier 81cedbdaf0SAleksandr RybalkoAllow to apply 82cedbdaf0SAleksandr Rybalko.Ar qualifier 83cedbdaf0SAleksandr Rybalkomask to compared 84cedbdaf0SAleksandr Rybalko.Ar value . 85cedbdaf0SAleksandr Rybalko.El 86cedbdaf0SAleksandr Rybalko.Ss Class Name Prefix 87cedbdaf0SAleksandr RybalkoThese PMCs use a class name prefix of 88cedbdaf0SAleksandr Rybalko.Dq Li DMC620_CD2_ 89cedbdaf0SAleksandr Rybalkoor 90cedbdaf0SAleksandr Rybalko.Dq Li DMC620_C_ . 91cedbdaf0SAleksandr Rybalko.Ss Event Specifiers 92cedbdaf0SAleksandr RybalkoThe following PMC events are available: 93cedbdaf0SAleksandr Rybalko.Bl -column 94cedbdaf0SAleksandr Rybalko.It Sy clkdiv2_cycle_count 95cedbdaf0SAleksandr Rybalko.It Sy clkdiv2_allocate 96cedbdaf0SAleksandr Rybalko.It Sy clkdiv2_queue_depth 97cedbdaf0SAleksandr Rybalko.It Sy clkdiv2_waiting_for_wr_data 98cedbdaf0SAleksandr Rybalko.It Sy clkdiv2_read_backlog 99cedbdaf0SAleksandr Rybalko.It Sy clkdiv2_waiting_for_mi 100cedbdaf0SAleksandr Rybalko.It Sy clkdiv2_hazard_resolution 101cedbdaf0SAleksandr Rybalko.It Sy clkdiv2_enqueue 102cedbdaf0SAleksandr Rybalko.It Sy clkdiv2_arbitrate 103cedbdaf0SAleksandr Rybalko.It Sy clkdiv2_lrank_turnaround_activate 104cedbdaf0SAleksandr Rybalko.It Sy clkdiv2_prank_turnaround_activate 105cedbdaf0SAleksandr Rybalko.It Sy clkdiv2_read_depth 106cedbdaf0SAleksandr Rybalko.It Sy clkdiv2_write_depth 107cedbdaf0SAleksandr Rybalko.It Sy clkdiv2_highhigh_qos_depth 108cedbdaf0SAleksandr Rybalko.It Sy clkdiv2_high_qos_depth 109cedbdaf0SAleksandr Rybalko.It Sy clkdiv2_medium_qos_depth 110cedbdaf0SAleksandr Rybalko.It Sy clkdiv2_low_qos_depth 111cedbdaf0SAleksandr Rybalko.It Sy clkdiv2_activate 112cedbdaf0SAleksandr Rybalko.It Sy clkdiv2_rdwr 113cedbdaf0SAleksandr Rybalko.It Sy clkdiv2_refresh 114cedbdaf0SAleksandr Rybalko.It Sy clkdiv2_training_request 115cedbdaf0SAleksandr Rybalko.It Sy clkdiv2_t_mac_tracker 116cedbdaf0SAleksandr Rybalko.It Sy clkdiv2_bk_fsm_tracker 117cedbdaf0SAleksandr Rybalko.It Sy clkdiv2_bk_open_tracker 118cedbdaf0SAleksandr Rybalko.It Sy clkdiv2_ranks_in_pwr_down 119cedbdaf0SAleksandr Rybalko.It Sy clkdiv2_ranks_in_sref 120cedbdaf0SAleksandr Rybalko.It Sy clk_cycle_count 121cedbdaf0SAleksandr Rybalko.It Sy clk_request 122cedbdaf0SAleksandr Rybalko.It Sy clk_upload_stall 123cedbdaf0SAleksandr Rybalko.El 124cedbdaf0SAleksandr Rybalko.Sh SEE ALSO 125cedbdaf0SAleksandr Rybalko.Xr pmc 3 , 126*b2934971SMitchell Horne.Xr pmc.amd 3 , 127cedbdaf0SAleksandr Rybalko.Xr pmc.atom 3 , 128cedbdaf0SAleksandr Rybalko.Xr pmc.core 3 , 129cedbdaf0SAleksandr Rybalko.Xr pmc.core2 3 , 130cedbdaf0SAleksandr Rybalko.Xr pmc.corei7 3 , 131cedbdaf0SAleksandr Rybalko.Xr pmc.corei7uc 3 , 132cedbdaf0SAleksandr Rybalko.Xr pmc.iaf 3 , 133cedbdaf0SAleksandr Rybalko.Xr pmc.soft 3 , 134cedbdaf0SAleksandr Rybalko.Xr pmc.tsc 3 , 135cedbdaf0SAleksandr Rybalko.Xr pmc.westmere 3 , 136cedbdaf0SAleksandr Rybalko.Xr pmc.westmereuc 3 , 137cedbdaf0SAleksandr Rybalko.Xr pmc_cpuinfo 3 , 138cedbdaf0SAleksandr Rybalko.Xr pmclog 3 , 139cedbdaf0SAleksandr Rybalko.Xr hwpmc 4 140cedbdaf0SAleksandr Rybalko.Sh HISTORY 141cedbdaf0SAleksandr RybalkoThe 142cedbdaf0SAleksandr Rybalko.Nm pmc 143cedbdaf0SAleksandr Rybalkolibrary first appeared in 144cedbdaf0SAleksandr Rybalko.Fx 6.0 . 145cedbdaf0SAleksandr Rybalko.br 146cedbdaf0SAleksandr RybalkoThe 147cedbdaf0SAleksandr Rybalko.Nm pmc.dmc-620 148cedbdaf0SAleksandr Rybalkodriver was added in 149cedbdaf0SAleksandr Rybalko.Fx 14.0 . 150cedbdaf0SAleksandr Rybalko.Sh AUTHORS 151cedbdaf0SAleksandr Rybalko.An -nosplit 152cedbdaf0SAleksandr RybalkoThe 153cedbdaf0SAleksandr Rybalko.Lb libpmc 154cedbdaf0SAleksandr Rybalkolibrary was written by 155cedbdaf0SAleksandr Rybalko.An Joseph Koshy Aq Mt jkoshy@FreeBSD.org . 156cedbdaf0SAleksandr Rybalko.An Oleksandr Rybalko Aq Mt ray@FreeBSD.org . 157cedbdaf0SAleksandr Rybalko.br 158cedbdaf0SAleksandr RybalkoThe DMC-620 PMU driver was sponsored by Ampere Computing LLC. 159cedbdaf0SAleksandr RybalkoThis manual page was written by 160cedbdaf0SAleksandr Rybalko.An Oleksandr Rybalko Aq Mt ray@FreeBSD.org . 161