From patchwork Thu Oct 12 03:28:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuai Xue X-Patchwork-Id: 151681 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp957997vqb; Wed, 11 Oct 2023 20:29:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IERzCny/dxXxSuTR1hynozNk31Q6Tks0er8FxuSI7/9P9kGvAYBaM4cFD58dtmlNbf+qCfF X-Received: by 2002:a17:903:2306:b0:1bb:ac37:384b with SMTP id d6-20020a170903230600b001bbac37384bmr25685532plh.6.1697081381803; Wed, 11 Oct 2023 20:29:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697081381; cv=none; d=google.com; s=arc-20160816; b=JYTs4nVccpTirNGPh1KRhU9d0MG8PuA96ky1arDcTzil46N8k6wgyA5fhGTTQb7pli BFmUFP0vH7bd2LZOBzu2zTLoYSy+eA6Qk+QicDh92grxO3LvtHX7h8O9bojZqqecW8kH 5ZQL4KhaNXDy5wcC2nJQ7jHXo+6aokNOWderdbrjNmZZrfZsx1rb/6xSIlcARkqF1Axs 82dKjt6OVZQfeOPCKhKeGTPl9hBdKOZC8gw+Lk/QY6ze2XZqod50g7P2nLU1klLrDJ9A w0S8oXypNcb2aN/uzrUeBze/Z9CFUCrRODOSPJ0Qr5Nw76QZ5AmUlhAD8jIFNh2TruEk w8Ug== 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=qDj2mSK3LvorLTjjCLgLMVipI0pZMNwGJ8uCcF/dxbY=; fh=YXkgGQjdwWXuBCaq3y30jhH9NVaym0uEtdyVivwN948=; b=0pWn8HSb2aApW8cjTMiWGKq31VkLrV7XOmzrrTApKiHMbyPLCcD/kTjAgIyVDyQmRK PuQcZvsxf/djIHEUf1oQJEZ/XmgeKGgrpp7tfQf3u7s0sKysDYwdKWbCntu+LiH98/JQ ddvC6F1pyV1s0UKCJXOjDydwWNp4dGTqP45M6PuOCKz5/mvA5eaxppKz5jMo6ksdr6tR Psuaenlu6t3TBEBH7Sva0MZGXRY4E9d93INbJpOW26vyvPXmyCYJrcww65B+/EKZBbgd bZFxx7VrUO/7HBdMvlsOIG+oe0Ba/6SteVbDRYzGPUC7XC0LBdm7XgqDuAIAp6J76YVj ttUA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id x8-20020a170902b40800b001c38666f77dsi1061893plr.596.2023.10.11.20.29.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 20:29:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id F23DA801BAD3; Wed, 11 Oct 2023 20:29:39 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376865AbjJLD3V (ORCPT + 18 others); Wed, 11 Oct 2023 23:29:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376862AbjJLD3P (ORCPT ); Wed, 11 Oct 2023 23:29:15 -0400 Received: from out30-98.freemail.mail.aliyun.com (out30-98.freemail.mail.aliyun.com [115.124.30.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2122A9; Wed, 11 Oct 2023 20:29:12 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R131e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046060;MF=xueshuai@linux.alibaba.com;NM=1;PH=DS;RN=16;SR=0;TI=SMTPD_---0Vtyvp3x_1697081347; Received: from localhost.localdomain(mailfrom:xueshuai@linux.alibaba.com fp:SMTPD_---0Vtyvp3x_1697081347) by smtp.aliyun-inc.com; Thu, 12 Oct 2023 11:29:09 +0800 From: Shuai Xue 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, renyu.zj@linux.alibaba.com Subject: [PATCH v7 2/4] PCI: Add Alibaba Vendor ID to linux/pci_ids.h Date: Thu, 12 Oct 2023 11:28:54 +0800 Message-Id: <20231012032856.2640-3-xueshuai@linux.alibaba.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231012032856.2640-1-xueshuai@linux.alibaba.com> References: <20231012032856.2640-1-xueshuai@linux.alibaba.com> MIME-Version: 1.0 X-Spam-Status: No, score=-0.7 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 11 Oct 2023 20:29:40 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779518806587183526 X-GMAIL-MSGID: 1779518806587183526 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. Signed-off-by: Shuai Xue Acked-by: Bjorn Helgaas # pci_ids.h --- 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 9d316fdc6f9a..a155519a862f 100644 --- a/drivers/infiniband/hw/erdma/erdma_hw.h +++ b/drivers/infiniband/hw/erdma/erdma_hw.h @@ -11,8 +11,6 @@ #include /* 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 5fb3d4c393a9..d8760daf9e5a 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h @@ -2601,6 +2601,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