Blame src/libpfm4/lib/events/intel_bdx_unc_ha_events.h

Packit 577717
/*
Packit 577717
 * Copyright (c) 2017 Google Inc. All rights reserved
Packit 577717
 * Contributed by Stephane Eranian <eranian@gmail.com>
Packit 577717
 *
Packit 577717
 * Permission is hereby granted, free of charge, to any person obtaining a copy
Packit 577717
 * of this software and associated documentation files (the "Software"), to deal
Packit 577717
 * in the Software without restriction, including without limitation the rights
Packit 577717
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
Packit 577717
 * of the Software, and to permit persons to whom the Software is furnished to do so,
Packit 577717
 * subject to the following conditions:
Packit 577717
 *
Packit 577717
 * The above copyright notice and this permission notice shall be included in all
Packit 577717
 * copies or substantial portions of the Software.
Packit 577717
 *
Packit 577717
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
Packit 577717
 * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
Packit 577717
 * PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
Packit 577717
 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
Packit 577717
 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
Packit 577717
 * OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Packit 577717
 *
Packit 577717
 * This file is part of libpfm, a performance monitoring support library for
Packit 577717
 * applications on Linux.
Packit 577717
 *
Packit 577717
 * PMU: bdx_unc_ha
Packit 577717
 */
Packit 577717
Packit 577717
static intel_x86_umask_t bdx_unc_h_bypass_imc[]={
Packit 577717
	{ .uname = "NOT_TAKEN",
Packit 577717
	  .ucode = 0x200,
Packit 577717
	  .udesc = "HA to iMC Bypass -- Not Taken",
Packit 577717
	},
Packit 577717
	{ .uname = "TAKEN",
Packit 577717
	  .ucode = 0x100,
Packit 577717
	  .udesc = "HA to iMC Bypass -- Taken",
Packit 577717
	},
Packit 577717
};
Packit 577717
Packit 577717
static intel_x86_umask_t bdx_unc_h_directory_lookup[]={
Packit 577717
	{ .uname = "NO_SNP",
Packit 577717
	  .ucode = 0x200,
Packit 577717
	  .udesc = "Directory Lookups -- Snoop Not Needed",
Packit 577717
	},
Packit 577717
	{ .uname = "SNP",
Packit 577717
	  .ucode = 0x100,
Packit 577717
	  .udesc = "Directory Lookups -- Snoop Needed",
Packit 577717
	},
Packit 577717
};
Packit 577717
Packit 577717
static intel_x86_umask_t bdx_unc_h_directory_update[]={
Packit 577717
	{ .uname  = "ANY",
Packit 577717
	  .ucode  = 0x300,
Packit 577717
	  .udesc  = "Directory Updates -- Any Directory Update",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO | INTEL_X86_DFL,
Packit 577717
	},
Packit 577717
	{ .uname = "CLEAR",
Packit 577717
	  .ucode = 0x200,
Packit 577717
	  .udesc = "Directory Updates -- Directory Clear",
Packit 577717
	},
Packit 577717
	{ .uname = "SET",
Packit 577717
	  .ucode = 0x100,
Packit 577717
	  .udesc = "Directory Updates -- Directory Set",
Packit 577717
	},
Packit 577717
};
Packit 577717
Packit 577717
static intel_x86_umask_t bdx_unc_h_hitme_hit[]={
Packit 577717
	{ .uname = "ACKCNFLTWBI",
Packit 577717
	  .ucode = 0x400,
Packit 577717
	  .udesc = "Counts Number of Hits in HitMe Cache -- op is AckCnfltWbI",
Packit 577717
	},
Packit 577717
	{ .uname  = "ALL",
Packit 577717
	  .ucode  = 0xff00,
Packit 577717
	  .udesc  = "Counts Number of Hits in HitMe Cache -- All Requests",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO | INTEL_X86_DFL,
Packit 577717
	},
Packit 577717
	{ .uname  = "ALLOCS",
Packit 577717
	  .ucode  = 0x7000,
Packit 577717
	  .udesc  = "Counts Number of Hits in HitMe Cache -- Allocations",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO,
Packit 577717
	},
Packit 577717
	{ .uname  = "EVICTS",
Packit 577717
	  .ucode  = 0x4200,
Packit 577717
	  .udesc  = "Counts Number of Hits in HitMe Cache -- Allocations",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO,
Packit 577717
	},
Packit 577717
	{ .uname  = "HOM",
Packit 577717
	  .ucode  = 0xf00,
Packit 577717
	  .udesc  = "Counts Number of Hits in HitMe Cache -- HOM Requests",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO,
Packit 577717
	},
Packit 577717
	{ .uname  = "INVALS",
Packit 577717
	  .ucode  = 0x2600,
Packit 577717
	  .udesc  = "Counts Number of Hits in HitMe Cache -- Invalidations",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO,
Packit 577717
	},
Packit 577717
	{ .uname = "READ_OR_INVITOE",
Packit 577717
	  .ucode = 0x100,
Packit 577717
	  .udesc = "Counts Number of Hits in HitMe Cache -- op is RdCode, RdData, RdDataMigratory, RdInvOwn, RdCur or InvItoE",
Packit 577717
	},
Packit 577717
	{ .uname = "RSP",
Packit 577717
	  .ucode = 0x8000,
Packit 577717
	  .udesc = "Counts Number of Hits in HitMe Cache -- op is RspI, RspIWb, RspS, RspSWb, RspCnflt or RspCnfltWbI",
Packit 577717
	},
Packit 577717
	{ .uname = "RSPFWDI_LOCAL",
Packit 577717
	  .ucode = 0x2000,
Packit 577717
	  .udesc = "Counts Number of Hits in HitMe Cache -- op is RspIFwd or RspIFwdWb for a local request",
Packit 577717
	},
Packit 577717
	{ .uname = "RSPFWDI_REMOTE",
Packit 577717
	  .ucode = 0x1000,
Packit 577717
	  .udesc = "Counts Number of Hits in HitMe Cache -- op is RspIFwd or RspIFwdWb for a remote request",
Packit 577717
	},
Packit 577717
	{ .uname = "RSPFWDS",
Packit 577717
	  .ucode = 0x4000,
Packit 577717
	  .udesc = "Counts Number of Hits in HitMe Cache -- op is RsSFwd or RspSFwdWb",
Packit 577717
	},
Packit 577717
	{ .uname = "WBMTOE_OR_S",
Packit 577717
	  .ucode = 0x800,
Packit 577717
	  .udesc = "Counts Number of Hits in HitMe Cache -- op is WbMtoE or WbMtoS",
Packit 577717
	},
Packit 577717
	{ .uname = "WBMTOI",
Packit 577717
	  .ucode = 0x200,
Packit 577717
	  .udesc = "Counts Number of Hits in HitMe Cache -- op is WbMtoI",
Packit 577717
	},
Packit 577717
};
Packit 577717
Packit 577717
static intel_x86_umask_t bdx_unc_h_hitme_hit_pv_bits_set[]={
Packit 577717
	{ .uname = "ACKCNFLTWBI",
Packit 577717
	  .ucode = 0x400,
Packit 577717
	  .udesc = "Accumulates Number of PV bits set on HitMe Cache Hits -- op is AckCnfltWbI",
Packit 577717
	},
Packit 577717
	{ .uname  = "ALL",
Packit 577717
	  .ucode  = 0xff00,
Packit 577717
	  .udesc  = "Accumulates Number of PV bits set on HitMe Cache Hits -- All Requests",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO | INTEL_X86_DFL,
Packit 577717
	},
Packit 577717
	{ .uname = "HOM",
Packit 577717
	  .ucode = 0xf00,
Packit 577717
	  .udesc = "Accumulates Number of PV bits set on HitMe Cache Hits -- HOM Requests",
Packit 577717
	},
Packit 577717
	{ .uname = "READ_OR_INVITOE",
Packit 577717
	  .ucode = 0x100,
Packit 577717
	  .udesc = "Accumulates Number of PV bits set on HitMe Cache Hits -- op is RdCode, RdData, RdDataMigratory, RdInvOwn, RdCur or InvItoE",
Packit 577717
	},
Packit 577717
	{ .uname = "RSP",
Packit 577717
	  .ucode = 0x8000,
Packit 577717
	  .udesc = "Accumulates Number of PV bits set on HitMe Cache Hits -- op is RspI, RspIWb, RspS, RspSWb, RspCnflt or RspCnfltWbI",
Packit 577717
	},
Packit 577717
	{ .uname = "RSPFWDI_LOCAL",
Packit 577717
	  .ucode = 0x2000,
Packit 577717
	  .udesc = "Accumulates Number of PV bits set on HitMe Cache Hits -- op is RspIFwd or RspIFwdWb for a local request",
Packit 577717
	},
Packit 577717
	{ .uname = "RSPFWDI_REMOTE",
Packit 577717
	  .ucode = 0x1000,
Packit 577717
	  .udesc = "Accumulates Number of PV bits set on HitMe Cache Hits -- op is RspIFwd or RspIFwdWb for a remote request",
Packit 577717
	},
Packit 577717
	{ .uname = "RSPFWDS",
Packit 577717
	  .ucode = 0x4000,
Packit 577717
	  .udesc = "Accumulates Number of PV bits set on HitMe Cache Hits -- op is RsSFwd or RspSFwdWb",
Packit 577717
	},
Packit 577717
	{ .uname = "WBMTOE_OR_S",
Packit 577717
	  .ucode = 0x800,
Packit 577717
	  .udesc = "Accumulates Number of PV bits set on HitMe Cache Hits -- op is WbMtoE or WbMtoS",
Packit 577717
	},
Packit 577717
	{ .uname = "WBMTOI",
Packit 577717
	  .ucode = 0x200,
Packit 577717
	  .udesc = "Accumulates Number of PV bits set on HitMe Cache Hits -- op is WbMtoI",
Packit 577717
	},
Packit 577717
};
Packit 577717
Packit 577717
static intel_x86_umask_t bdx_unc_h_hitme_lookup[]={
Packit 577717
	{ .uname = "ACKCNFLTWBI",
Packit 577717
	  .ucode = 0x400,
Packit 577717
	  .udesc = "Counts Number of times HitMe Cache is accessed -- op is AckCnfltWbI",
Packit 577717
	},
Packit 577717
	{ .uname  = "ALL",
Packit 577717
	  .ucode  = 0xff00,
Packit 577717
	  .udesc  = "Counts Number of times HitMe Cache is accessed -- All Requests",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO | INTEL_X86_DFL,
Packit 577717
	},
Packit 577717
	{ .uname = "ALLOCS",
Packit 577717
	  .ucode = 0x7000,
Packit 577717
	  .udesc = "Counts Number of times HitMe Cache is accessed -- Allocations",
Packit 577717
	},
Packit 577717
	{ .uname  = "HOM",
Packit 577717
	  .ucode  = 0xf00,
Packit 577717
	  .udesc  = "Counts Number of times HitMe Cache is accessed -- HOM Requests",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO,
Packit 577717
	},
Packit 577717
	{ .uname  = "INVALS",
Packit 577717
	  .ucode  = 0x2600,
Packit 577717
	  .udesc  = "Counts Number of times HitMe Cache is accessed -- Invalidations",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO,
Packit 577717
	},
Packit 577717
	{ .uname = "READ_OR_INVITOE",
Packit 577717
	  .ucode = 0x100,
Packit 577717
	  .udesc = "Counts Number of times HitMe Cache is accessed -- op is RdCode, RdData, RdDataMigratory, RdInvOwn, RdCur or InvItoE",
Packit 577717
	},
Packit 577717
	{ .uname = "RSP",
Packit 577717
	  .ucode = 0x8000,
Packit 577717
	  .udesc = "Counts Number of times HitMe Cache is accessed -- op is RspI, RspIWb, RspS, RspSWb, RspCnflt or RspCnfltWbI",
Packit 577717
	},
Packit 577717
	{ .uname = "RSPFWDI_LOCAL",
Packit 577717
	  .ucode = 0x2000,
Packit 577717
	  .udesc = "Counts Number of times HitMe Cache is accessed -- op is RspIFwd or RspIFwdWb for a local request",
Packit 577717
	},
Packit 577717
	{ .uname = "RSPFWDI_REMOTE",
Packit 577717
	  .ucode = 0x1000,
Packit 577717
	  .udesc = "Counts Number of times HitMe Cache is accessed -- op is RspIFwd or RspIFwdWb for a remote request",
Packit 577717
	},
Packit 577717
	{ .uname = "RSPFWDS",
Packit 577717
	  .ucode = 0x4000,
Packit 577717
	  .udesc = "Counts Number of times HitMe Cache is accessed -- op is RsSFwd or RspSFwdWb",
Packit 577717
	},
Packit 577717
	{ .uname = "WBMTOE_OR_S",
Packit 577717
	  .ucode = 0x800,
Packit 577717
	  .udesc = "Counts Number of times HitMe Cache is accessed -- op is WbMtoE or WbMtoS",
Packit 577717
	},
Packit 577717
	{ .uname = "WBMTOI",
Packit 577717
	  .ucode = 0x200,
Packit 577717
	  .udesc = "Counts Number of times HitMe Cache is accessed -- op is WbMtoI",
Packit 577717
	},
Packit 577717
};
Packit 577717
Packit 577717
static intel_x86_umask_t bdx_unc_h_igr_no_credit_cycles[]={
Packit 577717
	{ .uname = "AD_QPI0",
Packit 577717
	  .ucode = 0x100,
Packit 577717
	  .udesc = "Cycles without QPI Ingress Credits -- AD to QPI Link 0",
Packit 577717
	},
Packit 577717
	{ .uname = "AD_QPI1",
Packit 577717
	  .ucode = 0x200,
Packit 577717
	  .udesc = "Cycles without QPI Ingress Credits -- AD to QPI Link 1",
Packit 577717
	},
Packit 577717
	{ .uname = "AD_QPI2",
Packit 577717
	  .ucode = 0x1000,
Packit 577717
	  .udesc = "Cycles without QPI Ingress Credits -- BL to QPI Link 0",
Packit 577717
	},
Packit 577717
	{ .uname = "BL_QPI0",
Packit 577717
	  .ucode = 0x400,
Packit 577717
	  .udesc = "Cycles without QPI Ingress Credits -- BL to QPI Link 0",
Packit 577717
	},
Packit 577717
	{ .uname = "BL_QPI1",
Packit 577717
	  .ucode = 0x800,
Packit 577717
	  .udesc = "Cycles without QPI Ingress Credits -- BL to QPI Link 1",
Packit 577717
	},
Packit 577717
	{ .uname = "BL_QPI2",
Packit 577717
	  .ucode = 0x2000,
Packit 577717
	  .udesc = "Cycles without QPI Ingress Credits -- BL to QPI Link 1",
Packit 577717
	},
Packit 577717
};
Packit 577717
Packit 577717
static intel_x86_umask_t bdx_unc_h_imc_reads[]={
Packit 577717
	{ .uname  = "NORMAL",
Packit 577717
	  .ucode  = 0x100,
Packit 577717
	  .udesc  = "HA to iMC Normal Priority Reads Issued -- Normal Priority",
Packit 577717
	  .uflags = INTEL_X86_DFL,
Packit 577717
	},
Packit 577717
};
Packit 577717
Packit 577717
static intel_x86_umask_t bdx_unc_h_imc_writes[]={
Packit 577717
	{ .uname  = "ALL",
Packit 577717
	  .ucode  = 0xf00,
Packit 577717
	  .udesc  = "HA to iMC Full Line Writes Issued -- All Writes",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO | INTEL_X86_DFL,
Packit 577717
	},
Packit 577717
	{ .uname = "FULL",
Packit 577717
	  .ucode = 0x100,
Packit 577717
	  .udesc = "HA to iMC Full Line Writes Issued -- Full Line Non-ISOCH",
Packit 577717
	},
Packit 577717
	{ .uname = "FULL_ISOCH",
Packit 577717
	  .ucode = 0x400,
Packit 577717
	  .udesc = "HA to iMC Full Line Writes Issued -- ISOCH Full Line",
Packit 577717
	},
Packit 577717
	{ .uname = "PARTIAL",
Packit 577717
	  .ucode = 0x200,
Packit 577717
	  .udesc = "HA to iMC Full Line Writes Issued -- Partial Non-ISOCH",
Packit 577717
	},
Packit 577717
	{ .uname = "PARTIAL_ISOCH",
Packit 577717
	  .ucode = 0x800,
Packit 577717
	  .udesc = "HA to iMC Full Line Writes Issued -- ISOCH Partial",
Packit 577717
	},
Packit 577717
};
Packit 577717
Packit 577717
static intel_x86_umask_t bdx_unc_h_osb[]={
Packit 577717
	{ .uname = "CANCELLED",
Packit 577717
	  .ucode = 0x1000,
Packit 577717
	  .udesc = "OSB Snoop Broadcast -- Cancelled",
Packit 577717
	},
Packit 577717
	{ .uname = "INVITOE_LOCAL",
Packit 577717
	  .ucode = 0x400,
Packit 577717
	  .udesc = "OSB Snoop Broadcast -- Local InvItoE",
Packit 577717
	},
Packit 577717
	{ .uname = "READS_LOCAL",
Packit 577717
	  .ucode = 0x200,
Packit 577717
	  .udesc = "OSB Snoop Broadcast -- Local Reads",
Packit 577717
	},
Packit 577717
	{ .uname = "READS_LOCAL_USEFUL",
Packit 577717
	  .ucode = 0x2000,
Packit 577717
	  .udesc = "OSB Snoop Broadcast -- Reads Local -  Useful",
Packit 577717
	},
Packit 577717
	{ .uname = "REMOTE",
Packit 577717
	  .ucode = 0x800,
Packit 577717
	  .udesc = "OSB Snoop Broadcast -- Remote",
Packit 577717
	},
Packit 577717
	{ .uname = "REMOTE_USEFUL",
Packit 577717
	  .ucode = 0x4000,
Packit 577717
	  .udesc = "OSB Snoop Broadcast -- Remote - Useful",
Packit 577717
	},
Packit 577717
};
Packit 577717
Packit 577717
static intel_x86_umask_t bdx_unc_h_osb_edr[]={
Packit 577717
	{ .uname  = "ALL",
Packit 577717
	  .ucode  = 0x100,
Packit 577717
	  .udesc  = "OSB Early Data Return -- All",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO | INTEL_X86_DFL,
Packit 577717
	},
Packit 577717
	{ .uname = "READS_LOCAL_I",
Packit 577717
	  .ucode = 0x200,
Packit 577717
	  .udesc = "OSB Early Data Return -- Reads to Local  I",
Packit 577717
	},
Packit 577717
	{ .uname = "READS_LOCAL_S",
Packit 577717
	  .ucode = 0x800,
Packit 577717
	  .udesc = "OSB Early Data Return -- Reads to Local S",
Packit 577717
	},
Packit 577717
	{ .uname = "READS_REMOTE_I",
Packit 577717
	  .ucode = 0x400,
Packit 577717
	  .udesc = "OSB Early Data Return -- Reads to Remote I",
Packit 577717
	},
Packit 577717
	{ .uname = "READS_REMOTE_S",
Packit 577717
	  .ucode = 0x1000,
Packit 577717
	  .udesc = "OSB Early Data Return -- Reads to Remote S",
Packit 577717
	},
Packit 577717
};
Packit 577717
Packit 577717
static intel_x86_umask_t bdx_unc_h_requests[]={
Packit 577717
	{ .uname = "INVITOE_LOCAL",
Packit 577717
	  .ucode = 0x1000,
Packit 577717
	  .udesc = "Read and Write Requests -- Local InvItoEs",
Packit 577717
	},
Packit 577717
	{ .uname = "INVITOE_REMOTE",
Packit 577717
	  .ucode = 0x2000,
Packit 577717
	  .udesc = "Read and Write Requests -- Remote InvItoEs",
Packit 577717
	},
Packit 577717
	{ .uname  = "READS",
Packit 577717
	  .ucode  = 0x300,
Packit 577717
	  .udesc  = "Read and Write Requests -- Reads",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO,
Packit 577717
	},
Packit 577717
	{ .uname = "READS_LOCAL",
Packit 577717
	  .ucode = 0x100,
Packit 577717
	  .udesc = "Read and Write Requests -- Local Reads",
Packit 577717
	},
Packit 577717
	{ .uname = "READS_REMOTE",
Packit 577717
	  .ucode = 0x200,
Packit 577717
	  .udesc = "Read and Write Requests -- Remote Reads",
Packit 577717
	},
Packit 577717
	{ .uname  = "WRITES",
Packit 577717
	  .ucode  = 0xc00,
Packit 577717
	  .udesc  = "Read and Write Requests -- Writes",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO,
Packit 577717
	},
Packit 577717
	{ .uname = "WRITES_LOCAL",
Packit 577717
	  .ucode = 0x400,
Packit 577717
	  .udesc = "Read and Write Requests -- Local Writes",
Packit 577717
	},
Packit 577717
	{ .uname = "WRITES_REMOTE",
Packit 577717
	  .ucode = 0x800,
Packit 577717
	  .udesc = "Read and Write Requests -- Remote Writes",
Packit 577717
	},
Packit 577717
};
Packit 577717
Packit 577717
static intel_x86_umask_t bdx_unc_h_ring_ad_used[]={
Packit 577717
	{ .uname = "CCW",
Packit 577717
	  .ucode = 0xc00,
Packit 577717
	  .udesc = "Counterclockwise",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO,
Packit 577717
	},
Packit 577717
	{ .uname = "CCW_EVEN",
Packit 577717
	  .ucode = 0x400,
Packit 577717
	  .udesc = "Counterclockwise and Even",
Packit 577717
	},
Packit 577717
	{ .uname = "CCW_ODD",
Packit 577717
	  .ucode = 0x800,
Packit 577717
	  .udesc = "Counterclockwise and Odd",
Packit 577717
	},
Packit 577717
	{ .uname  = "CW",
Packit 577717
	  .ucode  = 0x300,
Packit 577717
	  .udesc  = "Clockwise",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO,
Packit 577717
	},
Packit 577717
	{ .uname = "CW_EVEN",
Packit 577717
	  .ucode = 0x100,
Packit 577717
	  .udesc = "Clockwise and Even",
Packit 577717
	},
Packit 577717
	{ .uname = "CW_ODD",
Packit 577717
	  .ucode = 0x200,
Packit 577717
	  .udesc = "Clockwise and Odd",
Packit 577717
	},
Packit 577717
};
Packit 577717
Packit 577717
static intel_x86_umask_t bdx_unc_h_rpq_cycles_no_reg_credits[]={
Packit 577717
	{ .uname  = "CHN0",
Packit 577717
	  .ucode  = 0x100,
Packit 577717
	  .udesc  = "iMC RPQ Credits Empty - Regular -- Channel 0",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO,
Packit 577717
	},
Packit 577717
	{ .uname  = "CHN1",
Packit 577717
	  .ucode  = 0x200,
Packit 577717
	  .udesc  = "iMC RPQ Credits Empty - Regular -- Channel 1",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO,
Packit 577717
	},
Packit 577717
	{ .uname  = "CHN2",
Packit 577717
	  .ucode  = 0x400,
Packit 577717
	  .udesc  = "iMC RPQ Credits Empty - Regular -- Channel 2",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO,
Packit 577717
	},
Packit 577717
	{ .uname  = "CHN3",
Packit 577717
	  .ucode  = 0x800,
Packit 577717
	  .udesc  = "iMC RPQ Credits Empty - Regular -- Channel 3",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO,
Packit 577717
	},
Packit 577717
};
Packit 577717
Packit 577717
static intel_x86_umask_t bdx_unc_h_sbo0_credits_acquired[]={
Packit 577717
	{ .uname = "AD",
Packit 577717
	  .ucode = 0x100,
Packit 577717
	  .udesc = "For AD Ring",
Packit 577717
	},
Packit 577717
	{ .uname = "BL",
Packit 577717
	  .ucode = 0x200,
Packit 577717
	  .udesc = "For BL Ring",
Packit 577717
	},
Packit 577717
};
Packit 577717
Packit 577717
static intel_x86_umask_t bdx_unc_h_snoops_rsp_after_data[]={
Packit 577717
	{ .uname  = "LOCAL",
Packit 577717
	  .ucode  = 0x100,
Packit 577717
	  .udesc  = "Data beat the Snoop Responses -- Local Requests",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO,
Packit 577717
	},
Packit 577717
	{ .uname  = "REMOTE",
Packit 577717
	  .ucode  = 0x200,
Packit 577717
	  .udesc  = "Data beat the Snoop Responses -- Remote Requests",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO,
Packit 577717
	},
Packit 577717
};
Packit 577717
Packit 577717
static intel_x86_umask_t bdx_unc_h_snoop_cycles_ne[]={
Packit 577717
	{ .uname  = "ALL",
Packit 577717
	  .ucode  = 0x300,
Packit 577717
	  .udesc  = "Cycles with Snoops Outstanding -- All Requests",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO | INTEL_X86_DFL,
Packit 577717
	},
Packit 577717
	{ .uname = "LOCAL",
Packit 577717
	  .ucode = 0x100,
Packit 577717
	  .udesc = "Cycles with Snoops Outstanding -- Local Requests",
Packit 577717
	},
Packit 577717
	{ .uname = "REMOTE",
Packit 577717
	  .ucode = 0x200,
Packit 577717
	  .udesc = "Cycles with Snoops Outstanding -- Remote Requests",
Packit 577717
	},
Packit 577717
};
Packit 577717
Packit 577717
static intel_x86_umask_t bdx_unc_h_snoop_occupancy[]={
Packit 577717
	{ .uname  = "LOCAL",
Packit 577717
	  .ucode  = 0x100,
Packit 577717
	  .udesc  = "Tracker Snoops Outstanding Accumulator -- Local Requests",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO,
Packit 577717
	},
Packit 577717
	{ .uname  = "REMOTE",
Packit 577717
	  .ucode  = 0x200,
Packit 577717
	  .udesc  = "Tracker Snoops Outstanding Accumulator -- Remote Requests",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO,
Packit 577717
	},
Packit 577717
};
Packit 577717
Packit 577717
static intel_x86_umask_t bdx_unc_h_snoop_resp[]={
Packit 577717
	{ .uname = "RSPCNFLCT",
Packit 577717
	  .ucode = 0x4000,
Packit 577717
	  .udesc = "Snoop Responses Received -- RSPCNFLCT*",
Packit 577717
	},
Packit 577717
	{ .uname = "RSPI",
Packit 577717
	  .ucode = 0x100,
Packit 577717
	  .udesc = "Snoop Responses Received -- RspI",
Packit 577717
	},
Packit 577717
	{ .uname = "RSPIFWD",
Packit 577717
	  .ucode = 0x400,
Packit 577717
	  .udesc = "Snoop Responses Received -- RspIFwd",
Packit 577717
	},
Packit 577717
	{ .uname = "RSPS",
Packit 577717
	  .ucode = 0x200,
Packit 577717
	  .udesc = "Snoop Responses Received -- RspS",
Packit 577717
	},
Packit 577717
	{ .uname = "RSPSFWD",
Packit 577717
	  .ucode = 0x800,
Packit 577717
	  .udesc = "Snoop Responses Received -- RspSFwd",
Packit 577717
	},
Packit 577717
	{ .uname = "RSP_FWD_WB",
Packit 577717
	  .ucode = 0x2000,
Packit 577717
	  .udesc = "Snoop Responses Received -- Rsp*Fwd*WB",
Packit 577717
	},
Packit 577717
	{ .uname = "RSP_WB",
Packit 577717
	  .ucode = 0x1000,
Packit 577717
	  .udesc = "Snoop Responses Received -- Rsp*WB",
Packit 577717
	},
Packit 577717
};
Packit 577717
Packit 577717
static intel_x86_umask_t bdx_unc_h_snp_resp_recv_local[]={
Packit 577717
	{ .uname = "OTHER",
Packit 577717
	  .ucode = 0x8000,
Packit 577717
	  .udesc = "Snoop Responses Received Local -- Other",
Packit 577717
	},
Packit 577717
	{ .uname = "RSPCNFLCT",
Packit 577717
	  .ucode = 0x4000,
Packit 577717
	  .udesc = "Snoop Responses Received Local -- RspCnflct",
Packit 577717
	},
Packit 577717
	{ .uname = "RSPI",
Packit 577717
	  .ucode = 0x100,
Packit 577717
	  .udesc = "Snoop Responses Received Local -- RspI",
Packit 577717
	},
Packit 577717
	{ .uname = "RSPIFWD",
Packit 577717
	  .ucode = 0x400,
Packit 577717
	  .udesc = "Snoop Responses Received Local -- RspIFwd",
Packit 577717
	},
Packit 577717
	{ .uname = "RSPS",
Packit 577717
	  .ucode = 0x200,
Packit 577717
	  .udesc = "Snoop Responses Received Local -- RspS",
Packit 577717
	},
Packit 577717
	{ .uname = "RSPSFWD",
Packit 577717
	  .ucode = 0x800,
Packit 577717
	  .udesc = "Snoop Responses Received Local -- RspSFwd",
Packit 577717
	},
Packit 577717
	{ .uname = "RSPxFWDxWB",
Packit 577717
	  .ucode = 0x2000,
Packit 577717
	  .udesc = "Snoop Responses Received Local -- Rsp*FWD*WB",
Packit 577717
	},
Packit 577717
	{ .uname = "RSPxWB",
Packit 577717
	  .ucode = 0x1000,
Packit 577717
	  .udesc = "Snoop Responses Received Local -- Rsp*WB",
Packit 577717
	},
Packit 577717
};
Packit 577717
Packit 577717
static intel_x86_umask_t bdx_unc_h_stall_no_sbo_credit[]={
Packit 577717
	{ .uname = "SBO0_AD",
Packit 577717
	  .ucode = 0x100,
Packit 577717
	  .udesc = "Stall on No Sbo Credits -- For SBo0, AD Ring",
Packit 577717
	},
Packit 577717
	{ .uname = "SBO0_BL",
Packit 577717
	  .ucode = 0x400,
Packit 577717
	  .udesc = "Stall on No Sbo Credits -- For SBo0, BL Ring",
Packit 577717
	},
Packit 577717
	{ .uname = "SBO1_AD",
Packit 577717
	  .ucode = 0x200,
Packit 577717
	  .udesc = "Stall on No Sbo Credits -- For SBo1, AD Ring",
Packit 577717
	},
Packit 577717
	{ .uname = "SBO1_BL",
Packit 577717
	  .ucode = 0x800,
Packit 577717
	  .udesc = "Stall on No Sbo Credits -- For SBo1, BL Ring",
Packit 577717
	},
Packit 577717
};
Packit 577717
Packit 577717
static intel_x86_umask_t bdx_unc_h_tad_requests_g0[]={
Packit 577717
	{ .uname  = "REGION0",
Packit 577717
	  .ucode  = 0x100,
Packit 577717
	  .udesc  = "HA Requests to a TAD Region - Group 0 -- TAD Region 0",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO,
Packit 577717
	},
Packit 577717
	{ .uname  = "REGION1",
Packit 577717
	  .ucode  = 0x200,
Packit 577717
	  .udesc  = "HA Requests to a TAD Region - Group 0 -- TAD Region 1",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO,
Packit 577717
	},
Packit 577717
	{ .uname  = "REGION2",
Packit 577717
	  .ucode  = 0x400,
Packit 577717
	  .udesc  = "HA Requests to a TAD Region - Group 0 -- TAD Region 2",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO,
Packit 577717
	},
Packit 577717
	{ .uname  = "REGION3",
Packit 577717
	  .ucode  = 0x800,
Packit 577717
	  .udesc  = "HA Requests to a TAD Region - Group 0 -- TAD Region 3",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO,
Packit 577717
	},
Packit 577717
	{ .uname  = "REGION4",
Packit 577717
	  .ucode  = 0x1000,
Packit 577717
	  .udesc  = "HA Requests to a TAD Region - Group 0 -- TAD Region 4",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO,
Packit 577717
	},
Packit 577717
	{ .uname  = "REGION5",
Packit 577717
	  .ucode  = 0x2000,
Packit 577717
	  .udesc  = "HA Requests to a TAD Region - Group 0 -- TAD Region 5",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO,
Packit 577717
	},
Packit 577717
	{ .uname  = "REGION6",
Packit 577717
	  .ucode  = 0x4000,
Packit 577717
	  .udesc  = "HA Requests to a TAD Region - Group 0 -- TAD Region 6",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO,
Packit 577717
	},
Packit 577717
	{ .uname  = "REGION7",
Packit 577717
	  .ucode  = 0x8000,
Packit 577717
	  .udesc  = "HA Requests to a TAD Region - Group 0 -- TAD Region 7",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO,
Packit 577717
	},
Packit 577717
};
Packit 577717
Packit 577717
static intel_x86_umask_t bdx_unc_h_tad_requests_g1[]={
Packit 577717
	{ .uname  = "REGION10",
Packit 577717
	  .ucode  = 0x400,
Packit 577717
	  .udesc  = "HA Requests to a TAD Region - Group 1 -- TAD Region 10",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO,
Packit 577717
	},
Packit 577717
	{ .uname  = "REGION11",
Packit 577717
	  .ucode  = 0x800,
Packit 577717
	  .udesc  = "HA Requests to a TAD Region - Group 1 -- TAD Region 11",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO,
Packit 577717
	},
Packit 577717
	{ .uname  = "REGION8",
Packit 577717
	  .ucode  = 0x100,
Packit 577717
	  .udesc  = "HA Requests to a TAD Region - Group 1 -- TAD Region 8",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO,
Packit 577717
	},
Packit 577717
	{ .uname  = "REGION9",
Packit 577717
	  .ucode  = 0x200,
Packit 577717
	  .udesc  = "HA Requests to a TAD Region - Group 1 -- TAD Region 9",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO,
Packit 577717
	},
Packit 577717
};
Packit 577717
Packit 577717
static intel_x86_umask_t bdx_unc_h_tracker_cycles_full[]={
Packit 577717
	{ .uname  = "ALL",
Packit 577717
	  .ucode  = 0x200,
Packit 577717
	  .udesc  = "Tracker Cycles Full -- Cycles Completely Used",
Packit 577717
	  .uflags = INTEL_X86_DFL,
Packit 577717
	},
Packit 577717
	{ .uname = "GP",
Packit 577717
	  .ucode = 0x100,
Packit 577717
	  .udesc = "Tracker Cycles Full -- Cycles GP Completely Used",
Packit 577717
	},
Packit 577717
};
Packit 577717
Packit 577717
static intel_x86_umask_t bdx_unc_h_tracker_cycles_ne[]={
Packit 577717
	{ .uname  = "ALL",
Packit 577717
	  .ucode  = 0x300,
Packit 577717
	  .udesc  = "Tracker Cycles Not Empty -- All Requests",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO | INTEL_X86_DFL,
Packit 577717
	},
Packit 577717
	{ .uname = "LOCAL",
Packit 577717
	  .ucode = 0x100,
Packit 577717
	  .udesc = "Tracker Cycles Not Empty -- Local Requests",
Packit 577717
	},
Packit 577717
	{ .uname = "REMOTE",
Packit 577717
	  .ucode = 0x200,
Packit 577717
	  .udesc = "Tracker Cycles Not Empty -- Remote Requests",
Packit 577717
	},
Packit 577717
};
Packit 577717
Packit 577717
static intel_x86_umask_t bdx_unc_h_tracker_occupancy[]={
Packit 577717
	{ .uname = "INVITOE_LOCAL",
Packit 577717
	  .ucode = 0x4000,
Packit 577717
	  .udesc = "Tracker Occupancy Accumultor -- Local InvItoE Requests",
Packit 577717
	},
Packit 577717
	{ .uname = "INVITOE_REMOTE",
Packit 577717
	  .ucode = 0x8000,
Packit 577717
	  .udesc = "Tracker Occupancy Accumultor -- Remote InvItoE Requests",
Packit 577717
	},
Packit 577717
	{ .uname = "READS_LOCAL",
Packit 577717
	  .ucode = 0x400,
Packit 577717
	  .udesc = "Tracker Occupancy Accumultor -- Local Read Requests",
Packit 577717
	},
Packit 577717
	{ .uname = "READS_REMOTE",
Packit 577717
	  .ucode = 0x800,
Packit 577717
	  .udesc = "Tracker Occupancy Accumultor -- Remote Read Requests",
Packit 577717
	},
Packit 577717
	{ .uname = "WRITES_LOCAL",
Packit 577717
	  .ucode = 0x1000,
Packit 577717
	  .udesc = "Tracker Occupancy Accumultor -- Local Write Requests",
Packit 577717
	},
Packit 577717
	{ .uname = "WRITES_REMOTE",
Packit 577717
	  .ucode = 0x2000,
Packit 577717
	  .udesc = "Tracker Occupancy Accumultor -- Remote Write Requests",
Packit 577717
	},
Packit 577717
};
Packit 577717
Packit 577717
static intel_x86_umask_t bdx_unc_h_tracker_pending_occupancy[]={
Packit 577717
	{ .uname  = "LOCAL",
Packit 577717
	  .ucode  = 0x100,
Packit 577717
	  .udesc  = "Data Pending Occupancy Accumultor -- Local Requests",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO,
Packit 577717
	},
Packit 577717
	{ .uname  = "REMOTE",
Packit 577717
	  .ucode  = 0x200,
Packit 577717
	  .udesc  = "Data Pending Occupancy Accumultor -- Remote Requests",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO,
Packit 577717
	},
Packit 577717
};
Packit 577717
Packit 577717
static intel_x86_umask_t bdx_unc_h_txr_ad_cycles_full[]={
Packit 577717
	{ .uname = "ALL",
Packit 577717
	  .ucode = 0x300,
Packit 577717
	  .udesc = "All",
Packit 577717
	  .uflags = INTEL_X86_DFL,
Packit 577717
	},
Packit 577717
	{ .uname = "SCHED0",
Packit 577717
	  .ucode = 0x100,
Packit 577717
	  .udesc = "Scheduler 0",
Packit 577717
	},
Packit 577717
	{ .uname = "SCHED1",
Packit 577717
	  .ucode = 0x200,
Packit 577717
	  .udesc = "Scheduler 1",
Packit 577717
	},
Packit 577717
};
Packit 577717
Packit 577717
static intel_x86_umask_t bdx_unc_h_txr_bl[]={
Packit 577717
	{ .uname = "DRS_CACHE",
Packit 577717
	  .ucode = 0x100,
Packit 577717
	  .udesc = "Outbound DRS Ring Transactions to Cache -- Data to Cache",
Packit 577717
	},
Packit 577717
	{ .uname = "DRS_CORE",
Packit 577717
	  .ucode = 0x200,
Packit 577717
	  .udesc = "Outbound DRS Ring Transactions to Cache -- Data to Core",
Packit 577717
	},
Packit 577717
	{ .uname = "DRS_QPI",
Packit 577717
	  .ucode = 0x400,
Packit 577717
	  .udesc = "Outbound DRS Ring Transactions to Cache -- Data to QPI",
Packit 577717
	},
Packit 577717
};
Packit 577717
Packit 577717
static intel_x86_umask_t bdx_unc_h_txr_starved[]={
Packit 577717
	{ .uname = "AK",
Packit 577717
	  .ucode = 0x100,
Packit 577717
	  .udesc = "Injection Starvation -- For AK Ring",
Packit 577717
	},
Packit 577717
	{ .uname = "BL",
Packit 577717
	  .ucode = 0x200,
Packit 577717
	  .udesc = "Injection Starvation -- For BL Ring",
Packit 577717
	},
Packit 577717
};
Packit 577717
Packit 577717
static intel_x86_umask_t bdx_unc_h_wpq_cycles_no_reg_credits[]={
Packit 577717
	{ .uname  = "CHN0",
Packit 577717
	  .ucode  = 0x100,
Packit 577717
	  .udesc  = "HA iMC CHN0 WPQ Credits Empty - Regular -- Channel 0",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO,
Packit 577717
	},
Packit 577717
	{ .uname  = "CHN1",
Packit 577717
	  .ucode  = 0x200,
Packit 577717
	  .udesc  = "HA iMC CHN0 WPQ Credits Empty - Regular -- Channel 1",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO,
Packit 577717
	},
Packit 577717
	{ .uname  = "CHN2",
Packit 577717
	  .ucode  = 0x400,
Packit 577717
	  .udesc  = "HA iMC CHN0 WPQ Credits Empty - Regular -- Channel 2",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO,
Packit 577717
	},
Packit 577717
	{ .uname  = "CHN3",
Packit 577717
	  .ucode  = 0x800,
Packit 577717
	  .udesc  = "HA iMC CHN0 WPQ Credits Empty - Regular -- Channel 3",
Packit 577717
	  .uflags = INTEL_X86_NCOMBO,
Packit 577717
	},
Packit 577717
};
Packit 577717
Packit 577717
static intel_x86_entry_t intel_bdx_unc_h_pe[]={
Packit 577717
  /* ADDR_OPC_MATCH not supported (linux kernel has no support for HA OPC yet*/
Packit 577717
  { .name   = "UNC_H_BT_CYCLES_NE",
Packit 577717
    .code   = 0x42,
Packit 577717
    .desc   = "Cycles the Backup Tracker (BT) is not empty. The BT is the actual HOM tracker in IVT.",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_BT_OCCUPANCY",
Packit 577717
    .code   = 0x43,
Packit 577717
    .desc   = "Accumulates the occupancy of te HA BT pool in every cycle. This can be used with the 'not empty' stat to calculate the average queue occupancy or the 'allocations' stat to calculate average queue latency. HA BTs are allocated as son as a request enters the HA and are released after the snoop response and data return and the response is returned to the ring",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_BYPASS_IMC",
Packit 577717
    .code   = 0x14,
Packit 577717
    .desc   = "Counts the number of times when the HA was able to bypass was attempted.  This is a latency optimization for situations when there is light loadings on the memory subsystem.  This can be filted by when the bypass was taken and when it was not.",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
    .ngrp   = 1,
Packit 577717
    .umasks = bdx_unc_h_bypass_imc,
Packit 577717
    .numasks= LIBPFM_ARRAY_SIZE(bdx_unc_h_bypass_imc),
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_CONFLICT_CYCLES",
Packit 577717
    .code   = 0xb,
Packit 577717
    .desc   = "TBD",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
  },
Packit 577717
Packit 577717
  { .name   = "UNC_H_CLOCKTICKS",
Packit 577717
    .code   = 0x0,
Packit 577717
    .desc   = "Counts the number of uclks in the HA.  This will be slightly different than the count in the Ubox because of enable/freeze delays.  The HA is on the other side of the die from the fixed Ubox uclk counter, so the drift could be somewhat larger than in units that are closer like the QPI Agent.",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_DIRECT2CORE_COUNT",
Packit 577717
    .code   = 0x11,
Packit 577717
    .desc   = "Number of Direct2Core messages sent",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_DIRECT2CORE_CYCLES_DISABLED",
Packit 577717
    .code   = 0x12,
Packit 577717
    .desc   = "Number of cycles in which Direct2Core was disabled",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_DIRECT2CORE_TXN_OVERRIDE",
Packit 577717
    .code   = 0x13,
Packit 577717
    .desc   = "Number of Reads where Direct2Core overridden",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_DIRECTORY_LAT_OPT",
Packit 577717
    .code   = 0x41,
Packit 577717
    .desc   = "Directory Latency Optimization Data Return Path Taken. When directory mode is enabled and the directory retuned for a read is Dir=I, then data can be returned using a faster path if certain conditions are met (credits, free pipeline, etc).",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_DIRECTORY_LOOKUP",
Packit 577717
    .code   = 0xc,
Packit 577717
    .desc   = "Counts the number of transactions that looked up the directory.  Can be filtered by requests that had to snoop and those that did not have to.",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
    .ngrp   = 1,
Packit 577717
    .umasks = bdx_unc_h_directory_lookup,
Packit 577717
    .numasks= LIBPFM_ARRAY_SIZE(bdx_unc_h_directory_lookup),
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_DIRECTORY_UPDATE",
Packit 577717
    .code   = 0xd,
Packit 577717
    .desc   = "Counts the number of directory updates that were required.  These result in writes to the memory controller.  This can be filtered by directory sets and directory clears.",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
    .ngrp   = 1,
Packit 577717
    .umasks = bdx_unc_h_directory_update,
Packit 577717
    .numasks= LIBPFM_ARRAY_SIZE(bdx_unc_h_directory_update),
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_HITME_HIT",
Packit 577717
    .code   = 0x71,
Packit 577717
    .desc   = "",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
    .ngrp   = 1,
Packit 577717
    .umasks = bdx_unc_h_hitme_hit,
Packit 577717
    .numasks= LIBPFM_ARRAY_SIZE(bdx_unc_h_hitme_hit),
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_HITME_HIT_PV_BITS_SET",
Packit 577717
    .code   = 0x72,
Packit 577717
    .desc   = "",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
    .ngrp   = 1,
Packit 577717
    .umasks = bdx_unc_h_hitme_hit_pv_bits_set,
Packit 577717
    .numasks= LIBPFM_ARRAY_SIZE(bdx_unc_h_hitme_hit_pv_bits_set),
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_HITME_LOOKUP",
Packit 577717
    .code   = 0x70,
Packit 577717
    .desc   = "",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
    .ngrp   = 1,
Packit 577717
    .umasks = bdx_unc_h_hitme_lookup,
Packit 577717
    .numasks= LIBPFM_ARRAY_SIZE(bdx_unc_h_hitme_lookup),
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_IGR_NO_CREDIT_CYCLES",
Packit 577717
    .code   = 0x22,
Packit 577717
    .desc   = "Counts the number of cycles when the HA does not have credits to send messages to the QPI Agent.  This can be filtered by the different credit pools and the different links.",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
    .ngrp   = 1,
Packit 577717
    .umasks = bdx_unc_h_igr_no_credit_cycles,
Packit 577717
    .numasks= LIBPFM_ARRAY_SIZE(bdx_unc_h_igr_no_credit_cycles),
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_IMC_READS",
Packit 577717
    .code   = 0x17,
Packit 577717
    .desc   = "Count of the number of reads issued to any of the memory controller channels.  This can be filtered by the priority of the reads.",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
    .ngrp   = 1,
Packit 577717
    .umasks = bdx_unc_h_imc_reads,
Packit 577717
    .numasks= LIBPFM_ARRAY_SIZE(bdx_unc_h_imc_reads),
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_IMC_RETRY",
Packit 577717
    .code   = 0x1e,
Packit 577717
    .desc   = "",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_IMC_WRITES",
Packit 577717
    .code   = 0x1a,
Packit 577717
    .desc   = "Counts the total number of full line writes issued from the HA into the memory controller.  This counts for all four channels.  It can be filtered by full/partial and ISOCH/non-ISOCH.",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
    .ngrp   = 1,
Packit 577717
    .umasks = bdx_unc_h_imc_writes,
Packit 577717
    .numasks= LIBPFM_ARRAY_SIZE(bdx_unc_h_imc_writes),
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_OSB",
Packit 577717
    .code   = 0x53,
Packit 577717
    .desc   = "Count of OSB snoop broadcasts. Counts by 1 per request causing OSB snoops to be broadcast. Does not count all the snoops generated by OSB.",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
    .ngrp   = 1,
Packit 577717
    .umasks = bdx_unc_h_osb,
Packit 577717
    .numasks= LIBPFM_ARRAY_SIZE(bdx_unc_h_osb),
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_OSB_EDR",
Packit 577717
    .code   = 0x54,
Packit 577717
    .desc   = "Counts the number of transactions that broadcast snoop due to OSB, but found clean data in memory and was able to do early data return",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
    .ngrp   = 1,
Packit 577717
    .umasks = bdx_unc_h_osb_edr,
Packit 577717
    .numasks= LIBPFM_ARRAY_SIZE(bdx_unc_h_osb_edr),
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_REQUESTS",
Packit 577717
    .code   = 0x1,
Packit 577717
    .desc   = "Counts the total number of read requests made into the Home Agent. Reads include all read opcodes (including RFO).  Writes include all writes (streaming, evictions, HitM, etc).",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
    .ngrp   = 1,
Packit 577717
    .umasks = bdx_unc_h_requests,
Packit 577717
    .numasks= LIBPFM_ARRAY_SIZE(bdx_unc_h_requests),
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_RING_AD_USED",
Packit 577717
    .code   = 0x3e,
Packit 577717
    .desc   = "Counts the number of cycles that the AD ring is being used at this ring stop.  This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
    .ngrp   = 1,
Packit 577717
    .umasks = bdx_unc_h_ring_ad_used,
Packit 577717
    .numasks= LIBPFM_ARRAY_SIZE(bdx_unc_h_ring_ad_used),
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_RING_AK_USED",
Packit 577717
    .code   = 0x3f,
Packit 577717
    .desc   = "Counts the number of cycles that the AK ring is being used at this ring stop.  This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
    .ngrp   = 1,
Packit 577717
    .umasks = bdx_unc_h_ring_ad_used,
Packit 577717
    .numasks= LIBPFM_ARRAY_SIZE(bdx_unc_h_ring_ad_used),
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_RING_BL_USED",
Packit 577717
    .code   = 0x40,
Packit 577717
    .desc   = "Counts the number of cycles that the BL ring is being used at this ring stop.  This includes when packets are passing by and when packets are being sunk, but does not include when packets are being sent from the ring stop.",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
    .ngrp   = 1,
Packit 577717
    .umasks = bdx_unc_h_ring_ad_used,
Packit 577717
    .numasks= LIBPFM_ARRAY_SIZE(bdx_unc_h_ring_ad_used),
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_RPQ_CYCLES_NO_REG_CREDITS",
Packit 577717
    .code   = 0x15,
Packit 577717
    .desc   = "Counts the number of cycles when there are no regular credits available for posting reads from the HA into the iMC.  In order to send reads into the memory controller, the HA must first acquire a credit for the iMCs RPQ (read pending queue).  This queue is broken into regular credits/buffers that are used by general reads, and special requests such as ISOCH reads.  This count only tracks the regular credits  Common high banwidth workloads should be able to make use of all of the regular buffers, but it will be difficult (and uncommon) to make use of both the regular and special buffers at the same time.  One can filter based on the memory controller channel.  One or more channels can be tracked at a given iven time.",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
    .ngrp   = 1,
Packit 577717
    .umasks = bdx_unc_h_rpq_cycles_no_reg_credits,
Packit 577717
    .numasks= LIBPFM_ARRAY_SIZE(bdx_unc_h_rpq_cycles_no_reg_credits),
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_SBO0_CREDITS_ACQUIRED",
Packit 577717
    .code   = 0x68,
Packit 577717
    .desc   = "Number of Sbo 0 credits acquired in a given cycle, per ring.",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
    .ngrp   = 1,
Packit 577717
    .umasks = bdx_unc_h_sbo0_credits_acquired,
Packit 577717
    .numasks= LIBPFM_ARRAY_SIZE(bdx_unc_h_sbo0_credits_acquired),
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_SBO0_CREDIT_OCCUPANCY",
Packit 577717
    .code   = 0x6a,
Packit 577717
    .desc   = "Number of Sbo 0 credits in use in a given cycle, per ring.",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
    .ngrp   = 1,
Packit 577717
    .umasks = bdx_unc_h_sbo0_credits_acquired,
Packit 577717
    .numasks= LIBPFM_ARRAY_SIZE(bdx_unc_h_sbo0_credits_acquired),
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_SBO1_CREDITS_ACQUIRED",
Packit 577717
    .code   = 0x69,
Packit 577717
    .desc   = "Number of Sbo 1 credits acquired in a given cycle, per ring.",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
    .ngrp   = 1,
Packit 577717
    .umasks = bdx_unc_h_sbo0_credits_acquired,
Packit 577717
    .numasks= LIBPFM_ARRAY_SIZE(bdx_unc_h_sbo0_credits_acquired),
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_SBO1_CREDIT_OCCUPANCY",
Packit 577717
    .code   = 0x6b,
Packit 577717
    .desc   = "Number of Sbo 1 credits in use in a given cycle, per ring.",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
    .ngrp   = 1,
Packit 577717
    .umasks = bdx_unc_h_sbo0_credits_acquired,
Packit 577717
    .numasks= LIBPFM_ARRAY_SIZE(bdx_unc_h_sbo0_credits_acquired),
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_SNOOPS_RSP_AFTER_DATA",
Packit 577717
    .code   = 0xa,
Packit 577717
    .desc   = "Counts the number of reads when the snoop was on the critical path to the data return.",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
    .ngrp   = 1,
Packit 577717
    .umasks = bdx_unc_h_snoops_rsp_after_data,
Packit 577717
    .numasks= LIBPFM_ARRAY_SIZE(bdx_unc_h_snoops_rsp_after_data),
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_SNOOP_CYCLES_NE",
Packit 577717
    .code   = 0x8,
Packit 577717
    .desc   = "Counts cycles when one or more snoops are outstanding.",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
    .ngrp   = 1,
Packit 577717
    .umasks = bdx_unc_h_snoop_cycles_ne,
Packit 577717
    .numasks= LIBPFM_ARRAY_SIZE(bdx_unc_h_snoop_cycles_ne),
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_SNOOP_OCCUPANCY",
Packit 577717
    .code   = 0x9,
Packit 577717
    .desc   = "Accumulates the occupancy of either the local HA tracker pool that have snoops pending in every cycle.    This can be used in conjection with the not empty stat to calculate average queue occupancy or the allocations stat in order to calculate average queue latency.  HA trackers are allocated as soon as a request enters the HA if an HT (HomeTracker) entry is available and this occupancy is decremented when all the snoop responses have retureturned.",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
    .ngrp   = 1,
Packit 577717
    .umasks = bdx_unc_h_snoop_occupancy,
Packit 577717
    .numasks= LIBPFM_ARRAY_SIZE(bdx_unc_h_snoop_occupancy),
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_SNOOP_RESP",
Packit 577717
    .code   = 0x21,
Packit 577717
    .desc   = "Counts the total number of RspI snoop responses received.  Whenever a snoops are issued, one or more snoop responses will be returned depending on the topology of the system.   In systems larger than 2s, when multiple snoops are returned this will count all the snoops that are received.  For example, if 3 snoops were issued and returned RspI, RspS, and RspSFwd; then each of these sub-events would increment by 1.",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
    .ngrp   = 1,
Packit 577717
    .umasks = bdx_unc_h_snoop_resp,
Packit 577717
    .numasks= LIBPFM_ARRAY_SIZE(bdx_unc_h_snoop_resp),
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_SNP_RESP_RECV_LOCAL",
Packit 577717
    .code   = 0x60,
Packit 577717
    .desc   = "Number of snoop responses received for a Local  request",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
    .ngrp   = 1,
Packit 577717
    .umasks = bdx_unc_h_snp_resp_recv_local,
Packit 577717
    .numasks= LIBPFM_ARRAY_SIZE(bdx_unc_h_snp_resp_recv_local),
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_STALL_NO_SBO_CREDIT",
Packit 577717
    .code   = 0x6c,
Packit 577717
    .desc   = "Number of cycles Egress is stalled waiting for an Sbo credit to become available.  Per Sbo, per Ring.",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
    .ngrp   = 1,
Packit 577717
    .umasks = bdx_unc_h_stall_no_sbo_credit,
Packit 577717
    .numasks= LIBPFM_ARRAY_SIZE(bdx_unc_h_stall_no_sbo_credit),
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_TAD_REQUESTS_G0",
Packit 577717
    .code   = 0x1b,
Packit 577717
    .desc   = "Counts the number of HA requests to a given TAD region.  There are up to 11 TAD (target address decode) regions in each home agent.  All requests destined for the memory controller must first be decoded to determine which TAD region they are in.  This event is filtered based on the TAD region ID, and covers regions 0 to 7.  This event is useful for understanding how applications are using the memory that is spread across the different memory regions.  It is particularly useful for Monroe systems that use the TAD to enable individual channels to enter self-refresh to save powewer.",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
    .ngrp   = 1,
Packit 577717
    .umasks = bdx_unc_h_tad_requests_g0,
Packit 577717
    .numasks= LIBPFM_ARRAY_SIZE(bdx_unc_h_tad_requests_g0),
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_TAD_REQUESTS_G1",
Packit 577717
    .code   = 0x1c,
Packit 577717
    .desc   = "Counts the number of HA requests to a given TAD region.  There are up to 11 TAD (target address decode) regions in each home agent.  All requests destined for the memory controller must first be decoded to determine which TAD region they are in.  This event is filtered based on the TAD region ID, and covers regions 8 to 10.  This event is useful for understanding how applications are using the memory that is spread across the different memory regions.  It is particularly useful for Monroe systems that use the TAD to enable individual channels to enter self-refresh to save powewer.",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
    .ngrp   = 1,
Packit 577717
    .umasks = bdx_unc_h_tad_requests_g1,
Packit 577717
    .numasks= LIBPFM_ARRAY_SIZE(bdx_unc_h_tad_requests_g1),
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_TRACKER_CYCLES_FULL",
Packit 577717
    .code   = 0x2,
Packit 577717
    .desc   = "Counts the number of cycles when the local HA tracker pool is completely used.  This can be used with edge detect to identify the number of situations when the pool became fully utilized.  This should not be confused with RTID credit usage -- which must be tracked inside each cbo individually -- but represents the actual tracker buffer structure.  In other words, the system could be starved for RTIDs but not fill up the HA trackers.  HA trackers are allocated as soon as a request enters the HA and is released after the snoop response and data return (or post in the case of a write) and the response is returned on the ring.",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
    .ngrp   = 1,
Packit 577717
    .umasks = bdx_unc_h_tracker_cycles_full,
Packit 577717
    .numasks= LIBPFM_ARRAY_SIZE(bdx_unc_h_tracker_cycles_full),
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_TRACKER_CYCLES_NE",
Packit 577717
    .code   = 0x3,
Packit 577717
    .desc   = "Counts the number of cycles when the local HA tracker pool is not empty.  This can be used with edge detect to identify the number of situations when the pool became empty.  This should not be confused with RTID credit usage -- which must be tracked inside each cbo individually -- but represents the actual tracker buffer structure.  In other words, this buffer could be completely empty, but there may still be credits in use by the CBos.  This stat can be used in conjunction with the occupancy accumulation stat in order to calculate average queue occpancy.  HA trackers are allocated as soon as a request enters the HA if an HT (Home Tracker) entry is available and is released after the snoop response and data return (or post in the case of a write) and the response is returned on the ring.",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
    .ngrp   = 1,
Packit 577717
    .umasks = bdx_unc_h_tracker_cycles_ne,
Packit 577717
    .numasks= LIBPFM_ARRAY_SIZE(bdx_unc_h_tracker_cycles_ne),
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_TRACKER_OCCUPANCY",
Packit 577717
    .code   = 0x4,
Packit 577717
    .desc   = "Accumulates the occupancy of the local HA tracker pool in every cycle.  This can be used in conjection with the not empty stat to calculate average queue occupancy or the allocations stat in order to calculate average queue latency.  HA trackers are allocated as soon as a request enters the HA if a HT (Home Tracker) entry is available and is released after the snoop response and data return (or post in the case of a write) and the response is returned on the rhe ring.",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
    .ngrp   = 1,
Packit 577717
    .umasks = bdx_unc_h_tracker_occupancy,
Packit 577717
    .numasks= LIBPFM_ARRAY_SIZE(bdx_unc_h_tracker_occupancy),
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_TRACKER_PENDING_OCCUPANCY",
Packit 577717
    .code   = 0x5,
Packit 577717
    .desc   = "Accumulates the number of transactions that have data from the memory controller until they get scheduled to the Egress.  This can be used to calculate the queuing latency for two things.  (1) If the system is waiting for snoops, this will increase.  (2) If the system cant schedule to the Egress because of either (a) Egress Credits or (b) QPI BL IGR credits for remote requestss.",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
    .ngrp   = 1,
Packit 577717
    .umasks = bdx_unc_h_tracker_pending_occupancy,
Packit 577717
    .numasks= LIBPFM_ARRAY_SIZE(bdx_unc_h_tracker_pending_occupancy),
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_TXR_AD_CYCLES_FULL",
Packit 577717
    .code   = 0x2a,
Packit 577717
    .desc   = "AD Egress Full",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
    .ngrp   = 1,
Packit 577717
    .umasks = bdx_unc_h_txr_ad_cycles_full,
Packit 577717
    .numasks= LIBPFM_ARRAY_SIZE(bdx_unc_h_txr_ad_cycles_full),
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_TXR_AK_CYCLES_FULL",
Packit 577717
    .code   = 0x32,
Packit 577717
    .desc   = "AK Egress Full",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
    .ngrp   = 1,
Packit 577717
    .umasks = bdx_unc_h_txr_ad_cycles_full,
Packit 577717
    .numasks= LIBPFM_ARRAY_SIZE(bdx_unc_h_txr_ad_cycles_full), /* shared */
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_TXR_BL",
Packit 577717
    .code   = 0x10,
Packit 577717
    .desc   = "Counts the number of DRS messages sent out on the BL ring.   This can be filtered by the destination.",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
    .ngrp   = 1,
Packit 577717
    .umasks = bdx_unc_h_txr_bl,
Packit 577717
    .numasks= LIBPFM_ARRAY_SIZE(bdx_unc_h_txr_bl),
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_TXR_BL_CYCLES_FULL",
Packit 577717
    .code   = 0x36,
Packit 577717
    .desc   = "BL Egress Full",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
    .ngrp   = 1,
Packit 577717
    .umasks = bdx_unc_h_txr_ad_cycles_full,
Packit 577717
    .numasks= LIBPFM_ARRAY_SIZE(bdx_unc_h_txr_ad_cycles_full), /* shared */
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_TXR_STARVED",
Packit 577717
    .code   = 0x6d,
Packit 577717
    .desc   = "Counts injection starvation.  This starvation is triggered when the Egress cannot send a transaction onto the ring for a long period of time.",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
    .ngrp   = 1,
Packit 577717
    .umasks = bdx_unc_h_txr_starved,
Packit 577717
    .numasks= LIBPFM_ARRAY_SIZE(bdx_unc_h_txr_starved),
Packit 577717
  },
Packit 577717
  { .name   = "UNC_H_WPQ_CYCLES_NO_REG_CREDITS",
Packit 577717
    .code   = 0x18,
Packit 577717
    .desc   = "Counts the number of cycles when there are no regular credits available for posting writes from the HA into the iMC.  In order to send writes into the memory controller, the HA must first acquire a credit for the iMCs WPQ (write pending queue).  This queue is broken into regular credits/buffers that are used by general writes, and special requests such as ISOCH writes.  This count only tracks the regular credits  Common high banwidth workloads should be able to make use of all of the regular buffers, but it will be difficult (and uncommon) to make use of both the regular and special buffers at the same time.  One can filter based on the memory controller channel.  One or more channels can be tracked at a given iven time.",
Packit 577717
    .modmsk = BDX_UNC_HA_ATTRS,
Packit 577717
    .cntmsk = 0xf,
Packit 577717
    .ngrp   = 1,
Packit 577717
    .umasks = bdx_unc_h_wpq_cycles_no_reg_credits,
Packit 577717
    .numasks= LIBPFM_ARRAY_SIZE(bdx_unc_h_wpq_cycles_no_reg_credits),
Packit 577717
  },
Packit 577717
};