Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2457566imd; Fri, 2 Nov 2018 11:44:21 -0700 (PDT) X-Google-Smtp-Source: AJdET5cEWm7j1WTx8zH+jRb/Xot6/zYsNmBm9UxLA73DgeGli3EKeozq4Mhu3ztviLJFE6Zv0GDQ X-Received: by 2002:a62:d405:: with SMTP id a5-v6mr12696512pfh.174.1541184261068; Fri, 02 Nov 2018 11:44:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541184261; cv=none; d=google.com; s=arc-20160816; b=RuT9w9nfPN/xEnxGaN34S98l01owez93XCycpXD437Qbn7YOdbk8+S4whfcXnVbmMM KgYMI7FRGC81sxQ66mVH4Pv6W3WM0gWHjeu+1zLwfJtD0tSbGqbVSPh9Ym+f94B6vKCB oXEY50+n0OA7W1qHtmOxBiJauvU92LBgfRxMXXB6RQKqHDb0e+TJUnqBU3EkwEoStacY 0sdsxkSdFNhAzHLiAQOnDJGFG+LBzHtsXgrpcSioLjuytvmphoHE/DYcDTabeDu5eI5s 9O4emWPisi14wJLY15v3VVwhCLBmisdUGcG0XgYCXigA7vIvKiLhpj7VOD/Dg/MH2XE/ aFYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=+HH5f+WDvGEkootip7GxgQyY2I0NFyJ7cQGnasasJ78=; b=jj6uJ364Lf6VeZxIutPa7Zb/Y6W/V6q7DeEOB5YAfK5+td9aP+dnjeHrmUyQHzf+yO HAQw3rVxw2DrwhU4WuvS19eo49jQMSJhp+bQhUJ9TKKKWiLqeqn27ylR0vjwYGxP6WSj xG2KgBZnIvdpGH4uWXbVtvByp73ncWru8gjV1FicGE0k8J2xmIiKkyPzL3eCD6J0QK8B Xj62cDAUizSd+6cjKsSnuiXDTAdeVGixjI/ZKU/VMlfZ7Is41smUHgbloNzt5eXFibXk LDc3mC9nxdkJye075bUManoYavmazUwW+YZi23Gjk0OFVYID1gEXaI28uPnsp7C9Pdig JvIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=r2aUzq3G; 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 x5si111214pga.440.2018.11.02.11.44.06; Fri, 02 Nov 2018 11:44:21 -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=pass header.i=@kernel.org header.s=default header.b=r2aUzq3G; 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 S1729673AbeKCDt7 (ORCPT + 99 others); Fri, 2 Nov 2018 23:49:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:44762 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728674AbeKCDt7 (ORCPT ); Fri, 2 Nov 2018 23:49:59 -0400 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AD26C20847; Fri, 2 Nov 2018 18:41:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541184106; bh=qg4DonkTL8/99+FKip2kma+k+3WmHHNQLOZpZg0GLm8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r2aUzq3G9RK2QI+/n4++SfAs20pQCwNFJvgcjN96zHtVC08BhjSNesXs6n8I+9sPN Q6X1ofeTv72AgovtneBarbinjkaeZitXuIXxhfuCIojpiP+8ImFWhQfQH6ZS5XHKje ShPYNssGZ1e5pG9gHByFGntdsC8gJTllh23Ju26Y= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kan Liang , "Peter Zijlstra (Intel)" , Alexander Shishkin , Arnaldo Carvalho de Melo , Jiri Olsa , Linus Torvalds , Stephane Eranian , Thomas Gleixner , Vince Weaver , Ingo Molnar , Sasha Levin Subject: [PATCH 4.18 056/150] perf/x86/intel/uncore: Fix PCI BDF address of M3UPI on SKX Date: Fri, 2 Nov 2018 19:33:38 +0100 Message-Id: <20181102182907.444847793@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181102182902.250560510@linuxfoundation.org> References: <20181102182902.250560510@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 9d92cfeaf5215158d26d2991be7f7ff865cb98f3 ] The counters on M3UPI Link 0 and Link 3 don't count properly, and writing 0 to these counters may causes system crash on some machines. The PCI BDF addresses of the M3UPI in the current code are incorrect. The correct addresses should be: D18:F1 0x204D D18:F2 0x204E D18:F5 0x204D Signed-off-by: Kan Liang Signed-off-by: Peter Zijlstra (Intel) Cc: Alexander Shishkin Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Stephane Eranian Cc: Thomas Gleixner Cc: Vince Weaver Fixes: cd34cd97b7b4 ("perf/x86/intel/uncore: Add Skylake server uncore support") Link: http://lkml.kernel.org/r/1537538826-55489-1-git-send-email-kan.liang@linux.intel.com Signed-off-by: Ingo Molnar Signed-off-by: Sasha Levin --- arch/x86/events/intel/uncore_snbep.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/x86/events/intel/uncore_snbep.c b/arch/x86/events/intel/uncore_snbep.c index 53b981dcdb42..c07bee31abe8 100644 --- a/arch/x86/events/intel/uncore_snbep.c +++ b/arch/x86/events/intel/uncore_snbep.c @@ -3931,16 +3931,16 @@ static const struct pci_device_id skx_uncore_pci_ids[] = { .driver_data = UNCORE_PCI_DEV_FULL_DATA(21, 5, SKX_PCI_UNCORE_M2PCIE, 3), }, { /* M3UPI0 Link 0 */ - PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x204C), - .driver_data = UNCORE_PCI_DEV_FULL_DATA(18, 0, SKX_PCI_UNCORE_M3UPI, 0), + PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x204D), + .driver_data = UNCORE_PCI_DEV_FULL_DATA(18, 1, SKX_PCI_UNCORE_M3UPI, 0), }, { /* M3UPI0 Link 1 */ - PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x204D), - .driver_data = UNCORE_PCI_DEV_FULL_DATA(18, 1, SKX_PCI_UNCORE_M3UPI, 1), + PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x204E), + .driver_data = UNCORE_PCI_DEV_FULL_DATA(18, 2, SKX_PCI_UNCORE_M3UPI, 1), }, { /* M3UPI1 Link 2 */ - PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x204C), - .driver_data = UNCORE_PCI_DEV_FULL_DATA(18, 4, SKX_PCI_UNCORE_M3UPI, 2), + PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x204D), + .driver_data = UNCORE_PCI_DEV_FULL_DATA(18, 5, SKX_PCI_UNCORE_M3UPI, 2), }, { /* end: all zeroes */ } }; -- 2.17.1