From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7BB80A04C3 for ; Fri, 22 Nov 2019 15:42:49 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 61E781BE95; Fri, 22 Nov 2019 15:42:49 +0100 (CET) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by dpdk.org (Postfix) with ESMTP id 20EAC1BE95 for ; Fri, 22 Nov 2019 15:42:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574433767; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=20vnWA39jL5apcfRgeISQb99RMqXEbs0UED+ln17PZU=; b=MhQPtcS6nXCOd7b4xcIGLtJrSUR3PIkg2Yqk2wUHaB/myNMvMOP/RwnUYPUiDVfIYKnqA7 Zy+CGMnF1VM9RGE9YwTPgUm1mPS+/RytKytgpYO37bPou+OKml8jKH5TSa4hnrzWpXT9Ma rfXWkHcawFGUZPbUUR+zAo9X6AN6aio= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-237-Hg4pZHqpNHutLVJFssAYqg-1; Fri, 22 Nov 2019 09:42:44 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3647CDBAC; Fri, 22 Nov 2019 14:42:43 +0000 (UTC) Received: from rh.redhat.com (unknown [10.36.118.60]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2684F8516; Fri, 22 Nov 2019 14:42:41 +0000 (UTC) From: Kevin Traynor To: Thierry Herbelot Cc: Hemant Agrawal , dpdk stable Date: Fri, 22 Nov 2019 14:41:17 +0000 Message-Id: <20191122144131.21231-31-ktraynor@redhat.com> In-Reply-To: <20191122144131.21231-1-ktraynor@redhat.com> References: <20191122144131.21231-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-MC-Unique: Hg4pZHqpNHutLVJFssAYqg-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Subject: [dpdk-stable] patch 'crypto/dpaa_sec: fix IOVA table' has been queued to LTS release 18.11.6 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 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 Sender: "stable" Hi, FYI, your patch has been queued to LTS release 18.11.6 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/29/19. 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 rebasi= ng (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/kevintraynor/dpdk-stable-queue This queued commit can be viewed at: https://github.com/kevintraynor/dpdk-stable-queue/commit/88696d511ff6edafe4= 1bc74aa1d1de3e917986d6 Thanks. Kevin. --- >From 88696d511ff6edafe41bc74aa1d1de3e917986d6 Mon Sep 17 00:00:00 2001 From: Thierry Herbelot Date: Thu, 12 Sep 2019 10:38:21 +0200 Subject: [PATCH] crypto/dpaa_sec: fix IOVA table [ upstream commit 12e5842945bf6debe431adbdbefd9a5a53c72003 ] dpaa_sec needs translations between physical and virtual addresses. V to P translation is relatively fast, as memory is managed in contiguous segments. The result of each V to P translation is used to update the DPAA iova table, which should be updated by a Mem event callback, but is not. Then the DPAA iova table has entries for all needed memory ranges. With this patch, dpaa_mem_ptov will always use dpaax_iova_table_get_va, which ensures optimal performance. Fixes: 5a7dbb934d75 ("dpaa: enable dpaax library") Signed-off-by: Thierry Herbelot Acked-by: Hemant Agrawal --- drivers/crypto/dpaa_sec/dpaa_sec.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/dpaa_sec/dpaa_sec.c b/drivers/crypto/dpaa_sec/d= paa_sec.c index 742e24c52..c0602ce39 100644 --- a/drivers/crypto/dpaa_sec/dpaa_sec.c +++ b/drivers/crypto/dpaa_sec/dpaa_sec.c @@ -38,4 +38,5 @@ #include #include +#include =20 enum rta_sec_era rta_sec_era; @@ -100,6 +101,8 @@ dpaa_mem_vtop(void *vaddr) =20 =09ms =3D rte_mem_virt2memseg(vaddr, NULL); -=09if (ms) +=09if (ms) { +=09=09dpaax_iova_table_update(ms->iova, ms->addr, ms->len); =09=09return ms->iova + RTE_PTR_DIFF(vaddr, ms->addr); +=09} =09return (size_t)NULL; } --=20 2.21.0 --- Diff of the applied patch vs upstream commit (please double-check if non-= empty: --- --- -=092019-11-22 14:36:56.868827379 +0000 +++ 0031-crypto-dpaa_sec-fix-IOVA-table.patch=092019-11-22 14:36:55.2011492= 01 +0000 @@ -1 +1 @@ -From 12e5842945bf6debe431adbdbefd9a5a53c72003 Mon Sep 17 00:00:00 2001 +From 88696d511ff6edafe41bc74aa1d1de3e917986d6 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 12e5842945bf6debe431adbdbefd9a5a53c72003 ] + @@ -18 +19,0 @@ -Cc: stable@dpdk.org @@ -27 +28 @@ -index fd5b24840..39c9271ff 100644 +index 742e24c52..c0602ce39 100644 @@ -30 +31 @@ -@@ -39,4 +39,5 @@ +@@ -38,4 +38,5 @@ @@ -36 +37 @@ -@@ -101,6 +102,8 @@ dpaa_mem_vtop(void *vaddr) +@@ -100,6 +101,8 @@ dpaa_mem_vtop(void *vaddr)