From patchwork Tue Nov 21 01:33:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuai Xue X-Patchwork-Id: 167457 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2b07:b0:403:3b70:6f57 with SMTP id io7csp336020vqb; Mon, 20 Nov 2023 17:34:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IE9qNz58huUUP4RSn0i/8N57muyAWVYOVnJtyFraJ8J4kdMtJqRZuVq4pWMwPqPKeWeE2sA X-Received: by 2002:a17:903:2450:b0:1cf:662b:452b with SMTP id l16-20020a170903245000b001cf662b452bmr3547557pls.57.1700530479910; Mon, 20 Nov 2023 17:34:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700530479; cv=none; d=google.com; s=arc-20160816; b=BzTjXI5uzmO/BM/Qd5ekpqPpYGqzUJikX5iSiO3UX6xZkrWjDwEZTmq5ohtzO1E3vX iDJrntYiP4vMyDAVnKiuTB9q7empfeoCBbLviT2kft68SHapgdefq6LduEHmvbtYyhcD uNVwj31aLnEARFMlkB+kp7UjbVHm9LuqBTdHJAQKURo688cd1Auwv690FuZnJ3F8K5jx RBcS4+VqpY1Q6UYm0XYIHmTSS+cvnN+95mVJzGkelu//tTwDFqOZCvLZXUzuEIvQDwKx QkmwMORE8zTH/YFKCEYo76R68iK9HwZnWwhY81FyasAe2WliEprkqmoCANhrR26PQTYI hwlw== 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=fkquFTeKTyEbw50FrJROVYwJhbmOX//Un0Fmu9F1tds=; fh=2hzC1URdKzP64w5tkSn/w/YwPHt0ac8Eb46OoMsWGDo=; b=MpobtUJ6ZDoPyZ3XJ16eu6VDf3MThLvUvsmKuaYXcirnOVykQpaOWOEisO7UUyYo36 FVhBd1qfVkGM8JR7mIanI+OLousNESx+E/rNn/xSXN5l4njmO+glm3+XDSKZqKK+R64j d42fvY3n78/sYTTtGhwEOqUEQbpTh4Ow7L6Hy4+QfDl0VH4BBqJHUuqNh8pRtWmpqty6 ASVVhdgP+QON/lDL7TYKIFFYBuVmqiok0kUvOipHeDqNvLSIGvAwTrO5TPO6KMB1vOxr sZuhfntn2PdslPTfcgD1k+Ya9mlXGMehs8VlVlg69//EASKS6Y62HUwtZtBudlDcNhBT UPcw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id n4-20020a170902f60400b001c9cc3a07c3si9979714plg.280.2023.11.20.17.34.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 17:34:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 04CF080D44D9; Mon, 20 Nov 2023 17:34:38 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232986AbjKUBeV (ORCPT + 27 others); Mon, 20 Nov 2023 20:34:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229490AbjKUBeR (ORCPT ); Mon, 20 Nov 2023 20:34:17 -0500 Received: from out30-133.freemail.mail.aliyun.com (out30-133.freemail.mail.aliyun.com [115.124.30.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16239A2; Mon, 20 Nov 2023 17:34:13 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;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=17;SR=0;TI=SMTPD_---0VwqXEh._1700530450; Received: from localhost.localdomain(mailfrom:xueshuai@linux.alibaba.com fp:SMTPD_---0VwqXEh._1700530450) by smtp.aliyun-inc.com; Tue, 21 Nov 2023 09:34:11 +0800 From: Shuai Xue To: ilkka@os.amperecomputing.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: chengyou@linux.alibaba.com, 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 v11 2/5] PCI: Add Alibaba Vendor ID to linux/pci_ids.h Date: Tue, 21 Nov 2023 09:33:57 +0800 Message-Id: <20231121013400.18367-3-xueshuai@linux.alibaba.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231121013400.18367-1-xueshuai@linux.alibaba.com> References: <20231121013400.18367-1-xueshuai@linux.alibaba.com> MIME-Version: 1.0 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, 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: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 20 Nov 2023 17:34:39 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783135448354920242 X-GMAIL-MSGID: 1783135448354920242 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 Tested-by: Ilkka Koskinen --- 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