CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2025/01/19 04:15:52
Modified files:
sys/dev/pci/drm/include/linux: atomic.h
sys/dev/pci/drm/i915: i915_active.c
Log message:
On i386, llvm >= 17 warns with -Wsync-alignment when using a sync builtin
with a 64-bit value that isn't 64-bit aligned.
The Intel SDM volume 3, strongly suggests to do this for performance
reasons. My reading is this isn't required to be atomic.
Make atomic64_t 64-bit aligned and change arguments to avoid the warning.
And make a local change to the inteldrm code to set alignment in a case
where we use a sync builtin when linux doesn't (cmpxchg64()).
discussed with tb@ robert@ kettenis@, ok tb@