Go to file
martin 3d9945a58a Pull up following revision(s) via patch (requested by mrg in ticket #1242):
sys/external/bsd/common/include/linux/err.h: revision 1.3
	sys/external/bsd/drm2/include/drm/drm_wait_netbsd.h: revision 1.15
	sys/external/bsd/common/include/linux/errno.h: revision 1.4
	sys/external/bsd/drm2/dist/drm/nouveau/nouveau_drm.c: revision 1.17
	sys/external/bsd/drm2/linux/linux_ww_mutex.c: revision 1.6
	sys/external/bsd/drm2/dist/drm/nouveau/nouveau_fence.c: revision 1.14

fix various problems i've seen where cv_*wait*() return ERESTART,
which is -3 in netbsd, which we have mapped linux ERESTARTSYS to.

this has a problem because linux code often returns errors and
pointers in the same value, and pointer values between -4095 and
- -1 are considered as error returns, but -3 ends up as 3 and thus
is not considered an error, and mayhem ensues.

with this in place my kabylake system seems actually stable, i
have not triggered any of my prior issues in almost 4 weeks now.

Taylor asked me to write up a description and then wrote most of
the text below for me :-)

In Linux code, we always work with ERESTARTSYS so the code meaning
start over is a positive NetBSD errno safe for PTR_ERR/ERR_PTR.

To achieve this:

1. adapt all cv_waits that return to Linux so they map ERESTART to
   ERESTARTSYS, and

2. adapt all returns to userland so they convert ERESTARTSYS to
   ERESTART.

Leave EINTR and all other error codes alone.
2019-04-23 10:16:51 +00:00
bin Pull up following revision(s) (requested by kre in ticket #1169): 2019-03-07 16:56:51 +00:00
common Pull up following revision(s) (requested by tsutsui in ticket #375): 2017-11-22 15:11:26 +00:00
compat Don't mix abis in any CRUNCHEDPROG 2017-01-05 21:28:42 +00:00
crypto Pull up following revision(s) (requested by manu in ticket #985): 2018-08-25 14:33:04 +00:00
dist/pf Pull up following revision(s) (requested by maxv in ticket #978): 2018-08-25 11:21:53 +00:00
distrib Pull up following revision(s) (requested by sevan in ticket #1158): 2019-01-11 15:37:28 +00:00
doc Ticket #1241 2019-04-22 09:07:40 +00:00
etc Add bwfm firmware files, requested by maya in ticket #1072. 2018-10-31 08:55:32 +00:00
external Pull up following revision(s) (requested by martin in ticket #1212): 2019-03-12 17:48:03 +00:00
extsrc
games Permit Prof. Steven Falcon [sic] to play hals_end(6) (or, more 2017-05-21 16:47:26 +00:00
include Pull up following revision(s) (requested by kamil in ticket #561): 2018-02-25 23:53:59 +00:00
lib Pull up following revision(s) (requested by rin in ticket #1214): 2019-03-15 14:30:19 +00:00
libexec Pull up following revision(s) (requested by mrg in ticket #1109): 2018-11-28 19:50:37 +00:00
regress Pull up following revision(s) (requested by maxv in ticket #282): 2017-09-23 17:27:02 +00:00
rescue Remove MKCRYPTO option. 2017-05-21 15:28:36 +00:00
sbin Pull up following revision(s) (requested by manu in ticket #1221): 2019-03-29 19:43:28 +00:00
share Pull up r1.16, requested by msaitoh in ticket #1209 2019-03-07 17:22:18 +00:00
sys Pull up following revision(s) via patch (requested by mrg in ticket #1242): 2019-04-23 10:16:51 +00:00
tests Pull up following revision(s) (requested by kamil in ticket #1201): 2019-03-01 18:59:58 +00:00
tools Apply patch, requested by maya in ticket #1070: 2018-10-26 15:12:53 +00:00
usr.bin Pull up following revision(s) (requested by christos in ticket #1176): 2019-01-30 13:46:25 +00:00
usr.sbin Pull up following revision(s) (requested by tih in ticket #1232): 2019-04-19 09:10:49 +00:00
BUILDING regen 2017-05-21 15:30:20 +00:00
Makefile don't descend into gnu 2017-04-11 14:04:15 +00:00
Makefile.inc
UPDATING New dhcpcd does not like update builds from previous versions. 2017-04-03 09:37:58 +00:00
build.sh Pull up following revision(s) (requested by maya in ticket #591): 2018-02-26 13:52:00 +00:00