Skip to content
  • Kan Liang's avatar
    perf/x86/intel/uncore: Locate specific box by checking full device info · a54fa079
    Kan Liang authored
    
    
    Some platforms, e.g. Knights Landing, use a common PCI device ID for
    multiple instances of an uncore PMU device type. So it is impossible to
    locate the specific instances only by PCI device ID.
    
    The current code specially handles Knights Landing by arbitrarily pointing
    an instance to an unused uncore box. However, we still have no idea
    which uncore device is mapped to which box.
    
    Furthermore, there could be more platforms which use a common PCI device ID
    for uncore devices. We have to specially handle them one by one.
    
    This patch records full device information (slot, func, and device ID)
    in id_table[]. So the probe function can point the instance to a specific
    uncore box by checking the full device information.
    
    Tested-by: default avatarLukasz Odzioba <lukasz.odzioba@intel.com>
    Signed-off-by: default avatarKan Liang <kan.liang@intel.com>
    Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
    Acked-by: default avatar <tglx@linutronix.de>
    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>
    Cc: bp@suse.de
    Cc: harish.chegondi@intel.com
    Cc: hubert.chrzaniuk@intel.com
    Cc: lawrence.f.meadows@intel.com
    Link: http://lkml.kernel.org/r/1463379504-39003-1-git-send-email-kan.liang@intel.com
    
    
    Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
    a54fa079