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 0DE2CA00E6 for ; Wed, 7 Aug 2019 17:10:30 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5FEE74C9F; Wed, 7 Aug 2019 17:10:18 +0200 (CEST) Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by dpdk.org (Postfix) with ESMTP id 8AB252BAE for ; Wed, 7 Aug 2019 17:09:51 +0200 (CEST) Received: by mail-wr1-f65.google.com with SMTP id r1so91710049wrl.7 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=dfesr3q3y1aCidS3H66sK3lSp32uBRb7rsjLQzqEQyGqw0pv67SY4+12ZRbDXhveaE VNI2wa+SQHE7H39XUV8Py4+3nZzQ6uF1PUrEqBo07iAp1J6c9JNbsSztUSbbsje6NyPG fTZEVXWOc42mAbG8/zJBBj98f6nQgFVFvJIIL+6mjpFSR9iWGtiJUeYEwNvPh1/TrZOh Ihnqs6J1T2Z2uIOldnj0G3uvnaiaxNr9Ec9dXvS24DNKZJLLgE4UFBpzRcoxOIDBZ09T oVm/rqHJtiAgZ2PDEgYzjuvX14ymLJU3mJPoXsJsdJcRVo7dkgtvetkG6ipHw1pmi7up 2Zgw== X-Gm-Message-State: APjAAAW2F3J8WzXJmXvxCm+BxCD7ZYiL2GXuTo9VjP/9WV97F8/CpKbx LcvlQHpV9CMlDS9yGoCnTmgL 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-stable] [PATCH 19.11 V2 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