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 1457CA00E6 for ; Wed, 7 Aug 2019 16:39:55 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 28F741BCB8; Wed, 7 Aug 2019 16:38:24 +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 794982C02 for ; Wed, 7 Aug 2019 16:38:03 +0200 (CEST) Received: by mail-wr1-f66.google.com with SMTP id r1so91599117wrl.7 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=XHW8OQi4Fgp5LUZInohCjJtny3UVCYGFnmTkp5wA5HEDtO3eDvoYHFIXOg1Mntg8Yh pJRjAtf80GeyB0EMGxS+H8vdTjAgpn3rKy2R+uuBDzk0lvVKM8O1h2geI1OYj+QE71NN S8gpXmesmIteoKQfMHWOgks9wTwEbFzabBitwim3WtlltG18LIKwxUhAQOEfWPP/xY9c 0zOv8UWkX+mEKT9tz8foVQUAG75GIZWm0cxGfLJw9M5rHdb85/H4GRGoy36sko1Wi+X7 CP8aqYcoPPEu5H4Fq67RePV02FPykMTYIVu37gkU11drRiBIKQ0Dz2txVdw7NGD4L+Vp 7xlg== X-Gm-Message-State: APjAAAUAR90jYrnuOz6wf4G8r+a1vnnUWE2piwwK/923COHe8xDwkm2E qFfZRCkWDbQtMFEbKu4xQU83p2sn4g== 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-dev] [PATCH 19.11 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 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