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 C232446364 for ; Fri, 7 Mar 2025 13:25:57 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B95124029E; Fri, 7 Mar 2025 13:25:57 +0100 (CET) Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) by mails.dpdk.org (Postfix) with ESMTP id A66B04029E for ; Fri, 7 Mar 2025 13:25:56 +0100 (CET) Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-4394345e4d5so10223845e9.0 for ; Fri, 07 Mar 2025 04:25:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741350356; x=1741955156; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Ma8f1VJtJlEfh7zyjCbWjuCPO7tBv+LPhbTPefjgMQo=; b=YfufzhEY/3ku0AVA56rbnfSw7Vhgje+s0CTXT9dzG1J1N1YYqCFpJbPptWYuJwbzUH XEqYst28j7JdjgHCEQM4Q3E7R62cud9mU3JL3CarRj1c2ojYMPcoC7fetgTNv7oV3xjN DBKSnyatczwZTzwmFiHFdPg9XEhRMsOHMTvzbUfIhME9stU10fT73BMaKnmjilU5RyTH RSDI3xDzCLtk9peL5amnfYbpv/73QS6O8l/WnUjceqc4w0YCSTrd7RaPofmVP+GjUg0o dXS/jOog4NZ+VgM4gGc9OIoiaSQrGrqzYnef9C6zlD3yEHGYybPnthVecDHp3ZzVlIRc yRqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741350356; x=1741955156; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ma8f1VJtJlEfh7zyjCbWjuCPO7tBv+LPhbTPefjgMQo=; b=Wt6ilJSYUJHs8hg+isXvXxGafNOKNADNPT2aLW6Rul1X33jXHp9eOhxGhy9M3d9q4N jBn+vQaN+s7Qdxo5UGLPxvEw1wWnLEoWVrBTdFsgyhJaLiL1ltk4QmyFytTP/KQbwU/8 pragaEVZBrSS//qptlM9mwerlYHswz3jNBk12SNG+SZT9JC8qT9wUw1WeXnWikqBd74H RoI3u7Qf9NJ3T3/Z8GgOIbiiRWlVs8n5f3uMIfx4M2ZEVq3vY5jH/JHE1nk1B86mo6+C aYx63dD0rXrerrNqYmy957IyakID+02dF4Un/6XHe12v2gv5kMuqPRPhETN2b2l/b1ZY rhqQ== X-Forwarded-Encrypted: i=1; AJvYcCW0yp9D30pHTvYSta+h7BFVo/IgYyjUtSTu8anECtRi87uk4CVAHru5h01N2zTpKmOc4XMiMsI=@dpdk.org X-Gm-Message-State: AOJu0YwnswNsPkTUy3TdacrxWjb5fpj5xSo+r9kRBnNSWDxkavlivllN xiEZ0qRkV+gF7LrBieQUyif/wKhZz2OKj+Gv3rhxk/j2NxXwBlSJ X-Gm-Gg: ASbGncuPTFEbUloWbAn3WHW7LQzv9EWF9Wjta0IfF1wOVPUmzDhinqGMrM87PIFTL8W t4uHwMV13ov9gjzF842pbO5Yit/7csjJQ3UPEUTDNzHosvUyIqsVxCs7UarQKbqmeoA9QlUnpqw IXqhnBaPj7Aa9/sLWj8kufMJW7Mq/d+o49sjGxL//H229NoYthxOu97VhbKqwzSBJODbEWvCN9E OeJnsmDIoFoPKAf6l8JfS2Dfcpf4sZZ0mgE0EQPAA1b0LeZUvL8AaMcAahBwwjoGJnE/EqOwbVU vtHYCeqnP1nywVBwuO0UCfTwPFZZpK8T5JSvSB1afVEiDGh3tIc= X-Google-Smtp-Source: AGHT+IFwClgwwmqoBortu5HQTCqwtasRPqkJgEfsEAmz5j9DV/QePF3nLw8mGMKlMvvNqCfaU0rNiA== X-Received: by 2002:a05:600c:1990:b0:439:8523:36cc with SMTP id 5b1f17b1804b1-43c601d9172mr27252675e9.11.1741350356016; Fri, 07 Mar 2025 04:25:56 -0800 (PST) Received: from localhost ([2a01:4b00:d036:ae00:ff31:f049:bd38:f7cf]) by smtp.gmail.com with UTF8SMTPSA id 5b1f17b1804b1-43bd42c588dsm78247015e9.21.2025.03.07.04.25.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Mar 2025 04:25:55 -0800 (PST) From: luca.boccassi@gmail.com To: Bruce Richardson Cc: Chengwen Feng , dpdk stable Subject: patch 'test/dma: fix pointers in IOVA as PA mode' has been queued to stable release 22.11.8 Date: Fri, 7 Mar 2025 12:24:25 +0000 Message-ID: <20250307122431.1415551-26-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250307122431.1415551-1-luca.boccassi@gmail.com> References: <20250217170456.1068278-79-luca.boccassi@gmail.com> <20250307122431.1415551-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi, FYI, your patch has been queued to stable release 22.11.8 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 03/09/25. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/5803110850a7d8d24d03da7a223dde5de8a798dd Thanks. Luca Boccassi --- >From 5803110850a7d8d24d03da7a223dde5de8a798dd Mon Sep 17 00:00:00 2001 From: Bruce Richardson Date: Thu, 27 Feb 2025 13:27:49 +0000 Subject: [PATCH] test/dma: fix pointers in IOVA as PA mode [ upstream commit 5879d209d847c1025d0852dad7f3bee3e5cff2f6 ] When running without IOMMU for address translation, i.e. IOVAs are physical rather than virtual addresses, we need to translate the pointers to IOVAs for the completion API tests. Fixes: 9942ebb9c698 ("test/dma: add dmadev API test") Signed-off-by: Bruce Richardson Reviewed-by: Chengwen Feng --- app/test/test_dmadev_api.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/app/test/test_dmadev_api.c b/app/test/test_dmadev_api.c index 4a181af90a..0e66784de7 100644 --- a/app/test/test_dmadev_api.c +++ b/app/test/test_dmadev_api.c @@ -441,7 +441,9 @@ test_dma_completed(void) setup_memory(); /* Check enqueue without submit */ - ret = rte_dma_copy(test_dev_id, 0, (rte_iova_t)src, (rte_iova_t)dst, + ret = rte_dma_copy(test_dev_id, 0, + rte_malloc_virt2iova(src), + rte_malloc_virt2iova(dst), TEST_MEMCPY_SIZE, 0); RTE_TEST_ASSERT_EQUAL(ret, 0, "Failed to enqueue copy, %d", ret); rte_delay_us_sleep(TEST_WAIT_US_VAL); @@ -463,7 +465,9 @@ test_dma_completed(void) setup_memory(); /* Check for enqueue with submit */ - ret = rte_dma_copy(test_dev_id, 0, (rte_iova_t)src, (rte_iova_t)dst, + ret = rte_dma_copy(test_dev_id, 0, + rte_malloc_virt2iova(src), + rte_malloc_virt2iova(dst), TEST_MEMCPY_SIZE, RTE_DMA_OP_FLAG_SUBMIT); RTE_TEST_ASSERT_EQUAL(ret, 1, "Failed to enqueue copy, %d", ret); rte_delay_us_sleep(TEST_WAIT_US_VAL); @@ -498,7 +502,9 @@ test_dma_completed_status(void) RTE_TEST_ASSERT_SUCCESS(ret, "Failed to start, %d", ret); /* Check for enqueue with submit */ - ret = rte_dma_copy(test_dev_id, 0, (rte_iova_t)src, (rte_iova_t)dst, + ret = rte_dma_copy(test_dev_id, 0, + rte_malloc_virt2iova(src), + rte_malloc_virt2iova(dst), TEST_MEMCPY_SIZE, RTE_DMA_OP_FLAG_SUBMIT); RTE_TEST_ASSERT_EQUAL(ret, 0, "Failed to enqueue copy, %d", ret); rte_delay_us_sleep(TEST_WAIT_US_VAL); @@ -517,7 +523,9 @@ test_dma_completed_status(void) RTE_TEST_ASSERT_EQUAL(cpl_ret, 0, "Failed to completed status"); /* Check for enqueue with submit again */ - ret = rte_dma_copy(test_dev_id, 0, (rte_iova_t)src, (rte_iova_t)dst, + ret = rte_dma_copy(test_dev_id, 0, + rte_malloc_virt2iova(src), + rte_malloc_virt2iova(dst), TEST_MEMCPY_SIZE, RTE_DMA_OP_FLAG_SUBMIT); RTE_TEST_ASSERT_EQUAL(ret, 1, "Failed to enqueue copy, %d", ret); rte_delay_us_sleep(TEST_WAIT_US_VAL); -- 2.47.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2025-03-07 12:23:38.974778396 +0000 +++ 0026-test-dma-fix-pointers-in-IOVA-as-PA-mode.patch 2025-03-07 12:23:38.034839111 +0000 @@ -1 +1 @@ -From 5879d209d847c1025d0852dad7f3bee3e5cff2f6 Mon Sep 17 00:00:00 2001 +From 5803110850a7d8d24d03da7a223dde5de8a798dd Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 5879d209d847c1025d0852dad7f3bee3e5cff2f6 ] + @@ -11 +12,0 @@ -Cc: stable@dpdk.org @@ -20 +21 @@ -index d40c05cfbf..fb49fcb56b 100644 +index 4a181af90a..0e66784de7 100644 @@ -23 +24 @@ -@@ -515,7 +515,9 @@ test_dma_completed(void) +@@ -441,7 +441,9 @@ test_dma_completed(void) @@ -34 +35 @@ -@@ -537,7 +539,9 @@ test_dma_completed(void) +@@ -463,7 +465,9 @@ test_dma_completed(void) @@ -45 +46 @@ -@@ -572,7 +576,9 @@ test_dma_completed_status(void) +@@ -498,7 +502,9 @@ test_dma_completed_status(void) @@ -56 +57 @@ -@@ -591,7 +597,9 @@ test_dma_completed_status(void) +@@ -517,7 +523,9 @@ test_dma_completed_status(void)