From patchwork Thu Aug 10 12:21:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gowrishankar Muthukrishnan X-Patchwork-Id: 130078 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 438BB43026; Thu, 10 Aug 2023 14:21:29 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 73A8D43258; Thu, 10 Aug 2023 14:21:25 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 3631A410FD for ; Thu, 10 Aug 2023 14:21:23 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 37A8XuGU020364; Thu, 10 Aug 2023 05:21:22 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=x2wDxxaIZQZ0NBFj8AKdsO3q4vSAfQsYu5w3pnH9QCQ=; b=aA7HLyVwZ0IYs4arN1dM3Hl3dRmunym+i+tXmtZrb1NJp5gns/z5l2+Ji72kS+Z1y7FW stKzz40zwnWpBZiaPflq2CwCAgJAuC1PTIPedFpH7IVfEwMhhQ6yeRO2J4ANcUUjQ0mO pP3vje7Zmb51yt+6X6AE++1rgqvmxMPLdpUjxy0dPVNNo8ZbunD+Bo028jbuPTtyjiCx ynvvC5M84jiE39hYStd3BtTh0diTWBRiSy+osr6OJuTtZo9/cgmOADIaFiMhPdBdQKFE CALae9M6IZUAxvC2BtNbApPCcMh4+99altm/NFEXcs7pb5guXuLGO4s6+AcUt6KN2Pfx PA== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3scj5makkg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 10 Aug 2023 05:21:22 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Thu, 10 Aug 2023 05:21:20 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Thu, 10 Aug 2023 05:21:20 -0700 Received: from BG-LT91401.marvell.com (BG-LT91401.marvell.com [10.28.168.34]) by maili.marvell.com (Postfix) with ESMTP id E26735B6935; Thu, 10 Aug 2023 05:21:17 -0700 (PDT) From: Gowrishankar Muthukrishnan To: CC: , Chengwen Feng , "Vamsi Attunuru" , Gowrishankar Muthukrishnan Subject: [PATCH 1/4] dmadev: add function to get list of device identifiers Date: Thu, 10 Aug 2023 17:51:08 +0530 Message-ID: <20230810122111.2329-2-gmuthukrishn@marvell.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20230810122111.2329-1-gmuthukrishn@marvell.com> References: <20230810122111.2329-1-gmuthukrishn@marvell.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: lhoheL-OSEf7gXPzcR-pg4dJb5XyNLfl X-Proofpoint-GUID: lhoheL-OSEf7gXPzcR-pg4dJb5XyNLfl X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-10_10,2023-08-10_01,2023-05-22_02 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 Add a function to get list of device identifiers for a given driver name. Signed-off-by: Gowrishankar Muthukrishnan --- lib/dmadev/rte_dmadev.c | 20 ++++++++++++++++++++ lib/dmadev/rte_dmadev.h | 21 +++++++++++++++++++++ lib/dmadev/version.map | 1 + 3 files changed, 42 insertions(+) diff --git a/lib/dmadev/rte_dmadev.c b/lib/dmadev/rte_dmadev.c index 8c095e1f35..f2a106564d 100644 --- a/lib/dmadev/rte_dmadev.c +++ b/lib/dmadev/rte_dmadev.c @@ -388,6 +388,26 @@ rte_dma_get_dev_id_by_name(const char *name) return dev->data->dev_id; } +uint8_t +rte_dma_get_dev_list_by_driver(const char *name, int16_t *devs, uint8_t nb_devs) +{ + uint8_t i, count = 0; + + if (name == NULL) + return count; + + for (i = 0; i < dma_devices_max && count < nb_devs; i++) { + if (rte_dma_devices[i].state == RTE_DMA_DEV_UNUSED) + continue; + + if (strncmp(rte_dma_devices[i].device->driver->name, + name, strlen(name) + 1) == 0) + devs[count++] = i; + } + + return count; +} + bool rte_dma_is_valid(int16_t dev_id) { diff --git a/lib/dmadev/rte_dmadev.h b/lib/dmadev/rte_dmadev.h index e61d71959e..689062a686 100644 --- a/lib/dmadev/rte_dmadev.h +++ b/lib/dmadev/rte_dmadev.h @@ -191,6 +191,27 @@ int rte_dma_dev_max(size_t dev_max); __rte_experimental int rte_dma_get_dev_id_by_name(const char *name); +/** + * @warning + * @b EXPERIMENTAL: this API may change without prior notice. + * + * Get the list of device identifiers for the DMA driver. + * + * @param name + * DMA driver name. + * @param devs + * Output devices identifiers. + * @param nb_devs + * Maximal number of devices. + * + * @return + * Returns number of device identifiers. + */ +__rte_experimental +uint8_t rte_dma_get_dev_list_by_driver(const char *name, + int16_t *devs, + uint8_t nb_devs); + /** * @warning * @b EXPERIMENTAL: this API may change without prior notice. diff --git a/lib/dmadev/version.map b/lib/dmadev/version.map index 7031d6b335..b4d56b41a0 100644 --- a/lib/dmadev/version.map +++ b/lib/dmadev/version.map @@ -7,6 +7,7 @@ EXPERIMENTAL { rte_dma_dev_max; rte_dma_dump; rte_dma_get_dev_id_by_name; + rte_dma_get_dev_list_by_driver; rte_dma_info_get; rte_dma_is_valid; rte_dma_next_dev; From patchwork Thu Aug 10 12:21:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gowrishankar Muthukrishnan X-Patchwork-Id: 130079 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D712D43026; Thu, 10 Aug 2023 14:21:36 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DEF0543264; Thu, 10 Aug 2023 14:21:26 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 3C99843254 for ; Thu, 10 Aug 2023 14:21:25 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 37AAUcbs010098; Thu, 10 Aug 2023 05:21:24 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=mI/tWqSYZILFID7AQfN8n52y57ZN97yYEO+YUhoZ/rg=; b=BtQGJq45nKG95KZLvITHPEPjLGp2KcYJR/2gGNzHNwriO+TQb5nLAudfaxFetn+/gq/H o2alcu+Q66vS3k4x6Yc4yvfYObJrU6CQssmu7lU+uSQciOdnNWJ/8Emz2PSDnBcKajqy haLSjg4+xY7Pmi4MJx67nW6EsMVNdIpJwpGa6TfqWfHwuMN11/MkCDb35QEvLX4rHmgY dgg9lkN0uEyju00Z1WFmIRRrfliKL6Bpp5QSchAI3t2rjbKd/5vISblhi01vBfZ1dkuO R0hfDBO5jcS39p/HW3v1wK6SZQMo7bex09WVpgz6x3ei1DZKfcWlAkHsRCcHlBQx1iAs Ew== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3scx718b87-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 10 Aug 2023 05:21:23 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Thu, 10 Aug 2023 05:21:22 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Thu, 10 Aug 2023 05:21:22 -0700 Received: from BG-LT91401.marvell.com (BG-LT91401.marvell.com [10.28.168.34]) by maili.marvell.com (Postfix) with ESMTP id 6E6625B6933; Thu, 10 Aug 2023 05:21:20 -0700 (PDT) From: Gowrishankar Muthukrishnan To: CC: , Chengwen Feng , "Vamsi Attunuru" , Gowrishankar Muthukrishnan Subject: [PATCH 2/4] test/dma: run tests according to PMD Date: Thu, 10 Aug 2023 17:51:09 +0530 Message-ID: <20230810122111.2329-3-gmuthukrishn@marvell.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20230810122111.2329-1-gmuthukrishn@marvell.com> References: <20230810122111.2329-1-gmuthukrishn@marvell.com> MIME-Version: 1.0 X-Proofpoint-GUID: RDOuTJ1IQjmFeuXieq5uyr9re35lEoq3 X-Proofpoint-ORIG-GUID: RDOuTJ1IQjmFeuXieq5uyr9re35lEoq3 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-10_10,2023-08-10_01,2023-05-22_02 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 Run tests according to PMD configured. Signed-off-by: Gowrishankar Muthukrishnan --- app/test/meson.build | 7 +++- app/test/test_dmadev.c | 87 +++++++++++++++++++++++++++++++----------- 2 files changed, 71 insertions(+), 23 deletions(-) diff --git a/app/test/meson.build b/app/test/meson.build index 66897c14a3..de671b665f 100644 --- a/app/test/meson.build +++ b/app/test/meson.build @@ -319,7 +319,12 @@ driver_test_names = [ 'cryptodev_sw_snow3g_autotest', 'cryptodev_sw_zuc_autotest', 'cryptodev_uadk_autotest', - 'dmadev_autotest', + 'dmadev_dpaa_autotest', + 'dmadev_dpaa2_autotest', + 'dmadev_hisilicon_autotest', + 'dmadev_idxd_autotest', + 'dmadev_ioat_autotest', + 'dmadev_skeleton_autotest', ] dump_test_names = [] diff --git a/app/test/test_dmadev.c b/app/test/test_dmadev.c index abe970baaf..5e72e8535c 100644 --- a/app/test/test_dmadev.c +++ b/app/test/test_dmadev.c @@ -1025,40 +1025,83 @@ test_dmadev_instance(int16_t dev_id) } static int -test_apis(void) +test_dma(const char *pmd) +{ + int16_t devs[UINT8_MAX]; + uint8_t nb_devs; + int i; + + if (rte_dma_count_avail() == 0) + return TEST_SKIPPED; + + nb_devs = rte_dma_get_dev_list_by_driver(pmd, devs, UINT8_MAX); + if (nb_devs == 0) + ERR_RETURN("Error, No device found for pmd %s\n", pmd); + + printf("\n### Test dmadev infrastructure using %s driver\n", pmd); + if (test_dma_api(devs[0]) < 0) + ERR_RETURN("Error, test failure for %d device\n", devs[0]); + + for (i = 0; i < nb_devs; i++) + if (test_dmadev_instance(devs[i]) < 0) + ERR_RETURN("Error, test failure for %d device\n", devs[i]); + + return 0; +} + +static int +test_skeleton_dma(void) { const char *pmd = "dma_skeleton"; - int id; - int ret; - /* attempt to create skeleton instance - ignore errors due to one being already present */ + /* Attempt to create skeleton instance - ignore errors due to one being already present */ rte_vdev_init(pmd, NULL); - id = rte_dma_get_dev_id_by_name(pmd); - if (id < 0) - return TEST_SKIPPED; - printf("\n### Test dmadev infrastructure using skeleton driver\n"); - ret = test_dma_api(id); + return test_dma(pmd); +} - return ret; +static int +test_dpaa_dma(void) +{ + const char *pmd = "dpaa_qdma"; + + return test_dma(pmd); } static int -test_dma(void) +test_dpaa2_dma(void) { - int i; + const char *pmd = "dpaa2_qdma"; - /* basic sanity on dmadev infrastructure */ - if (test_apis() < 0) - ERR_RETURN("Error performing API tests\n"); + return test_dma(pmd); +} - if (rte_dma_count_avail() == 0) - return TEST_SKIPPED; +static int +test_hisilicon_dma(void) +{ + const char *pmd = "dma_hisilicon"; - RTE_DMA_FOREACH_DEV(i) - if (test_dmadev_instance(i) < 0) - ERR_RETURN("Error, test failure for device %d\n", i); + return test_dma(pmd); +} - return 0; +static int +test_idxd_dma(void) +{ + const char *pmd = "dmadev_idxd_pci"; + + return test_dma(pmd); +} + +static int +test_ioat_dma(void) +{ + const char *pmd = "dmadev_ioat"; + + return test_dma(pmd); } -REGISTER_TEST_COMMAND(dmadev_autotest, test_dma); +REGISTER_TEST_COMMAND(dmadev_skeleton_autotest, test_skeleton_dma); +REGISTER_TEST_COMMAND(dmadev_dpaa_autotest, test_dpaa_dma); +REGISTER_TEST_COMMAND(dmadev_dpaa2_autotest, test_dpaa2_dma); +REGISTER_TEST_COMMAND(dmadev_hisilicon_autotest, test_hisilicon_dma); +REGISTER_TEST_COMMAND(dmadev_idxd_autotest, test_idxd_dma); +REGISTER_TEST_COMMAND(dmadev_ioat_autotest, test_ioat_dma); From patchwork Thu Aug 10 12:21:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gowrishankar Muthukrishnan X-Patchwork-Id: 130080 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 009B043026; Thu, 10 Aug 2023 14:21:42 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 09FC143257; Thu, 10 Aug 2023 14:21:29 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 9041043267 for ; Thu, 10 Aug 2023 14:21:27 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 37A8YKX9021020; Thu, 10 Aug 2023 05:21:27 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=jOjjt8k+PqnaoZx2/o0xh+wugISSoYF2/ipOgxNa42o=; b=Gsiw5meMtEg0sw7UnKuvF/3Zs2IyTPzLpPWK7o3g47pEJJk3Q7Iq22XhJlELBwtqkTfz 9UQIdY/tKwa6/N8bRhhrHvQ/OzZ+cMp/dTGlHbmXdDrnNz5Yn0BVsqiDbO7ExgnbZyLj KLNgIl+zUYFfnVmYNm+ezP+jKMn6v0ZOiEhax7reN8ivJRMpcoBWO674lc/EkNS9/QYC PvvzFlOS/jbdR7aBkz63c4JeUPtfx9Xurxp/enoQybpfhnvZNZJ5lpxzi/y4CXl2fT+A 0ici+B9RTzseA3Oq/hTSbzKTnxxIcMu+PBe6zssbXFKD26Rrb0IzyO/5rRwo3LJmCNJC tA== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3scj5makkm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 10 Aug 2023 05:21:26 -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.48; Thu, 10 Aug 2023 05:21:25 -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.48 via Frontend Transport; Thu, 10 Aug 2023 05:21:25 -0700 Received: from BG-LT91401.marvell.com (BG-LT91401.marvell.com [10.28.168.34]) by maili.marvell.com (Postfix) with ESMTP id E82103F70AF; Thu, 10 Aug 2023 05:21:22 -0700 (PDT) From: Gowrishankar Muthukrishnan To: CC: , Chengwen Feng , "Vamsi Attunuru" , Gowrishankar Muthukrishnan Subject: [PATCH 3/4] dma/cnxk: update PCI driver name Date: Thu, 10 Aug 2023 17:51:10 +0530 Message-ID: <20230810122111.2329-4-gmuthukrishn@marvell.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20230810122111.2329-1-gmuthukrishn@marvell.com> References: <20230810122111.2329-1-gmuthukrishn@marvell.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: QhigN63JaWxneaKcGeoq1cMK-MNi53w- X-Proofpoint-GUID: QhigN63JaWxneaKcGeoq1cMK-MNi53w- X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-10_10,2023-08-10_01,2023-05-22_02 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 Follow PCI driver naming convention standard across drivers. Signed-off-by: Gowrishankar Muthukrishnan --- drivers/dma/cnxk/cnxk_dmadev.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/dma/cnxk/cnxk_dmadev.c b/drivers/dma/cnxk/cnxk_dmadev.c index a6f4a31e0e..8c5d1409b3 100644 --- a/drivers/dma/cnxk/cnxk_dmadev.c +++ b/drivers/dma/cnxk/cnxk_dmadev.c @@ -17,6 +17,8 @@ #include #include +#define PCI_DRIVER_NAME dma_cnxk + static int cnxk_dmadev_info_get(const struct rte_dma_dev *dev, struct rte_dma_info *dev_info, uint32_t size) @@ -719,6 +721,6 @@ static struct rte_pci_driver cnxk_dmadev = { .remove = cnxk_dmadev_remove, }; -RTE_PMD_REGISTER_PCI(cnxk_dmadev_pci_driver, cnxk_dmadev); -RTE_PMD_REGISTER_PCI_TABLE(cnxk_dmadev_pci_driver, cnxk_dma_pci_map); -RTE_PMD_REGISTER_KMOD_DEP(cnxk_dmadev_pci_driver, "vfio-pci"); +RTE_PMD_REGISTER_PCI(PCI_DRIVER_NAME, cnxk_dmadev); +RTE_PMD_REGISTER_PCI_TABLE(PCI_DRIVER_NAME, cnxk_dma_pci_map); +RTE_PMD_REGISTER_KMOD_DEP(PCI_DRIVER_NAME, "vfio-pci"); From patchwork Thu Aug 10 12:21:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gowrishankar Muthukrishnan X-Patchwork-Id: 130081 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B982D43026; Thu, 10 Aug 2023 14:21:48 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 313314325E; Thu, 10 Aug 2023 14:21:32 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 6A3F343269 for ; Thu, 10 Aug 2023 14:21:30 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 37A8YNW1021056; Thu, 10 Aug 2023 05:21:29 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=rezavFQtH6OLGlRugk9tGf6ztcf0/dlTJJ3dWDZ7l/w=; b=YUaAJ7MeygJYsJdt/SlMIxzZEGpJ6j9LqyzXy8EiQgZ09FiWn+Zbpe6zMMogdOpIM7pJ OyZSZnbfn83V0QbpYdZK1hiL7TVOGLSotd5joLAUiMw1fl/QZ7ma2K/ysVcJ8qHettHF xfS+ypWE39NtjiZ3QGYmrptI7FiJsCeKL98VtPEuRZ3B1hP8l9TMxg0M1GkfO+EBLYzQ 6NslLlS+AaagTZofmeF6ZjXOLd+yvcvsmNIOfmEJB6tr0dJ28eEwZQbIAhckXL7FNlos 0lbuQVzpJX+Ga+jo821xR0QRpzUWeZ78HAnZeLXcVFHhnCjWcqtjza8afszhgpX/4HOM zQ== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3scj5makkr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 10 Aug 2023 05:21:29 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Thu, 10 Aug 2023 05:21:27 -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.48 via Frontend Transport; Thu, 10 Aug 2023 05:21:27 -0700 Received: from BG-LT91401.marvell.com (BG-LT91401.marvell.com [10.28.168.34]) by maili.marvell.com (Postfix) with ESMTP id 77DE33F70AB; Thu, 10 Aug 2023 05:21:25 -0700 (PDT) From: Gowrishankar Muthukrishnan To: CC: , Chengwen Feng , "Vamsi Attunuru" , Gowrishankar Muthukrishnan Subject: [PATCH 4/4] test/dma: enable cnxk tests Date: Thu, 10 Aug 2023 17:51:11 +0530 Message-ID: <20230810122111.2329-5-gmuthukrishn@marvell.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20230810122111.2329-1-gmuthukrishn@marvell.com> References: <20230810122111.2329-1-gmuthukrishn@marvell.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: OoxZ64oYCdhOwjRTFFU7uIthDBPi9Ah6 X-Proofpoint-GUID: OoxZ64oYCdhOwjRTFFU7uIthDBPi9Ah6 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-10_10,2023-08-10_01,2023-05-22_02 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 Enable DMA tests for CNXK driver. Signed-off-by: Gowrishankar Muthukrishnan --- app/test/meson.build | 1 + app/test/test_dmadev.c | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/app/test/meson.build b/app/test/meson.build index de671b665f..fa5987f3a2 100644 --- a/app/test/meson.build +++ b/app/test/meson.build @@ -319,6 +319,7 @@ driver_test_names = [ 'cryptodev_sw_snow3g_autotest', 'cryptodev_sw_zuc_autotest', 'cryptodev_uadk_autotest', + 'dmadev_cnxk_autotest', 'dmadev_dpaa_autotest', 'dmadev_dpaa2_autotest', 'dmadev_hisilicon_autotest', diff --git a/app/test/test_dmadev.c b/app/test/test_dmadev.c index 5e72e8535c..090a6e3ce3 100644 --- a/app/test/test_dmadev.c +++ b/app/test/test_dmadev.c @@ -1099,9 +1099,18 @@ test_ioat_dma(void) return test_dma(pmd); } +static int +test_cnxk_dma(void) +{ + const char *pmd = "dma_cnxk"; + + return test_dma(pmd); +} + REGISTER_TEST_COMMAND(dmadev_skeleton_autotest, test_skeleton_dma); REGISTER_TEST_COMMAND(dmadev_dpaa_autotest, test_dpaa_dma); REGISTER_TEST_COMMAND(dmadev_dpaa2_autotest, test_dpaa2_dma); REGISTER_TEST_COMMAND(dmadev_hisilicon_autotest, test_hisilicon_dma); REGISTER_TEST_COMMAND(dmadev_idxd_autotest, test_idxd_dma); REGISTER_TEST_COMMAND(dmadev_ioat_autotest, test_ioat_dma); +REGISTER_TEST_COMMAND(dmadev_cnxk_autotest, test_cnxk_dma);