* [PATCH] iommu/sva: include mmu_notifier.h header
@ 2026-01-05 19:07 Carlos Llamas
2026-01-10 9:40 ` Joerg Roedel
0 siblings, 1 reply; 2+ messages in thread
From: Carlos Llamas @ 2026-01-05 19:07 UTC (permalink / raw)
To: Joerg Roedel, Will Deacon, Robin Murphy, Jason Gunthorpe,
Kevin Tian, Vasant Hegde, Lu Baolu, Andrew Morton
Cc: kernel-team, linux-kernel, Carlos Llamas, open list:IOMMU SUBSYSTEM
A call to mmu_notifier_arch_invalidate_secondary_tlbs() was introduced
in commit e37d5a2d60a3 ("iommu/sva: invalidate stale IOTLB entries for
kernel address space") but without explicitly adding its corresponding
header file <linux/mmu_notifier.h>. This was evidenced while trying to
enable compile testing support for IOMMU_SVA:
config IOMMU_SVA
select IOMMU_MM_DATA
- bool
+ bool "Shared Virtual Addressing" if COMPILE_TEST
The thing is for certain architectures this header file is indirectly
included via <asm/tlbflush.h>. However, for others such as 32-bit arm
the header is missing and it results in a build failure:
$ make ARCH=arm allmodconfig
[...]
drivers/iommu/iommu-sva.c:340:3: error: call to undeclared function 'mmu_notifier_arch_invalidate_secondary_tlbs' [...]
340 | mmu_notifier_arch_invalidate_secondary_tlbs(iommu_mm->mm, start, end);
| ^
Fix this by including the appropriate header file.
Fixes: e37d5a2d60a3 ("iommu/sva: invalidate stale IOTLB entries for kernel address space")
Signed-off-by: Carlos Llamas <cmllamas@google.com>
---
drivers/iommu/iommu-sva.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/iommu/iommu-sva.c b/drivers/iommu/iommu-sva.c
index d236aef80a8d..e1e63c2be82b 100644
--- a/drivers/iommu/iommu-sva.c
+++ b/drivers/iommu/iommu-sva.c
@@ -3,6 +3,7 @@
* Helpers for IOMMU drivers implementing SVA
*/
#include <linux/mmu_context.h>
+#include <linux/mmu_notifier.h>
#include <linux/mutex.h>
#include <linux/sched/mm.h>
#include <linux/iommu.h>
--
2.52.0.358.g0dd7633a29-goog
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] iommu/sva: include mmu_notifier.h header
2026-01-05 19:07 [PATCH] iommu/sva: include mmu_notifier.h header Carlos Llamas
@ 2026-01-10 9:40 ` Joerg Roedel
0 siblings, 0 replies; 2+ messages in thread
From: Joerg Roedel @ 2026-01-10 9:40 UTC (permalink / raw)
To: Carlos Llamas
Cc: Will Deacon, Robin Murphy, Jason Gunthorpe, Kevin Tian,
Vasant Hegde, Lu Baolu, Andrew Morton, kernel-team, linux-kernel,
open list:IOMMU SUBSYSTEM
On Mon, Jan 05, 2026 at 07:07:46PM +0000, Carlos Llamas wrote:
> A call to mmu_notifier_arch_invalidate_secondary_tlbs() was introduced
> in commit e37d5a2d60a3 ("iommu/sva: invalidate stale IOTLB entries for
> kernel address space") but without explicitly adding its corresponding
> header file <linux/mmu_notifier.h>. This was evidenced while trying to
> enable compile testing support for IOMMU_SVA:
>
> config IOMMU_SVA
> select IOMMU_MM_DATA
> - bool
> + bool "Shared Virtual Addressing" if COMPILE_TEST
This patch should be part of a patch-set which does the above. As-is, this does
not qualify as a fix or a standalone change.
-Joerg
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-01-10 9:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-05 19:07 [PATCH] iommu/sva: include mmu_notifier.h header Carlos Llamas
2026-01-10 9:40 ` Joerg Roedel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®