Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753744AbbDTWgZ (ORCPT ); Mon, 20 Apr 2015 18:36:25 -0400 Received: from mail-qg0-f42.google.com ([209.85.192.42]:33816 "EHLO mail-qg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752152AbbDTWgU (ORCPT ); Mon, 20 Apr 2015 18:36:20 -0400 MIME-Version: 1.0 In-Reply-To: <1429569247-16697-1-git-send-email-sonnyrao@chromium.org> References: <1429569247-16697-1-git-send-email-sonnyrao@chromium.org> From: Bjorn Helgaas Date: Mon, 20 Apr 2015 17:35:58 -0500 Message-ID: Subject: Re: [PATCHv2] perf/x86/intel/uncore: add support for Haswell ULT IMC uncore To: Sonny Rao Cc: "linux-kernel@vger.kernel.org" , Stephane Eranian , Peter Zijlstra , Paul Mackerras , Ingo Molnar , Arnaldo Carvalho de Melo , Thomas Gleixner , "H. Peter Anvin" , "x86@kernel.org" , "linux-pci@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2318 Lines: 55 On Mon, Apr 20, 2015 at 5:34 PM, Sonny Rao wrote: > This uncore is the same as the Haswell desktop part but uses a > different PCI ID. > > Signed-off-by: Sonny Rao You don't need my ack, and I don't know enough to review the perf stuff anyway, but the way you handled the PCI device ID looks great to me. > --- > arch/x86/kernel/cpu/perf_event_intel_uncore_snb.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/arch/x86/kernel/cpu/perf_event_intel_uncore_snb.c b/arch/x86/kernel/cpu/perf_event_intel_uncore_snb.c > index 3001015..ca75e70 100644 > --- a/arch/x86/kernel/cpu/perf_event_intel_uncore_snb.c > +++ b/arch/x86/kernel/cpu/perf_event_intel_uncore_snb.c > @@ -1,6 +1,9 @@ > /* Nehalem/SandBridge/Haswell uncore support */ > #include "perf_event_intel_uncore.h" > > +/* Uncore IMC PCI Id */ > +#define PCI_DEVICE_ID_INTEL_HSW_U_IMC 0x0a04 > + > /* SNB event control */ > #define SNB_UNC_CTL_EV_SEL_MASK 0x000000ff > #define SNB_UNC_CTL_UMASK_MASK 0x0000ff00 > @@ -472,6 +475,10 @@ static const struct pci_device_id hsw_uncore_pci_ids[] = { > PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HSW_IMC), > .driver_data = UNCORE_PCI_DEV_DATA(SNB_PCI_UNCORE_IMC, 0), > }, > + { /* IMC */ > + PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_HSW_U_IMC), > + .driver_data = UNCORE_PCI_DEV_DATA(SNB_PCI_UNCORE_IMC, 0), > + }, > { /* end: all zeroes */ }, > }; > > @@ -502,6 +509,7 @@ static const struct imc_uncore_pci_dev desktop_imc_pci_ids[] = { > IMC_DEV(IVB_IMC, &ivb_uncore_pci_driver), /* 3rd Gen Core processor */ > IMC_DEV(IVB_E3_IMC, &ivb_uncore_pci_driver), /* Xeon E3-1200 v2/3rd Gen Core processor */ > IMC_DEV(HSW_IMC, &hsw_uncore_pci_driver), /* 4th Gen Core Processor */ > + IMC_DEV(HSW_U_IMC, &hsw_uncore_pci_driver), /* 4th Gen Core ULT Mobile Processor */ > { /* end marker */ } > }; > > -- > 2.1.2 > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/