• Kan Liang's avatar
    perf/x86/intel/uncore: Add Skylake server uncore support · cd34cd97
    Kan Liang authored
    This patch implements the uncore monitoring driver for Skylake server.
    The uncore subsystem in Skylake server is similar to previous
    server. There are some differences in config register encoding and pci
    device IDs. Besides, Skylake introduces many new boxes to reflect the
    MESH architecture changes.
    
    The control registers for IIO and UPI have been extended to 64 bit. This
    patch also introduces event_mask_ext to handle the high 32 bit mask.
    
    The CHA box number could vary for different machines. This patch gets
    the CHA box number by counting the CHA register space during
    initialization at runtime.
    Signed-off-by: default avatarKan Liang <kan.liang@intel.com>
    Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
    Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
    Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
    Cc: Jiri Olsa <jolsa@redhat.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Stephane Eranian <eranian@google.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Vince Weaver <vincent.weaver@maine.edu>
    Link: http://lkml.kernel.org/r/1471378190-17276-3-git-send-email-kan.liang@intel.comSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
    cd34cd97
uncore.c 34.4 KB