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 ABEC9A0553 for ; Mon, 17 Feb 2020 18:46:14 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A65FA1DA12; Mon, 17 Feb 2020 18:46:14 +0100 (CET) Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by dpdk.org (Postfix) with ESMTP id 786911DABA for ; Mon, 17 Feb 2020 18:46:13 +0100 (CET) Received: by mail-wr1-f68.google.com with SMTP id c9so20808726wrw.8 for ; Mon, 17 Feb 2020 09:46:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=r//zmkPo4HjxNZcW82CFwGv1tTsEvy2f3Tc2EZbDllQ=; b=mKnUknQyXj0N4hKs8Nl2J/8a+mLSziohV1HH913EqupPQ8j4GLjpZbfLlQggDyLA71 Qs9FD8s0i3MLtXg0JX2K3qTOlTbBmK7nxiioKw1RrukEbxh3yk6xSmypdvaZFhVse7/Z xPF1leBmnpfdFR0PCuDu+QPB/rNgIQ7ymQnds/XMR8nWMu9/BBDUQ0LCwDrfv0Elphj3 ZuJrXblTJKkH4b3QMf7PHbehh1pIaYDBuML8WzT4oqlXXk3llOc9T5jmYb13PG4vFxJX X1awVSZQYpJrqzwSn09jWPzUjmeh1/hoO1o1egPBK2xyI/rmwY6T4ECJQfJ1e4me6MwJ FqOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=r//zmkPo4HjxNZcW82CFwGv1tTsEvy2f3Tc2EZbDllQ=; b=GjYXAJGBS/ylLxfejRJ+DKUi8EWtjlkAX26G4eklza28oCI7XdEr7kUOfF8Ooyh6ga Zgv5qBFA9ymoLHUU+0gmVhSnYc/w9LE0V4RpRVIlSnCyODo9I1YTccPT3DHEaaq/oWX5 wa3Mroj3GHsCEUp/Eb1ffNZnXHoLxrDp1RKJ5RECYlpx7a8UXFX5t+AMIlmR/wzvM0OM oq+5ejloLIiozpvZjgnSGNRLGzXqbr2kUfxVLicEDh47s4HgquJia6c7TZ6xAZ/718hn 33DAzI7aKqiCYcESwi6SRC8xszYCOF+HA+JGExvDNMQ7kwG86l1muviBVAQdRSaF4U9L TJQw== X-Gm-Message-State: APjAAAVbZUSlHmmTY41iS6oVoNXEFFeXoIrZdUU+YBZM0P9veySkAKm+ 2SrFHXRIX5VlKdUaj15d2Bw= X-Google-Smtp-Source: APXvYqyYhlzHkj/x5qhMfcGRYCpj8yc1QqscXV5QHQ7pRXHuQco84u5a9UCkmN9TUZf9dr6bYiRyuQ== X-Received: by 2002:adf:de0b:: with SMTP id b11mr22724714wrm.89.1581961573195; Mon, 17 Feb 2020 09:46:13 -0800 (PST) Received: from localhost (userh634.uk.uudial.com. [194.69.103.7]) by smtp.gmail.com with ESMTPSA id d13sm2196396wrc.64.2020.02.17.09.46.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Feb 2020 09:46:12 -0800 (PST) From: luca.boccassi@gmail.com To: Thierry Herbelot Cc: Anoob Joseph , dpdk stable Date: Mon, 17 Feb 2020 17:45:06 +0000 Message-Id: <20200217174546.25334-14-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200217174546.25334-1-luca.boccassi@gmail.com> References: <20200211112216.3929-190-luca.boccassi@gmail.com> <20200217174546.25334-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'crypto/octeontx2: add kmod dependency info' has been queued to stable release 19.11.1 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 stable release 19.11.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 02/19/20. 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. Thanks. Luca Boccassi --- >From 97e6c5c30a2a19850c8a8a225416b6aa7b8e09b9 Mon Sep 17 00:00:00 2001 From: Thierry Herbelot Date: Mon, 10 Feb 2020 08:35:12 +0100 Subject: [PATCH] crypto/octeontx2: add kmod dependency info [ upstream commit 02ba37237612f6d9a30b48e232b3dcd2cafe4e60 ] Like for OCTEON TX, the OCTEON TX2 crypto engines must first be unbound from their kernel module, then rebound to vfio-pci, before being used in DPDK. As this capability is detected at runtime by dpdk-pmdinfo, add the info in the PMD registering directives. Then an external script can be used for bind and unbind. Fixes: 2f8a1b963eb77 ("crypto/octeontx2: add PMD skeleton") Signed-off-by: Thierry Herbelot Acked-by: Anoob Joseph --- drivers/crypto/octeontx2/otx2_cryptodev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/crypto/octeontx2/otx2_cryptodev.c b/drivers/crypto/octeontx2/otx2_cryptodev.c index 7fd216bb39..7b8add1bfc 100644 --- a/drivers/crypto/octeontx2/otx2_cryptodev.c +++ b/drivers/crypto/octeontx2/otx2_cryptodev.c @@ -145,6 +145,7 @@ static struct cryptodev_driver otx2_cryptodev_drv; RTE_INIT(otx2_cpt_init_log); RTE_PMD_REGISTER_PCI(CRYPTODEV_NAME_OCTEONTX2_PMD, otx2_cryptodev_pmd); RTE_PMD_REGISTER_PCI_TABLE(CRYPTODEV_NAME_OCTEONTX2_PMD, pci_id_cpt_table); +RTE_PMD_REGISTER_KMOD_DEP(CRYPTODEV_NAME_OCTEONTX2_PMD, "vfio-pci"); RTE_PMD_REGISTER_CRYPTO_DRIVER(otx2_cryptodev_drv, otx2_cryptodev_pmd.driver, otx2_cryptodev_driver_id); -- 2.20.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2020-02-17 17:00:15.727594839 +0000 +++ 0014-crypto-octeontx2-add-kmod-dependency-info.patch 2020-02-17 17:00:15.283950115 +0000 @@ -1,8 +1,10 @@ -From 02ba37237612f6d9a30b48e232b3dcd2cafe4e60 Mon Sep 17 00:00:00 2001 +From 97e6c5c30a2a19850c8a8a225416b6aa7b8e09b9 Mon Sep 17 00:00:00 2001 From: Thierry Herbelot Date: Mon, 10 Feb 2020 08:35:12 +0100 Subject: [PATCH] crypto/octeontx2: add kmod dependency info +[ upstream commit 02ba37237612f6d9a30b48e232b3dcd2cafe4e60 ] + Like for OCTEON TX, the OCTEON TX2 crypto engines must first be unbound from their kernel module, then rebound to vfio-pci, before being used in DPDK. @@ -13,7 +15,6 @@ Then an external script can be used for bind and unbind. Fixes: 2f8a1b963eb77 ("crypto/octeontx2: add PMD skeleton") -Cc: stable@dpdk.org Signed-off-by: Thierry Herbelot Acked-by: Anoob Joseph