Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp16107imu; Thu, 8 Nov 2018 13:59:27 -0800 (PST) X-Google-Smtp-Source: AJdET5e4oD2SCdDOi3vfiozFC+fXG4z/AfmH+sspentsG/q9LsP5gD8iH9pSHiKZjUOFoLrd9JOK X-Received: by 2002:a63:6dc8:: with SMTP id i191mr5074802pgc.215.1541714367809; Thu, 08 Nov 2018 13:59:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541714367; cv=none; d=google.com; s=arc-20160816; b=C2jfag5NdvJEuX1irSPBWohEeRvxbty2HcpG0Z6UgPxCvzL00iHT0z7UeNdJZtVIJS mr/Xl9z0Ik5wl4WKoJp5XHLtpXZWuoqbAN/0uIfY3kTAyKJLW5keALeR7eGHRf2qOjar v6tltO3n7r3wWBfRGAcCFrHd8kwSHsrXRfiGvc4aqaDs94EBrFioSCiTRYhdv9yV9Pkv lZ+Amzkiq1ECm+f99NbfFyEidEjaS/aj9jh0z833UyRGGbkTt++LqHic9RYsjdIIRlXZ cXdZ/GxhOh4zFWSYXSaPOPYFMuvHuhYK7usu4fj0BK6K3FhveXq5X3EyM3mg3EYcfRPA TxZw== 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=nUT03xhBHWgvwb5KJnXLS9XV3ZwbMXYxm+myDb4I+RM=; b=GmjOa9gKnwzr3lm3P6BJc3cQeY8xg2DJcr+l5ILX5liOQH3Jte8j3vE/mDU86O2SUj gQl5uL3JKWUsFZDqpoqcrHJN4iCqRDNtJjawWQDmvkcGD/JjbXnThmukPtxFMCRJmvW3 Tjter0oOaYkHvGh5w2dV2Q+07Xy2Z2L73+nbTEtN/twXwmM61nFGKQE5RpRgPNSR8LJn guRsvQp/LyT2X6qPamE2jN0jK7I3Xupx1wXPGgxnpGKYAxV8O0z4jL9uUb5V57hik8iY 7Awf3PER6/qERQJOgnFps8CtKww6iEzdZ1Z+voZ/tDVGnVqPbkwLLhtcsRjFkHkoR72n x7BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iaxVvD5t; 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 g11-v6si5223023plp.128.2018.11.08.13.59.12; Thu, 08 Nov 2018 13:59:27 -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=iaxVvD5t; 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 S1729625AbeKIHfa (ORCPT + 99 others); Fri, 9 Nov 2018 02:35:30 -0500 Received: from mail.kernel.org ([198.145.29.99]:52392 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728586AbeKIHfa (ORCPT ); Fri, 9 Nov 2018 02:35:30 -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 36304208E3; Thu, 8 Nov 2018 21:58:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541714282; bh=ChECY+kuOB+QuQ1lKpJrRXZFsctuorzJeYI+K10bm1c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iaxVvD5tXjEUyBGKxL+E7w3dZEnGftZ07EBVoaFaA2xCkubwd6ZDKj/wggg1xdq9O vYsVloDv4tvHiE2IFB2xBO0aG/8azCANW8cpxJEA0ZgYq6qeVgNgK8MSfuBZCD7/Xd 5ADcwRHxYMCwpBSIQkflSp/eLZ69ti3/AfUggoXg= 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 3.18 125/144] x86/PCI: Mark Broadwell-EP Home Agent 1 as having non-compliant BARs Date: Thu, 8 Nov 2018 13:51:36 -0800 Message-Id: <20181108215107.150739284@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181108215054.826084593@linuxfoundation.org> References: <20181108215054.826084593@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 3.18-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 f16af96c60a2..156fbb69031c 100644 --- a/arch/x86/pci/fixup.c +++ b/arch/x86/pci/fixup.c @@ -554,9 +554,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