OpenBSD cvs log

created 2020-01-31T14:50:45Z
begin 2020-01-24T00:00:00Z
end 2020-01-25T00:00:00Z
path src/sys
commits 25

date 2020-01-24T01:17:22Z
author dlg
files src/sys/net/if_tun.c log diff annotate
message change tun_dev_write to allocate one mbuf and cluster for the whole packet.

this is instead of possibly allocating a change of mbufs and MCLBYTE
sized clusters, and doing uiomove in a loop.

while here add max_linkhdr space to the front of the allocated mbuf
to help if we're forwarding the frame out some other interface.

date 2020-01-24T01:36:22Z
author dlg
files src/sys/net/if_tun.c log diff annotate
message provide a tun_input() interface input handler for tun(4) packets.

this makes tun(4) more like tap(4). it now relies on the network
stack to set the rcvif, rdomain, count the packets, and lock
appropriately. right now it also means we consistently use if input
queues for both tun and tap, and return backpressure at the same
points.

the tun_input handler is then responsible for pulling the "link"
header off the packet and shoving it it into the various protocol
handlers as appropriate.

a consequence of having the stack count the bytes before tun_input
strips the header is ibytes now includes the 4 byte AF header.
however, this makes tun input consistent with the accounting on tun
output, which included those 4 bytes anyway.

date 2020-01-24T01:45:31Z
author dlg
files src/sys/net/if_tun.c log diff annotate
message move to if_vinput() in tun_dev_write.

this means tun doesn't queue the packet on input for the network
stack to process, it's pushed through as part of the write into the
kernel.

discussed at length with claudio@ who agrees that avoiding a queue,
and charging the writing process with the work associated with the
packet, are both reasonable (good) things to do.

date 2020-01-24T02:56:35Z
author krw
files src/sys/conf/files log diff annotate
message Nuke references to zaurus zombies.

ok tedu@ jsg@

date 2020-01-24T03:01:11Z
author krw
files src/sys/dev/Attic/flash.c log diff annotate
src/sys/dev/Attic/flashvar.h log diff annotate
message Double tap the actual Zaurus zombies.

ok tedu@ jsg@

date 2020-01-24T03:05:13Z
author tedu
files src/sys/dev/ic/Attic/ncr5380reg.h log diff annotate
message remove unreferenced ncr5380 driver files
ok jsg

date 2020-01-24T03:05:14Z
author tedu
files src/sys/conf/files log diff annotate
src/sys/dev/ic/Attic/ncr5380sbc.c log diff annotate
src/sys/dev/ic/Attic/ncr5380var.h log diff annotate
message remove unreferenced ncr5380 driver files
ok jsg

date 2020-01-24T03:29:55Z
author tedu
files src/sys/dev/pci/auixp.c log diff annotate
src/sys/dev/pci/cs4280.c log diff annotate
src/sys/dev/pci/if_alcreg.h log diff annotate
src/sys/dev/pci/pciide.c log diff annotate
src/sys/dev/pci/plx9060var.h log diff annotate
message remove some ifdef notyet code that doesn't seem to be moving forward...
some ok ratchov

date 2020-01-24T03:49:34Z
author tedu
files src/sys/msdosfs/msdosfs_vfsops.c log diff annotate
message remove a notyet that remains more not than yet after 25 years. ok krw

date 2020-01-24T04:03:11Z
author cheloha
files src/sys/dev/i2c/ihidev.c log diff annotate
message ihidev(4): tsleep(9) -> tsleep_nsec(9); ok mpi@ jcs@

date 2020-01-24T04:44:14Z
author krw
files src/sys/arch/macppc/conf/GENERIC log diff annotate
src/sys/arch/macppc/conf/RAMDISK log diff annotate
src/sys/arch/macppc/conf/files.macppc log diff annotate
message mesh(4) is old world and only new world macppc hardware is supported.

ok tedu@ jsg@

date 2020-01-24T04:47:09Z
author krw
files src/sys/arch/macppc/dev/Attic/mesh.c log diff annotate
message mesh(4) is old world and only new world macppc hardware is supported.

ok tedu@ jsg@

date 2020-01-24T05:14:51Z
author jsg
files src/sys/arch/amd64/amd64/conf.c log diff annotate
src/sys/arch/i386/i386/conf.c log diff annotate
src/sys/conf/files log diff annotate
src/sys/dev/gpio/files.gpio log diff annotate
src/sys/dev/isa/files.isa log diff annotate
src/sys/dev/pv/files.pv log diff annotate
src/sys/dev/pv/pvbus.c log diff annotate
src/sys/dev/usb/files.usb log diff annotate
src/sys/net/if.c log diff annotate
src/sys/net/if_enc.c log diff annotate
src/sys/net/if_mpe.c log diff annotate
message cleanup unused headers generated by config

ok tedu@ krw@ deraadt@

date 2020-01-24T05:14:52Z
author jsg
files src/sys/netmpls/mpls_input.c log diff annotate
src/sys/scsi/files.scsi log diff annotate
message cleanup unused headers generated by config

ok tedu@ krw@ deraadt@

date 2020-01-24T05:27:31Z
author kettenis
files src/sys/arch/amd64/amd64/efifb.c log diff annotate
src/sys/arch/amd64/amd64/locore0.S log diff annotate
src/sys/arch/amd64/amd64/machdep.c log diff annotate
src/sys/arch/amd64/amd64/pmap.c log diff annotate
message Machines have started to appear that have the framebuffer at an address > 4GB.
On these machines we can't use the direct map since early on during boot
the direct map only covers the first 4GB of memory. Instead, use a
special (and temporary) mapping until we remap the framebuffer near the
start of autoconf. With lots of help from mlarkin@

tested by yasuoka@
ok mlarkin@

date 2020-01-24T05:27:32Z
author kettenis
files src/sys/arch/amd64/include/pmap.h log diff annotate
message Machines have started to appear that have the framebuffer at an address > 4GB.
On these machines we can't use the direct map since early on during boot
the direct map only covers the first 4GB of memory. Instead, use a
special (and temporary) mapping until we remap the framebuffer near the
start of autoconf. With lots of help from mlarkin@

tested by yasuoka@
ok mlarkin@

date 2020-01-24T05:38:33Z
author ratchov
files src/sys/dev/audio.c log diff annotate
message Rename audio_mixer_{read,write} to audio_mixer_{get,set}.

The audio_mixer_{read,write} names are misleading: these functions are
not the methods of the read and write syscalls. No object change.

date 2020-01-24T06:31:17Z
author cheloha
files src/sys/kern/subr_pool.c log diff annotate
message pool(9): replace custom TAILQ concatenation loops with TAILQ_CONCAT(3)

TAILQ_CONCAT(3) apparently wasn't in-tree when this code was written.
Using it leaves us with less code *and* better performance.

ok tedu@

date 2020-01-24T06:42:13Z
author jsg
files src/sys/net/if_pppx.c log diff annotate
message add pf.h include for NPF > 0 use added in rev 1.71

ok dlg@

date 2020-01-24T11:07:41Z
author anton
files src/sys/sys/pipe.h log diff annotate
message no fields are protected by the kernel lock anymore

date 2020-01-24T13:01:29Z
author kurt
files src/sys/ufs/ffs/ffs_vnops.c log diff annotate
message Improve small random read ffs performance:

Only call bread_cluster if either the previously read ffs block is
adjacent to the current block or if the current read request exceeds the
current ffs block. This effectively turns off read-ahead for random reads
that fall within one ffs block.

okay beck@, mpi@, visa@

date 2020-01-24T14:00:31Z
author mpi
files src/sys/dev/dt/dt_dev.c log diff annotate
src/sys/kern/kern_sysctl.c log diff annotate
message New `kern.allowdt' button must be set to open(2) /dev/dt.

dt(4) exposes kernel internals, addresses and content of states to
userland. As such its interface shouldn't be available without
enabling it consciously.

ok millert@, deraadt@

date 2020-01-24T14:00:32Z
author mpi
files src/sys/sys/sysctl.h log diff annotate
message New `kern.allowdt' button must be set to open(2) /dev/dt.

dt(4) exposes kernel internals, addresses and content of states to
userland. As such its interface shouldn't be available without
enabling it consciously.

ok millert@, deraadt@

date 2020-01-24T14:11:01Z
author mpi
files src/sys/arch/alpha/alpha/conf.c log diff annotate
src/sys/arch/hppa/hppa/conf.c log diff annotate
message Use major 32 for dt(4).

ok visa@, kettenis@, deraadt@

date 2020-01-24T15:58:33Z
author cheloha
files src/sys/kern/kern_synch.c log diff annotate
message *sleep_nsec(9): log process name and pid when nsecs == 0

We included DIAGNOSTIC in *sleep_nsec(9) when they were first committed
to help us sniff out divison-to-zero bugs when converting *sleep(9)
callers to the new interfaces.

Recently we exposed the new interface to userland callers. This has
yielded some warnings.

This diff adds a process name and pid to the warnings to help determine
the source of the zero-length sleeps.

ok mpi@