From patchwork Tue Oct 17 01:32:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuai Xue X-Patchwork-Id: 153849 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp3835146vqb; Mon, 16 Oct 2023 18:33:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEuMQaChrb9FJiJ4YUJJVVkDBvz/kbuTM0B4cP0YArRO+1jDfwqtAyhiuqIOOM/i/iLKt8j X-Received: by 2002:a05:6e02:3d03:b0:34f:a4f0:4fc4 with SMTP id db3-20020a056e023d0300b0034fa4f04fc4mr1005992ilb.2.1697506413019; Mon, 16 Oct 2023 18:33:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697506412; cv=none; d=google.com; s=arc-20160816; b=Ind7gyD/hxpk0EhDu2DqMAUyV0eWI36FU8heOopbJBO3phA9dbAmls7S+MMI+CynTn fR1Yx7PRU+sDB9sbtkolzn1UpL+7sgeVotDV/NOfqR6CFsQPHewX6wxNkr/DTL8d21Cf WlIKEIle8Sl3b27k6uT43jzGfXUbZDA7v9qkpkAxGAv0VEQkxEwU5JMk3YxmjJMOiin6 1gACMvtGWoU3GYVkSd0nxCh3zgyLlZgPn3ap7eBv1F+vZ4YUlFzTztQfmpIQ1KICnN2M 662ieNlCvHGBXJVAxG3+aUW2eBDWnflQv/Qbo2IwduOtkx9dkIbJSFnphsoJdkEPLyVk 55/g== 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=jK+UQcFKki8drTI/f0U02O8gC4pXnNm9TKPLEvJHRnA=; fh=YXkgGQjdwWXuBCaq3y30jhH9NVaym0uEtdyVivwN948=; b=fmfQtWVW1MHVEaBdBS/aXudBeay6ImVYtDglldE6I+WT81LQCOX22Hj8YGv9iIhV4/ w1scBpdCWZoVlcEUgKNvVsQXKn1A8AsTdupxDawwEch6MtNdQVFEHc0Y7zDFpF/ITESF a9nrRLnTb9vR1kEkd3xapQUQYW3h0IiAXfiwA4XX/2W4rI4+6tgsvLGFT08uQga0+ZqF 0PVt3QVnvJBnhTAaTWTFBe7COHskaw38HrqRHu/Isk6dVAVtsJPYX8clx5k3vUdvceJJ R4i3jMzxJh0rBSFZQLfs5hRHuk+ITy3azYilQ4/7JXX9Z3am5Yydi0jBJhxcfcHzCGA0 p7OQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id i13-20020a63e44d000000b0059cdf90b9b2si636214pgk.685.2023.10.16.18.33.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 18:33:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 1134B80B7AEC; Mon, 16 Oct 2023 18:33:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234327AbjJQBdC (ORCPT + 18 others); Mon, 16 Oct 2023 21:33:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234169AbjJQBc6 (ORCPT ); Mon, 16 Oct 2023 21:32:58 -0400 Received: from out30-101.freemail.mail.aliyun.com (out30-101.freemail.mail.aliyun.com [115.124.30.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DFE2AB; Mon, 16 Oct 2023 18:32:56 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R741e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046059;MF=xueshuai@linux.alibaba.com;NM=1;PH=DS;RN=16;SR=0;TI=SMTPD_---0VuL0Vw-_1697506373; Received: from localhost.localdomain(mailfrom:xueshuai@linux.alibaba.com fp:SMTPD_---0VuL0Vw-_1697506373) by smtp.aliyun-inc.com; Tue, 17 Oct 2023 09:32:54 +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 v8 2/4] PCI: Add Alibaba Vendor ID to linux/pci_ids.h Date: Tue, 17 Oct 2023 09:32:33 +0800 Message-Id: <20231017013235.27831-3-xueshuai@linux.alibaba.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231017013235.27831-1-xueshuai@linux.alibaba.com> References: <20231017013235.27831-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 agentk.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 (agentk.vger.email [0.0.0.0]); Mon, 16 Oct 2023 18:33:31 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779964484193008986 X-GMAIL-MSGID: 1779964484193008986 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