iommu/amd: Rearrange DTE bit definations
Subsystems (2)
Vasant Hegde
maintainerPATCH 1/1 iommu/amd: Rearrange DTE bit definations
Rearrage according to 64bit word they are in.
Note that I have not rearranged gcr3 related macros even though they belong to different 64bit word as its easy to read it in current format.
No functional changes intended.
--- drivers/iommu/amd/amd_iommu_types.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/iommu/amd/amd_iommu_types.h +4 -4
@@ -381,15 +381,15 @@*/ #define DTE_FLAG_V BIT_ULL(0)#define DTE_FLAG_TV BIT_ULL(1) +#define DTE_FLAG_GIOV BIT_ULL(54) +#define DTE_FLAG_GV BIT_ULL(55) +#define DTE_GLX_SHIFT (56) +#define DTE_GLX_MASK (3)#define DTE_FLAG_IR BIT_ULL(61)#define DTE_FLAG_IW BIT_ULL(62)#define DTE_FLAG_IOTLB BIT_ULL(32) -#define DTE_FLAG_GIOV BIT_ULL(54) -#define DTE_FLAG_GV BIT_ULL(55)#define DTE_FLAG_MASK (0x3ffULL << 32) -#define DTE_GLX_SHIFT (56) -#define DTE_GLX_MASK (3)#define DEV_DOMID_MASK 0xffffULL#define DTE_GCR3_VAL_A (x) (((x) >> 12) & 0x00007ULL)
Signature · 1 line
2.31.1
Quoted 41 lines · Vasant Hegde
Rearrage according to 64bit word they are in.
Note that I have not rearranged gcr3 related macros even though they belong to different 64bit word as its easy to read it in current format.
No functional changes intended.
Suggested-by Jerry Snitselaar <[email protected]>Signed-off-by Vasant Hegde <[email protected]>--- drivers/iommu/amd/amd_iommu_types.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)drivers/iommu/amd/amd_iommu_types.h +4
-4@@ -381,15 +381,15 @@*/ #define DTE_FLAG_V BIT_ULL(0)#define DTE_FLAG_TV BIT_ULL(1) +#define DTE_FLAG_GIOV BIT_ULL(54) +#define DTE_FLAG_GV BIT_ULL(55) +#define DTE_GLX_SHIFT (56) +#define DTE_GLX_MASK (3)#define DTE_FLAG_IR BIT_ULL(61)#define DTE_FLAG_IW BIT_ULL(62)#define DTE_FLAG_IOTLB BIT_ULL(32) -#define DTE_FLAG_GIOV BIT_ULL(54) -#define DTE_FLAG_GV BIT_ULL(55)#define DTE_FLAG_MASK (0x3ffULL << 32) -#define DTE_GLX_SHIFT (56) -#define DTE_GLX_MASK (3)#define DEV_DOMID_MASK 0xffffULL#define DTE_GCR3_VAL_A (x) (((x) >> 12) & 0x00007ULL)Signature · 1 line
2.31.1
Vasant Hegde
maintainerHi Joerg,
Quoted 5 lines · Vasant Hegde
Rearrage according to 64bit word they are in.
Note that I have not rearranged gcr3 related macros even though they belong to different 64bit word as its easy to read it in current format.
Ping. Did you get a chance a look into this one?
-Vasant
Quoted 33 lines
No functional changes intended.
Suggested-by Jerry Snitselaar <[email protected]>Signed-off-by Vasant Hegde <[email protected]>--- drivers/iommu/amd/amd_iommu_types.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)drivers/iommu/amd/amd_iommu_types.h +4
-4@@ -381,15 +381,15 @@*/ #define DTE_FLAG_V BIT_ULL(0)#define DTE_FLAG_TV BIT_ULL(1) +#define DTE_FLAG_GIOV BIT_ULL(54) +#define DTE_FLAG_GV BIT_ULL(55) +#define DTE_GLX_SHIFT (56) +#define DTE_GLX_MASK (3)#define DTE_FLAG_IR BIT_ULL(61)#define DTE_FLAG_IW BIT_ULL(62)#define DTE_FLAG_IOTLB BIT_ULL(32) -#define DTE_FLAG_GIOV BIT_ULL(54) -#define DTE_FLAG_GV BIT_ULL(55)#define DTE_FLAG_MASK (0x3ffULL << 32) -#define DTE_GLX_SHIFT (56) -#define DTE_GLX_MASK (3)#define DEV_DOMID_MASK 0xffffULL#define DTE_GCR3_VAL_A (x) (((x) >> 12) & 0x00007ULL)