From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753995AbbLIXh5 (ORCPT ); Wed, 9 Dec 2015 18:37:57 -0500 Received: from bombadil.infradead.org ([198.137.202.9]:57058 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751072AbbLIXhz (ORCPT ); Wed, 9 Dec 2015 18:37:55 -0500 Date: Thu, 10 Dec 2015 00:37:53 +0100 From: Peter Zijlstra To: Harish Chegondi Cc: linux-kernel@vger.kernel.org, mingo@redhat.com, Harish Chegondi , Andi Kleen , Kan Liang , Lukasz Anaczkowski Subject: Re: [PATCH 2/2] perf/x86/intel/uncore: Add Knights Landing uncore PMU support Message-ID: <20151209233753.GT6356@twins.programming.kicks-ass.net> References: <872e8ef16cfc38e5ff3b45fac1094e6f1722e4ad.1449470704.git.harish.chegondi@intel.com> <8ac513981264c3eb10343a3f523f19cc5a2d12fe.1449470704.git.harish.chegondi@intel.com> <20151208090722.GH6356@twins.programming.kicks-ass.net> <5668972F.5030805@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5668972F.5030805@intel.com> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 09, 2015 at 01:03:43PM -0800, Harish Chegondi wrote: > > > On 12/08/2015 01:07 AM, Peter Zijlstra wrote: > > On Mon, Dec 07, 2015 at 02:32:32PM -0800, Harish Chegondi wrote: > >> @@ -981,6 +990,8 @@ static int __init uncore_pci_init(void) > >> break; > >> case 61: /* Broadwell */ > >> ret = bdw_uncore_pci_init(); > >> + case 87: /* Knights Landing */ > >> + ret = knl_uncore_pci_init(); > >> break; > >> default: > >> return 0; > >> @@ -1289,6 +1300,8 @@ static int __init uncore_cpu_init(void) > >> break; > >> case 86: /* BDX-DE */ > >> bdx_uncore_cpu_init(); > >> + case 87: /* Knights Landing */ > >> + knl_uncore_cpu_init(); > >> break; > >> default: > > Surely you need some extra break statements in there? > > . > > > Yes, I missed the break statements. I will add the breaks in the next version of the patch. Fixed it already. No need to resend.