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 44361A00E6 for ; Wed, 7 Aug 2019 16:38:34 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E2E381B9ED; Wed, 7 Aug 2019 16:38:23 +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 3DAAE2BBD for ; Wed, 7 Aug 2019 16:38:03 +0200 (CEST) Received: by mail-wr1-f66.google.com with SMTP id x1so41742766wrr.9 for ; Wed, 07 Aug 2019 07:38:03 -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=satS4hxUN2zPnmYzDpx1LKPLkpEIBC0SjQL1LOh+cRM=; b=D1ciuojbfYtdkaVkPUpUzOBEUqHOZMAdBs8qv+43TsiZHubTVP6w6q4w0KJr61358a Lo3zt+WehQPnykyx/HgxkFDN8xkvRxuL0MlNLIrvTwBIiEvGpjbkSBsTueGRrwDjbNOS ZlGeUWw2P1onfPOOnwbOsOwffCqWMrykHQkE4rtbD4qozGM4cTiO6Od/uW7H0pvR7ltM YjdUDOv2mWyuzYqIzuRKrqxWMqcJOW5Dy8LdLTgyyQaj5rGZ61JRSS6jOj9kdDuSBtkC Pnp2y/3xzDKXoT1VDIBftP2mxMl3C0wpPZTY7gpSd5ipvt7af4U7SE5WgRjTN7/hU0pz pLrw== 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=satS4hxUN2zPnmYzDpx1LKPLkpEIBC0SjQL1LOh+cRM=; b=GOOBpMOfplM9HSonu+puCQxolBRoF4Ue0acD7Ghl3wF8WjJb5bdwXOvC1747vx8ndJ sttyPbZDtpnu38m5Hct7K0bPGCz12izCBudt4JCzB1PAgyjDQ+1ur/e+hF9eprs33sFR L5ALF+5K71wgzmw7voGK4WMQulT5MRYWCJCL5TBmPoLWlm0ZcX0JDFhFmjua3tvXs0g2 ImMtm3PYPHPROBMYNPvkwTTvoRWlATO5rFO0ElAZW5i0BsRQed8B6RvDfvSu5YHCEv34 +phyg62qtCystGCs7FEuo7G4lEeNfxyzfGve+w5jI0mjAKko4r1RvLrsZq7CTOPZK9pd DVkg== X-Gm-Message-State: APjAAAW7mZ+Wnmh4m7lMUigurmShm56q9TcYypl7tbUXT6cIduRJzU+r JccDlBbRsjjLiEE31c5QsS1S X-Google-Smtp-Source: APXvYqzk6ITJeAq+VUArA5e6Nu0qBeG7yzDPoZeXmXA0q3EKiaXj/hf4Gptacyz5lqC/uceFfxPpNA== X-Received: by 2002:a5d:5348:: with SMTP id t8mr11014147wrv.159.1565188683065; Wed, 07 Aug 2019 07:38:03 -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 2sm133441211wrn.29.2019.08.07.07.38.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Aug 2019 07:38:02 -0700 (PDT) From: Thierry Herbelot To: dev@dpdk.org Cc: stable@dpdk.org, Thomas Monjalon Date: Wed, 7 Aug 2019 16:37:31 +0200 Message-Id: <49b8c2c3caea4785b19f4ef2308abaf670c080cf.1565188248.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 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 at 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