From patchwork Sat Nov 4 13:32:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuai Xue X-Patchwork-Id: 161590 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:8f47:0:b0:403:3b70:6f57 with SMTP id j7csp1651676vqu; Sat, 4 Nov 2023 06:32:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHQUTl4OEVpb3hpczY2BAlhI+j+sDivmp/hY3VbYQ59oLIG1UwgIHpR4DW2D2ympQKxVOjT X-Received: by 2002:a05:6e02:1aa7:b0:359:5389:c0dc with SMTP id l7-20020a056e021aa700b003595389c0dcmr8982138ilv.7.1699104777077; Sat, 04 Nov 2023 06:32:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699104777; cv=none; d=google.com; s=arc-20160816; b=NlgdVejLJct7jNAj4nyyDZjgcVyynNsEUJ7u6PNtRtPSjgQmE1xtuY+5XlFIPx7/+d b1F0DiDScPMk1ucyv6/dVseWpKBToFfs9QQWeczC9JHmPw/kJpp2FtM4n6ZqoPwD3GvQ E9EEkjJjp1R+bnJ7tM2ogLIUXUpgoV/p+/qqlas1V4C+yq20mIo9ZOpd8Tf1ROKVY2Nj d18qgbgj6gCryKoOyIXQbO8+4FpJewEli/cY511epAHhK2vSBsKumR+IsFn/gMAqylT6 oS0zqPEivNj5Q/ACwcwFv80Q1rULFG6WFNtAQsk3TYJZR76ye3Ho/PoukeV0oK+8IhIY eUaw== 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=JTFo9jksM3iJMk5d1s6bsW43YoyiK0Zjg5tW6S+IgPI=; b=b7//6t5UciecuRMUiskEzbe7MlLkILnLdXxQyIw8NLbzzmqrLf46tfhU6XsdIRXW56 QfNcwiDBico7/3VSOqzHAjFqzbfNZNY6FvQprRdRTqPAhUJGpft/Izqwd4uJxIGuk0Nl WFNE8iTXeoCbArHyYZyV9Gtg3rS2jn0S3RtTr9CKVMWPANhytA5qk0AyW6dvM3UZv2N0 JHVBlj7PqOud0mFxQOTYsw2krhn+Jr5dtweh5+8Zzm0o/ozxI7GZ5ngOna1VJ894DqPY fd8BPjN2yBRHgUfYBuBJEvZiQWSZi0doCMnpxywqFtEHwvvjhoIVQz3qrBDHMBnunaeT XfBA== 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 k131-20020a636f89000000b00582dcfe3b41si3697858pgc.374.2023.11.04.06.32.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Nov 2023 06:32:57 -0700 (PDT) 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 0925580BBE80; Sat, 4 Nov 2023 06:32:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232424AbjKDNcw (ORCPT + 35 others); Sat, 4 Nov 2023 09:32:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232283AbjKDNcl (ORCPT ); Sat, 4 Nov 2023 09:32:41 -0400 Received: from out30-132.freemail.mail.aliyun.com (out30-132.freemail.mail.aliyun.com [115.124.30.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 748C6D54; Sat, 4 Nov 2023 06:32:34 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R581e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046049;MF=xueshuai@linux.alibaba.com;NM=1;PH=DS;RN=16;SR=0;TI=SMTPD_---0VvcM-OH_1699104746; Received: from localhost.localdomain(mailfrom:xueshuai@linux.alibaba.com fp:SMTPD_---0VvcM-OH_1699104746) by smtp.aliyun-inc.com; Sat, 04 Nov 2023 21:32:27 +0800 From: Shuai Xue To: 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 v10 2/5] PCI: Add Alibaba Vendor ID to linux/pci_ids.h Date: Sat, 4 Nov 2023 21:32:13 +0800 Message-Id: <20231104133216.42056-3-xueshuai@linux.alibaba.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231104133216.42056-1-xueshuai@linux.alibaba.com> References: <20231104133216.42056-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_BLOCKED,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]); Sat, 04 Nov 2023 06:32:56 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781640490539119383 X-GMAIL-MSGID: 1781640490539119383 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