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 9FB70A0531; Mon, 10 Feb 2020 08:35:45 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A15661BF7B; Mon, 10 Feb 2020 08:35:43 +0100 (CET) Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by dpdk.org (Postfix) with ESMTP id 597381BE9C for ; Mon, 10 Feb 2020 08:35:42 +0100 (CET) Received: by mail-wr1-f65.google.com with SMTP id k11so6183827wrd.9 for ; Sun, 09 Feb 2020 23:35:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=uQyunclNUw6oREIKUEMa+oxL+kMKv3ENYS1NaHdD5SY=; b=HRvk18TfW7BHObya/FnEbuVCirJj9qmSXmsumC7YVUXDmGSMfUZD5rZvprpngP7nXk GCvZItjQSC2HJVjfrM4bfPpFucZXl9v5ejowdQK4XRzNPHqedp5J0K0Iu/iq95St9O8T pp8yEZmeW10Xyny6Y2dFKslYShih/slnVCMeUqc9jsDeemlTN18eHiWWdeyF5iIFBmG6 K4ER2pZQptmwAjVumWBbTaYQHxHrSoN72j8Fta/TXXFU9n4/ByBBCMmisQwBj3XKpOno rHY/4tXSPE0TSrpecleoyxykJZ69f+rVvSrqMTmSchKlxWAy1g6vCD+5M3uB4QBCR2IT 80Rw== 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:mime-version :content-transfer-encoding; bh=uQyunclNUw6oREIKUEMa+oxL+kMKv3ENYS1NaHdD5SY=; b=JXTDUkDbY8O1NtLnwZruvlsLu/lpY4IJZkSxCyOqUGDjDxugbjv76OGr3BJcHxhq2o gceRXnLpTG8mGZJLI2nmNtnJj4uMbusBhVnd4opsu4lxo8QzSkAXiwEi/pJc9uLLnnqq SD3UwemyoThOD6yMRfsIIKq0SGl8sc8B3N/T7lnJxnSQKPzCUVwACwdp8w/BroHrvHSj yQOlCLj9r01HKhVokeuysqU6uvT8ASh/i3vi7h17bJmQniV6pxD8czR0immUsZwbq6Qv 4ZuvIwT4nJsJyhVyJsIHjNwd0n8ax5K1nbM8H6WBRMcxqci9MWTTDnN2jWGmoSTBWcI5 o4WA== X-Gm-Message-State: APjAAAWoGYXE5PFblzf8PN9cd26NTorc3Qlvlm3japKd24CnbdFkG7IC q/s1COsrGFnhYy8gWi1eiLvs8HlXqVpO X-Google-Smtp-Source: APXvYqy/a3UKBLzJ5fwsvSe1ALQqSR2C6/BFc4P4dQiPR33kQbfmiP8fRyhhA1yWY6Wu5ETcRv/l7w== X-Received: by 2002:adf:eb51:: with SMTP id u17mr221129wrn.29.1581320141847; Sun, 09 Feb 2020 23:35:41 -0800 (PST) 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 z6sm15719599wrw.36.2020.02.09.23.35.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Feb 2020 23:35:41 -0800 (PST) From: Thierry Herbelot To: dev@dpdk.org Cc: stable@dpdk.org, Thomas Monjalon , Anoob Joseph Date: Mon, 10 Feb 2020 08:35:12 +0100 Message-Id: <20200210073512.25977-1-thierry.herbelot@6wind.com> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] crypto/octeontx2: enable unbinding 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 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") Cc: stable@dpdk.org Cc: Anoob Joseph Signed-off-by: Thierry Herbelot --- 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 7fd216bb3901..7b8add1bfc6a 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.25.0