Received: by 10.192.165.148 with SMTP id m20csp3567555imm; Mon, 7 May 2018 14:42:35 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoWf4ImQfFb+nFgCM7opBC5VnP/2oU/JQKdMlz6wXadSYJGPGX/z69Mdgwy67AO8Y9OJ6B1 X-Received: by 2002:a17:902:548f:: with SMTP id e15-v6mr33083884pli.314.1525729355801; Mon, 07 May 2018 14:42:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525729355; cv=none; d=google.com; s=arc-20160816; b=PDUxbFDKBjYZpc70m1v0QJkc/Bm0p6fKaj7y9bRg2OO+h0OhSH2uo3efeQ/JpjmNJV L0JPCa2/USL3Qdt9l6M3d04n6sPZVrIBCwS1a20/DFIYmDAhR0WLyC6C1IC9TNxJOLUC s7oXmgFb/OW4X+IZT1qOomwb5pud3bEq+nGzQhBSCQiwgApnkrUGgpHsZqHAgpCjgqGW k8MaMk2m5OPCAUW/UPKc1EovBNjzjMHfh1Nlu8Gt72thGSWCmylRdbBdq7iwFUMSmu6u VjbtXpV5kg/HQ+gEFsva2pIb29xb185U6dFsARTXMhVnpMpnVkJt7N4OPb9M9rxS7uo6 K/mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=3BPhNmH1C6HlSxl7kpBKzNBTx/FtfWwIdxuPYi+9tSY=; b=T4MRm36bHAItf5FUeQwbJAjXoOHRlF96S4H2BjXM96HwyWq6gTAohQ/deg3mhJJC7r Fpm2eJILPTW0pzXhtkbVJ3DJalH6QMUHrkNDPpoW+nhoGhkbJgx+Z7eCZhBKQTzoHyNk Fxdyq5sw5nTtBbFpAY9wum44rZx4fwlc1dWeq09E72lC+/G4eEGvRiQi1LyCjwDyFUHw E+k9D7dUxXS96e4L49WovGkc+KwdCnvGFJZYVChwZocrnC4CdOMo8MA/E1HPeJsadVzf 3+eMFJUqFuyULrVZjS1gozzX/1nB4CQRcUX/JSxzcILjt+COByOnF5hoVFH3u58U2apn 9E6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=K45uJy8N; dkim=pass header.i=@codeaurora.org header.s=default header.b=Sw+UXIrC; 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 y1-v6si17391425plt.316.2018.05.07.14.42.21; Mon, 07 May 2018 14:42:35 -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=@codeaurora.org header.s=default header.b=K45uJy8N; dkim=pass header.i=@codeaurora.org header.s=default header.b=Sw+UXIrC; 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 S1753209AbeEGVlo (ORCPT + 99 others); Mon, 7 May 2018 17:41:44 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:49544 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753102AbeEGVlm (ORCPT ); Mon, 7 May 2018 17:41:42 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id C9E2060C67; Mon, 7 May 2018 21:41:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1525729301; bh=pHuWHTva/U1ggpJnZgasQsXykVOTVPFvU/KdUjcnq70=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=K45uJy8N2gxCbGEMNhi8w6DpjDktHUAZeXgW1/rK/32Q8MTU9uDWD2SP54zzvs+se X8yyisKYw5EmRaljlcwgnzhiXyxHzOnA3rLPXM+7wNX4L76bBEdRsaOU43S0pin4vT H3MVtWyO1VeJZlYrzEWEiUTtWEpyFq2pn2AR6Qn8= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 8C21D601A8; Mon, 7 May 2018 21:41:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1525729300; bh=pHuWHTva/U1ggpJnZgasQsXykVOTVPFvU/KdUjcnq70=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Sw+UXIrCaIFKNWtfo5P9r/hvyoHQQjxVoYWln+jHfl/PvadDLsjLeCX1hMbS/M5X/ q0XBjuofOufYLGfSIpgT6TbUIW5CNWnj1E/kYTAenyfc3Ap0kA5IJXXpO4Sy10o6Oo ehWV5yDZKqMQaa6wRFR80Lyj7F0ROHJKY8GVi3+c= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 07 May 2018 22:41:40 +0100 From: okaya@codeaurora.org To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, timur@codeaurora.org, sulrich@codeaurora.org, Keith Busch , Kees Cook , linux-arm-msm@vger.kernel.org, open list , stable@vger.kernel.org, Lukas Wunner , Greg Kroah-Hartman , Bjorn Helgaas , Mika Westerberg , Markus Elfring , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] PCI: pciehp: Add quirk for QDF2400 Command Completed erratum In-Reply-To: <20180507213531.GB133147@bhelgaas-glaptop.roam.corp.google.com> References: <1525602662-1873-1-git-send-email-okaya@codeaurora.org> <20180507213531.GB133147@bhelgaas-glaptop.roam.corp.google.com> Message-ID: <15288037a0316d181d6fd12813f468ad@codeaurora.org> X-Sender: okaya@codeaurora.org User-Agent: Roundcube Webmail/1.2.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-05-07 22:35, Bjorn Helgaas wrote: > On Sun, May 06, 2018 at 06:30:53AM -0400, Sinan Kaya wrote: >> The QDF2400 controller does not set the Command Completed bit unless >> writes to the Slot Command register change "Control" bits. Command >> Completed is never set for writes that only change software >> notification >> "Enable" bits. This results in timeouts like this: >> >> pciehp 0000:00:00.0:pcie004: Timeout on hotplug command 0x1038 >> >> Cc: stable@vger.kernel.org >> Signed-off-by: Sinan Kaya > > Since there's no bisection benefit for keeping these separate, I folded > this into the original quirk and added Mika's reviewed-by. > > I also added the following ID patch and used PCI_VENDOR_ID_QCOM: Thanks for the clean up. > > commit 333c8c1216c1e7ead6af7b3d667b43eb425b5034 > Author: Bjorn Helgaas > Date: Mon May 7 15:52:55 2018 -0500 > > PCI: Add Qualcomm vendor ID > > Add the Qualcomm vendor ID to pci_ids.h and use it in quirks. > > Signed-off-by: Bjorn Helgaas > > diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c > index 2990ad1e7c99..e7bf44515fd6 100644 > --- a/drivers/pci/quirks.c > +++ b/drivers/pci/quirks.c > @@ -4361,8 +4361,8 @@ static const struct pci_dev_acs_enabled { > { PCI_VENDOR_ID_INTEL, 0x15b7, pci_quirk_mf_endpoint_acs }, > { PCI_VENDOR_ID_INTEL, 0x15b8, pci_quirk_mf_endpoint_acs }, > /* QCOM QDF2xxx root ports */ > - { 0x17cb, 0x400, pci_quirk_qcom_rp_acs }, > - { 0x17cb, 0x401, pci_quirk_qcom_rp_acs }, > + { PCI_VENDOR_ID_QCOM, 0x0400, pci_quirk_qcom_rp_acs }, > + { PCI_VENDOR_ID_QCOM, 0x0401, pci_quirk_qcom_rp_acs }, > /* Intel PCH root ports */ > { PCI_VENDOR_ID_INTEL, PCI_ANY_ID, pci_quirk_intel_pch_acs }, > { PCI_VENDOR_ID_INTEL, PCI_ANY_ID, pci_quirk_intel_spt_pch_acs }, > diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h > index cc608fc55334..883cb7bf78aa 100644 > --- a/include/linux/pci_ids.h > +++ b/include/linux/pci_ids.h > @@ -2387,6 +2387,8 @@ > > #define PCI_VENDOR_ID_LENOVO 0x17aa > > +#define PCI_VENDOR_ID_QCOM 0x17cb > + > #define PCI_VENDOR_ID_CDNS 0x17cd > > #define PCI_VENDOR_ID_ARECA 0x17d3 > >> --- >> drivers/pci/hotplug/pciehp_hpc.c | 6 ++++++ >> 1 file changed, 6 insertions(+) >> >> diff --git a/drivers/pci/hotplug/pciehp_hpc.c >> b/drivers/pci/hotplug/pciehp_hpc.c >> index e70eba5..974a8f1 100644 >> --- a/drivers/pci/hotplug/pciehp_hpc.c >> +++ b/drivers/pci/hotplug/pciehp_hpc.c >> @@ -914,3 +914,9 @@ static void quirk_cmd_compl(struct pci_dev *pdev) >> } >> DECLARE_PCI_FIXUP_CLASS_EARLY(PCI_VENDOR_ID_INTEL, PCI_ANY_ID, >> PCI_CLASS_BRIDGE_PCI, 8, quirk_cmd_compl); >> + >> +DECLARE_PCI_FIXUP_CLASS_EARLY(0x17cb, 0x400, >> + PCI_CLASS_BRIDGE_PCI, 8, quirk_cmd_compl); >> + >> +DECLARE_PCI_FIXUP_CLASS_EARLY(0x17cb, 0x401, >> + PCI_CLASS_BRIDGE_PCI, 8, quirk_cmd_compl); >> -- >> 2.7.4 >> >> >> _______________________________________________ >> linux-arm-kernel mailing list >> linux-arm-kernel@lists.infradead.org >> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel