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 13A6AA00E6 for ; Thu, 8 Aug 2019 10:23:26 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8EF651B947; 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 81E922BAE for ; Thu, 8 Aug 2019 10:23:02 +0200 (CEST) Received: by mail-wm1-f65.google.com with SMTP id s3so1483090wms.2 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=OGz2JHfhKyeXAskJDNq75N2udrpCwXy5eG8ioPjE8taIOkvdLAarxGjoJOz0pHb8O8 MM35Pv8hogiuiyTG6ynmmcmsBEHn5+1f8gsFlo9VZbc3EnaH5Cogjql3YDfI0ZIvKwJl j4gbYYLqc+H1tlVPsunNSFHLECEdVzksyiR1YiWtk2JVeTPlSFMpO153ZCw99zl1c0Yh XtPW16xGCNo2WeSfmkHxsjXkiNy5kqQvQ4M1hl2jZXm3K6oR+v9I2uKnMa3Sql2CcwiH b1qMA9K6DGcwn1TQdG7IvHNMeEAHCKSl3+aq+vuPb9CYkUz8q1j3jjLaQZC8rMjXelcP r57w== X-Gm-Message-State: APjAAAXLIxxl2E0QDk56XwyclC+pf6sQdG7kyaA1ZUtJniW83LtrvhrB veRFMF4o0nS60KCddBjl74K3qyVw1Q== 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-stable] [PATCH 19.11 V3 12/12] drivers/crypto/octeontx: enable unbinding for the OcteonTx crypto engines 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" 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