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 CD8FDA00E6 for ; Thu, 8 Aug 2019 10:24:47 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A1FCD1B956; Thu, 8 Aug 2019 10:23:19 +0200 (CEST) Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by dpdk.org (Postfix) with ESMTP id BA5802BE1 for ; Thu, 8 Aug 2019 10:23:02 +0200 (CEST) Received: by mail-wm1-f65.google.com with SMTP id p74so1472727wme.4 for ; Thu, 08 Aug 2019 01:23:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=l/e2lobreFgY8/tp8VSoSDkLX5vQfNzhxpmxnCrZGkY=; b=JXHqfx4YLM1H2WQ25PgwnA6v3rOBanXH37KJC4QUKlMDFHT9z92OUsrI6VM8kjpss3 EvtI5ICFVmj4fROR3I5C4Pr8xWGdFKz9vq9NFRxvLuG1bVmZt/rUwUhTGap9SrRzLhF7 fQDRYg2Ni6JPemJnyYnXfKDns5JqgQcngk/5kcFpTaAoDw0vhCwX42e22/cydkO3DqXX nb43Bjb4rn+H3Du6LAwYvAt3XusncCY/uA7T8++xwlgd6NVqcV4Ed9BFIcrVOR9czay3 ydCkf97AYXuOSv7A91di9N3diSJENibz5KnzvnVpyjMUb5s+2dNMh2LqVNQU+rCn7+gV /eQA== 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:in-reply-to:references; bh=l/e2lobreFgY8/tp8VSoSDkLX5vQfNzhxpmxnCrZGkY=; b=bSM/bt1yjrevql8GpsOwGeo83Kw5KoKdFTec4ybm9/eZrZjKy78NHwaYAtXIiO7n4u 2U4s1E5IR3JLgdnWNCR3r29KvM8GD/wxjHh5mW6f4FRzqw7jfES+kDTwF+oB17pVUCyx PNK1trnzOqDC1iV6khySPgs+ZR9SkiaQbaWO8PgqSi4WFbPmyMV0i+XX1V+B06KRs48o dQB0Cf8joZNYW27R7rLUI3oOb+XrEJTtBayxsQFzgvOsAUDH6Wb0IkGXTNPh4O+jX/j1 /vcnendTVgoV3eQyeGg3cPnDV/kyeEvy8CE2yg3b1qLPmvMZx/HHWs/GCgWmoKBXAwFH o1LQ== X-Gm-Message-State: APjAAAU16FB8cbQRE0ODv3BFne/P7ICvPpS1xsJiCFxUC+7zdqpjtUpl /JxsBAyrjQTQ8zbo/S27WTC09ukeGg== X-Google-Smtp-Source: APXvYqwcLf3FFsGjEtn74w4wajbbMmwN6olPpIKHyqsyPcL9JXYGgrI7H7VOrj3Bk0TnGo3TYTZweg== X-Received: by 2002:a1c:f415:: with SMTP id z21mr3011510wma.34.1565252582354; Thu, 08 Aug 2019 01:23:02 -0700 (PDT) Received: from ascain.dev.6wind.com. (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id t13sm111437018wrr.0.2019.08.08.01.23.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Aug 2019 01:23:01 -0700 (PDT) From: Thierry Herbelot To: dev@dpdk.org Cc: stable@dpdk.org, Thomas Monjalon Date: Thu, 8 Aug 2019 10:22:17 +0200 Message-Id: <646b6286d102c92dafb3d06553fd4272ed17c41d.1565252336.git.thierry.herbelot@6wind.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-dev] [PATCH 19.11 V3 12/12] drivers/crypto/octeontx: enable unbinding for the OcteonTx crypto engines X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Like for Ethernet ports, the OcteonTx crypto engines must first be unbound from their kernel module, then rebound to vfio-pci, before being usable 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: bfe2ae495ee268 ('crypto/octeontx: add PMD skeleton') Cc: stable@dpdk.org Signed-off-by: Thierry Herbelot --- drivers/crypto/octeontx/otx_cryptodev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/crypto/octeontx/otx_cryptodev.c b/drivers/crypto/octeontx/otx_cryptodev.c index fc64a5f3041f..16f1909966d0 100644 --- a/drivers/crypto/octeontx/otx_cryptodev.c +++ b/drivers/crypto/octeontx/otx_cryptodev.c @@ -118,6 +118,7 @@ static struct cryptodev_driver otx_cryptodev_drv; RTE_PMD_REGISTER_PCI(CRYPTODEV_NAME_OCTEONTX_PMD, otx_cryptodev_pmd); RTE_PMD_REGISTER_PCI_TABLE(CRYPTODEV_NAME_OCTEONTX_PMD, pci_id_cpt_table); +RTE_PMD_REGISTER_KMOD_DEP(CRYPTODEV_NAME_OCTEONTX_PMD, "* igb_uio | uio_pci_generic | vfio-pci"); RTE_PMD_REGISTER_CRYPTO_DRIVER(otx_cryptodev_drv, otx_cryptodev_pmd.driver, otx_cryptodev_driver_id); -- 2.11.0