Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/130079/?format=api
http://patchwork.dpdk.org/api/patches/130079/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230810122111.2329-3-gmuthukrishn@marvell.com/", "project": { "id": 1, "url": "http://patchwork.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20230810122111.2329-3-gmuthukrishn@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230810122111.2329-3-gmuthukrishn@marvell.com", "date": "2023-08-10T12:21:09", "name": "[2/4] test/dma: run tests according to PMD", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "8cd02b736b74c4e07ea763b9fabd5092586a18fc", "submitter": { "id": 2301, "url": "http://patchwork.dpdk.org/api/people/2301/?format=api", "name": "Gowrishankar Muthukrishnan", "email": "gmuthukrishn@marvell.com" }, "delegate": { "id": 1, "url": "http://patchwork.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20230810122111.2329-3-gmuthukrishn@marvell.com/mbox/", "series": [ { "id": 29157, "url": "http://patchwork.dpdk.org/api/series/29157/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=29157", "date": "2023-08-10T12:21:07", "name": "test/dma: run tests as per configured pmd", "version": 1, "mbox": "http://patchwork.dpdk.org/series/29157/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/130079/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/130079/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "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])\n\tby inbox.dpdk.org (Postfix) with ESMTP id D712D43026;\n\tThu, 10 Aug 2023 14:21:36 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id DEF0543264;\n\tThu, 10 Aug 2023 14:21:26 +0200 (CEST)", "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174])\n by mails.dpdk.org (Postfix) with ESMTP id 3C99843254\n for <dev@dpdk.org>; Thu, 10 Aug 2023 14:21:25 +0200 (CEST)", "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id\n 37AAUcbs010098; Thu, 10 Aug 2023 05:21:24 -0700", "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3scx718b87-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Thu, 10 Aug 2023 05:21:23 -0700", "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48;\n Thu, 10 Aug 2023 05:21:22 -0700", "from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend\n Transport; Thu, 10 Aug 2023 05:21:22 -0700", "from BG-LT91401.marvell.com (BG-LT91401.marvell.com [10.28.168.34])\n by maili.marvell.com (Postfix) with ESMTP id 6E6625B6933;\n Thu, 10 Aug 2023 05:21:20 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : in-reply-to : references : mime-version :\n content-transfer-encoding : content-type; s=pfpt0220;\n bh=mI/tWqSYZILFID7AQfN8n52y57ZN97yYEO+YUhoZ/rg=;\n b=BtQGJq45nKG95KZLvITHPEPjLGp2KcYJR/2gGNzHNwriO+TQb5nLAudfaxFetn+/gq/H\n o2alcu+Q66vS3k4x6Yc4yvfYObJrU6CQssmu7lU+uSQciOdnNWJ/8Emz2PSDnBcKajqy\n haLSjg4+xY7Pmi4MJx67nW6EsMVNdIpJwpGa6TfqWfHwuMN11/MkCDb35QEvLX4rHmgY\n dgg9lkN0uEyju00Z1WFmIRRrfliKL6Bpp5QSchAI3t2rjbKd/5vISblhi01vBfZ1dkuO\n R0hfDBO5jcS39p/HW3v1wK6SZQMo7bex09WVpgz6x3ei1DZKfcWlAkHsRCcHlBQx1iAs Ew==", "From": "Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>", "To": "<dev@dpdk.org>", "CC": "<anoobj@marvell.com>, Chengwen Feng <fengchengwen@huawei.com>, \"Vamsi\n Attunuru\" <vattunuru@marvell.com>, Gowrishankar Muthukrishnan\n <gmuthukrishn@marvell.com>", "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", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Proofpoint-GUID": "RDOuTJ1IQjmFeuXieq5uyr9re35lEoq3", "X-Proofpoint-ORIG-GUID": "RDOuTJ1IQjmFeuXieq5uyr9re35lEoq3", "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26\n 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 <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "Run tests according to PMD configured.\n\nSigned-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>\n---\n app/test/meson.build | 7 +++-\n app/test/test_dmadev.c | 87 +++++++++++++++++++++++++++++++-----------\n 2 files changed, 71 insertions(+), 23 deletions(-)", "diff": "diff --git a/app/test/meson.build b/app/test/meson.build\nindex 66897c14a3..de671b665f 100644\n--- a/app/test/meson.build\n+++ b/app/test/meson.build\n@@ -319,7 +319,12 @@ driver_test_names = [\n 'cryptodev_sw_snow3g_autotest',\n 'cryptodev_sw_zuc_autotest',\n 'cryptodev_uadk_autotest',\n- 'dmadev_autotest',\n+ 'dmadev_dpaa_autotest',\n+ 'dmadev_dpaa2_autotest',\n+ 'dmadev_hisilicon_autotest',\n+ 'dmadev_idxd_autotest',\n+ 'dmadev_ioat_autotest',\n+ 'dmadev_skeleton_autotest',\n ]\n \n dump_test_names = []\ndiff --git a/app/test/test_dmadev.c b/app/test/test_dmadev.c\nindex abe970baaf..5e72e8535c 100644\n--- a/app/test/test_dmadev.c\n+++ b/app/test/test_dmadev.c\n@@ -1025,40 +1025,83 @@ test_dmadev_instance(int16_t dev_id)\n }\n \n static int\n-test_apis(void)\n+test_dma(const char *pmd)\n+{\n+\tint16_t devs[UINT8_MAX];\n+\tuint8_t nb_devs;\n+\tint i;\n+\n+\tif (rte_dma_count_avail() == 0)\n+\t\treturn TEST_SKIPPED;\n+\n+\tnb_devs = rte_dma_get_dev_list_by_driver(pmd, devs, UINT8_MAX);\n+\tif (nb_devs == 0)\n+\t\tERR_RETURN(\"Error, No device found for pmd %s\\n\", pmd);\n+\n+\tprintf(\"\\n### Test dmadev infrastructure using %s driver\\n\", pmd);\n+\tif (test_dma_api(devs[0]) < 0)\n+\t\tERR_RETURN(\"Error, test failure for %d device\\n\", devs[0]);\n+\n+\tfor (i = 0; i < nb_devs; i++)\n+\t\tif (test_dmadev_instance(devs[i]) < 0)\n+\t\t\tERR_RETURN(\"Error, test failure for %d device\\n\", devs[i]);\n+\n+\treturn 0;\n+}\n+\n+static int\n+test_skeleton_dma(void)\n {\n \tconst char *pmd = \"dma_skeleton\";\n-\tint id;\n-\tint ret;\n \n-\t/* attempt to create skeleton instance - ignore errors due to one being already present */\n+\t/* Attempt to create skeleton instance - ignore errors due to one being already present */\n \trte_vdev_init(pmd, NULL);\n-\tid = rte_dma_get_dev_id_by_name(pmd);\n-\tif (id < 0)\n-\t\treturn TEST_SKIPPED;\n-\tprintf(\"\\n### Test dmadev infrastructure using skeleton driver\\n\");\n-\tret = test_dma_api(id);\n+\treturn test_dma(pmd);\n+}\n \n-\treturn ret;\n+static int\n+test_dpaa_dma(void)\n+{\n+\tconst char *pmd = \"dpaa_qdma\";\n+\n+\treturn test_dma(pmd);\n }\n \n static int\n-test_dma(void)\n+test_dpaa2_dma(void)\n {\n-\tint i;\n+\tconst char *pmd = \"dpaa2_qdma\";\n \n-\t/* basic sanity on dmadev infrastructure */\n-\tif (test_apis() < 0)\n-\t\tERR_RETURN(\"Error performing API tests\\n\");\n+\treturn test_dma(pmd);\n+}\n \n-\tif (rte_dma_count_avail() == 0)\n-\t\treturn TEST_SKIPPED;\n+static int\n+test_hisilicon_dma(void)\n+{\n+\tconst char *pmd = \"dma_hisilicon\";\n \n-\tRTE_DMA_FOREACH_DEV(i)\n-\t\tif (test_dmadev_instance(i) < 0)\n-\t\t\tERR_RETURN(\"Error, test failure for device %d\\n\", i);\n+\treturn test_dma(pmd);\n+}\n \n-\treturn 0;\n+static int\n+test_idxd_dma(void)\n+{\n+\tconst char *pmd = \"dmadev_idxd_pci\";\n+\n+\treturn test_dma(pmd);\n+}\n+\n+static int\n+test_ioat_dma(void)\n+{\n+\tconst char *pmd = \"dmadev_ioat\";\n+\n+\treturn test_dma(pmd);\n }\n \n-REGISTER_TEST_COMMAND(dmadev_autotest, test_dma);\n+REGISTER_TEST_COMMAND(dmadev_skeleton_autotest, test_skeleton_dma);\n+REGISTER_TEST_COMMAND(dmadev_dpaa_autotest, test_dpaa_dma);\n+REGISTER_TEST_COMMAND(dmadev_dpaa2_autotest, test_dpaa2_dma);\n+REGISTER_TEST_COMMAND(dmadev_hisilicon_autotest, test_hisilicon_dma);\n+REGISTER_TEST_COMMAND(dmadev_idxd_autotest, test_idxd_dma);\n+REGISTER_TEST_COMMAND(dmadev_ioat_autotest, test_ioat_dma);\n", "prefixes": [ "2/4" ] }{ "id": 130079, "url": "