iommu/amd: Change macro for IOMMU control register bit shift to decimal value
authorSuravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Wed, 13 Jul 2022 22:56:43 +0000 (17:56 -0500)
committerJoerg Roedel <jroedel@suse.de>
Fri, 15 Jul 2022 08:41:01 +0000 (10:41 +0200)
There is no functional change.

Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Link: https://lore.kernel.org/r/20220713225651.20758-2-suravee.suthikulpanit@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/amd_iommu_types.h

index 40f52d0..7c830e3 100644 (file)
 #define EVENT_FLAG_I           0x008
 
 /* feature control bits */
-#define CONTROL_IOMMU_EN        0x00ULL
-#define CONTROL_HT_TUN_EN       0x01ULL
-#define CONTROL_EVT_LOG_EN      0x02ULL
-#define CONTROL_EVT_INT_EN      0x03ULL
-#define CONTROL_COMWAIT_EN      0x04ULL
-#define CONTROL_INV_TIMEOUT    0x05ULL
-#define CONTROL_PASSPW_EN       0x08ULL
-#define CONTROL_RESPASSPW_EN    0x09ULL
-#define CONTROL_COHERENT_EN     0x0aULL
-#define CONTROL_ISOC_EN         0x0bULL
-#define CONTROL_CMDBUF_EN       0x0cULL
-#define CONTROL_PPRLOG_EN       0x0dULL
-#define CONTROL_PPRINT_EN       0x0eULL
-#define CONTROL_PPR_EN          0x0fULL
-#define CONTROL_GT_EN           0x10ULL
-#define CONTROL_GA_EN           0x11ULL
-#define CONTROL_GAM_EN          0x19ULL
-#define CONTROL_GALOG_EN        0x1CULL
-#define CONTROL_GAINT_EN        0x1DULL
-#define CONTROL_XT_EN           0x32ULL
-#define CONTROL_INTCAPXT_EN     0x33ULL
+#define CONTROL_IOMMU_EN       0
+#define CONTROL_HT_TUN_EN      1
+#define CONTROL_EVT_LOG_EN     2
+#define CONTROL_EVT_INT_EN     3
+#define CONTROL_COMWAIT_EN     4
+#define CONTROL_INV_TIMEOUT    5
+#define CONTROL_PASSPW_EN      8
+#define CONTROL_RESPASSPW_EN   9
+#define CONTROL_COHERENT_EN    10
+#define CONTROL_ISOC_EN                11
+#define CONTROL_CMDBUF_EN      12
+#define CONTROL_PPRLOG_EN      13
+#define CONTROL_PPRINT_EN      14
+#define CONTROL_PPR_EN         15
+#define CONTROL_GT_EN          16
+#define CONTROL_GA_EN          17
+#define CONTROL_GAM_EN         25
+#define CONTROL_GALOG_EN       28
+#define CONTROL_GAINT_EN       29
+#define CONTROL_XT_EN          50
+#define CONTROL_INTCAPXT_EN    51
 
 #define CTRL_INV_TO_MASK       (7 << CONTROL_INV_TIMEOUT)
 #define CTRL_INV_TO_NONE       0