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 4C33BA00E6 for ; Wed, 7 Aug 2019 17:11:55 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7C9A31B9A6; Wed, 7 Aug 2019 17:10:18 +0200 (CEST) Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by dpdk.org (Postfix) with ESMTP id CB75C2C58 for ; Wed, 7 Aug 2019 17:09:51 +0200 (CEST) Received: by mail-wr1-f66.google.com with SMTP id p17so91728163wrf.11 for ; Wed, 07 Aug 2019 08:09:51 -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=Fau9ZSHZJuy5K+/gVkGUqIswh3qg1zROsmo1lK41D/thuDaWb0Kh+uCquTn0Uf/er7 aCH9Dm020iCRlGBPWyE8XLIsnrUwAzm/Wbilxo5josqV/6xJE+os1IFQ1xaA32YiLpvh V76ZcgYQVbSRhuM7HFkn6GuUdc9Snl0gaeai+duc6WgxNhslXbfV5+UMWc5H4C4iGKVw +2zYpg4VgT5jFsV3hpdu+W+sK6Y3iFRcCx5WNk7o9Kro66jixIutcMQ9YQz01D5Sl8sa dFFvIsCVvnInxY+7qm8MFMhGwUKvMRF0JVx7zwx5dqoniR7fqAJmTZYYKZQlTXfiiO0O FOUQ== 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=t4qyJO+9Qz/LinF2HCi4+84f7EDUBWUszv+7lhQutNrI7EHbYGZMS8FQ4aR2efupSw MbieXb8JeVYYv5/jVOfrl13AHC1KfFO8bTaAJA8+SIqkkQAmHh+wFza7gL+IauDvWMW/ o4bZY51QegXkx+lvnkJB0EoZDtvEIfljiM+fRJG3qf9WC0CzJKffO1cYWESIzadxMSr9 zxlBRE6HWKKVwgvMuem9h4SMVd5MyF7MFxxpgj+3/mfDmlWmEX75bP+ae7PsKXqZiHJr O7NjRAb20x4k4EBL5YjmZMHyXams5NKVjtlkjCNTHyUh2CGT04NnJ0xerEUBsPtGDcsL o/Eg== X-Gm-Message-State: APjAAAWSpwzhDecDgSry8W57uNDXFwhxWwrWemt9h29PBpQ5G5ogex6O bZe7GN+d3h83CqZt5qS/ZcF/stL9rA== X-Google-Smtp-Source: APXvYqyDV/uVCJHiKz+79z9pcNwTtTD8E65OJd31k/l5NEV7GLZU8WmqWfZ6R/xiMKZHz9cBrEikqw== X-Received: by 2002:adf:b60c:: with SMTP id f12mr11774834wre.231.1565190591363; Wed, 07 Aug 2019 08:09:51 -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 r5sm382862wmh.35.2019.08.07.08.09.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Aug 2019 08:09:50 -0700 (PDT) From: Thierry Herbelot To: dev@dpdk.org Cc: stable@dpdk.org, Thomas Monjalon Date: Wed, 7 Aug 2019 17:09:21 +0200 Message-Id: X-Mailer: git-send-email 2.11.0 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-dev] [PATCH 19.11 V2 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