drm/xe/mmio: Use non-atomic writeq/readq variant for 32b
authorLucas De Marchi <lucas.demarchi@intel.com>
Thu, 22 Dec 2022 20:15:24 +0000 (12:15 -0800)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 12 Dec 2023 19:06:01 +0000 (14:06 -0500)
commit9a6e6c14bfde967fca5a052cbee206d0b6169a1e
tree32fdcf22a0e86cfb0fd00c32a819e80c0249e6c1
parent857912c37ea786715e03b5bf25db07e28fc2ba73
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>
drivers/gpu/drm/xe/xe_mmio.c
drivers/gpu/drm/xe/xe_mmio.h