Home | History | Annotate | Download | only in drm
History log of /src/sys/external/bsd/drm2/drm/drm_lock.c
RevisionDateAuthorComments
 1.13  19-Dec-2021  riastradh drm: Make some legacy UMS crap build.
 1.12  19-Dec-2021  riastradh Make ourselves less dependent on drmP.h, removed upstream.

This causes some trouble as CONFIG_* lines might not be appropriately
defined. A few declarations remain in drmP.h so it's not gone.


Author: Maya Rashish <maya@NetBSD.org>
 1.11  19-Dec-2021  riastradh Make our code follow CONFIG_DRM_LEGACY.

We might want to delete all this code later, but no rush.


Author: Maya Rashish <maya@NetBSD.org>
 1.10  19-Dec-2021  riastradh Sync drm_lock.c. (Needs review, but only used by legacy drivers.)
 1.9  19-Dec-2021  riastradh Include drm_internal.h by "../dist/drm/drm_internal.h".
 1.8  23-May-2020  ad Move proc_lock into the data segment. It was dynamically allocated because
at the time we had mutex_obj_alloc() but not __cacheline_aligned.
 1.7  27-Aug-2018  riastradh Need <drm/drm_internal.h> for drm_global_mutex.
 1.6  27-Aug-2018  riastradh Rename some drm_* to drm_legacy_*.
 1.5  27-Aug-2018  riastradh include drm_legacy.h as needed...


Author: coypu <coypu@sdf.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>
 1.4  02-Apr-2016  riastradh branches: 1.4.16; 1.4.18;
Take a stab at implementing drm_idlelock_take/release.

Evidently needed by VIA DRM/UMS. Noted and tested by medfly/coypu.
 1.3  16-Jul-2014  riastradh branches: 1.3.4; 1.3.6;
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.2  18-Mar-2014  riastradh branches: 1.2.2; 1.2.4; 1.2.6;
Merge riastradh-drm2 to HEAD.
 1.1  24-Jul-2013  riastradh branches: 1.1.2;
file drm_lock.c was initially added on branch riastradh-drm2.
 1.1.2.4  15-Jan-2014  riastradh Rewrite drm locking support for NetBSD.
 1.1.2.3  24-Jul-2013  riastradh Add comment explaining why drm_idlelock_* are not yet implemented.
 1.1.2.2  24-Jul-2013  riastradh Implement drm_lock_free and drm_i_have_hw_lock.
 1.1.2.1  24-Jul-2013  riastradh Add a local drm_lock.c, since I can't make sense of Linux's.

This leaves drm_idlelock_take and drm_idlelock_release unimplemented
until I can figure out the intended semantics. Linux's code doesn't
guarantee that the lock is taken when drm_idlelock_take returns, and
provides no way to check whether the current lwp/thread/whatever owns
the lock as intended, so there's no way to add diagnostic checks for
the correct use of the API.
 1.2.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.2.6.1  18-Mar-2014  yamt file drm_lock.c was added on branch yamt-pagecache on 2014-05-22 11:40:55 +0000
 1.2.4.2  18-May-2014  rmind sync with head
 1.2.4.1  18-Mar-2014  rmind file drm_lock.c was added on branch rmind-smpnet on 2014-05-18 17:46:00 +0000
 1.2.2.1  10-Aug-2014  tls Rebase.
 1.3.6.1  22-Apr-2016  skrll Sync with HEAD
 1.3.4.3  03-Dec-2017  jdolecek update from HEAD
 1.3.4.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.3.4.1  16-Jul-2014  tls file drm_lock.c was added on branch tls-maxphys on 2014-08-20 00:04:20 +0000
 1.4.18.1  10-Jun-2019  christos Sync with HEAD
 1.4.16.1  06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

RSS XML Feed