Message ID | 20230522035428.69441-3-xueshuai@linux.alibaba.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1195890vqo; Sun, 21 May 2023 21:17:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ51DLhf9MLj7NYW+7Dx+MrEbkkWId3zAz0HWXqH18Kt68omvEuulHWQ8qOwpo4cqOzXzmPi X-Received: by 2002:a05:6a00:1486:b0:5a8:9858:750a with SMTP id v6-20020a056a00148600b005a89858750amr9992537pfu.13.1684729040822; Sun, 21 May 2023 21:17:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684729040; cv=none; d=google.com; s=arc-20160816; b=YnitQIczb9smlGJUpz5Cva0YUp7Ux6XWEhEAQmbsgu8Bu5XKlP2i1ibJgyp2OfPtLR Rqppu5uCdJ8zTJGuZ48ySEU9TxJj1BSP3YURKHYDCHevsn8YMwpc+gdG1MkoRECD4aJj fvmPwJYh+zQM1i7j2Ea/P2IAgCVaBy2KzY0VsIIvzYL7RurXTR5vgK2jMk6itp0dczHy O7kj2CoM0rX/Nua4Phs2ty3+qZTagr62VdTmrbHtB+YUX3MZ3mHL5opi4nSunQ1/bC/2 ltfrfgykvOsXu8BddakJRyWKgyJNO4uDfqRUm7BVAaXPElglbVer79D6JXESiUprsNdD 9eZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=IzuA61U+3SNnd500btAE0QpB8lkgqY2lNNIBh6CGBX4=; b=mqqT3HZ6ehxGU7ag5S2knnyvitWuel6jxys0KpZ5fuG8BMCkfeuyhDajAUWVDqKldl tDQEKl1HBLjHjD2lUt3VtkOX4njK+/EkBjaQZjOn8YhchbeNJL6bydc5CfQzt2wnqRzX 8fY2XkLxSAohOX5nxeMXemKcrh7jxGyM5ZtBHpMGNrHH0GTHVRF4LCBJNuto4k7bqCfx Rfr72rsRTi+ZdvHoxV2yj7LGG8RFQpXFvDpFHMWUg1Du6l9wK3hZqgZ4P4B3oOwwm3Ng 44zwH5q5q68KJZu+ret//hB0bnBb3Rt9GO91MpRkxZSFMtBLIyKJnFZCqjfX2TF59TU3 4F4w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x1-20020aa79a41000000b0064d3fa7ebfdsi4179035pfj.201.2023.05.21.21.17.06; Sun, 21 May 2023 21:17:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231553AbjEVDyx (ORCPT <rfc822;cscallsign@gmail.com> + 99 others); Sun, 21 May 2023 23:54:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229620AbjEVDyl (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 21 May 2023 23:54:41 -0400 Received: from out30-99.freemail.mail.aliyun.com (out30-99.freemail.mail.aliyun.com [115.124.30.99]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC6D5C4; Sun, 21 May 2023 20:54:39 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R491e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045170;MF=xueshuai@linux.alibaba.com;NM=1;PH=DS;RN=15;SR=0;TI=SMTPD_---0Vj6oJHi_1684727676; Received: from localhost.localdomain(mailfrom:xueshuai@linux.alibaba.com fp:SMTPD_---0Vj6oJHi_1684727676) by smtp.aliyun-inc.com; Mon, 22 May 2023 11:54:36 +0800 From: Shuai Xue <xueshuai@linux.alibaba.com> To: chengyou@linux.alibaba.com, kaishen@linux.alibaba.com, helgaas@kernel.org, yangyicong@huawei.com, will@kernel.org, Jonathan.Cameron@huawei.com, baolin.wang@linux.alibaba.com, robin.murphy@arm.com Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, rdunlap@infradead.org, mark.rutland@arm.com, zhuo.song@linux.alibaba.com, xueshuai@linux.alibaba.com Subject: [PATCH v5 2/4] PCI: move Alibaba Vendor ID linux/pci_ids.h Date: Mon, 22 May 2023 11:54:26 +0800 Message-Id: <20230522035428.69441-3-xueshuai@linux.alibaba.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220917121036.14864-1-xueshuai@linux.alibaba.com> References: <20220917121036.14864-1-xueshuai@linux.alibaba.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766057504257560455?= X-GMAIL-MSGID: =?utf-8?q?1766566438425073008?= |
Series |
None
|
|
Commit Message
Shuai Xue
May 22, 2023, 3:54 a.m. UTC
Move Alibaba Vendor ID (0x1ded) to linux/pci_ids.h so that it can shared by
several drivers.
Signed-off-by: Shuai Xue <xueshuai@linux.alibaba.com>
---
drivers/infiniband/hw/erdma/erdma_hw.h | 2 --
include/linux/pci_ids.h | 2 ++
2 files changed, 2 insertions(+), 2 deletions(-)
Comments
Please follow subject line capitalization style (learn it with "git log --oneline include/linux/pci_ids.h"): PCI: Add Alibaba Vendor ID On Mon, May 22, 2023 at 11:54:26AM +0800, Shuai Xue wrote: > Move Alibaba Vendor ID (0x1ded) to linux/pci_ids.h so that it can shared by > several drivers. It would be helpful for reviewers to list the drivers here, since only one is obvious from the patch. Thanks for sorting the entry correctly! > Signed-off-by: Shuai Xue <xueshuai@linux.alibaba.com> > --- > drivers/infiniband/hw/erdma/erdma_hw.h | 2 -- > include/linux/pci_ids.h | 2 ++ > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/infiniband/hw/erdma/erdma_hw.h b/drivers/infiniband/hw/erdma/erdma_hw.h > index 76ce2856be28..ee35ebef9ee7 100644 > --- a/drivers/infiniband/hw/erdma/erdma_hw.h > +++ b/drivers/infiniband/hw/erdma/erdma_hw.h > @@ -11,8 +11,6 @@ > #include <linux/types.h> > > /* PCIe device related definition. */ > -#define PCI_VENDOR_ID_ALIBABA 0x1ded > - > #define ERDMA_PCI_WIDTH 64 > #define ERDMA_FUNC_BAR 0 > #define ERDMA_MISX_BAR 2 > diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h > index 95f33dadb2be..9e8aec472f06 100644 > --- a/include/linux/pci_ids.h > +++ b/include/linux/pci_ids.h > @@ -2586,6 +2586,8 @@ > #define PCI_VENDOR_ID_TEKRAM 0x1de1 > #define PCI_DEVICE_ID_TEKRAM_DC290 0xdc29 > > +#define PCI_VENDOR_ID_ALIBABA 0x1ded > + > #define PCI_VENDOR_ID_TEHUTI 0x1fc9 > #define PCI_DEVICE_ID_TEHUTI_3009 0x3009 > #define PCI_DEVICE_ID_TEHUTI_3010 0x3010 > -- > 2.20.1.12.g72788fdb > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
On 2023/5/23 00:04, Bjorn Helgaas wrote: > Please follow subject line capitalization style (learn it with "git > log --oneline include/linux/pci_ids.h"): > > PCI: Add Alibaba Vendor ID Sorry, I will rewrite the subject. > > On Mon, May 22, 2023 at 11:54:26AM +0800, Shuai Xue wrote: >> Move Alibaba Vendor ID (0x1ded) to linux/pci_ids.h so that it can shared by >> several drivers. > > It would be helpful for reviewers to list the drivers here, since only > one is obvious from the patch. Will add it. Then, the commit log should be: PCI: Add Alibaba Vendor ID to linux/pci_ids.h The Alibaba Vendor ID (0x1ded) is now only used by Alibaba elasticRDMA adapter driver. Move the Vendor ID to linux/pci_ids.h so that it can shared by several drivers later. > > Thanks for sorting the entry correctly! Aha, you are welcome :) Thank you for valuable comments. Best Regards, Shuai > >> Signed-off-by: Shuai Xue <xueshuai@linux.alibaba.com> >> --- >> drivers/infiniband/hw/erdma/erdma_hw.h | 2 -- >> include/linux/pci_ids.h | 2 ++ >> 2 files changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/drivers/infiniband/hw/erdma/erdma_hw.h b/drivers/infiniband/hw/erdma/erdma_hw.h >> index 76ce2856be28..ee35ebef9ee7 100644 >> --- a/drivers/infiniband/hw/erdma/erdma_hw.h >> +++ b/drivers/infiniband/hw/erdma/erdma_hw.h >> @@ -11,8 +11,6 @@ >> #include <linux/types.h> >> >> /* PCIe device related definition. */ >> -#define PCI_VENDOR_ID_ALIBABA 0x1ded >> - >> #define ERDMA_PCI_WIDTH 64 >> #define ERDMA_FUNC_BAR 0 >> #define ERDMA_MISX_BAR 2 >> diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h >> index 95f33dadb2be..9e8aec472f06 100644 >> --- a/include/linux/pci_ids.h >> +++ b/include/linux/pci_ids.h >> @@ -2586,6 +2586,8 @@ >> #define PCI_VENDOR_ID_TEKRAM 0x1de1 >> #define PCI_DEVICE_ID_TEKRAM_DC290 0xdc29 >> >> +#define PCI_VENDOR_ID_ALIBABA 0x1ded >> + >> #define PCI_VENDOR_ID_TEHUTI 0x1fc9 >> #define PCI_DEVICE_ID_TEHUTI_3009 0x3009 >> #define PCI_DEVICE_ID_TEHUTI_3010 0x3010 >> -- >> 2.20.1.12.g72788fdb >> >> >> _______________________________________________ >> linux-arm-kernel mailing list >> linux-arm-kernel@lists.infradead.org >> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
On Tue, May 23, 2023 at 11:22:08AM +0800, Shuai Xue wrote: > The Alibaba Vendor ID (0x1ded) is now only used by Alibaba elasticRDMA > adapter driver. Move the Vendor ID to linux/pci_ids.h so that it can shared > by several drivers later. Well, not exactly. We don't want to merge changes that might be used by unspecified drivers later. We only want to merge things that are needed *now*, i.e., when this complete series is merged. In this case, I think it will be used by another driver that is part of this series ("dwc_pcie_pmu"), so the commit log should mention both Alibaba elasticRDMA ("erdma"?) and "dwc_pcie_pmu". Bjorn
On 2023/5/23 19:54, Bjorn Helgaas wrote: > On Tue, May 23, 2023 at 11:22:08AM +0800, Shuai Xue wrote: > >> The Alibaba Vendor ID (0x1ded) is now only used by Alibaba elasticRDMA >> adapter driver. Move the Vendor ID to linux/pci_ids.h so that it can shared >> by several drivers later. > > Well, not exactly. We don't want to merge changes that might be used > by unspecified drivers later. We only want to merge things that are > needed *now*, i.e., when this complete series is merged. > > > In this case, I think it will be used by another driver that is part > of this series ("dwc_pcie_pmu"), so the commit log should mention both > Alibaba elasticRDMA ("erdma"?) and "dwc_pcie_pmu". > > Bjorn Yes, I have noticed the policy in head of include/linux/pci_ids.h. > * Do not add new entries to this file unless the definitions > * are shared between multiple drivers. Actually, I mentioned both Alibaba elasticRDMA ("erdma") and PCIe PMU "dwc_pcie_pmu" in initial draft. But I realized that dwc_pcie_pmu is still in review, so I dropped it finally. :( Anyway, I will add it back. Hope you are happy the bellow changes: PCI: Add Alibaba Vendor ID to linux/pci_ids.h The Alibaba Vendor ID (0x1ded) is now used by Alibaba elasticRDMA ("erdma") and will be shared with the upcoming PCIe PMU ("dwc_pcie_pmu"). Move the Vendor ID to linux/pci_ids.h so that it can shared by several drivers later. Thank you. Best Regards, Shuai
diff --git a/drivers/infiniband/hw/erdma/erdma_hw.h b/drivers/infiniband/hw/erdma/erdma_hw.h index 76ce2856be28..ee35ebef9ee7 100644 --- a/drivers/infiniband/hw/erdma/erdma_hw.h +++ b/drivers/infiniband/hw/erdma/erdma_hw.h @@ -11,8 +11,6 @@ #include <linux/types.h> /* PCIe device related definition. */ -#define PCI_VENDOR_ID_ALIBABA 0x1ded - #define ERDMA_PCI_WIDTH 64 #define ERDMA_FUNC_BAR 0 #define ERDMA_MISX_BAR 2 diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index 95f33dadb2be..9e8aec472f06 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h @@ -2586,6 +2586,8 @@ #define PCI_VENDOR_ID_TEKRAM 0x1de1 #define PCI_DEVICE_ID_TEKRAM_DC290 0xdc29 +#define PCI_VENDOR_ID_ALIBABA 0x1ded + #define PCI_VENDOR_ID_TEHUTI 0x1fc9 #define PCI_DEVICE_ID_TEHUTI_3009 0x3009 #define PCI_DEVICE_ID_TEHUTI_3010 0x3010