OpenBSD cvs log

created 2021-01-09T21:47:04Z
begin 2021-01-02T00:00:00Z
end 2021-01-03T00:00:00Z
path src/sys
commits 11

date 2021-01-02T02:39:59Z
author cheloha
files src/sys/uvm/uvm_fault.c log diff annotate
message uvm: uvm_fault_lower(): don't sleep on lbolt

We can simulate the current behavior without lbolt by sleeping for 1
second on the &nowake channel.

ok mpi@

date 2021-01-02T02:41:42Z
author cheloha
files src/sys/nfs/nfs_socket.c log diff annotate
src/sys/nfs/nfs_vfsops.c log diff annotate
message nfs: don't sleep on lbolt

We can simulate the current behavior without lbolt by sleeping for 1
second on the &nowake channel.

ok mpi@

date 2021-01-02T02:46:06Z
author cheloha
files src/sys/net/bpf.c log diff annotate
src/sys/net/bpfdesc.h log diff annotate
message bpf(4): remove ticks

Change bd_rtout to a uint64_t of nanoseconds. Update the code in
bpfioctl() and bpfread() accordingly.

Add a local copy of nsecuptime() to make the diff smaller. This will
need to move to kern_tc.c if/when we have another user elsewhere in
the kernel.

Prompted by mpi@. With input from dlg@.

ok dlg@ mpi@ visa@

date 2021-01-02T03:23:59Z
author cheloha
files src/sys/kern/subr_pool.c log diff annotate
src/sys/sys/pool.h log diff annotate
message pool(9): remove ticks

Change the pool(9) timeouts to use the system uptime instead of ticks.

- Change the timeouts from variables to macros so we can use
SEC_TO_NSEC(). This means these timeouts are no longer patchable
via ddb(4). dlg@ does not think this will be a problem, as the
timeout intervals have not changed in years.

- Use low-res time to keep things fast. Add a local copy of
getnsecuptime() to subr_pool.c to keep the diff small. We will need
to move getnsecuptime() into kern_tc.c and document it later if we
ever have other users elsewhere in the kernel.

- Rename ph_tick -> ph_timestamp and pr_cache_tick -> pr_cache_timestamp.

Prompted by tedu@ some time ago, but the effort stalled (may have been
my fault). Input from kettenis@ and dlg@.

Special thanks to mpi@ for help with struct shuffling. This change
does not increase the size of struct pool_page_header or struct pool.

ok dlg@ mpi@

date 2021-01-02T05:36:49Z
author jmatthew
files src/sys/arch/sparc64/sparc64/cpu.c log diff annotate
message Allocate address space for struct cpu_info using km_alloc(9) instead of
uvm_km_valloc(9). Tested on a T5120.

ok mpi@

date 2021-01-02T07:25:42Z
author dlg
files src/sys/net/bpf.c log diff annotate
message optimise bpf_catchpacket and bpf_wakeup.

bpf_catchpacket had a chunk to deal with reader timeouts, but that
has largely been moved to bpfread. the vestigal code that was left
still tried to wake up a reader when a buffer got full, but there
already is a chunk of code that wakes up readers when the buffer
gets full.

bpf_wakeup now checks for readers before calling wakeup directly,
rather than pushing the wakeup to a task and calling it unconditionally.
the task_add is now only done when the bpfdesc actually has something
that needs it.

ok visa@

date 2021-01-02T13:15:15Z
author mvs
files src/sys/net/pipex.c log diff annotate
src/sys/net/pipex.h log diff annotate
message Remove PIPEX{S,G}MODE ioctl(2) commands. This time they are pretty dummy
and were kept only for backward compatibility reasons.

ok mpi@ yasuoka@

date 2021-01-02T13:16:04Z
author mvs
files src/sys/net/if_bridge.c log diff annotate
message Don't call if_deactivate() in bridge_clone_destroy(). Following
if_detach() will do this.

ok kn@

date 2021-01-02T13:16:40Z
author mvs
files src/sys/net/if_switch.c log diff annotate
message Don't call if_deactivate() in switch_clone_destroy(). Following
if_detach() will do this.

ok kn@

date 2021-01-02T14:27:53Z
author visa
files src/sys/arch/loongson/loongson/machdep.c log diff annotate
message Make kernel recognize Lynloong LM9002/9003 and LM9013.

LM9002/9003 is very similar to LM9001 since it works just fine on LM9002
with the codebase for LM9001.

LM9013 on the other hand is fairly different from LM9001 and is more like
Yeeloong 8089 when it comes to hardware design. More work might be needed
to make it fully functional.

From Yifei ZHAN on tech@

date 2021-01-02T14:29:16Z
author visa
files src/sys/arch/loongson/dev/smfb.c log diff annotate
message Use native display resolution 1368x768 with Lynloong all-in-one computers.

From Yifei ZHAN on tech@