diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2022-12-22 23:15:24 +0300 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-12 22:06:01 +0300 |
commit | 9a6e6c14bfde967fca5a052cbee206d0b6169a1e (patch) | |
tree | 32fdcf22a0e86cfb0fd00c32a819e80c0249e6c1 /drivers/gpu/drm/xe/xe_mmio.h | |
parent | 857912c37ea786715e03b5bf25db07e28fc2ba73 (diff) | |
download | linux-9a6e6c14bfde967fca5a052cbee206d0b6169a1e.tar.xz |
drm/xe/mmio: Use non-atomic writeq/readq variant for 32b
writeq() and readq() and other functions working on 64 bit variables
are not provided by 32b arch. For that it's needed to choose between
linux/io-64-nonatomic-hi-lo.h and linux/io-64-nonatomic-lo-hi.h,
spliting the read/write in 2 accesses. For xe driver, it doesn't matter
much, so just choose one and include in xe_mmio.h.
This also removes some ifdef CONFIG_64BIT we had around because of the
missing 64bit functions.
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_mmio.h')
-rw-r--r-- | drivers/gpu/drm/xe/xe_mmio.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_mmio.h b/drivers/gpu/drm/xe/xe_mmio.h index a3b144553873..354be6fae0d4 100644 --- a/drivers/gpu/drm/xe/xe_mmio.h +++ b/drivers/gpu/drm/xe/xe_mmio.h @@ -7,6 +7,7 @@ #define _XE_MMIO_H_ #include <linux/delay.h> +#include <linux/io-64-nonatomic-lo-hi.h> #include "xe_gt_types.h" |