Received: by 10.192.165.148 with SMTP id m20csp85746imm; Fri, 20 Apr 2018 03:31:14 -0700 (PDT) X-Google-Smtp-Source: AIpwx49YbPwg0PH330iV0xojWINnC8bqbe/BDJf/16+IM+2ex25VKvqASMGrbl861HdKpNdlXDA2 X-Received: by 10.99.113.20 with SMTP id m20mr8147307pgc.144.1524220273949; Fri, 20 Apr 2018 03:31:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524220273; cv=none; d=google.com; s=arc-20160816; b=ffdlY2qMplUnXr2N9jGM7awpVVdv2ypEbfeWiw4H8QES2rUB6GRv6OcnkyVT31IoJ/ ATL3SOm9mGKWUg0LCJP9O+aktpml5V4GYxdG1V3ICkQvdf3flEjUFbKS8GctGCHqsRol fB4ls2sfDCU25mYwT6dcAhk1+A9Acmp3fyAQMfxryI9YOQ6J3kHs8Sx0agLFe6l/wPqb xWmiV/b+hvls3RWqJhxQBf/yDrbi11fTopAtolnLxZEmzEbUScpvo1apXdousmxKieFn i8b7KW7GN3JGkr16dI95YA4GBk0M5uwBgPbl2qTWsv+dOgiO0ReQmzp+c3099sx3llm0 jAPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=jxPsjIiVb72hUp9T0Vexuhfe1iDbqmRiXCeYBMJv7S4=; b=LK/T7LefZ7vP4Dubz6Fj52eNcjVspURSOPiw9g8Q3uZypVae1tPYPnOEi+LcVTE2qE Dwd3RJmXmg9qYPqeH6MO4xM0+216VC/RD2SvSHyH1JJJPnCX2bVXKx/F3DjWlt0i61In NZCyGcsWoApEosQgOSgpPvI1Rkyvy7rSnh/JGg/KkDfXLIf9hI73phZDtLcBZBDkr9UV 7l7XC5QCuQ5p2ZXtR/qWOr9DOMpPCKXp3jQBsV/GFjFaD+2pKuznDvZDojwAbNQkQ24J ZT3R/YRDz90tn4o6MtJ5BCQEPGsWg4cTa6LViFhWLP0dEi9L5w3AB+QloN/cw3QCUE/D Nh1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=idfC8nmu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a61-v6si5557399pla.271.2018.04.20.03.30.59; Fri, 20 Apr 2018 03:31:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=idfC8nmu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754627AbeDTK3x (ORCPT + 99 others); Fri, 20 Apr 2018 06:29:53 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:39700 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754540AbeDTK3w (ORCPT ); Fri, 20 Apr 2018 06:29:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=jxPsjIiVb72hUp9T0Vexuhfe1iDbqmRiXCeYBMJv7S4=; b=idfC8nmuTeY2O+7WnWVMj2IxN GwnLf0TQNN9muZ7ndBgWk75cG/RoEICCCbvXxuAgUKUZ+Hb+q18zw4fO3zBT5cBFzwbQ+UABf2G7t 0aU8o5VOgZiJojdtK1lzzQEvkR9lm1jK2r/Ut4VVdT3dV17U8T294fW4Qfs2lvTDiQO5WnFy5IJ7o b9T0HuVaYxd/+NE8rDs8WLMNEMwBZvoaY/vbxmdhRUK6cvIagNCsq1loaI2ixCqbkozJd1PjVI/5q iQSH7lozbl7dSMIDMvPzHAjxyOBIfD9rNqKBSpYHUQX0KYsdS9Iog7Vk8XEkSEFYhlKz3mLAZ8nkP hvpGlCTpQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1f9TIa-0003W2-Ky; Fri, 20 Apr 2018 10:29:48 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 9AE042029F877; Fri, 20 Apr 2018 12:29:46 +0200 (CEST) Date: Fri, 20 Apr 2018 12:29:46 +0200 From: Peter Zijlstra To: Kan Liang Cc: tglx@linutronix.de, mingo@redhat.com, linux-kernel@vger.kernel.org, eranian@google.com, osk@google.com, mark@voidzero.net, ak@linux.intel.com Subject: Re: [RESEND PATCH 2/2] perf/x86/intel/uncore: Fix SBOX support for Broadwell CPUs Message-ID: <20180420102946.GI4064@hirez.programming.kicks-ass.net> References: <1521810690-2576-1-git-send-email-kan.liang@linux.intel.com> <1521810690-2576-2-git-send-email-kan.liang@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1521810690-2576-2-git-send-email-kan.liang@linux.intel.com> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 23, 2018 at 09:11:30AM -0400, Kan Liang wrote: > @@ -3067,7 +3069,15 @@ void bdx_uncore_cpu_init(void) > /* BDX-DE doesn't have SBOX */ > if (boot_cpu_data.x86_model == 86) > uncore_msr_uncores[BDX_MSR_UNCORE_SBOX] = NULL; > - > + /* Detect systems with no SBOXes */ That really wants { }. > + else if (uncore_extra_pci_dev[pkg].dev[HSWEP_PCI_PCU_3]) { > + u32 capid4; > + pci_read_config_dword( > + uncore_extra_pci_dev[pkg].dev[HSWEP_PCI_PCU_3], > + 0x94, &capid4); > + if (((capid4 >> 6) & 0x3) == 0) > + bdx_msr_uncores[BDX_MSR_UNCORE_SBOX] = NULL; > + } > hswep_uncore_pcu.constraints = bdx_uncore_pcu_constraints; > } Otherwise these look fine to me; Acked-by: Peter Zijlstra (Intel) Thomas will you magic them into tip?