The NetBSD Project

CVS log for src/sys/external/bsd/drm2/drm/drm_lock.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / external / bsd / drm2 / drm

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.13 / (download) - annotate - [select for diffs], Sun Dec 19 12:30:05 2021 UTC (17 months, 2 weeks ago) by riastradh
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.12: +31 -3 lines
Diff to previous 1.12 (colored)

drm: Make some legacy UMS crap build.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Dec 19 09:52:00 2021 UTC (17 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.11: +3 -4 lines
Diff to previous 1.11 (colored)

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>

Revision 1.11 / (download) - annotate - [select for diffs], Sun Dec 19 09:49:24 2021 UTC (17 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.10: +9 -2 lines
Diff to previous 1.10 (colored)

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>

Revision 1.10 / (download) - annotate - [select for diffs], Sun Dec 19 00:57:29 2021 UTC (17 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.9: +14 -38 lines
Diff to previous 1.9 (colored)

Sync drm_lock.c. (Needs review, but only used by legacy drivers.)

Revision 1.9 / (download) - annotate - [select for diffs], Sun Dec 19 00:28:20 2021 UTC (17 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.8: +4 -3 lines
Diff to previous 1.8 (colored)

Include drm_internal.h by "../dist/drm/drm_internal.h".

Revision 1.8 / (download) - annotate - [select for diffs], Sat May 23 23:42:43 2020 UTC (3 years ago) by ad
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.7: +4 -4 lines
Diff to previous 1.7 (colored)

Move proc_lock into the data segment.  It was dynamically allocated because
at the time we had mutex_obj_alloc() but not __cacheline_aligned.

Revision 1.4.18.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:08:30 2019 UTC (3 years, 11 months ago) by christos
Branch: phil-wifi
Changes since 1.4: +10 -8 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

Sync with HEAD

Revision 1.4.16.1 / (download) - annotate - [select for diffs], Thu Sep 6 06:56:35 2018 UTC (4 years, 9 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.4: +10 -8 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

Sync with HEAD

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

Revision 1.7 / (download) - annotate - [select for diffs], Mon Aug 27 07:01:30 2018 UTC (4 years, 9 months ago) by riastradh
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.6: +1 -0 lines
Diff to previous 1.6 (colored)

Need <drm/drm_internal.h> for drm_global_mutex.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Aug 27 06:57:32 2018 UTC (4 years, 9 months ago) by riastradh
Branch: MAIN
Changes since 1.5: +6 -6 lines
Diff to previous 1.5 (colored)

Rename some drm_* to drm_legacy_*.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Aug 27 06:06:31 2018 UTC (4 years, 9 months ago) by riastradh
Branch: MAIN
Changes since 1.4: +3 -2 lines
Diff to previous 1.4 (colored)

include drm_legacy.h as needed...


Author: coypu <coypu@sdf.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>

Revision 1.3.4.3 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:58 2017 UTC (5 years, 6 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.3.4.2: +32 -13 lines
Diff to previous 1.3.4.2 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

update from HEAD

Revision 1.3.6.1 / (download) - annotate - [select for diffs], Fri Apr 22 15:44:16 2016 UTC (7 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.3: +34 -15 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

Sync with HEAD

Revision 1.4 / (download) - annotate - [select for diffs], Sat Apr 2 22:40:43 2016 UTC (7 years, 2 months ago) by riastradh
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-base, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.3: +34 -15 lines
Diff to previous 1.3 (colored)

Take a stab at implementing drm_idlelock_take/release.

Evidently needed by VIA DRM/UMS.  Noted and tested by medfly/coypu.

Revision 1.3.4.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:20 2014 UTC (8 years, 9 months ago) by tls
Branch: tls-maxphys
Changes since 1.3.4.1: +379 -0 lines
Diff to previous 1.3.4.1 (colored) to branchpoint 1.3 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.2.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:55:39 2014 UTC (8 years, 10 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.2: +2 -6 lines
Diff to previous 1.2 (colored) next main 1.3 (colored)

Rebase.

Revision 1.3.4.1, Wed Jul 16 20:56:25 2014 UTC (8 years, 10 months ago) by tls
Branch: tls-maxphys
Changes since 1.3: +0 -379 lines
FILE REMOVED

file drm_lock.c was added on branch tls-maxphys on 2014-08-20 00:04:20 +0000

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jul 16 20:56:25 2014 UTC (8 years, 10 months ago) by riastradh
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Branch point for: tls-maxphys, nick-nhusb
Changes since 1.2: +2 -6 lines
Diff to previous 1.2 (colored)

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.

Revision 1.2.6.2 / (download) - annotate - [select for diffs], Thu May 22 11:40:55 2014 UTC (9 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.2.6.1: +383 -0 lines
Diff to previous 1.2.6.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

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")

Revision 1.2.4.2 / (download) - annotate - [select for diffs], Sun May 18 17:46:00 2014 UTC (9 years ago) by rmind
Branch: rmind-smpnet
Changes since 1.2.4.1: +383 -0 lines
Diff to previous 1.2.4.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

sync with head

Revision 1.2.6.1, Tue Mar 18 18:20:42 2014 UTC (9 years, 2 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.2: +0 -383 lines
FILE REMOVED

file drm_lock.c was added on branch yamt-pagecache on 2014-05-22 11:40:55 +0000

Revision 1.2.4.1, Tue Mar 18 18:20:42 2014 UTC (9 years, 2 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.2: +0 -383 lines
FILE REMOVED

file drm_lock.c was added on branch rmind-smpnet on 2014-05-18 17:46:00 +0000

Revision 1.2 / (download) - annotate - [select for diffs], Tue Mar 18 18:20:42 2014 UTC (9 years, 2 months ago) by riastradh
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15
Branch point for: yamt-pagecache, tls-earlyentropy, rmind-smpnet
Changes since 1.1: +383 -0 lines
Diff to previous 1.1 (colored)

Merge riastradh-drm2 to HEAD.

Revision 1.1.2.4 / (download) - annotate - [select for diffs], Wed Jan 15 13:53:53 2014 UTC (9 years, 4 months ago) by riastradh
Branch: riastradh-drm2
Changes since 1.1.2.3: +104 -55 lines
Diff to previous 1.1.2.3 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Rewrite drm locking support for NetBSD.

Revision 1.1.2.3 / (download) - annotate - [select for diffs], Wed Jul 24 02:38:23 2013 UTC (9 years, 10 months ago) by riastradh
Branch: riastradh-drm2
Changes since 1.1.2.2: +5 -0 lines
Diff to previous 1.1.2.2 (colored) to branchpoint 1.1 (colored)

Add comment explaining why drm_idlelock_* are not yet implemented.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Wed Jul 24 02:35:35 2013 UTC (9 years, 10 months ago) by riastradh
Branch: riastradh-drm2
Changes since 1.1.2.1: +44 -0 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored)

Implement drm_lock_free and drm_i_have_hw_lock.

Revision 1.1.2.1 / (download) - annotate - [select for diffs], Wed Jul 24 02:33:17 2013 UTC (9 years, 10 months ago) by riastradh
Branch: riastradh-drm2
Changes since 1.1: +285 -0 lines
Diff to previous 1.1 (colored)

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.

Revision 1.1, Wed Jul 24 02:33:17 2013 UTC (9 years, 10 months ago) by riastradh
Branch: MAIN
CVS Tags: riastradh-drm2-base3
Branch point for: riastradh-drm2
FILE REMOVED

file drm_lock.c was initially added on branch riastradh-drm2.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>