From nobody Sun Oct 5 09:04:11 2025 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 CBAEB296148 for ; Wed, 6 Aug 2025 17:03:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754499812; cv=none; b=imaeE53s0hhtHS0csk6IHRYFLe0SDsSrBG9wrnCeWEUGC7YRB8vU7Oe0Fwn7Lh7YMbTBbc8PK0hMvt7TL2DcIPuG1/eP50fFR7g4s1H91+dkwtU3aFiCfM8hlecT6979kBw98InQbuVtAHu19eQvlubftjPPDk94lcBb3JPz3n0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754499812; c=relaxed/simple; bh=R9E2CXDi0Ci1uMDw2pUbtnv9Gjct9iSM/Rkm4hV2jXo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kiUkie0WJifd8EFMBOVGUExGTDgpktzWXd8BXEqUqImXPi+Y0T2G10hS/xuddHdiJid9tvco05HBXeeAo2Oa9r1farx/V1abIgVCvdZkDhvvJgBS3I+VfrsQ9VlXVztI4x9xvZf/hhvtadteyxiz3IiUQsZH+jXQXCYyhaUY2e0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=Ca5KU71G; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Ca5KU71G" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1754499809; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gOB1iUxGdN/YU3HdC/MxEaPJYHZj91g8Oi9O0xUCn9c=; b=Ca5KU71GJ+1tYgiJ+X/8HP33v0R8Lpeav66ZNP56z3/glci6CRZ/FrLng+UYS93JRvX0TS m5Jfa4N+OAOTYrw8+9ZRKOzDskjn2wLWY5pZuyRvoGyAbFuZjU3tzG8BHTxGzPPfc2QoKH EbmeRKTYa103zwbbucVoZ5IRoyxaIo8= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-253-Ep4MHr24Nci2mqbrnOwGsA-1; Wed, 06 Aug 2025 13:03:27 -0400 X-MC-Unique: Ep4MHr24Nci2mqbrnOwGsA-1 X-Mimecast-MFC-AGG-ID: Ep4MHr24Nci2mqbrnOwGsA_1754499806 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 546091800446; Wed, 6 Aug 2025 17:03:26 +0000 (UTC) Received: from omen.home.shazbot.org (unknown [10.22.66.8]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 22DBE180035C; Wed, 6 Aug 2025 17:03:24 +0000 (UTC) From: Alex Williamson To: alex.williamson@redhat.com, kvm@vger.kernel.org Cc: linux-kernel@vger.kernel.org, eric.auger@redhat.com, clg@redhat.com Subject: [PATCH 1/2] vfio/fsl-mc: Mark for removal Date: Wed, 6 Aug 2025 11:03:11 -0600 Message-ID: <20250806170314.3768750-2-alex.williamson@redhat.com> In-Reply-To: <20250806170314.3768750-1-alex.williamson@redhat.com> References: <20250806170314.3768750-1-alex.williamson@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 Content-Type: text/plain; charset="utf-8" The driver has been orphaned for more than a year, mark it for removal. Signed-off-by: Alex Williamson Reviewed-by: C=C3=A9dric Le Goater Reviewed-by: Eric Auger Reviewed-by: Jason Gunthorpe Reviewed-by: Kevin Tian --- MAINTAINERS | 2 +- drivers/vfio/fsl-mc/Kconfig | 5 ++++- drivers/vfio/fsl-mc/vfio_fsl_mc.c | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index c0b444e5fd5a..25a520467dec 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -26033,7 +26033,7 @@ F: include/uapi/linux/vfio.h =20 VFIO FSL-MC DRIVER L: kvm@vger.kernel.org -S: Orphan +S: Obsolete F: drivers/vfio/fsl-mc/ =20 VFIO HISILICON PCI DRIVER diff --git a/drivers/vfio/fsl-mc/Kconfig b/drivers/vfio/fsl-mc/Kconfig index 7d1d690348f0..43c145d17971 100644 --- a/drivers/vfio/fsl-mc/Kconfig +++ b/drivers/vfio/fsl-mc/Kconfig @@ -2,9 +2,12 @@ menu "VFIO support for FSL_MC bus devices" depends on FSL_MC_BUS =20 config VFIO_FSL_MC - tristate "VFIO support for QorIQ DPAA2 fsl-mc bus devices" + tristate "VFIO support for QorIQ DPAA2 fsl-mc bus devices (DEPRECATED)" select EVENTFD help + The vfio-fsl-mc driver is deprecated and will be removed in a + future kernel release. + Driver to enable support for the VFIO QorIQ DPAA2 fsl-mc (Management Complex) devices. This is required to passthrough fsl-mc bus devices using the VFIO framework. diff --git a/drivers/vfio/fsl-mc/vfio_fsl_mc.c b/drivers/vfio/fsl-mc/vfio_f= sl_mc.c index f65d91c01f2e..76ccbab0e3d6 100644 --- a/drivers/vfio/fsl-mc/vfio_fsl_mc.c +++ b/drivers/vfio/fsl-mc/vfio_fsl_mc.c @@ -537,6 +537,8 @@ static int vfio_fsl_mc_probe(struct fsl_mc_device *mc_d= ev) struct device *dev =3D &mc_dev->dev; int ret; =20 + dev_err_once(dev, "DEPRECATION: vfio-fsl-mc is deprecated and will be rem= oved in a future kernel release\n"); + vdev =3D vfio_alloc_device(vfio_fsl_mc_device, vdev, dev, &vfio_fsl_mc_ops); if (IS_ERR(vdev)) --=20 2.50.1 From nobody Sun Oct 5 09:04:11 2025 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 6015329ACE8 for ; Wed, 6 Aug 2025 17:03:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754499814; cv=none; b=qa7UmGH5Dk0RJWi2rOnE6IGfrrsteRzyUMiFOBjN8oiEnpSssnyyjTmgZ+rP2npEDwAj21FS36N8XhzVu8i5gMTnU834hlUS+NZt54wFgkBa3OElhg8K8WVObLycXtJQyBkK33Lc8XRFay7iEAhpWD4ID+nTYyWHqJClQV/NRco= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754499814; c=relaxed/simple; bh=CPMxbRh94JnxO0mzoXMokg9I8ngrGZNcga7wtw2hpsg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uXzlH8h65mkRB90vkwuB37SwHcsP4fNlk3sZjvKhJqHypJGNOtCbEVtQq93WtGKOpArrCl/Pf5unQZZ7YPSb9BCPL3w6osrOiiRxHb3dH88cqsW536oETkTYRe41W9jTzq33H5ZNW7iFVm1LX/tYK9EUFBOFTMoLF5XLGXtIjXU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=F+0P95qw; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="F+0P95qw" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1754499811; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SKoJ2BjIBdkoXAWIkYom3NLmTCzDnSKGDSQwCAIp9+w=; b=F+0P95qwyom/l98oA4mIIgM/U7VM366eSYZSiUmeaVIIxMw4uMPg7etsxanvWJH040HeJE 9eXeqM7q53pzlp+pZITaszdj8rNS6LbtbEopVxThELvuhT4Y3/7ZW0HUZky87x2WJ6Ei7I KF4XCxCBkUthRhzS5KYGHR/Ggll9qGs= Received: from mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-576-aFp54YT8MGC5REStw6UzYg-1; Wed, 06 Aug 2025 13:03:29 -0400 X-MC-Unique: aFp54YT8MGC5REStw6UzYg-1 X-Mimecast-MFC-AGG-ID: aFp54YT8MGC5REStw6UzYg_1754499808 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id E7C19195608D; Wed, 6 Aug 2025 17:03:27 +0000 (UTC) Received: from omen.home.shazbot.org (unknown [10.22.66.8]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id AB099180035C; Wed, 6 Aug 2025 17:03:26 +0000 (UTC) From: Alex Williamson To: alex.williamson@redhat.com, kvm@vger.kernel.org Cc: linux-kernel@vger.kernel.org, eric.auger@redhat.com, clg@redhat.com Subject: [PATCH 2/2] vfio/platform: Mark for removal Date: Wed, 6 Aug 2025 11:03:12 -0600 Message-ID: <20250806170314.3768750-3-alex.williamson@redhat.com> In-Reply-To: <20250806170314.3768750-1-alex.williamson@redhat.com> References: <20250806170314.3768750-1-alex.williamson@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 Content-Type: text/plain; charset="utf-8" vfio-platform hasn't had a meaningful contribution in years. In-tree hardware support is predominantly only for devices which are long since e-waste. QEMU support for platform devices is slated for removal in QEMU-10.2. Eric Auger presented on the future of the vfio-platform driver and difficulties supporting new devices at KVM Forum 2024, gaining some support for removal, some disagreement, but garnering no new hardware support, leaving the driver in a state where it cannot be tested. Mark as obsolete and subject to removal. Link: https://lore.kernel.org/all/20250731121947.1346927-1-clg@redhat.com/ Link: https://www.youtube.com/watch?v=3DQ5BOSbtwRr8 Signed-off-by: Alex Williamson Reviewed-by: C=C3=A9dric Le Goater Reviewed-by: Eric Auger Reviewed-by: Jason Gunthorpe Reviewed-by: Kevin Tian --- MAINTAINERS | 2 +- drivers/vfio/platform/Kconfig | 10 ++++++++-- drivers/vfio/platform/reset/Kconfig | 6 +++--- drivers/vfio/platform/vfio_amba.c | 2 ++ drivers/vfio/platform/vfio_platform.c | 2 ++ 5 files changed, 16 insertions(+), 6 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 25a520467dec..c19b60032aa3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -26084,7 +26084,7 @@ F: drivers/vfio/pci/pds/ VFIO PLATFORM DRIVER M: Eric Auger L: kvm@vger.kernel.org -S: Maintained +S: Obsolete F: drivers/vfio/platform/ =20 VFIO QAT PCI DRIVER diff --git a/drivers/vfio/platform/Kconfig b/drivers/vfio/platform/Kconfig index 88fcde51f024..a8bde833e9e5 100644 --- a/drivers/vfio/platform/Kconfig +++ b/drivers/vfio/platform/Kconfig @@ -7,9 +7,12 @@ config VFIO_PLATFORM_BASE select VFIO_VIRQFD =20 config VFIO_PLATFORM - tristate "Generic VFIO support for any platform device" + tristate "Generic VFIO support for any platform device (DEPRECATED)" select VFIO_PLATFORM_BASE help + The vfio-platform driver is deprecated and will be removed in a + future kernel release. + Support for platform devices with VFIO. This is required to make use of platform devices present on the system using the VFIO framework. @@ -17,10 +20,13 @@ config VFIO_PLATFORM If you don't know what to do here, say N. =20 config VFIO_AMBA - tristate "VFIO support for AMBA devices" + tristate "VFIO support for AMBA devices (DEPRECATED)" depends on ARM_AMBA || COMPILE_TEST select VFIO_PLATFORM_BASE help + The vfio-amba driver is deprecated and will be removed in a + future kernel release. + Support for ARM AMBA devices with VFIO. This is required to make use of ARM AMBA devices present on the system using the VFIO framework. diff --git a/drivers/vfio/platform/reset/Kconfig b/drivers/vfio/platform/re= set/Kconfig index dcc08dc145a5..70af0dbe293b 100644 --- a/drivers/vfio/platform/reset/Kconfig +++ b/drivers/vfio/platform/reset/Kconfig @@ -1,21 +1,21 @@ # SPDX-License-Identifier: GPL-2.0-only if VFIO_PLATFORM config VFIO_PLATFORM_CALXEDAXGMAC_RESET - tristate "VFIO support for calxeda xgmac reset" + tristate "VFIO support for calxeda xgmac reset (DEPRECATED)" help Enables the VFIO platform driver to handle reset for Calxeda xgmac =20 If you don't know what to do here, say N. =20 config VFIO_PLATFORM_AMDXGBE_RESET - tristate "VFIO support for AMD XGBE reset" + tristate "VFIO support for AMD XGBE reset (DEPRECATED)" help Enables the VFIO platform driver to handle reset for AMD XGBE =20 If you don't know what to do here, say N. =20 config VFIO_PLATFORM_BCMFLEXRM_RESET - tristate "VFIO support for Broadcom FlexRM reset" + tristate "VFIO support for Broadcom FlexRM reset (DEPRECATED)" depends on ARCH_BCM_IPROC || COMPILE_TEST default ARCH_BCM_IPROC help diff --git a/drivers/vfio/platform/vfio_amba.c b/drivers/vfio/platform/vfio= _amba.c index ff8ff8480968..9f5c527baa8a 100644 --- a/drivers/vfio/platform/vfio_amba.c +++ b/drivers/vfio/platform/vfio_amba.c @@ -70,6 +70,8 @@ static int vfio_amba_probe(struct amba_device *adev, cons= t struct amba_id *id) struct vfio_platform_device *vdev; int ret; =20 + dev_err_once(&adev->dev, "DEPRECATION: vfio-amba is deprecated and will b= e removed in a future kernel release\n"); + vdev =3D vfio_alloc_device(vfio_platform_device, vdev, &adev->dev, &vfio_amba_ops); if (IS_ERR(vdev)) diff --git a/drivers/vfio/platform/vfio_platform.c b/drivers/vfio/platform/= vfio_platform.c index 512533501eb7..48a49b14164a 100644 --- a/drivers/vfio/platform/vfio_platform.c +++ b/drivers/vfio/platform/vfio_platform.c @@ -59,6 +59,8 @@ static int vfio_platform_probe(struct platform_device *pd= ev) struct vfio_platform_device *vdev; int ret; =20 + dev_err_once(&pdev->dev, "DEPRECATION: vfio-platform is deprecated and wi= ll be removed in a future kernel release\n"); + vdev =3D vfio_alloc_device(vfio_platform_device, vdev, &pdev->dev, &vfio_platform_ops); if (IS_ERR(vdev)) --=20 2.50.1