Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp17901imu; Thu, 8 Nov 2018 14:01:03 -0800 (PST) X-Google-Smtp-Source: AJdET5exga1MMSuRBj+ClmKyPulKqs1GKXliI95Y90H8hOi+aFu0doYSg0X/0OpxV/HNuP8LNnEd X-Received: by 2002:a63:62c3:: with SMTP id w186mr5311832pgb.345.1541714463398; Thu, 08 Nov 2018 14:01:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541714463; cv=none; d=google.com; s=arc-20160816; b=SLeMcxoERoZqBGJV3MQLOGeECTOdFQAEafwnOjFP+NQhd1qZ+d6DFTG8sR+yr2sXIo y+9k/9NfOA8k/3qFayjM406SW6RnVE6Djwc0zpfUS8b0ca3FFUPvX3Mrb0SSuZhWvLR/ 11pWWFXiFXvdCfubCK6tJnhHzXaSHHMPHtRJj+2iBt42SnGa8IHEN8z5eK/L90PbpkZE eKkCRN1hxMd5byhRuRjtNj/DDsPDejGZqvB4MzIG28eGpg9tW5l2mQiI1J6aodApPO1z 00eme4s3+4PP3zGovso/pz+7vmSyymE/qjJNgA4JnRADA1W4uLf+34nGYdrBj/5618TG kImg== 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=e30irTlFUttZFHv7qCF0WNlLMJDne20NB1IX762bEks=; b=MDG3+4gs0YvWHHNarxGtucWYExAm6+LKStMFUboN6YgKdibC7k9DDE23/g/Mm9LVHm gTuLZOxVK71X623W82Sqtoq49phKaecSiuLW1Trff9K1D6AnSq0LyYuvHUPSPyepD/mU lD6pPpLw4EO9v8zBwRR0t28GYCYka58qZ60t3pDgR+/e6sSC3Oh+hW4P7AXg2jBCebG1 MhgezipP8Z9AzUDdWPe+6YgjB0/ayg4LthEO6PxOrffvlIXsLMf+C+pNFt2jGr0oifSK iMKt0HNdnr9TKG+oUptk3VQikBGdJaz7a/PgeRb4MGtEH69IsO6qTP35IuOPQ9HQnmKa aAzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0DSGFlRl; 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 d9-v6si5431623pfo.108.2018.11.08.14.00.47; Thu, 08 Nov 2018 14:01:03 -0800 (PST) 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=0DSGFlRl; 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 S1730111AbeKIHhJ (ORCPT + 99 others); Fri, 9 Nov 2018 02:37:09 -0500 Received: from mail.kernel.org ([198.145.29.99]:54984 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729500AbeKIHhI (ORCPT ); Fri, 9 Nov 2018 02:37:08 -0500 Received: from localhost (unknown [208.72.13.198]) (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 144D021479; Thu, 8 Nov 2018 21:59:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541714380; bh=fESRx8Y4yFvqe+zvN8WmhyNU5oYlydDY02ME/yhatgk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0DSGFlRlhwueQB5QnibV0fwB1Rsw5lasBRoWePA7YIl6MCOi9O1QPTZtEZqiNMBti NBW6sOA777EvRgHbS5ZKXdr/+RMUPreleXXGDRCiEKZ4RwAi+Q3nXYShC7bTLWDMTS llbgNf2vVRhp9NMOED91ZnNKKhQ+tOOo3o6UQ+7k= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Prarit Bhargava , Bjorn Helgaas , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Andi Kleen , Sasha Levin Subject: [PATCH 4.4 037/114] x86/PCI: Mark Broadwell-EP Home Agent 1 as having non-compliant BARs Date: Thu, 8 Nov 2018 13:50:52 -0800 Message-Id: <20181108215104.460839059@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181108215059.051093652@linuxfoundation.org> References: <20181108215059.051093652@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.4-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit da77b67195de1c65bef4908fa29967c4d0af2da2 ] Commit b894157145e4 ("x86/PCI: Mark Broadwell-EP Home Agent & PCU as having non-compliant BARs") marked Home Agent 0 & PCU has having non-compliant BARs. Home Agent 1 also has non-compliant BARs. Mark Home Agent 1 as having non-compliant BARs so the PCI core doesn't touch them. The problem with these devices is documented in the Xeon v4 specification update: BDF2 PCI BARs in the Home Agent Will Return Non-Zero Values During Enumeration Problem: During system initialization the Operating System may access the standard PCI BARs (Base Address Registers). Due to this erratum, accesses to the Home Agent BAR registers (Bus 1; Device 18; Function 0,4; Offsets (0x14-0x24) will return non-zero values. Implication: The operating system may issue a warning. Intel has not observed any functional failures due to this erratum. Link: http://www.intel.com/content/www/us/en/processors/xeon/xeon-e5-v4-spec-update.html Fixes: b894157145e4 ("x86/PCI: Mark Broadwell-EP Home Agent & PCU as having non-compliant BARs") Signed-off-by: Prarit Bhargava Signed-off-by: Bjorn Helgaas CC: Thomas Gleixner CC: Ingo Molnar CC: "H. Peter Anvin" CC: Andi Kleen Signed-off-by: Sasha Levin --- arch/x86/pci/fixup.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/x86/pci/fixup.c b/arch/x86/pci/fixup.c index 0ae7e9fa348d..89f90549c6a8 100644 --- a/arch/x86/pci/fixup.c +++ b/arch/x86/pci/fixup.c @@ -541,9 +541,16 @@ static void twinhead_reserve_killing_zone(struct pci_dev *dev) } DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x27B9, twinhead_reserve_killing_zone); +/* + * Broadwell EP Home Agent BARs erroneously return non-zero values when read. + * + * See http://www.intel.com/content/www/us/en/processors/xeon/xeon-e5-v4-spec-update.html + * entry BDF2. + */ static void pci_bdwep_bar(struct pci_dev *dev) { dev->non_compliant_bars = 1; } +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_INTEL, 0x6f60, pci_bdwep_bar); DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_INTEL, 0x6fa0, pci_bdwep_bar); DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_INTEL, 0x6fc0, pci_bdwep_bar); -- 2.17.1