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 3D8E0455AD for ; Mon, 15 Jul 2024 17:28:23 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 38CC240A75; Mon, 15 Jul 2024 17:28:23 +0200 (CEST) Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) by mails.dpdk.org (Postfix) with ESMTP id 83935402DD for ; Mon, 15 Jul 2024 17:28:21 +0200 (CEST) Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-3678fbf4a91so2317817f8f.1 for ; Mon, 15 Jul 2024 08:28:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721057301; x=1721662101; 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=NgZCTbs7BE0DUo9W1tTAMNvEhsUyWynFDO9k2JO9wec=; b=G5cM3xXD/F+PbAa/99uPBXBZvuE4JDXMFWYMEM1OaMcwynoGja7XdDFxACniJT1+1H u/8tHVZCN5k5xEYg2dpOAP0VVR0/RjdKgRXLBMHuBb8TmDtlheVRR7wHUMNhEbuWY+yK NS4DCosCTtX3gtYsqToOEnVAkP+wVrzLokLvGbPgLyN8019vmIZEStGIly95CVvcrPol SaxpNMTydbWgWLz+lzZhVTYaKrGwC92IiCcicxkabVwf/6DvO5pf99BwFhrgRzfkEnZe PQbazYdX0kfU2tBz4O4K72IqMFoQUIZ+JuHPdNvAam+NJ+62ldGZWlvLTp6uwzqrLqGP /heg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721057301; x=1721662101; 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=NgZCTbs7BE0DUo9W1tTAMNvEhsUyWynFDO9k2JO9wec=; b=NBFT8yiHLgPHe9q/lqqrGEbljV22UfN3zs+GDzRMGyt9s5PaUNEl5Ine8km6leYXY8 2sS9sLSGtMXp9WWsN4p4IN0878+CHLvLOcMfsnR1S9P77uoUUmEp5r+VrGpNCokkrh92 JKRwbXws7vllnR5SFidt/oNIVti1DCHaps3YTDanx/Qd0L0fzbZ55a3YvS5MPXMRO1HC XNuQ9TC/Md4tamsKEsZ1p5us+luiD0F2XfS5hf0wdErOMGyYvM8Jg1BiFvp1Xj97aXM9 ziAG3eiQ3hRYeksL2nC6iqCVuxODq8AYRXcaHB7Gdq6YLZ+866N2V/GR8q+R/ixq5vLT Y7dw== X-Gm-Message-State: AOJu0Yzrqt4eexxLPlm1eZoJDRkZ3M/ul9rn4dbB4NrBxbalAr9T+AY0 sE55X2w9VsbmTRpaO1DBrMcJik8IAMW3XkFZgqp/cWyyczsBL1KrKyRB++tU X-Google-Smtp-Source: AGHT+IEtBSudne0xJTi1tAdcvIbjeSTASAZKxsxyQoZigPig0I+YDiOXEoJ2qQrZRBNXm+v/Dj8yDA== X-Received: by 2002:a05:6000:18ac:b0:35f:276c:f3ad with SMTP id ffacd0b85a97d-36824094058mr55516f8f.40.1721057301096; Mon, 15 Jul 2024 08:28:21 -0700 (PDT) Received: from localhost ([137.220.120.171]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3680daccd68sm6676898f8f.63.2024.07.15.08.28.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jul 2024 08:28:20 -0700 (PDT) From: luca.boccassi@gmail.com To: Jun Yang Cc: dpdk stable Subject: patch 'crypto/dpaa2_sec: fix event queue user context' has been queued to stable release 22.11.6 Date: Mon, 15 Jul 2024 16:26:03 +0100 Message-Id: <20240715152704.2229503-25-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240715152704.2229503-1-luca.boccassi@gmail.com> References: <20240624235907.885628-81-luca.boccassi@gmail.com> <20240715152704.2229503-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.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 07/17/24. 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/6530bf0f6de87a62a8056905dbbafbeb000d9b03 Thanks. Luca Boccassi --- >From 6530bf0f6de87a62a8056905dbbafbeb000d9b03 Mon Sep 17 00:00:00 2001 From: Jun Yang Date: Wed, 3 Jul 2024 15:56:49 +0530 Subject: [PATCH] crypto/dpaa2_sec: fix event queue user context [ upstream commit 70d3ba14391a33585a739421c6e7300bb50f53aa ] Context configured should be aligned with context got in dq process. Here the rx_vq is just the first element of qp which covers the issue. Fixes: bffc7d561c81 ("crypto/dpaa2_sec: support event crypto adapter") Signed-off-by: Jun Yang --- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c index cf1339f266..eab7091251 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c @@ -4093,7 +4093,7 @@ dpaa2_sec_eventq_attach(const struct rte_cryptodev *dev, cfg.dest_cfg.priority = priority; cfg.options |= DPSECI_QUEUE_OPT_USER_CTX; - cfg.user_ctx = (size_t)(qp); + cfg.user_ctx = (size_t)(&qp->rx_vq); if (event->sched_type == RTE_SCHED_TYPE_ATOMIC) { cfg.options |= DPSECI_QUEUE_OPT_ORDER_PRESERVATION; cfg.order_preservation_en = 1; -- 2.39.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-07-15 16:19:36.015463587 +0100 +++ 0025-crypto-dpaa2_sec-fix-event-queue-user-context.patch 2024-07-15 16:19:34.512205267 +0100 @@ -1 +1 @@ -From 70d3ba14391a33585a739421c6e7300bb50f53aa Mon Sep 17 00:00:00 2001 +From 6530bf0f6de87a62a8056905dbbafbeb000d9b03 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 70d3ba14391a33585a739421c6e7300bb50f53aa ] + @@ -10 +11,0 @@ -Cc: stable@dpdk.org @@ -18 +19 @@ -index 07369a383f..c1f7181d55 100644 +index cf1339f266..eab7091251 100644 @@ -21 +22 @@ -@@ -4103,7 +4103,7 @@ dpaa2_sec_eventq_attach(const struct rte_cryptodev *dev, +@@ -4093,7 +4093,7 @@ dpaa2_sec_eventq_attach(const struct rte_cryptodev *dev,