Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2593963lqb; Tue, 28 May 2024 05:05:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWQRN5Fe1qUzboKsQrDDPANxhY+XznUWszL+3b4HrSPsWKsHde09SRdC3qP8jMrFgICkoeGWxyZbdGvckAjlhY3g366nKdacfk8bujZyQ== X-Google-Smtp-Source: AGHT+IFRTZDwACt9K0SdUimdIaXyzW/q6R/YgwtJ4gabWOTn6cjpRAkUUg94XVRQbT6J3J9g4ltQ X-Received: by 2002:a17:907:b09:b0:a59:a356:3f6d with SMTP id a640c23a62f3a-a6264f01250mr843809866b.54.1716897954084; Tue, 28 May 2024 05:05:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716897954; cv=pass; d=google.com; s=arc-20160816; b=BKDhUnharG0dsyNQLLa6iQyvXbwb548NyDeiEItsAEs7GOFbfu8B3dBzNll5yXHtFH WlWmFYP2n/yRmHPItgctnC02A3xzNbyNah6zW5C535hI8mgOUo/2xXrdiql4QGdIbmGE gGdKCL17JNNo5Zr2YBR2OU7cZ19kZzCInnBvECq15AYbbXvhIB4yNP0oi1L9dBxgdT4Q TSudpJ2J0QkP9y/xiVnoFCWBnTYrxE7dKNQhtdFPlz4FT7SnEI5qrUMm8kPISKNZzOWd OvoadVdaCpyF8Npz8oPb4lNYQ9J7yhcxyYxAMqyCIUXSTBWw9+jjLTxTvPSm5qVhcggx segw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=rh2/gR2MuxmmjLhcOwQd9wnczpc8/ZtRBQIxRIb8ADY=; fh=equRye9tI4xPyA9+tiAGGKCghQLBMk2d/KuMFLehRt8=; b=tXSTnltRH+/Cvx16N4teJJ7ssi/h5ntdAliBirr4V6tQ951O5X5x/DWdqEl4XHHCUV CNfEMYHWCRTIt3omhwPq0vU/4hGiyz62Ohj7td42qagmGhDty5zcNOTG36w+ZTandVH0 DKhFKh15F12/Qk/575hyhjpSEHwf0XMUE1CdznIRBqdsPR6g8oK0szk7XTKZiTukCKHC 48kQXJ5FC0nj2NYg+uNAO6pWFGv+hBw4GEKUZOqF56xA6ImCRf4OYebCPzLLoknD6nWf 1bwAMPT6dKm+19Z9l+kUFXeQ7kVXBjVNmeGyt6DnxAdMWlbRsfBJ560rlZiyyo+GVlJK NpWg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PUP6VGm6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-192249-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192249-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a626c801063si500337566b.195.2024.05.28.05.05.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 05:05:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192249-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PUP6VGm6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-192249-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192249-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id CD84E1F239EA for ; Tue, 28 May 2024 12:05:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6A15E16D338; Tue, 28 May 2024 12:05:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PUP6VGm6" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8C9EA13A242; Tue, 28 May 2024 12:05:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716897907; cv=none; b=H0ONgQwBUWqKzkbmeNr64661JocWHgNIrKJXPQTlxLVqmhzJVvZTlzTe8HIG0czVqgBEJvQRXAXuCLFvZ3T86g6jpO3GY20uGaLiPMYpDZv0ain29l4OxVq8DfZ/dASICvIzP9AYtVUEt8U6ZWpvwW44hTo1ZJltGyORVRXAdcM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716897907; c=relaxed/simple; bh=kaLuOjRkFqL42ZSISeMz90mU9RorzMOLwIkOwYEXp60=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=s5Szbu8Boe0xvIK5RGf7kekNt17WxAas+FAiEWVwiL4VeAlATp/sCubZwKzQI14KRiHuKJZn1Fy60A8AJetlcw87UGw6eV/9gQZvufgORAVpNekfB4WoliEz23FEwLBPjj5GihvxlxePVzsgUCsT+7c2OQt6oYmeTIo8h9TYn2g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PUP6VGm6; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8677AC3277B; Tue, 28 May 2024 12:05:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716897907; bh=kaLuOjRkFqL42ZSISeMz90mU9RorzMOLwIkOwYEXp60=; h=From:To:Cc:Subject:Date:From; b=PUP6VGm6Xn06TXAJ4XKsjNQZ+80X2eGoXUsCYdeFrF6spfAMMcRq6RtmWr8yRzyCc aMvXu9qy7V9UYerjK/E8ZdiskIbiuZ13jWQVK1rWCNYUkYWMnNqW7Ax03/TKA1V5BE zOgtOE7eNJKfryKtKApRvDRDu8ZJPNXmZLtUyFMom8D1/DIXzsoytEC4lyhBvP05Mj O9JM0y+/gOYU45AE7Y2BU+3RLiEAygpLkEyZXi+Uwk2bMGzA+HuX4ouo/8mZjwcdF2 ucoYYPxJ+n5xymccDEyd0ZiwMfRqbFvgr9IhjCdR4M+BP/Nphs1S03GVgv0j8wQ1Jt Av3KHZo905xTg== From: Arnd Bergmann To: Xin Zeng , Giovanni Cabiddu , Alex Williamson , Kevin Tian , Yahui Cao Cc: Arnd Bergmann , Jason Gunthorpe , Yishai Hadas , Shameer Kolothum , kvm@vger.kernel.org, qat-linux@intel.com, linux-kernel@vger.kernel.org Subject: [PATCH] vfio/qat: add PCI_IOV dependency Date: Tue, 28 May 2024 14:04:55 +0200 Message-Id: <20240528120501.3382554-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnd Bergmann The newly added driver depends on the crypto driver, but it uses exported symbols that are only available when IOV is also turned on: x86_64-linux-ld: drivers/vfio/pci/qat/main.o: in function `qat_vf_pci_open_device': main.c:(.text+0xd7): undefined reference to `qat_vfmig_open' x86_64-linux-ld: drivers/vfio/pci/qat/main.o: in function `qat_vf_pci_release_dev': main.c:(.text+0x122): undefined reference to `qat_vfmig_cleanup' x86_64-linux-ld: main.c:(.text+0x12d): undefined reference to `qat_vfmig_destroy' x86_64-linux-ld: drivers/vfio/pci/qat/main.o: in function `qat_vf_resume_write': main.c:(.text+0x308): undefined reference to `qat_vfmig_load_setup' x86_64-linux-ld: drivers/vfio/pci/qat/main.o: in function `qat_vf_save_device_data': main.c:(.text+0x64c): undefined reference to `qat_vfmig_save_state' x86_64-linux-ld: main.c:(.text+0x677): undefined reference to `qat_vfmig_save_setup' x86_64-linux-ld: drivers/vfio/pci/qat/main.o: in function `qat_vf_pci_aer_reset_done': main.c:(.text+0x82d): undefined reference to `qat_vfmig_reset' x86_64-linux-ld: drivers/vfio/pci/qat/main.o: in function `qat_vf_pci_close_device': main.c:(.text+0x862): undefined reference to `qat_vfmig_close' x86_64-linux-ld: drivers/vfio/pci/qat/main.o: in function `qat_vf_pci_set_device_state': main.c:(.text+0x9af): undefined reference to `qat_vfmig_suspend' x86_64-linux-ld: main.c:(.text+0xa14): undefined reference to `qat_vfmig_save_state' x86_64-linux-ld: main.c:(.text+0xb37): undefined reference to `qat_vfmig_resume' x86_64-linux-ld: main.c:(.text+0xbc7): undefined reference to `qat_vfmig_load_state' Add this as a second dependency. Fixes: bb208810b1ab ("vfio/qat: Add vfio_pci driver for Intel QAT SR-IOV VF devices") Signed-off-by: Arnd Bergmann --- drivers/vfio/pci/qat/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/vfio/pci/qat/Kconfig b/drivers/vfio/pci/qat/Kconfig index bf52cfa4b595..fae9d6cb8ccb 100644 --- a/drivers/vfio/pci/qat/Kconfig +++ b/drivers/vfio/pci/qat/Kconfig @@ -1,8 +1,9 @@ # SPDX-License-Identifier: GPL-2.0-only config QAT_VFIO_PCI tristate "VFIO support for QAT VF PCI devices" - select VFIO_PCI_CORE depends on CRYPTO_DEV_QAT_4XXX + depends on PCI_IOV + select VFIO_PCI_CORE help This provides migration support for Intel(R) QAT Virtual Function using the VFIO framework. -- 2.39.2