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 C24A5A2EEB for ; Fri, 13 Sep 2019 08:40:24 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 610C21F074; Fri, 13 Sep 2019 08:40:23 +0200 (CEST) Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by dpdk.org (Postfix) with ESMTP id 06D901F057 for ; Fri, 13 Sep 2019 08:40:22 +0200 (CEST) Received: by mail-wm1-f67.google.com with SMTP id r195so1417968wme.2 for ; Thu, 12 Sep 2019 23:40:22 -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 :mime-version:content-transfer-encoding; bh=tHU13UDNNvMWsIPa9A3AZ/aVgF6E5pYFSuoOrBZzG0o=; b=fgJKYlKlMtyaJemhfTgQybGx8xGN2Bpi68p0U96z9cMeCW6Kf99lzd/6cM6nipJcN1 B3SohaSdr2+TN30qKLJ0ClSZwoFgRj6LZy0x3Po8oFgOLiCLFCA7GUgZp6TScJ3wkBpS cHcCUN8yfQiOF3ekzcosbipHHfcgPAnv85JUVDPjV/LJIqWVWo8IM3w31H/dwRN6mjZS hMPP96Nsc5ZyQ3AqFBV7t/m370qmn+bi2OxhbyLYNC5yWQd79Cugkha8V0tlOkLSELiB EHMc/sK4sVb51Ol2yXzG59FDxzSh0dpANjPeI1DoXM+yVQ62yi/tVfIQGIgEWMQnnOGp g3Pw== 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:mime-version:content-transfer-encoding; bh=tHU13UDNNvMWsIPa9A3AZ/aVgF6E5pYFSuoOrBZzG0o=; b=CGRTJlnkUzyjnLRs6zYy/w6QfCqdw6SnGp+RiSSHWRdvLPoxnC0R2omWWhzBFomjg/ 32+TPLtk/8ght+ApjI86WVbxHgCBOxg5bJQMqxM+59eB1HA4TcQtp0VKEBcZ5MQgemMI STy+CtOq2ynoUtDajWkOTCy1lMzJYjYxad6Vq/dqde3/PpnRZoT6JsIXoQR/QjrO033K k9F7Gxv6Pe+iOi2nVE67uSHcitAw38gZ/K2lZf9FX1KAcSkWhP8qOyVvbSHVWQ4Cl7HY ce4gNGkGZKNntrsB2IBdEL13ih6mYfx26jhbOAF0nYH2b6FTxJLOD1hIHHprcBlfrHxD sOqA== X-Gm-Message-State: APjAAAWmc9ccUzaI+vEQz3w8zmcLK0riLTXFmgtm9e/HW3i/x1PXP5uV qcpCEnQkdQCxdFDlAhGN/cQYjGpr+hLk X-Google-Smtp-Source: APXvYqwrCbWLPYOsCIH9faP5pqJTVMugEWe6SOETbVH7YQLkJabSPV0hz7gHXep9zPuEahf5emGi0w== X-Received: by 2002:a7b:c319:: with SMTP id k25mr2070238wmj.48.1568356821544; Thu, 12 Sep 2019 23:40:21 -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 z1sm47815877wre.40.2019.09.12.23.40.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Sep 2019 23:40:21 -0700 (PDT) From: Thierry Herbelot To: dev@dpdk.org Cc: Thomas Monjalon , stable@dpdk.org, anoobj@marvell.com Date: Fri, 13 Sep 2019 08:40:03 +0200 Message-Id: <15217f0aa7b041c895dd1a956e703bb48df6c453.1568356742.git.thierry.herbelot@6wind.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <22e44c87c26193219900e738dcda9b1390efcb9c.1568217224.git.thierry.herbelot@6wind.com> References: <22e44c87c26193219900e738dcda9b1390efcb9c.1568217224.git.thierry.herbelot@6wind.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH V2] crypto/octeontx: enable unbinding for the OCTEON TX 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 OCTEON TX 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 Cc: anoobj@marvell.com V2: only "vfio-pci" is needed by this PMD 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..8df4b710c874 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, "vfio-pci"); RTE_PMD_REGISTER_CRYPTO_DRIVER(otx_cryptodev_drv, otx_cryptodev_pmd.driver, otx_cryptodev_driver_id); -- 2.20.1