* [PATCH v1] iommu/amd: Remove unused IOMMU_IN/OUT_ADDR_BIT_SIZE macros
@ 2026-04-21 10:00 Wei Wang
2026-04-21 11:42 ` Jason Gunthorpe
0 siblings, 1 reply; 3+ messages in thread
From: Wei Wang @ 2026-04-21 10:00 UTC (permalink / raw)
To: joro, suravee.suthikulpanit, jgg, will, robin.murphy
Cc: iommu, linux-kernel, wei.w.wang
The macros IOMMU_IN/OUT_ADDR_BIT_SIZE became unused after commit
2fdf6db436e3 ("iommu/amd: Remove AMD io_pgtable support"), which removed
the last references in io_pgtable.c and io_pgtable_v2.c. Remove them to
clean up unused definitions.
Signed-off-by: Wei Wang <wei.w.wang@hotmail.com>
---
drivers/iommu/amd/amd_iommu_types.h | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/iommu/amd/amd_iommu_types.h b/drivers/iommu/amd/amd_iommu_types.h
index c685d3771436..19d73963acbf 100644
--- a/drivers/iommu/amd/amd_iommu_types.h
+++ b/drivers/iommu/amd/amd_iommu_types.h
@@ -300,9 +300,6 @@
#define GA_GUEST_NR 0x1
-#define IOMMU_IN_ADDR_BIT_SIZE 52
-#define IOMMU_OUT_ADDR_BIT_SIZE 52
-
/*
* This bitmap is used to advertise the page sizes our hardware support
* to the IOMMU core, which will then use this information to split
base-commit: 97e797263a5e963da3d1e66e743fd518567dfe37
--
2.51.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH v1] iommu/amd: Remove unused IOMMU_IN/OUT_ADDR_BIT_SIZE macros
2026-04-21 10:00 [PATCH v1] iommu/amd: Remove unused IOMMU_IN/OUT_ADDR_BIT_SIZE macros Wei Wang
@ 2026-04-21 11:42 ` Jason Gunthorpe
0 siblings, 0 replies; 3+ messages in thread
From: Jason Gunthorpe @ 2026-04-21 11:42 UTC (permalink / raw)
To: Wei Wang
Cc: joro, suravee.suthikulpanit, will, robin.murphy, iommu,
linux-kernel
On Tue, Apr 21, 2026 at 06:00:38PM +0800, Wei Wang wrote:
> The macros IOMMU_IN/OUT_ADDR_BIT_SIZE became unused after commit
> 2fdf6db436e3 ("iommu/amd: Remove AMD io_pgtable support"), which removed
> the last references in io_pgtable.c and io_pgtable_v2.c. Remove them to
> clean up unused definitions.
>
> Signed-off-by: Wei Wang <wei.w.wang@hotmail.com>
> ---
> drivers/iommu/amd/amd_iommu_types.h | 3 ---
> 1 file changed, 3 deletions(-)
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Jason
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH v1] iommu/amd: Remove unused IOMMU_IN/OUT_ADDR_BIT_SIZE macros
@ 2026-04-21 9:57 Wei Wang
0 siblings, 0 replies; 3+ messages in thread
From: Wei Wang @ 2026-04-21 9:57 UTC (permalink / raw)
To: joro, suravee.suthikulpanit, jgg, will, robin.murphy
Cc: iommu, linux-kernel, wei.w.wang
The macros IOMMU_IN/OUT_ADDR_BIT_SIZE became unused after commit
2fdf6db436e3 ("iommu/amd: Remove AMD io_pgtable support"), which removed
the last references in io_pgtable.c and io_pgtable_v2.c. Remove them to
clean up unused definitions.
Signed-off-by: Wei Wang <wei.w.wang@hotmail.com>
---
drivers/iommu/amd/amd_iommu_types.h | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/iommu/amd/amd_iommu_types.h b/drivers/iommu/amd/amd_iommu_types.h
index c685d3771436..19d73963acbf 100644
--- a/drivers/iommu/amd/amd_iommu_types.h
+++ b/drivers/iommu/amd/amd_iommu_types.h
@@ -300,9 +300,6 @@
#define GA_GUEST_NR 0x1
-#define IOMMU_IN_ADDR_BIT_SIZE 52
-#define IOMMU_OUT_ADDR_BIT_SIZE 52
-
/*
* This bitmap is used to advertise the page sizes our hardware support
* to the IOMMU core, which will then use this information to split
base-commit: 97e797263a5e963da3d1e66e743fd518567dfe37
--
2.51.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-04-21 11:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-21 10:00 [PATCH v1] iommu/amd: Remove unused IOMMU_IN/OUT_ADDR_BIT_SIZE macros Wei Wang
2026-04-21 11:42 ` Jason Gunthorpe
-- strict thread matches above, loose matches on Subject: below --
2026-04-21 9:57 Wei Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox