Received: by 10.192.165.148 with SMTP id m20csp2432889imm; Sun, 22 Apr 2018 07:02:09 -0700 (PDT) X-Google-Smtp-Source: AIpwx49bChIUqSqlCEb/m0+y+qwTC5E5aHlZfQRa4i9TXJ7HXcH47f4sn0DXN5aWglRG3NqD27hp X-Received: by 10.101.98.22 with SMTP id d22mr14569004pgv.344.1524405728972; Sun, 22 Apr 2018 07:02:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524405728; cv=none; d=google.com; s=arc-20160816; b=CPzYAnj5Z+e++ydQQINdOXn5kTlYsdgLLkpFZSnZaRbbJxRaRf3xQFMWyTcknsFeS3 98tdd9yjxv9aLVYi2KUkVLS4ujAZ6Y75pn9V/p3s1UjSShUFyRdq4TumzsEWAJY8CSK9 Zod2MwTQG/LQxupTZEV2Rk2zDXQp4II+5KleyKz0Wps67F9uSjAY9y5TzGspZJkb4Ns8 v0RWGQhjdfp6VdPZGDwhwzxTGh4kLWAIE1Tgp6Cng1/eWWUUquu0kPufggbY6No8scYz 5RxDSB2fCyKDguqWtW8xNTCH6xQ/Epufh5Bgn4M9HfkQRE943cUmz+QessRZgkHmTopE XL6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=8PjezgWglOVfBiygrLYEGbIiUSY/CVqV4UPVt0xNsZ8=; b=LPr5CJRG6j6pWOsCQwxA7CFxKtk6ggEdP8FEMDycuDMvaIHDrEQGTZLF0xfnJYx+Zj 8QwJRRNQS0TPNNFlIYwoI6m1qZMMRMjdKY5miKA8g8WhudnVASyqmIBNjb6XQMe/XblQ n3Co5+4u/RNtzZKJIFVZlh+bLxQvKtg9U7u3gtVjxJRiJMkrDzfqetZM1yUbO9iQHlw+ suy+83QJ/VEGn0jbRgYOskuEtP/HepMJRMGVDbLFPyhhODU5lrJtOdSd3BNRQDLBsbCY azRua6FsWNfunBGKAL5nxSHmIE1THKI9qO1rVaOylehbW8kOHKdR8mGeKXFqDjRxE+Ep Vt6Q== ARC-Authentication-Results: i=1; mx.google.com; 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 n2-v6si9422196plk.374.2018.04.22.07.01.54; Sun, 22 Apr 2018 07:02:08 -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; 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 S1754570AbeDVOAl (ORCPT + 99 others); Sun, 22 Apr 2018 10:00:41 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:47472 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754298AbeDVOAf (ORCPT ); Sun, 22 Apr 2018 10:00:35 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 1FFDEBC8; Sun, 22 Apr 2018 14:00:33 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sinan Kaya , Bjorn Helgaas Subject: [PATCH 4.16 138/196] PCI: Mark Broadcom HT1100 and HT2000 Root Port Extended Tags as broken Date: Sun, 22 Apr 2018 15:52:38 +0200 Message-Id: <20180422135111.384433749@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180422135104.278511750@linuxfoundation.org> References: <20180422135104.278511750@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.16-stable review patch. If anyone has any objections, please let me know. ------------------ From: Sinan Kaya commit 1b30dfd376e28e7f37eda5e2033f6823cdda222b upstream. Per PCIe r3.1, sec 2.2.6.2 and 7.8.4, a Requester may not use 8-bit Tags unless its Extended Tag Field Enable is set, but all Receivers/Completers must handle 8-bit Tags correctly regardless of their Extended Tag Field Enable. Some devices do not handle 8-bit Tags as Completers, so add a quirk for them. If we find such a device, we disable Extended Tags for the entire hierarchy to make peer-to-peer DMA possible. The Broadcom HT1100/HT2000/HT2100 seems to have issues with handling 8-bit tags. Mark it as broken. This fixes Xorg hangs and unresponsive keyboards with errors like this: radeon 0000:06:00.0: GPU lockup (current fence id 0x000000000000000e last fence id 0x0000000000000 [drm:r600_ring_test [radeon]] *ERROR* radeon: ring 0 test failed (scratch(0x8504)=0xCAFEDEAD) [drm:r600_resume [radeon]] *ERROR* r600 startup failed on resume Fixes: 60db3a4d8cc9 ("PCI: Enable PCIe Extended Tags if supported") Link: https://bugzilla.kernel.org/show_bug.cgi?id=196197 Signed-off-by: Sinan Kaya Signed-off-by: Bjorn Helgaas CC: stable@vger.kernel.org # v4.11: 62ce94a7a5a5 PCI: Mark Broadcom HT2100 Root Port Extended Tags as broken CC: stable@vger.kernel.org # v4.11 Signed-off-by: Greg Kroah-Hartman --- drivers/pci/quirks.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -4815,9 +4815,13 @@ static void quirk_no_ext_tags(struct pci pci_walk_bus(bridge->bus, pci_configure_extended_tags, NULL); } +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SERVERWORKS, 0x0132, quirk_no_ext_tags); DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SERVERWORKS, 0x0140, quirk_no_ext_tags); +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SERVERWORKS, 0x0141, quirk_no_ext_tags); DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SERVERWORKS, 0x0142, quirk_no_ext_tags); DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SERVERWORKS, 0x0144, quirk_no_ext_tags); +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SERVERWORKS, 0x0420, quirk_no_ext_tags); +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SERVERWORKS, 0x0422, quirk_no_ext_tags); #ifdef CONFIG_PCI_ATS /*