Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp1041903ima; Fri, 1 Feb 2019 15:20:46 -0800 (PST) X-Google-Smtp-Source: ALg8bN6q+MEFbrOcCm6OalujEMzQjCM/DHgiFXmPdR84DmgVntY4Que5yx3KzBPKshFSpZ2w0GCb X-Received: by 2002:a17:902:541:: with SMTP id 59mr42476900plf.88.1549063246657; Fri, 01 Feb 2019 15:20:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549063246; cv=none; d=google.com; s=arc-20160816; b=Hh0sbqfaP0+3j5j4csQWOHN/EZ7XJkPXSNDH136OBVaiQlA3lBP8yxs/Siu6LRVatc Gpjr6JrGLqT362lBc9a+n7ZTHmWbR4RzIDb4I9FIE09ebCbmaeB8rBvvlFCbAFh2/r3N tDMPCetGT901hd/Ee0hWNHfOQNlivQS4Kv1LxBbhLp/sssDLTXma+jlETFI5nq4SxdHC ulOguTl+7Hqidero1GCyNA83Bz8MgZwuYcz4Nr4KLP09/GUZ+hGp6rDMN3lW2VGJmgwL Xkq33eXubFjdhCUgqODVwo0iyhcd2lftpaUl7RJ7QJlSyegRUGoSoLUVsgWl9ZmF07BW Qq1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/0u2iCRa6VCZf5vsBYvjAAWs6gghLBoEb84vqaSDp+I=; b=OkjPJU6ia/uMueJknSLO4dlD07gnk3vFwz0Mw65piCdAON3KZ+grxwXLuEYeRl+gNR uX3Fw7R/Q8qr7AjAS/MwYNgFyd6iRZAECg8YRpHw6S+rcMKTirET+8cvjEdiz9vJeEln LA+Yi+524XsnBHmyZL4o8WbrMA6IuJbF+DZFtvIJpoMoVZgfx9/mLBgemkKTqcZPImuX iSQz6EEqR6XM/jVIxU70t4tF6sNg2pGHrqwr6s0euRRtfgFVcWa4wQYaUCh0oz69q0Sx nese+dU5+KhYhlFaZ34bvDdnfqCsDoj6qoSNpfdgIkBqJE+oR2C5iHauNVNrBWPcFkrT 54Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FLuSpk8f; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f127si8509806pfc.69.2019.02.01.15.20.31; Fri, 01 Feb 2019 15:20:46 -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=FLuSpk8f; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726813AbfBAXTu (ORCPT + 99 others); Fri, 1 Feb 2019 18:19:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:54740 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725803AbfBAXTu (ORCPT ); Fri, 1 Feb 2019 18:19:50 -0500 Received: from localhost (unknown [69.71.4.100]) (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 3303A214C6; Fri, 1 Feb 2019 23:19:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549063189; bh=g1mezfgWxOBeEihWUpSlMncrogrq+7+PvctfxDm16vQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FLuSpk8fAGdtvV2L1/DhHyaIlsXqIgXrPZ1xdU/07a0e9utzDUjUsdR1bXwQPoYMS znNNvQD2mnpx592ZlfJnj7VQ28DTcW9NW2xqy/uPsK3iiwOlnT3aqu6mIjPk3tCk4M VK/k6B8wr4C/kcWFz/sQZa/zLkETNHeu2m0Dh4Ss= Date: Fri, 1 Feb 2019 17:19:48 -0600 From: Bjorn Helgaas To: Shunyong Yang Cc: okaya@kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Joey Zheng Subject: Re: [PATCH v2 1/2] PCI: Add HXT vendor ID and ACS quirk Message-ID: <20190201231947.GV229773@google.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 07, 2018 at 03:24:12PM +0800, Shunyong Yang wrote: > Add the HXT vendor ID to pci_ids.h and use it in quirks. As the > design of HXT SD4800 ACS feature is the same as QCOM QDF2xxx, > pci_quirk_qcom_rp_acs() is reused for SD4800 quirk. > > cc: Joey Zheng > Reviewed-by: Sinan Kaya > Signed-off-by: Shunyong Yang I applied both of these to pci/misc for v5.1, thanks! As I'm sure you know, both the ACS and the pciehp issues are cases where the part does not conform to the PCIe spec. Hopefully future parts will change the design so they *do* conform to the spec so we don't have to add quirks for every new part. Adding quirks works around the problem, but it's a hassle for customers (and developers and distributors) because they need kernel updates when they wouldn't otherwise. Bjorn > --- > v2: > Add Reviewed-by: Sinan Kaya. > > v1: > Initial version. > --- > > diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c > index 4700d24e5d55..1e00ef6a88f4 100644 > --- a/drivers/pci/quirks.c > +++ b/drivers/pci/quirks.c > @@ -4495,6 +4495,8 @@ static int pci_quirk_mf_endpoint_acs(struct pci_dev *dev, u16 acs_flags) > /* QCOM QDF2xxx root ports */ > { PCI_VENDOR_ID_QCOM, 0x0400, pci_quirk_qcom_rp_acs }, > { PCI_VENDOR_ID_QCOM, 0x0401, pci_quirk_qcom_rp_acs }, > + /* HXT SD4800 root ports. The ACS design is same as QCOM QDF2xxx */ > + { PCI_VENDOR_ID_HXT, 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 69f0abe1ba1a..e60a6bc38298 100644 > --- a/include/linux/pci_ids.h > +++ b/include/linux/pci_ids.h > @@ -2565,6 +2565,8 @@ > > #define PCI_VENDOR_ID_HYGON 0x1d94 > > +#define PCI_VENDOR_ID_HXT 0x1dbf > + > #define PCI_VENDOR_ID_TEKRAM 0x1de1 > #define PCI_DEVICE_ID_TEKRAM_DC290 0xdc29 > > -- > 1.8.3.1 >