From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id F3482A0A0C; Fri, 9 Jul 2021 08:29:19 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AF9D44014D; Fri, 9 Jul 2021 08:29:19 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 6A48F40143 for ; Fri, 9 Jul 2021 08:29:18 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 1696Avs2002338; Thu, 8 Jul 2021 23:29:17 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=2u5l1kXQWoit/2qzV1t/MeqN+qAssnwcAWUoM3wSmQE=; b=cZQM/Y99zRNOgu6N3q0IjmdNtOC/QQe+gzOVwA8UnGYbzOMAxPsJ8nP7eazzmWDwQnhl o/p8DiVy+5ArYHhmOq/S41pAtHCYBzXkDcCngMhAZDuVzg6KJx6gse7KOr1ZL0M/IW4/ SdqZIQxwSZLLRkBqj0JBHi6+nFtPQiJ8YUduVI5zFvLzK8OyRzIOjrxQy9WthN3BuCU1 F9aYAmy2KtARPJyejpI3+K8QxgJYEZUXD8HiUukpUhyaFiTUKbG/q+9bhD/4vq+KllYR 9DlFQrXLiAXl/N/99f/wpc7ppj5yVT+N9iiKKN6iKtecRr2kJgqb+nOiQlop+744xBAx mw== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com with ESMTP id 39pckd0w9s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 08 Jul 2021 23:29:17 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 8 Jul 2021 23:29:15 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Thu, 8 Jul 2021 23:29:15 -0700 Received: from HY-LT1002.marvell.com (unknown [10.193.70.144]) by maili.marvell.com (Postfix) with ESMTP id CBA973F703F; Thu, 8 Jul 2021 23:29:11 -0700 (PDT) From: Anoob Joseph To: Akhil Goyal , Thomas Monjalon , Ali Alnubani , David Marchand CC: Anoob Joseph , Jerin Jacob , "Ankur Dwivedi" , Tejasree Kondoj , Date: Fri, 9 Jul 2021 11:58:43 +0530 Message-ID: <1625812123-802-1-git-send-email-anoobj@marvell.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: mTz0Yp3yjXStibdKq1t3LTyFaAVgm2Qu X-Proofpoint-GUID: mTz0Yp3yjXStibdKq1t3LTyFaAVgm2Qu X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-07-09_01:2021-07-09, 2021-07-09 signatures=0 Subject: [dpdk-dev] [PATCH] crypto/cnxk: add PCI ID for cn9k X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Add PCI ID for crypo_cn9k PMD. To avoid conflicting PCI ID in crypto_octeontx2 and crypto_cn9k PMDs, disable crypto_cn9k PMD when built with octeontx2 config. The lack of PCI ID is causing debug build to fail for crypto_cn9k PMD. Reported-by: Ali Alnubani Suggested-by: David Marchand Signed-off-by: Anoob Joseph --- config/arm/arm64_octeontx2_linux_gcc | 1 + drivers/crypto/cnxk/cn9k_cryptodev.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/config/arm/arm64_octeontx2_linux_gcc b/config/arm/arm64_octeontx2_linux_gcc index 9156ee5..8fbdd38 100644 --- a/config/arm/arm64_octeontx2_linux_gcc +++ b/config/arm/arm64_octeontx2_linux_gcc @@ -14,3 +14,4 @@ endian = 'little' [properties] platform = 'octeontx2' +disable_drivers = 'common/cnxk' diff --git a/drivers/crypto/cnxk/cn9k_cryptodev.c b/drivers/crypto/cnxk/cn9k_cryptodev.c index e74e739..71d144f 100644 --- a/drivers/crypto/cnxk/cn9k_cryptodev.c +++ b/drivers/crypto/cnxk/cn9k_cryptodev.c @@ -21,6 +21,8 @@ uint8_t cn9k_cryptodev_driver_id; static struct rte_pci_id pci_id_cpt_table[] = { { + RTE_PCI_DEVICE(PCI_VENDOR_ID_CAVIUM, + PCI_DEVID_CN9K_RVU_CPT_VF) }, /* sentinel */ { -- 2.7.4