Home | History | Annotate | Download | only in linux
History log of /src/sys/external/bsd/drm2/include/linux/atomic.h
RevisionDateAuthorComments
 1.42  19-Dec-2021  riastradh amdgpu: Another pass through.

amdgpu_object.c
amdgpu_pci.c
amdgpu_pm.c
amdgpu_polaris10_smumgr.c
amdgpu_pp_psm.c
amdgpu_ppatomctrl.c
amdgpu_ppatomfwctrl.c
amdgpu_process_pptables_v1_0.o
amdgpu_psp.o
amdgpu_psp_v10_0.c
amdgpu_psp_v11_0.c
amdgpu_psp_v12_0.c
amdgpu_psp_v3_1.c
amdgpu_ras.c
amdgpu_ras_eeprom.c
amdgpu_rc_calc.c
amdgpu_rc_calc_dpi.c
amdgpu_ring.c
amdgpu_rlc.c
amdgpu_rn_clk_mgr.c
amdgpu_sdma_v3_0.c
amdgpu_sdma_v4_0.c
amdgpu_sdma_v5_0.c
amdgpu_si.c
amdgpu_si_dma.c
amdgpu_si_dpm.c
amdgpu_smu.c
amdgpu_smu10_hwmgr.c
amdgpu_smu7_hwmgr.c
amdgpu_smu8_hwmgr.c
amdgpu_smu8_smumgr.c
amdgpu_smu_v11_0.c (and a sprinkling of consts)
amdgpu_smu_v11_0_i2c.c
amdgpu_soc15.c
amdgpu_tonga_smumgr.c
amdgpu_ttm.c
amdgpu_ucode.c
amdgpu_uvd.c
amdgpu_uvd_v5_0.c
amdgpu_uvd_v6_0.c
amdgpu_uvd_v7_0.c
amdgpu_vce.c
amdgpu_vce_v2_0.c
amdgpu_vce_v4_0.c
amdgpu_vcn_v1_0.c
amdgpu_vcn_v2_0.c
amdgpu_vcn_v2_5.c
amdgpu_vega10_hwmgr.c
amdgpu_vega10_powertune.c
amdgpu_vega10_processpptables.c
amdgpu_vega10_reg_init.c
amdgpu_vega12_hwmgr.c
amdgpu_vega20_hwmgr.c
amdgpu_vega20_ppt.c
amdgpu_vega20_reg_init.c
amdgpu_vi.c
amdgpu_virt.c
amdgpu_vram_mgr.c
amdgpu_xgmi.c -- disable (for now?)
amdgpufb.c
 1.41  19-Dec-2021  riastradh i915: more work
 1.40  19-Dec-2021  riastradh i915: More progress.
 1.39  19-Dec-2021  riastradh linux: Just use __sync_* for xchg and cmpxchg.

Easier than figuring out the dance with __builtin_choose_expr to make
these work with all types they need to work with.
 1.38  19-Dec-2021  riastradh linux: Make xchg and cmpxchg work on pointers too.
 1.37  19-Dec-2021  riastradh drm/linux: atomic_fetch_add/inc
 1.36  19-Dec-2021  riastradh drm/linux: Add memset32, SZ_64K, atomic_sub_return.
 1.35  19-Dec-2021  riastradh cmpxchg
 1.34  19-Dec-2021  riastradh Move Linux atomic bitops from linux/atomic.h to linux/bitops.h.
 1.33  19-Dec-2021  riastradh Move smp_mb_before/after_atomic from linux/atomic.h to asm/barrier.h.
 1.32  19-Dec-2021  riastradh Linux clear_bit_unlock
 1.31  19-Dec-2021  riastradh atomic_set_release
 1.30  19-Dec-2021  riastradh atomic_long_xchg
 1.29  19-Dec-2021  riastradh Omit __insn_barrier where implied or subsumed by volatile.
 1.28  19-Dec-2021  riastradh atomic_dec_if_positive
 1.27  19-Dec-2021  riastradh Allow atomic_read of const.
 1.26  19-Dec-2021  riastradh Guarantee no repeated loads.
 1.25  19-Dec-2021  riastradh atomic_fetch_xor
 1.24  19-Dec-2021  riastradh atomic_andnot
 1.23  19-Dec-2021  riastradh Kludgey xchg.
 1.22  14-Feb-2020  maya Reduce diffs by side-loading some header files like Linux.

From riastradh
 1.21  28-Sep-2019  christos branches: 1.21.2;
Fix signed/unsigned comparison
 1.20  27-Jan-2019  pgoyette Merge the [pgoyette-compat] branch
 1.19  27-Aug-2018  riastradh Implement atomic64_add_return and atomic64_inc_return.
 1.18  27-Aug-2018  riastradh Sort.
 1.17  27-Aug-2018  riastradh Fix argument types of atomic64_add/sub to be sensible.

Technically Linux does use long long rather than int64_t, but that's
silly.
 1.16  27-Aug-2018  riastradh Implement ATOMIC64_INIT.
 1.15  27-Aug-2018  riastradh Hash-locked atomic64 to give ports like powerpc32 a chance at radeon.
 1.14  27-Aug-2018  riastradh Add atomic_long.
 1.13  27-Aug-2018  riastradh Attempt to match Linux semantics for membars implied by atomics.

This is kind of moot at the moment because we're mostly x86-only for
drmkms, but this might help in the future if we ever went beyond x86.
 1.12  27-Aug-2018  riastradh Nix memory barriers that were nixed upstream. Add smp_mb__after_atomic.
 1.11  27-Aug-2018  riastradh Fix return types of test_and_{set,clear,change}_bit.
 1.10  27-Aug-2018  riastradh Add Linux smp_mb__before_atomic.
 1.9  27-Aug-2018  riastradh Implement atomic64_cmpxchg.
 1.8  27-Aug-2018  riastradh provide pr_notice
avoid needing unregister_oom_notifier
use intel_register_dsm_handler(dev), as older drm does
provide dummy async_schedule
provide atomic_or
match side-loading


Author: coypu <coypu@sdf.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>
 1.7  17-Jul-2014  riastradh branches: 1.7.4; 1.7.28; 1.7.30;
Correct return values of Linux test-and-set operations (PR 48999).

Linux's Documentation/atomic_ops.txt says in no uncertain terms these
must return 0 or 1, not zero or nonzero. I don't think this has
caused an issue for drm (yet), but better to have it right.
 1.6  16-Jul-2014  riastradh First whack at radeon driver.

No hardware to test yet, but it builds.
 1.5  16-Jul-2014  riastradh Make it build and boot on my test machines.

Screen blanks on boot on the Ivy Bridge system with

DRM error in cpt_serr_int_handler: PCH transcoder A FIFO underrun

But after that everything is OK. Appears to be an upstream problem.
To investigate...

I think there's a cache flushing issue somewhere -- there are little
display artefacts on my T60.
 1.4  03-Jun-2014  riastradh Fix atomic_dec_and_test in <linux/atomic.h>: test 0, not -1.
 1.3  01-Apr-2014  riastradh branches: 1.3.2; 1.3.4; 1.3.6;
Fix volatile qualifiers in drm2 <linux/atomic.h>.
 1.2  18-Mar-2014  riastradh Merge riastradh-drm2 to HEAD.
 1.1  24-Jul-2013  riastradh branches: 1.1.2;
file atomic.h was initially added on branch riastradh-drm2.
 1.1.2.11  08-Sep-2013  riastradh Add Linux ATOMIC_INIT, atomic_inc_return, and atomic_dec_return.
 1.1.2.10  08-Sep-2013  riastradh Fix Linux atomic set/clear/change_bit to work on arrays.
 1.1.2.9  24-Jul-2013  riastradh Add several operations to <linux/atomic.h>.

atomic_add_unless
atomic_clear_mask
atomic_inc_not_zero
atomic_set_mask
atomic_sub
 1.1.2.8  24-Jul-2013  riastradh Add Linux SMP atomic inc/dec memory barriers to <linux/atomic.h>.
 1.1.2.7  24-Jul-2013  riastradh Add atomic_add and atomic_add_return to <linux/atomic.h>.
 1.1.2.6  24-Jul-2013  riastradh Separate `struct atomic { ... }' from typedef for greppability.
 1.1.2.5  24-Jul-2013  riastradh Add some bit-toggling atomics to <linux/atomic.h>.
 1.1.2.4  24-Jul-2013  riastradh Use a union rather than casts in <linux/atomic.h>. Add atomic_dec.
 1.1.2.3  24-Jul-2013  riastradh Add some atomic operations to <linux/atomic.h>.
 1.1.2.2  24-Jul-2013  riastradh Implement atomic_t and atomic_read in drm2's <linux/atomic.h> shim.
 1.1.2.1  24-Jul-2013  riastradh Add stubs for Linux header files for drm.
 1.3.6.2  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.3.6.1  01-Apr-2014  yamt file atomic.h was added on branch yamt-pagecache on 2014-05-22 11:40:56 +0000
 1.3.4.2  18-May-2014  rmind sync with head
 1.3.4.1  01-Apr-2014  rmind file atomic.h was added on branch rmind-smpnet on 2014-05-18 17:46:01 +0000
 1.3.2.1  10-Aug-2014  tls Rebase.
 1.7.30.3  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.7.30.2  08-Apr-2020  martin Merge changes from current as of 20200406
 1.7.30.1  10-Jun-2019  christos Sync with HEAD
 1.7.28.1  06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.7.4.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.7.4.1  17-Jul-2014  tls file atomic.h was added on branch tls-maxphys on 2014-08-20 00:04:21 +0000
 1.21.2.1  29-Feb-2020  ad Sync with head.

RSS XML Feed