✓ CI.checkpatch: success for xe: avoid using writeq() on 32-bit
Patchwork
patchwork at emeril.freedesktop.org
Wed Feb 28 12:32:37 UTC 2024
== Series Details ==
Series: xe: avoid using writeq() on 32-bit
URL : https://patchwork.freedesktop.org/series/130494/
State : success
== Summary ==
+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt
Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master
9ab59fc4b7cb7663906ac4471a262434aef57f03
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit b804a381d8316296c299a13ee93835d778dd4836
Author: Arnd Bergmann <arnd at arndb.de>
Date: Wed Feb 28 13:27:33 2024 +0100
xe: avoid using writeq() on 32-bit
32-bit kernels do not provide a writeq(), failing the build:
drivers/gpu/drm/xe/xe_ggtt.c:78:2: error: use of undeclared identifier 'writeq'
78 | writeq(pte, &ggtt->gsm[addr >> XE_PTE_SHIFT]);
Using lo_hi_writeq() instead will write the lower 32 bits to the address
before writing the upper 32 bits to the following word, which is likely
the correct replacement to do on 32-bit targets.
Include the linux/io-64-nonatomic-lo-hi.h header to automatically pick
the regular writeq() on 64-bit machines but fall back to lo_hi_writeq()
on 32-bit ones.
Fixes: 237412e45390 ("drm/xe: Enable 32bits build")
Signed-off-by: Arnd Bergmann <arnd at arndb.de>
+ /mt/dim checkpatch bef66e9b0047b939e925a5c9ca02a750cd884765 drm-intel
b804a381d831 xe: avoid using writeq() on 32-bit
More information about the Intel-xe
mailing list