History log of /netbsd-current/sys/external/bsd/drm2/dist/drm/drm_vblank.c
Revision Date Author Comments
# 1.16 26-Dec-2021 riastradh

drm: Fix locking around accurate vblank counts.

- Make drm_crtc_accurate_vblank_count require the caller to hold the
event lock, rather than take it internally.

- Fix locking around drm_crtc_accurate_vblank_count and related
operations in amdgpu and nouveau interrupt handlers.

- Use drm_crtc_vblank_put_locked, not drm_crtc_vblank_put, when we
already hold the event lock.

PR kern/56557


# 1.15 19-Dec-2021 riastradh

drm: Must hold event_lock around wait on event_queue.

We must not have hit this path before if it never crashed!


# 1.14 19-Dec-2021 riastradh

drm: mutex_init/destroy and spin_lock_init/destroy audit


# 1.13 19-Dec-2021 riastradh

drm: Use drm_vblank_get_locked/unlocked.


# 1.12 19-Dec-2021 riastradh

drm: Merge vbl_lock into event_lock.

These aren't functionally very different, and most uses of vbl_lock
were inserted as local changes to make proper condition variables
anyway. Requiring both locks made cv_wait difficult because it only
unlocks and relocks one at a time, and this also led to annoying lock
order reversal.


# 1.11 19-Dec-2021 riastradh

drm: Eliminate hrtimer_destroy and teardown_timer.

These are non-Linux shims added to the Linux API to pair with
hrtimer_setup and setup_timer, but they really only serve to call
callout_destroy, which is not strictly necessary in the NetBSD API.
So although we lose a little bit of diagnostic help this way, we also
reduce diffs a bit and save some trouble that bit us last week.


# 1.10 19-Dec-2021 riastradh

drm: Simplify condvar conditionals in drm_vblank


# 1.9 19-Dec-2021 riastradh

drm: Fix lock order reversal in merge botch.

Add a note reminding myself what the lock order is.


# 1.8 19-Dec-2021 riastradh

drm: Restore drm_crtc_vblank_put_locked


# 1.7 19-Dec-2021 riastradh

drm: drm_update_vblank_count requires vbl_lock.


# 1.6 19-Dec-2021 riastradh

drm: Fix vblank locking.


# 1.5 19-Dec-2021 riastradh

Appropriate ifdef goop to make this file build for us.

Use the netbsd-ified versions.


Author: Maya Rashish <maya@NetBSD.org>


# 1.4 19-Dec-2021 riastradh

New seqlock code requires seqlock_destroy.

XXX missing cases in drm56


# 1.3 19-Dec-2021 riastradh

64-bit printf, include for do_div64, omit unused variable.


# 1.2 18-Dec-2021 riastradh

Merge linux-drm-v5-6-rc3


# 1.1 18-Dec-2021 riastradh

branches: 1.1.1;
Initial revision