Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2033993imj; Sun, 10 Feb 2019 16:55:47 -0800 (PST) X-Google-Smtp-Source: AHgI3IaNZe9KTzv228cMelxhRi2Awn0ss4cz7+6mNlX5VtQ2GWGg8jvhieB6eVNc1gwx5D+Hh3vQ X-Received: by 2002:a17:902:b48d:: with SMTP id y13mr3076534plr.273.1549846547020; Sun, 10 Feb 2019 16:55:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549846547; cv=none; d=google.com; s=arc-20160816; b=CxAmL+Ebl8O6nlyxZY1kZRMPWOsSJhCHsgWU7F6JcXUE4DTPEsb04Jc8bBrCr4gIQE NL98gdufdrIBISaKrly39XldiwMJwq465ZEejf6l8E6ItOJOPFoE4PbfuOIJGUYLQ+Bd Ur3niklqw7k3AKUEmPzP+gCQO3H1bQXtAqbPnKKWEIJZWy1PwAZN8Q4tW/+nM5GO7WDz r34VcEy8jXDIK9mr1oUo/CpYL8q7l93y+dWJuvZPn4MsoWKHvL3euFiqxk+4jx8BLmbS QbrICiA5Te7dWvU8t6pWrQPBGJBueyxX8l7AYF6OQ2GeVmvZRXBxKtuhTnvhQhuT7GKp T9tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=OI3C7JFljL5Q8PCMcZ/5ofIyGwSjlZD4d+85UBMP2Tc=; b=Ec9kMknpymWCGIePCz1M+aF2pxxSrjCskS7vn6lfBo2iXGVddQvRZkyDUoEC7nPWu5 mQI97+e1iLYWK/L9jF0AYt5VSH4iB9tKwYQlG4t+Mb/n0vIOtqPnMXXU0jp756jyy6hh /QNgQalrlD0OOEmzivpbNafS51phcp5WKgx9Glk1/fTz1WPle0t80SkS8uXDFjpD2HP5 4UkJ7ieFA7V83HZhFG28mKc/pE0uEKLaNC7J6yipnRjsuPgIfQgdpOVMfaH/RCcuwvuz 1UFeUo95OWTpGCvw1+PVeuoBQvxFcC34H5Zj6MnNcINv66nWSx2vO9b/5ghTQegArz3m Ediw== 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 j10si8427242pll.179.2019.02.10.16.55.17; Sun, 10 Feb 2019 16:55:47 -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; 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 S1726154AbfBKAxB convert rfc822-to-8bit (ORCPT + 99 others); Sun, 10 Feb 2019 19:53:01 -0500 Received: from [223.203.96.18] ([223.203.96.18]:33239 "EHLO barracuda02.hxt-semitech.com" rhost-flags-FAIL-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726032AbfBKAxA (ORCPT ); Sun, 10 Feb 2019 19:53:00 -0500 X-ASG-Debug-ID: 1549846375-107606139f22d880001-xx1T2L Received: from HXTBJIDCEMVIW01.hxtcorp.net ([10.128.0.14]) by barracuda02.hxt-semitech.com with ESMTP id WkIMzeO3k6z2ICeR (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NO); Mon, 11 Feb 2019 08:52:55 +0800 (CST) X-Barracuda-Envelope-From: shunyong.yang@hxt-semitech.com Received: from HXTBJIDCEMVIW01.hxtcorp.net (10.128.0.14) by HXTBJIDCEMVIW01.hxtcorp.net (10.128.0.14) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 11 Feb 2019 08:52:29 +0800 Received: from HXTBJIDCEMVIW01.hxtcorp.net ([fe80::f451:a443:c0b5:87d1]) by HXTBJIDCEMVIW01.hxtcorp.net ([fe80::f451:a443:c0b5:87d1%12]) with mapi id 15.00.1395.000; Mon, 11 Feb 2019 08:52:29 +0800 From: "Yang, Shunyong" To: Bjorn Helgaas CC: "okaya@kernel.org" , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Zheng, Joey" Subject: Re: [PATCH v2 1/2] PCI: Add HXT vendor ID and ACS quirk Thread-Topic: [PATCH v2 1/2] PCI: Add HXT vendor ID and ACS quirk X-ASG-Orig-Subj: Re: [PATCH v2 1/2] PCI: Add HXT vendor ID and ACS quirk Thread-Index: AQHUdmrlIch2nulfZ0GbPXTu9T/GHw== Date: Mon, 11 Feb 2019 00:52:29 +0000 Message-ID: <6b4a41788f0d4b1c8388ebfb4d5abea4@HXTBJIDCEMVIW01.hxtcorp.net> References: <20190201231947.GV229773@google.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.64.6.235] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-Barracuda-Connect: UNKNOWN[10.128.0.14] X-Barracuda-Start-Time: 1549846375 X-Barracuda-Encrypted: ECDHE-RSA-AES256-SHA384 X-Barracuda-URL: https://192.168.50.102:443/cgi-mod/mark.cgi X-Barracuda-Scan-Msg-Size: 2344 X-Virus-Scanned: by bsmtpd at hxt-semitech.com X-Barracuda-BRTS-Status: 1 X-Barracuda-Bayes: INNOCENT GLOBAL 0.4327 1.0000 0.0000 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.67228 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Bjorn, Thank you for reminding me. I will check with our IC team for these design issues. Sorry for the delay as I was taking Chinese New Year holiday. Shunyong. On 2019/2/2 7:19, Bjorn Helgaas wrote: > 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 >> >