* [PATCH] iommu/io-pgtable-arm: Remove unused macro iopte_prot
@ 2025-07-08 21:17 Daniel Mentz
2025-07-09 0:26 ` Jason Gunthorpe
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Daniel Mentz @ 2025-07-08 21:17 UTC (permalink / raw)
To: iommu, linux-kernel
Cc: Will Deacon, Jason Gunthorpe, Liviu Dudau, Daniel Mentz
Commit 33729a5fc0ca ("iommu/io-pgtable-arm: Remove split on unmap
behavior") removed the last user of the macro iopte_prot. Remove the
macro definition of iopte_prot as well as three other related
definitions.
Fixes: 33729a5fc0ca ("iommu/io-pgtable-arm: Remove split on unmap behavior")
Signed-off-by: Daniel Mentz <danielmentz@google.com>
---
drivers/iommu/io-pgtable-arm.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/drivers/iommu/io-pgtable-arm.c b/drivers/iommu/io-pgtable-arm.c
index 96425e92f313..7e8e2216c294 100644
--- a/drivers/iommu/io-pgtable-arm.c
+++ b/drivers/iommu/io-pgtable-arm.c
@@ -85,11 +85,6 @@
#define ARM_LPAE_PTE_NS (((arm_lpae_iopte)1) << 5)
#define ARM_LPAE_PTE_VALID (((arm_lpae_iopte)1) << 0)
-#define ARM_LPAE_PTE_ATTR_LO_MASK (((arm_lpae_iopte)0x3ff) << 2)
-/* Ignore the contiguous bit for block splitting */
-#define ARM_LPAE_PTE_ATTR_HI_MASK (ARM_LPAE_PTE_XN | ARM_LPAE_PTE_DBM)
-#define ARM_LPAE_PTE_ATTR_MASK (ARM_LPAE_PTE_ATTR_LO_MASK | \
- ARM_LPAE_PTE_ATTR_HI_MASK)
/* Software bit for solving coherency races */
#define ARM_LPAE_PTE_SW_SYNC (((arm_lpae_iopte)1) << 55)
@@ -155,8 +150,6 @@
#define iopte_type(pte) \
(((pte) >> ARM_LPAE_PTE_TYPE_SHIFT) & ARM_LPAE_PTE_TYPE_MASK)
-#define iopte_prot(pte) ((pte) & ARM_LPAE_PTE_ATTR_MASK)
-
#define iopte_writeable_dirty(pte) \
(((pte) & ARM_LPAE_PTE_AP_WR_CLEAN_MASK) == ARM_LPAE_PTE_DBM)
--
2.50.0.727.gbf7dc18ff4-goog
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] iommu/io-pgtable-arm: Remove unused macro iopte_prot
2025-07-08 21:17 [PATCH] iommu/io-pgtable-arm: Remove unused macro iopte_prot Daniel Mentz
@ 2025-07-09 0:26 ` Jason Gunthorpe
2025-07-09 10:51 ` Liviu Dudau
2025-07-14 11:54 ` Will Deacon
2 siblings, 0 replies; 4+ messages in thread
From: Jason Gunthorpe @ 2025-07-09 0:26 UTC (permalink / raw)
To: Daniel Mentz; +Cc: iommu, linux-kernel, Will Deacon, Liviu Dudau
On Tue, Jul 08, 2025 at 09:17:05PM +0000, Daniel Mentz wrote:
> Commit 33729a5fc0ca ("iommu/io-pgtable-arm: Remove split on unmap
> behavior") removed the last user of the macro iopte_prot. Remove the
> macro definition of iopte_prot as well as three other related
> definitions.
>
> Fixes: 33729a5fc0ca ("iommu/io-pgtable-arm: Remove split on unmap behavior")
> Signed-off-by: Daniel Mentz <danielmentz@google.com>
> ---
> drivers/iommu/io-pgtable-arm.c | 7 -------
> 1 file changed, 7 deletions(-)
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Jason
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] iommu/io-pgtable-arm: Remove unused macro iopte_prot
2025-07-08 21:17 [PATCH] iommu/io-pgtable-arm: Remove unused macro iopte_prot Daniel Mentz
2025-07-09 0:26 ` Jason Gunthorpe
@ 2025-07-09 10:51 ` Liviu Dudau
2025-07-14 11:54 ` Will Deacon
2 siblings, 0 replies; 4+ messages in thread
From: Liviu Dudau @ 2025-07-09 10:51 UTC (permalink / raw)
To: Daniel Mentz; +Cc: iommu, linux-kernel, Will Deacon, Jason Gunthorpe
On Tue, Jul 08, 2025 at 09:17:05PM +0000, Daniel Mentz wrote:
> Commit 33729a5fc0ca ("iommu/io-pgtable-arm: Remove split on unmap
> behavior") removed the last user of the macro iopte_prot. Remove the
> macro definition of iopte_prot as well as three other related
> definitions.
>
> Fixes: 33729a5fc0ca ("iommu/io-pgtable-arm: Remove split on unmap behavior")
> Signed-off-by: Daniel Mentz <danielmentz@google.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Best regards,
Liviu
> ---
> drivers/iommu/io-pgtable-arm.c | 7 -------
> 1 file changed, 7 deletions(-)
>
> diff --git a/drivers/iommu/io-pgtable-arm.c b/drivers/iommu/io-pgtable-arm.c
> index 96425e92f313..7e8e2216c294 100644
> --- a/drivers/iommu/io-pgtable-arm.c
> +++ b/drivers/iommu/io-pgtable-arm.c
> @@ -85,11 +85,6 @@
> #define ARM_LPAE_PTE_NS (((arm_lpae_iopte)1) << 5)
> #define ARM_LPAE_PTE_VALID (((arm_lpae_iopte)1) << 0)
>
> -#define ARM_LPAE_PTE_ATTR_LO_MASK (((arm_lpae_iopte)0x3ff) << 2)
> -/* Ignore the contiguous bit for block splitting */
> -#define ARM_LPAE_PTE_ATTR_HI_MASK (ARM_LPAE_PTE_XN | ARM_LPAE_PTE_DBM)
> -#define ARM_LPAE_PTE_ATTR_MASK (ARM_LPAE_PTE_ATTR_LO_MASK | \
> - ARM_LPAE_PTE_ATTR_HI_MASK)
> /* Software bit for solving coherency races */
> #define ARM_LPAE_PTE_SW_SYNC (((arm_lpae_iopte)1) << 55)
>
> @@ -155,8 +150,6 @@
> #define iopte_type(pte) \
> (((pte) >> ARM_LPAE_PTE_TYPE_SHIFT) & ARM_LPAE_PTE_TYPE_MASK)
>
> -#define iopte_prot(pte) ((pte) & ARM_LPAE_PTE_ATTR_MASK)
> -
> #define iopte_writeable_dirty(pte) \
> (((pte) & ARM_LPAE_PTE_AP_WR_CLEAN_MASK) == ARM_LPAE_PTE_DBM)
>
> --
> 2.50.0.727.gbf7dc18ff4-goog
>
--
====================
| I would like to |
| fix the world, |
| but they're not |
| giving me the |
\ source code! /
---------------
¯\_(ツ)_/¯
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] iommu/io-pgtable-arm: Remove unused macro iopte_prot
2025-07-08 21:17 [PATCH] iommu/io-pgtable-arm: Remove unused macro iopte_prot Daniel Mentz
2025-07-09 0:26 ` Jason Gunthorpe
2025-07-09 10:51 ` Liviu Dudau
@ 2025-07-14 11:54 ` Will Deacon
2 siblings, 0 replies; 4+ messages in thread
From: Will Deacon @ 2025-07-14 11:54 UTC (permalink / raw)
To: iommu, linux-kernel, Daniel Mentz
Cc: catalin.marinas, kernel-team, Will Deacon, Jason Gunthorpe, Liviu Dudau
On Tue, 08 Jul 2025 21:17:05 +0000, Daniel Mentz wrote:
> Commit 33729a5fc0ca ("iommu/io-pgtable-arm: Remove split on unmap
> behavior") removed the last user of the macro iopte_prot. Remove the
> macro definition of iopte_prot as well as three other related
> definitions.
>
>
Applied to iommu (arm/smmu/updates), thanks!
[1/1] iommu/io-pgtable-arm: Remove unused macro iopte_prot
https://git.kernel.org/iommu/c/ec7ca73144e9
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-07-14 11:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-07-08 21:17 [PATCH] iommu/io-pgtable-arm: Remove unused macro iopte_prot Daniel Mentz
2025-07-09 0:26 ` Jason Gunthorpe
2025-07-09 10:51 ` Liviu Dudau
2025-07-14 11:54 ` Will Deacon
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®