summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/drm/include/linux/atomic.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* use a single preinitialised mutex for atomic64 fallback pathjsg2020-11-091-14/+16
| | | | | | | | | | | Previously we would initialise a variable specific mutex in ATOMIC64_INIT() or atomic64_set() but the drm code in multiple places zeroes memory and later accesses it without calling these resulting in a mutex with IPL_NONE instead of IPL_HIGH. Fixes a 'locking against myself' panic reported by Anthony Richardby on macppc with PowerBook5,6 and RV350. ok kettenis@
* use 64 bit atomic builtins on i386 for atomic64jsg2020-11-091-2/+4
|
* remove unused alpha memory barrier definesjsg2020-10-261-5/+1
|
* use __membar() where possiblejsg2020-10-261-9/+9
|
* use lwsync and eieio for smp barriers on powerpcjsg2020-10-261-4/+11
| | | | ok kettenis@
* use WRITE_ONCE and READ_ONCE for set and readjsg2020-06-171-6/+6
| | | | ok kettenis@
* remove some unused definesjsg2020-06-161-14/+6
|
* implement atomic_inc_not_zero() by way of atomic_add_unless()jsg2020-06-161-11/+3
|
* remove a dead storejsg2020-06-161-2/+2
|
* update drm to linux 5.7jsg2020-06-081-3/+33
| | | | | | | | | | adds kernel support for amdgpu: vega20, raven2, renoir, navi10, navi14 inteldrm: icelake, tigerlake Thanks to the OpenBSD Foundation for sponsoring this work, kettenis@ for helping, patrick@ for helping adapt rockchip drm and many developers for testing.
* change drm memory barriers to be closer to what linux does onjsg2019-08-171-7/+19
| | | | | | amd64 and i386 ok kettenis@
* Remove old DRM_READMEMORYBARRIER() DRM_WRITEMEMORYBARRIER() andjsg2019-07-251-39/+43
| | | | DRM_MEMORYBARRIER() definitions and directly define rmb() wmb() and mb().
* remove some unused macrosjsg2019-07-251-5/+1
|
* add cmpxchg() with same implementation as atomic_cmpxchg()jsg2019-05-081-1/+2
|
* Update shared drm code, inteldrm(4) and radeondrm(4) from linux 4.4 tojsg2019-04-141-0/+425
linux 4.19.34. Adds support for more Intel hardware: Broxton/Apollo Lake (was is_preliminary in 4.4) Amber Lake (another Kaby Lake refresh) Gemini Lake Coffee Lake Whiskey Lake Cannon Lake (though no hardware with Intel graphics ever shipped) Ice Lake (alpha support, hardware not released) This does not add support for new radeon hardware on the AMD side as newer radeons have a different kernel driver (amdgpu). Thanks to the OpenBSD Foundation for sponsoring this work, kettenis@ for helping and a bunch of other developers for testing.