* [PATCH 0/4] make vendor specific subdirectory inclusion conditional
@ 2025-03-11 10:04 Rolf Eike Beer
2025-03-11 10:07 ` [PATCH 1/4] iommu: remove duplicate selection of DMAR_TABLE Rolf Eike Beer
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Rolf Eike Beer @ 2025-03-11 10:04 UTC (permalink / raw)
To: Joerg Roedel, Will Deacon; +Cc: iommu, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1014 bytes --]
I found it strange that the vendor specific subdirectories were unconditionally
added. Everything in these directories obviously depends on the specific Kconfig
option. This series cleans this up by making the directory itself depend on
the respective option which looks more natural to me.
I must confess that I am too lazy to find a good solution for the "arm/"
directory, so I left it as is.
Regards,
Eike
--
Rolf Eike Beer
We are nominated for the embedded award Visit us at the embedded
world 2025 March 11th to 13th, 2025 | Nuremberg Find us in hall 4 at
booth 336
emlix GmbH
Headquarters: Berliner Str. 12, 37073 Göttingen, Germany
Phone +49 (0)551 30664-0, e-mail info@emlix.com
District Court of Göttingen, Registry Number HR B 3160
Managing Directors: Heike Jordan, Dr. Uwe Kracke
VAT ID No. DE 205 198 055
Office Berlin: Panoramastr. 1, 10178 Berlin, Germany
Office Bonn: Bachstr. 6, 53115 Bonn, Germany
http://www.emlix.com
emlix - your embedded Linux partner
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 313 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/4] iommu: remove duplicate selection of DMAR_TABLE
2025-03-11 10:04 [PATCH 0/4] make vendor specific subdirectory inclusion conditional Rolf Eike Beer
@ 2025-03-11 10:07 ` Rolf Eike Beer
2025-03-11 10:10 ` [PATCH 2/4] iommu: make inclusion of intel directory conditional Rolf Eike Beer
` (2 subsequent siblings)
3 siblings, 0 replies; 8+ messages in thread
From: Rolf Eike Beer @ 2025-03-11 10:07 UTC (permalink / raw)
To: Joerg Roedel, Will Deacon; +Cc: iommu, linux-kernel, Bert Karwatzki, Lu Baolu
This is already done in intel/Kconfig.
Fixes: 70bad345e622 ("iommu: Fix compilation without CONFIG_IOMMU_INTEL")
Signed-off-by: Rolf Eike Beer <eb@emlix.com>
---
drivers/iommu/Kconfig | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig
index ec1b5e32b972..fceea41b7f58 100644
--- a/drivers/iommu/Kconfig
+++ b/drivers/iommu/Kconfig
@@ -200,7 +200,6 @@ source "drivers/iommu/riscv/Kconfig"
config IRQ_REMAP
bool "Support for Interrupt Remapping"
depends on X86_64 && X86_IO_APIC && PCI_MSI && ACPI
- select DMAR_TABLE if INTEL_IOMMU
help
Supports Interrupt remapping for IO-APIC and MSI devices.
To use x2apic mode in the CPU's which support x2APIC enhancements or
--
2.48.1
--
Rolf Eike Beer
We are nominated for the embedded award Visit us at the embedded
world 2025 March 11th to 13th, 2025 | Nuremberg Find us in hall 4 at
booth 336
emlix GmbH
Headquarters: Berliner Str. 12, 37073 Göttingen, Germany
Phone +49 (0)551 30664-0, e-mail info@emlix.com
District Court of Göttingen, Registry Number HR B 3160
Managing Directors: Heike Jordan, Dr. Uwe Kracke
VAT ID No. DE 205 198 055
Office Berlin: Panoramastr. 1, 10178 Berlin, Germany
Office Bonn: Bachstr. 6, 53115 Bonn, Germany
http://www.emlix.com
emlix - your embedded Linux partner
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/4] iommu: make inclusion of intel directory conditional
2025-03-11 10:04 [PATCH 0/4] make vendor specific subdirectory inclusion conditional Rolf Eike Beer
2025-03-11 10:07 ` [PATCH 1/4] iommu: remove duplicate selection of DMAR_TABLE Rolf Eike Beer
@ 2025-03-11 10:10 ` Rolf Eike Beer
2025-03-11 10:12 ` [PATCH 3/4] iommu: make inclusion of amd " Rolf Eike Beer
2025-03-11 10:15 ` [PATCH 4/4] iommu: make inclusion of riscv " Rolf Eike Beer
3 siblings, 0 replies; 8+ messages in thread
From: Rolf Eike Beer @ 2025-03-11 10:10 UTC (permalink / raw)
To: Joerg Roedel, Will Deacon; +Cc: iommu, linux-kernel, Jerry Snitselaar, Lu Baolu
Nothing in there is active if CONFIG_INTEL_IOMMU is not enabled, so the whole
directory can depend on that switch as well.
Fixes: ab65ba57e3ac ("iommu/vt-d: Move Kconfig and Makefile bits down into intel directory")
Signed-off-by: Rolf Eike Beer <eb@emlix.com>
---
drivers/iommu/Makefile | 3 ++-
drivers/iommu/intel/Makefile | 2 --
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/iommu/Makefile b/drivers/iommu/Makefile
index 5e5a83c6c2aa..ed673c8fd056 100644
--- a/drivers/iommu/Makefile
+++ b/drivers/iommu/Makefile
@@ -1,5 +1,6 @@
# SPDX-License-Identifier: GPL-2.0
-obj-y += amd/ intel/ arm/ iommufd/ riscv/
+obj-y += amd/ arm/ iommufd/ riscv/
+obj-$(CONFIG_INTEL_IOMMU) += intel/
obj-$(CONFIG_IOMMU_API) += iommu.o
obj-$(CONFIG_IOMMU_API) += iommu-traces.o
obj-$(CONFIG_IOMMU_API) += iommu-sysfs.o
diff --git a/drivers/iommu/intel/Makefile b/drivers/iommu/intel/Makefile
index 6c7528130cf9..7007db03b351 100644
--- a/drivers/iommu/intel/Makefile
+++ b/drivers/iommu/intel/Makefile
@@ -5,7 +5,5 @@ obj-$(CONFIG_DMAR_TABLE) += trace.o
obj-$(CONFIG_DMAR_PERF) += perf.o
obj-$(CONFIG_INTEL_IOMMU_DEBUGFS) += debugfs.o
obj-$(CONFIG_INTEL_IOMMU_SVM) += svm.o
-ifdef CONFIG_INTEL_IOMMU
obj-$(CONFIG_IRQ_REMAP) += irq_remapping.o
-endif
obj-$(CONFIG_INTEL_IOMMU_PERF_EVENTS) += perfmon.o
--
2.48.1
--
Rolf Eike Beer
We are nominated for the embedded award Visit us at the embedded
world 2025 March 11th to 13th, 2025 | Nuremberg Find us in hall 4 at
booth 336
emlix GmbH
Headquarters: Berliner Str. 12, 37073 Göttingen, Germany
Phone +49 (0)551 30664-0, e-mail info@emlix.com
District Court of Göttingen, Registry Number HR B 3160
Managing Directors: Heike Jordan, Dr. Uwe Kracke
VAT ID No. DE 205 198 055
Office Berlin: Panoramastr. 1, 10178 Berlin, Germany
Office Bonn: Bachstr. 6, 53115 Bonn, Germany
http://www.emlix.com
emlix - your embedded Linux partner
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 3/4] iommu: make inclusion of amd directory conditional
2025-03-11 10:04 [PATCH 0/4] make vendor specific subdirectory inclusion conditional Rolf Eike Beer
2025-03-11 10:07 ` [PATCH 1/4] iommu: remove duplicate selection of DMAR_TABLE Rolf Eike Beer
2025-03-11 10:10 ` [PATCH 2/4] iommu: make inclusion of intel directory conditional Rolf Eike Beer
@ 2025-03-11 10:12 ` Rolf Eike Beer
2025-03-11 10:15 ` [PATCH 4/4] iommu: make inclusion of riscv " Rolf Eike Beer
3 siblings, 0 replies; 8+ messages in thread
From: Rolf Eike Beer @ 2025-03-11 10:12 UTC (permalink / raw)
To: Joerg Roedel, Will Deacon
Cc: iommu, linux-kernel, Jerry Snitselaar, Suravee Suthikulpanit
Nothing in there is active if CONFIG_AMD_IOMMU is not enabled, so the whole
directory can depend on that switch as well.
Fixes: cbe94c6e1a7d ("iommu/amd: Move Kconfig and Makefile bits down into amd directory")
Signed-off-by: Rolf Eike Beer <eb@emlix.com>
---
drivers/iommu/Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/iommu/Makefile b/drivers/iommu/Makefile
index ed673c8fd056..41b00cdc8621 100644
--- a/drivers/iommu/Makefile
+++ b/drivers/iommu/Makefile
@@ -1,5 +1,6 @@
# SPDX-License-Identifier: GPL-2.0
-obj-y += amd/ arm/ iommufd/ riscv/
+obj-y += arm/ iommufd/ riscv/
+obj-$(CONFIG_AMD_IOMMU) += amd/
obj-$(CONFIG_INTEL_IOMMU) += intel/
obj-$(CONFIG_IOMMU_API) += iommu.o
obj-$(CONFIG_IOMMU_API) += iommu-traces.o
--
2.48.1
--
Rolf Eike Beer
We are nominated for the embedded award Visit us at the embedded
world 2025 March 11th to 13th, 2025 | Nuremberg Find us in hall 4 at
booth 336
emlix GmbH
Headquarters: Berliner Str. 12, 37073 Göttingen, Germany
Phone +49 (0)551 30664-0, e-mail info@emlix.com
District Court of Göttingen, Registry Number HR B 3160
Managing Directors: Heike Jordan, Dr. Uwe Kracke
VAT ID No. DE 205 198 055
Office Berlin: Panoramastr. 1, 10178 Berlin, Germany
Office Bonn: Bachstr. 6, 53115 Bonn, Germany
http://www.emlix.com
emlix - your embedded Linux partner
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 4/4] iommu: make inclusion of riscv directory conditional
2025-03-11 10:04 [PATCH 0/4] make vendor specific subdirectory inclusion conditional Rolf Eike Beer
` (2 preceding siblings ...)
2025-03-11 10:12 ` [PATCH 3/4] iommu: make inclusion of amd " Rolf Eike Beer
@ 2025-03-11 10:15 ` Rolf Eike Beer
2025-03-20 8:07 ` Joerg Roedel
3 siblings, 1 reply; 8+ messages in thread
From: Rolf Eike Beer @ 2025-03-11 10:15 UTC (permalink / raw)
To: Joerg Roedel, Will Deacon
Cc: iommu, linux-kernel, Tomasz Jeznach, Nick Kossifidis,
Sebastien Boeuf, Lu Baolu, Palmer Dabbelt, Paul Walmsley,
Albert Ou, Alexandre Ghiti
Nothing in there is active if CONFIG_RISCV_IOMMU is not enabled, so the whole
directory can depend on that switch as well.
Fixes: 5c0ebbd3c6c6 ("iommu/riscv: Add RISC-V IOMMU platform device driver")
Signed-off-by: Rolf Eike Beer <eb@emlix.com>
---
drivers/iommu/Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/iommu/Makefile b/drivers/iommu/Makefile
index 41b00cdc8621..17133876f777 100644
--- a/drivers/iommu/Makefile
+++ b/drivers/iommu/Makefile
@@ -1,7 +1,8 @@
# SPDX-License-Identifier: GPL-2.0
-obj-y += arm/ iommufd/ riscv/
+obj-y += arm/ iommufd/
obj-$(CONFIG_AMD_IOMMU) += amd/
obj-$(CONFIG_INTEL_IOMMU) += intel/
+obj-$(CONFIG_RISCV_IOMMU) += riscv/
obj-$(CONFIG_IOMMU_API) += iommu.o
obj-$(CONFIG_IOMMU_API) += iommu-traces.o
obj-$(CONFIG_IOMMU_API) += iommu-sysfs.o
--
2.48.1
--
Rolf Eike Beer
We are nominated for the embedded award Visit us at the embedded
world 2025 March 11th to 13th, 2025 | Nuremberg Find us in hall 4 at
booth 336
emlix GmbH
Headquarters: Berliner Str. 12, 37073 Göttingen, Germany
Phone +49 (0)551 30664-0, e-mail info@emlix.com
District Court of Göttingen, Registry Number HR B 3160
Managing Directors: Heike Jordan, Dr. Uwe Kracke
VAT ID No. DE 205 198 055
Office Berlin: Panoramastr. 1, 10178 Berlin, Germany
Office Bonn: Bachstr. 6, 53115 Bonn, Germany
http://www.emlix.com
emlix - your embedded Linux partner
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 4/4] iommu: make inclusion of riscv directory conditional
2025-03-11 10:15 ` [PATCH 4/4] iommu: make inclusion of riscv " Rolf Eike Beer
@ 2025-03-20 8:07 ` Joerg Roedel
2025-03-20 8:10 ` Rolf Eike Beer
0 siblings, 1 reply; 8+ messages in thread
From: Joerg Roedel @ 2025-03-20 8:07 UTC (permalink / raw)
To: Rolf Eike Beer
Cc: Will Deacon, iommu, linux-kernel, Tomasz Jeznach, Nick Kossifidis,
Sebastien Boeuf, Lu Baolu, Palmer Dabbelt, Paul Walmsley,
Albert Ou, Alexandre Ghiti
On Tue, Mar 11, 2025 at 11:15:12AM +0100, Rolf Eike Beer wrote:
> Nothing in there is active if CONFIG_RISCV_IOMMU is not enabled, so the whole
> directory can depend on that switch as well.
>
> Fixes: 5c0ebbd3c6c6 ("iommu/riscv: Add RISC-V IOMMU platform device driver")
> Signed-off-by: Rolf Eike Beer <eb@emlix.com>
> ---
> drivers/iommu/Makefile | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/iommu/Makefile b/drivers/iommu/Makefile
> index 41b00cdc8621..17133876f777 100644
> --- a/drivers/iommu/Makefile
> +++ b/drivers/iommu/Makefile
> @@ -1,7 +1,8 @@
> # SPDX-License-Identifier: GPL-2.0
> -obj-y += arm/ iommufd/ riscv/
> +obj-y += arm/ iommufd/
> obj-$(CONFIG_AMD_IOMMU) += amd/
> obj-$(CONFIG_INTEL_IOMMU) += intel/
> +obj-$(CONFIG_RISCV_IOMMU) += riscv/
> obj-$(CONFIG_IOMMU_API) += iommu.o
> obj-$(CONFIG_IOMMU_API) += iommu-traces.o
> obj-$(CONFIG_IOMMU_API) += iommu-sysfs.o
This allows for some additional cleanups in the Makefiles of the
sub-directory, no? Same for the other patches in this series.
Regards,
Joerg
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 4/4] iommu: make inclusion of riscv directory conditional
2025-03-20 8:07 ` Joerg Roedel
@ 2025-03-20 8:10 ` Rolf Eike Beer
2025-03-20 8:15 ` Joerg Roedel
0 siblings, 1 reply; 8+ messages in thread
From: Rolf Eike Beer @ 2025-03-20 8:10 UTC (permalink / raw)
To: Joerg Roedel
Cc: Will Deacon, iommu, linux-kernel, Tomasz Jeznach, Nick Kossifidis,
Sebastien Boeuf, Lu Baolu, Palmer Dabbelt, Paul Walmsley,
Albert Ou, Alexandre Ghiti
[-- Attachment #1: Type: text/plain, Size: 2038 bytes --]
On Donnerstag, 20. März 2025 09:07:29 Mitteleuropäische Normalzeit Joerg
Roedel wrote:
> On Tue, Mar 11, 2025 at 11:15:12AM +0100, Rolf Eike Beer wrote:
> > Nothing in there is active if CONFIG_RISCV_IOMMU is not enabled, so the
> > whole directory can depend on that switch as well.
> >
> > Fixes: 5c0ebbd3c6c6 ("iommu/riscv: Add RISC-V IOMMU platform device
> > driver") Signed-off-by: Rolf Eike Beer <eb@emlix.com>
> > ---
> >
> > drivers/iommu/Makefile | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/drivers/iommu/Makefile b/drivers/iommu/Makefile
> > index 41b00cdc8621..17133876f777 100644
> > --- a/drivers/iommu/Makefile
> > +++ b/drivers/iommu/Makefile
> > @@ -1,7 +1,8 @@
> >
> > # SPDX-License-Identifier: GPL-2.0
> >
> > -obj-y += arm/ iommufd/ riscv/
> > +obj-y += arm/ iommufd/
> >
> > obj-$(CONFIG_AMD_IOMMU) += amd/
> > obj-$(CONFIG_INTEL_IOMMU) += intel/
> >
> > +obj-$(CONFIG_RISCV_IOMMU) += riscv/
> >
> > obj-$(CONFIG_IOMMU_API) += iommu.o
> > obj-$(CONFIG_IOMMU_API) += iommu-traces.o
> > obj-$(CONFIG_IOMMU_API) += iommu-sysfs.o
>
> This allows for some additional cleanups in the Makefiles of the
> sub-directory, no? Same for the other patches in this series.
Yes, and I can send those cleanups as a followup if you like. But for the first
step I wanted to keep this as less invasive as it could be. And to be honest I
didn't want to invest time to do this cleanups if it's unclear if they would
be rejected anyway because these things are this way on purpose.
Regards,
Eike
--
Rolf Eike Beer
emlix GmbH
Headquarters: Berliner Str. 12, 37073 Göttingen, Germany
Phone +49 (0)551 30664-0, e-mail info@emlix.com
District Court of Göttingen, Registry Number HR B 3160
Managing Directors: Heike Jordan, Dr. Uwe Kracke
VAT ID No. DE 205 198 055
Office Berlin: Panoramastr. 1, 10178 Berlin, Germany
Office Bonn: Bachstr. 6, 53115 Bonn, Germany
http://www.emlix.com
emlix - your embedded Linux partner
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 313 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 4/4] iommu: make inclusion of riscv directory conditional
2025-03-20 8:10 ` Rolf Eike Beer
@ 2025-03-20 8:15 ` Joerg Roedel
0 siblings, 0 replies; 8+ messages in thread
From: Joerg Roedel @ 2025-03-20 8:15 UTC (permalink / raw)
To: Rolf Eike Beer
Cc: Will Deacon, iommu, linux-kernel, Tomasz Jeznach, Nick Kossifidis,
Sebastien Boeuf, Lu Baolu, Palmer Dabbelt, Paul Walmsley,
Albert Ou, Alexandre Ghiti
On Thu, Mar 20, 2025 at 09:10:34AM +0100, Rolf Eike Beer wrote:
> Yes, and I can send those cleanups as a followup if you like. But for the first
> step I wanted to keep this as less invasive as it could be. And to be honest I
> didn't want to invest time to do this cleanups if it's unclear if they would
> be rejected anyway because these things are this way on purpose.
I am fine with these cleanups and they are contained enough to also take
care of the vendor-specific Makefiles in the same series.
Regards,
Joerg
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2025-03-20 8:17 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-11 10:04 [PATCH 0/4] make vendor specific subdirectory inclusion conditional Rolf Eike Beer
2025-03-11 10:07 ` [PATCH 1/4] iommu: remove duplicate selection of DMAR_TABLE Rolf Eike Beer
2025-03-11 10:10 ` [PATCH 2/4] iommu: make inclusion of intel directory conditional Rolf Eike Beer
2025-03-11 10:12 ` [PATCH 3/4] iommu: make inclusion of amd " Rolf Eike Beer
2025-03-11 10:15 ` [PATCH 4/4] iommu: make inclusion of riscv " Rolf Eike Beer
2025-03-20 8:07 ` Joerg Roedel
2025-03-20 8:10 ` Rolf Eike Beer
2025-03-20 8:15 ` Joerg Roedel
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.