summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2020-01-03Retire csignal() the last users were converted to use pgsigio(9) instead.Claudio Jeker
OK visa@ anton@
2020-01-03Fix RAID volume WWIDs for LSI controllers on sparc64kn
Some controllers generate 128 bit WWIDs for RAID volumes but only has a 64-bit field to report it to the host, so it only puts the vendor-specified part here (last half of ID string printed when sd* attaches matches sl->port_wwn in reverse). As such IDs are not IEEE NAA compliant, OpenBoot PROM -at least on SPARC- sets the highest nibble to three by convention to mark such volumes as RAID volumes so that the OS (Solaris) may identify it as such. This is the last missing piece to make booting off hardware RAID on sparc64 just work; autoconf(9) is now able to match the port WWN against the bootpath to eventually identify the volume as the root device. Feedback jmatthew deraadt OK jmatthew
2020-01-03Fix a file descriptor close race in kqueue_register()Visa Hankala
After inserting a knote, check that the associated file descriptor still references the same file. Remove the knote if the descriptor has changed because otherwise the kqueue becomes inconsistent with the file descriptor table. There is an analogous race in fcntl(F_SETLK). It is already handled, but the code can be simplified by using the same check as in kqueue_register(). Fix inspired by DragonFly BSD OK mpi@, anton@
2020-01-03timeout(9): Add timeout_set_flags(9) and TIMEOUT_INITIALIZER_FLAGS(9)cheloha
These allow the caller to initialize timeouts with arbitrary flags. We only have one flag at the moment, TIMEOUT_PROC, but experimenting with other flags is easier if these interfaces are available in-tree. With input from bluhm@, guenther@, and visa@. "makes sense to me" bluhm@, ok visa@
2020-01-03timeout(9): Rename the TIMEOUT_NEEDPROCCTX flag to TIMEOUT_PROC.cheloha
This makes it more likely to fit into 80 columns if used alongside the forthcoming timeout_set_flags() and TIMEOUT_INITIALIZER_FLAGS() interfaces. "makes sense to me" bluhm@, ok visa@
2020-01-03regenDavid Gwynne
2020-01-03add some more samsung nvme idsDavid Gwynne
2020-01-02regenmortimer
2020-01-02Add pci id for recent AMD CCP and use it in ccp(4).mortimer
ok jsg@
2020-01-02Change /dev/log to use pgsigio(9) and sigio_init(9) like it was done forClaudio Jeker
bpf(4) and tun(4) instead of using hand rolled code using csignal(). OK visa@
2020-01-02regenanton
2020-01-02Unlock pipe(2) and pipe2(2). The kernel lock does not provide anyanton
serialization at this point since everything is protected by the pipe_lock. Thanks to tb@ and visa@ for testing; ok mpi@ visa@
2020-01-02Switch bpf to use pgsigio(9) and sigio_init(9) instead of handrollingClaudio Jeker
something with csignal(). OK visa@
2020-01-02Use newabi register names in disassembly.Visa Hankala
OK miod@
2020-01-02Fix bus_dmamap_sync(9) calls. While here fix a typo in a comment.Kevin Lo
2020-01-02Switch tun(4) and tap(4) to use pgsigio(9) and sigio_init(9) forClaudio Jeker
async I/O registration and signaling instead of handrolling a solution with csignal(). OK visa@
2020-01-02Exclude offline cpus in KERN_CPTIME calculation. Without this too highClaudio Jeker
idle time is reported in tools like vmstat. OK visa@ benno@ krw@
2020-01-01Unbreak DEBUG build: use %x not %lx with intkn
2020-01-01Unbreak DEBUG build: do not use undefined pakn
introduced iommu_dvmamap_insert() using an undefined paddr_t pa under DEBUG; since it cannot be introduced it (easily), remove it from the printf().
2020-01-01Unbreak DEBUG build: Format bus_{addr,size}_t as longkn
2020-01-01Unbreak DEBUG build: format time_t as long longkn
Feedback guenther
2020-01-01Replace __inline with C99 inline.Alexander Bluhm
OK miod@ mpi@
2020-01-01copyright++;Jonathan Gray
2020-01-01Add uvm_pmr_remove_1strange_reverse to efficiently free pagesBob Beck
in reverse order from uvm. Use it in uvm_pmr_freepageq when the pages appear to be in reverse order. This greatly improves cases of massive page freeing as noticed by mlarkin@ in his ongoing efforts to have the most gigantish buffer cache on the planet. Most of this work done by me with help and polish from kettenis@ at e2k19. Follow on commits to this will make use of this for more efficient freeing of amaps and a few other things. ok kettenis@ deraadt@
2020-01-01drm/amdkfd: fix a potential NULL pointer dereference (v2)Jonathan Gray
From Allen Pais 55248674330101fb3ccf7cec8b729e8e067e5f71 in linux 4.19.y/4.19.92 81de29d842ccb776c0f77aa3e2b11b07fff0c0e2 in mainline linux
2020-01-01drm/amdgpu: fix uninitialized variable pasid_mapping_neededJonathan Gray
From Colin Ian King 6032df37982ab948e6d2a41744deabef9181bec9 in linux 4.19.y/4.19.92 17cf678a33c6196a3df4531fe5aec91384c9eeb5 in mainline linux
2020-01-01drm/amdgpu: fix bad DMA from INTERRUPT_CNTL2Jonathan Gray
From Sam Bobroff 9234c9254e22da026e351cd4b7028e216abbeef0 in linux 4.19.y/4.19.92 3d0e3ce52ce3eb4b9de3caf9c38dbb5a4d3e13c3 in mainline linux
2020-01-01drm/amdgpu: fix potential double drop fence referenceJonathan Gray
From Pan Bian 2c528fa3c40d16c61da38a9f4fa7a0ce71df4db3 in linux 4.19.y/4.19.92 946ab8db6953535a3a88c957db8328beacdfed9d in mainline linux
2020-01-01drm/amdgpu: disallow direct upload save restore list from gfx driverJonathan Gray
From Hawking Zhang 7b3fe663da71273710fc8f7fa0c71515e96c6786 in linux 4.19.y/4.19.92 58f46d4b65021083ef4b4d49c6e2c58e5783f626 in mainline linux
2020-01-01drm/amd/display: Fix dongle_caps containing stale information.Jonathan Gray
From David Galiffi 59fc1675b5731b6cb57ad668ab2022add0433d5d in linux 4.19.y/4.19.92 dd998291dbe92106d8c4a7581c409b356928d711 in mainline linux
2019-12-31drm/drm_vblank: Change EINVAL by the correct errnoJonathan Gray
From Rodrigo Siqueira 5d60d398148d00a6fc8f0e1844055be3441e1d01 in linux 4.19.y/4.19.92 aed6105b28b10613f16c0bfe97525fe5a23338df in mainline linux
2019-12-31drm/amdgpu: grab the id mgr lock while accessing passid_mappingJonathan Gray
From Christian Koenig 16bb81d541f31b163563fea951ccb30b0def0c0a in linux 4.19.y/4.19.92 6817bf283b2b851095825ec7f0e9f10398e09125 in mainline linux
2019-12-31drm: mst: Fix query_payload ack reply structJonathan Gray
From Sean Paul f015785ae7fbf7a817b74b4001f92ca3070aa718 in linux 4.19.y/4.19.92 268de6530aa18fe5773062367fd119f0045f6e88 in mainline linux
2019-12-31convert infinite msleep(9) to msleep_nsec(9)Jonathan Gray
ok mpi@ bluhm@
2019-12-31Fix some races in kqueue_register().Visa Hankala
Mark knote with KN_PROCESSING before calling .f_event() in kqueue_register(). This prevents other threads from freeing the knote too early. Rearrange memory allocations so that there is no sleeping point between the knote lookup and insert. Also take into account that multiple threads can attempt expanding the kqueue at the same time. Input and OK mpi@ OK anton@
2019-12-31Use C99 designated initializers with struct filterops. In addition,Visa Hankala
make the structs const so that the data are put in .rodata. OK mpi@, deraadt@, anton@, bluhm@
2019-12-31Use km_alloc(9) instead of uvm_km_zalloc().Martin Pieuchot
Tested by and ok aoyama@
2019-12-31Convert infinite sleeps to {m,t}sleep_nsec(9).Martin Pieuchot
ok kn@
2019-12-31include sys/sensors.h for sensor useJonathan Gray
don't depend on indirect inclusion from acpidev.h
2019-12-31include sys/sensors.h for sensor useJonathan Gray
2019-12-31include sys/sensors.h for sensor use in cacvar.hJonathan Gray
2019-12-31needs sys/sensor.h to standalone from whether machine/cpu.h pulls theTheo de Raadt
file or not found by olivier@burelli.fr
2019-12-30convert infinite msleep(9) to msleep_nsec(9)Jonathan Gray
ok mpi@
2019-12-30convert infinite msleep(9) to msleep_nsec(9)Jonathan Gray
ok mpi@
2019-12-30clear B_NOCACHE if the buffer has dependencies for softdep, sinceBob Beck
otherwise we are guaranteed to panic a few lines down in softdep_deallocate_dependencies. Found by Matthias Pitzl <matthias_pitzl@genua.de> running vnd's on top of a softdep filesystem. ok bluhm@ deraadt@
2019-12-30Convert infinite sleeps to {m,t}sleep_nsec(9).Martin Pieuchot
ok bluhm@
2019-12-30The loopback check in ip6_input_if() was needless. The ::1 destinationAlexander Bluhm
address is in the routing table and will be identified as any other local address. There is no reason to handle ::1 source address special. Better use the generic IPv6 input path. Kame has removed the special code in their revision 1.189 commit. OK sashan@
2019-12-30In vcount() a safe loop over vnodes was commited to 4.4BSD in 1994.Alexander Bluhm
This is not necessary as the loop is restarted after vgone(). Switch to SLIST_FOREACH without _SAFE. OK visa@
2019-12-30Add ne(4) support on cbus(4).Kenji Aoyama
Allied Telesis CentreCOM LA-98 works well, other NE2000 based boards may also work with correct resource specifying. This driver was developed for demonstration at Open Source Conference 2019 Nagoya, Japan, in July, but I forgot to commit after that:-)
2019-12-30convert infinite msleep(9) to msleep_nsec(9)Jonathan Gray
ok mpi@