public inbox for linux-s390@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iommu/s390: Get rid of S390_CCW_IOMMU
@ 2023-04-28 19:28 Jason Gunthorpe
  2023-05-01 15:06 ` Eric Farman
  0 siblings, 1 reply; 3+ messages in thread
From: Jason Gunthorpe @ 2023-04-28 19:28 UTC (permalink / raw)
  To: Alexander Gordeev, Christian Borntraeger, Vasily Gorbik,
	Heiko Carstens, iommu, Joerg Roedel, linux-s390, Robin Murphy,
	Sven Schnelle, Will Deacon

This doesn't do anything anymore, the only user of the symbol was VFIO_CCW
which already "depends on VFIO" and VFIO selects IOMMU_API.

When this was added VFIO was wrongly doing "depends on IOMMU_API" which
required some mess like this to ensure IOMMU_API was turned on.

Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
---
 arch/s390/Kconfig                 | 1 -
 arch/s390/configs/debug_defconfig | 1 -
 arch/s390/configs/defconfig       | 1 -
 drivers/iommu/Kconfig             | 8 --------
 4 files changed, 11 deletions(-)

diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig
index 9809c74e124060..9334500078f978 100644
--- a/arch/s390/Kconfig
+++ b/arch/s390/Kconfig
@@ -714,7 +714,6 @@ config EADM_SCH
 config VFIO_CCW
 	def_tristate n
 	prompt "Support for VFIO-CCW subchannels"
-	depends on S390_CCW_IOMMU
 	depends on VFIO
 	select VFIO_MDEV
 	help
diff --git a/arch/s390/configs/debug_defconfig b/arch/s390/configs/debug_defconfig
index 4ccf66d29fc24b..77b886e1b867d4 100644
--- a/arch/s390/configs/debug_defconfig
+++ b/arch/s390/configs/debug_defconfig
@@ -591,7 +591,6 @@ CONFIG_VIRTIO_BALLOON=m
 CONFIG_VIRTIO_INPUT=y
 CONFIG_VHOST_NET=m
 CONFIG_VHOST_VSOCK=m
-CONFIG_S390_CCW_IOMMU=y
 CONFIG_S390_AP_IOMMU=y
 CONFIG_EXT4_FS=y
 CONFIG_EXT4_FS_POSIX_ACL=y
diff --git a/arch/s390/configs/defconfig b/arch/s390/configs/defconfig
index 693297a2e89733..36ab9b1956245c 100644
--- a/arch/s390/configs/defconfig
+++ b/arch/s390/configs/defconfig
@@ -580,7 +580,6 @@ CONFIG_VIRTIO_BALLOON=m
 CONFIG_VIRTIO_INPUT=y
 CONFIG_VHOST_NET=m
 CONFIG_VHOST_VSOCK=m
-CONFIG_S390_CCW_IOMMU=y
 CONFIG_S390_AP_IOMMU=y
 CONFIG_EXT4_FS=y
 CONFIG_EXT4_FS_POSIX_ACL=y
diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig
index db98c3f86e8c8b..b1f9d82b4ec9ae 100644
--- a/drivers/iommu/Kconfig
+++ b/drivers/iommu/Kconfig
@@ -417,14 +417,6 @@ config S390_IOMMU
 	help
 	  Support for the IOMMU API for s390 PCI devices.
 
-config S390_CCW_IOMMU
-	bool "S390 CCW IOMMU Support"
-	depends on S390 && CCW || COMPILE_TEST
-	select IOMMU_API
-	help
-	  Enables bits of IOMMU API required by VFIO. The iommu_ops
-	  is not implemented as it is not necessary for VFIO.
-
 config S390_AP_IOMMU
 	bool "S390 AP IOMMU Support"
 	depends on S390 && ZCRYPT || COMPILE_TEST

base-commit: 57d60ea1868f36586c85f6f6692cf4bc49affecd
-- 
2.40.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] iommu/s390: Get rid of S390_CCW_IOMMU
  2023-04-28 19:28 [PATCH] iommu/s390: Get rid of S390_CCW_IOMMU Jason Gunthorpe
@ 2023-05-01 15:06 ` Eric Farman
  2023-05-01 15:25   ` Jason Gunthorpe
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Farman @ 2023-05-01 15:06 UTC (permalink / raw)
  To: Jason Gunthorpe, Alexander Gordeev, Christian Borntraeger,
	Vasily Gorbik, Heiko Carstens, iommu, Joerg Roedel, linux-s390,
	Robin Murphy, Sven Schnelle, Will Deacon
  Cc: Matthew Rosato, Anthony Krowiak, Jason J. Herne

On Fri, 2023-04-28 at 16:28 -0300, Jason Gunthorpe wrote:
> This doesn't do anything anymore, the only user of the symbol was
> VFIO_CCW
> which already "depends on VFIO" and VFIO selects IOMMU_API.

The "depends on VFIO" statement came from commit de858a05c9d8 ("vfio-
mdev: add back CONFIG_VFIO dependency"). This isn't really a fix to
that one, but it does follow that set of changes.

> 
> When this was added VFIO was wrongly doing "depends on IOMMU_API"

(later fixed by commit 179209fa1270 ("vfio: IOMMU_API should be
selected"))

> which
> required some mess like this to ensure IOMMU_API was turned on.
> 
> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>

What of S390_AP_IOMMU? Seems to have been borrowed from the _CCW hunks
being removed here, and is now equally redundant (though I have not
tried).

Regardless, for this:

Reviewed-by: Eric Farman <farman@linux.ibm.com>

> ---
>  arch/s390/Kconfig                 | 1 -
>  arch/s390/configs/debug_defconfig | 1 -
>  arch/s390/configs/defconfig       | 1 -
>  drivers/iommu/Kconfig             | 8 --------
>  4 files changed, 11 deletions(-)
> 
> diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig
> index 9809c74e124060..9334500078f978 100644
> --- a/arch/s390/Kconfig
> +++ b/arch/s390/Kconfig
> @@ -714,7 +714,6 @@ config EADM_SCH
>  config VFIO_CCW
>         def_tristate n
>         prompt "Support for VFIO-CCW subchannels"
> -       depends on S390_CCW_IOMMU
>         depends on VFIO
>         select VFIO_MDEV
>         help
> diff --git a/arch/s390/configs/debug_defconfig
> b/arch/s390/configs/debug_defconfig
> index 4ccf66d29fc24b..77b886e1b867d4 100644
> --- a/arch/s390/configs/debug_defconfig
> +++ b/arch/s390/configs/debug_defconfig
> @@ -591,7 +591,6 @@ CONFIG_VIRTIO_BALLOON=m
>  CONFIG_VIRTIO_INPUT=y
>  CONFIG_VHOST_NET=m
>  CONFIG_VHOST_VSOCK=m
> -CONFIG_S390_CCW_IOMMU=y
>  CONFIG_S390_AP_IOMMU=y
>  CONFIG_EXT4_FS=y
>  CONFIG_EXT4_FS_POSIX_ACL=y
> diff --git a/arch/s390/configs/defconfig
> b/arch/s390/configs/defconfig
> index 693297a2e89733..36ab9b1956245c 100644
> --- a/arch/s390/configs/defconfig
> +++ b/arch/s390/configs/defconfig
> @@ -580,7 +580,6 @@ CONFIG_VIRTIO_BALLOON=m
>  CONFIG_VIRTIO_INPUT=y
>  CONFIG_VHOST_NET=m
>  CONFIG_VHOST_VSOCK=m
> -CONFIG_S390_CCW_IOMMU=y
>  CONFIG_S390_AP_IOMMU=y
>  CONFIG_EXT4_FS=y
>  CONFIG_EXT4_FS_POSIX_ACL=y
> diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig
> index db98c3f86e8c8b..b1f9d82b4ec9ae 100644
> --- a/drivers/iommu/Kconfig
> +++ b/drivers/iommu/Kconfig
> @@ -417,14 +417,6 @@ config S390_IOMMU
>         help
>           Support for the IOMMU API for s390 PCI devices.
>  
> -config S390_CCW_IOMMU
> -       bool "S390 CCW IOMMU Support"
> -       depends on S390 && CCW || COMPILE_TEST
> -       select IOMMU_API
> -       help
> -         Enables bits of IOMMU API required by VFIO. The iommu_ops
> -         is not implemented as it is not necessary for VFIO.
> -
>  config S390_AP_IOMMU
>         bool "S390 AP IOMMU Support"
>         depends on S390 && ZCRYPT || COMPILE_TEST
> 
> base-commit: 57d60ea1868f36586c85f6f6692cf4bc49affecd


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] iommu/s390: Get rid of S390_CCW_IOMMU
  2023-05-01 15:06 ` Eric Farman
@ 2023-05-01 15:25   ` Jason Gunthorpe
  0 siblings, 0 replies; 3+ messages in thread
From: Jason Gunthorpe @ 2023-05-01 15:25 UTC (permalink / raw)
  To: Eric Farman
  Cc: Alexander Gordeev, Christian Borntraeger, Vasily Gorbik,
	Heiko Carstens, iommu, Joerg Roedel, linux-s390, Robin Murphy,
	Sven Schnelle, Will Deacon, Matthew Rosato, Anthony Krowiak,
	Jason J. Herne

On Mon, May 01, 2023 at 11:06:51AM -0400, Eric Farman wrote:

> > which
> > required some mess like this to ensure IOMMU_API was turned on.
> > 
> > Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
> 
> What of S390_AP_IOMMU? Seems to have been borrowed from the _CCW hunks
> being removed here, and is now equally redundant (though I have not
> tried).

I didn't notice that one, I will fix it too

Thanks,
Jason

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-05-01 15:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-28 19:28 [PATCH] iommu/s390: Get rid of S390_CCW_IOMMU Jason Gunthorpe
2023-05-01 15:06 ` Eric Farman
2023-05-01 15:25   ` Jason Gunthorpe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox