Blob Blame History Raw
/*
 * Copyright (c) 2014 Google Inc. All rights reserved
 * Contributed by Stephane Eranian <eranian@gmail.com>
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
 * of the Software, and to permit persons to whom the Software is furnished to do so,
 * subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
 * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
 * PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
 * OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 *
 * This file is part of libpfm, a performance monitoring support library for
 * applications on Linux.
 *
 * PMU: ivbep_unc_ubo (Intel IvyBridge-EP U-Box uncore PMU)
 */

static const intel_x86_umask_t ivbep_unc_u_event_msg[]={
  { .uname = "DOORBELL_RCVD",
    .udesc  = "TBD",
    .ucode  = 0x800,
    .uflags = INTEL_X86_NCOMBO,
  },
  { .uname = "INT_PRIO",
    .udesc  = "TBD",
    .ucode  = 0x1000,
    .uflags = INTEL_X86_NCOMBO,
  },
  { .uname = "IPI_RCVD",
    .udesc  = "TBD",
    .ucode  = 0x400,
    .uflags = INTEL_X86_NCOMBO,
  },
  { .uname = "MSI_RCVD",
    .udesc  = "TBD",
    .ucode  = 0x200,
    .uflags = INTEL_X86_NCOMBO,
  },
  { .uname = "VLW_RCVD",
    .udesc  = "TBD",
    .ucode  = 0x100,
    .uflags = INTEL_X86_NCOMBO,
  },
};


static const intel_x86_umask_t ivbep_unc_u_phold_cycles[]={
  { .uname = "ASSERT_TO_ACK",
    .udesc  = "Number of cycles asserted to ACK",
    .ucode  = 0x100,
    .uflags = INTEL_X86_NCOMBO,
  },
  { .uname = "ACK_TO_DEASSERT",
    .udesc  = "Number of cycles ACK to deassert",
    .ucode  = 0x100,
    .uflags = INTEL_X86_NCOMBO,
  },
};

static const intel_x86_entry_t intel_ivbep_unc_u_pe[]={
  { .name = "UNC_U_EVENT_MSG",
    .desc = "VLW Received",
    .code = 0x42,
    .cntmsk = 0x3,
    .ngrp = 1,
    .modmsk = IVBEP_UNC_UBO_ATTRS,
    .numasks = LIBPFM_ARRAY_SIZE(ivbep_unc_u_event_msg),
    .umasks  = ivbep_unc_u_event_msg
  },
  { .name = "UNC_U_LOCK_CYCLES",
    .desc = "IDI Lock/SplitLock Cycles",
    .code = 0x44,
    .cntmsk = 0x3,
    .modmsk = IVBEP_UNC_UBO_ATTRS,
  },
  { .name = "UNC_U_PHOLD_CYCLES",
    .desc = "Cycles PHOLD asserts to Ack",
    .code = 0x45,
    .cntmsk = 0x3,
    .ngrp = 1,
    .modmsk = IVBEP_UNC_UBO_ATTRS,
    .numasks = LIBPFM_ARRAY_SIZE(ivbep_unc_u_phold_cycles),
    .umasks  = ivbep_unc_u_phold_cycles
  },
  { .name = "UNC_U_RACU_REQUESTS",
    .desc = "RACU requests",
    .code = 0x46,
    .cntmsk = 0x3,
    .modmsk = IVBEP_UNC_UBO_ATTRS,
  },
};