OpenBSD cvs log

created 2020-11-21T19:19:08Z
begin 2020-07-05T00:00:00Z
end 2020-07-06T00:00:00Z
path src/sys
commits 14

date 2020-07-05T06:56:34Z
author jsg
files src/sys/arch/armv7/omap/ommmc.c log diff annotate
message match on "ti,am335-sdhci" used since linux 5.8-rc3

date 2020-07-05T07:47:32Z
author stsp
files src/sys/dev/usb/if_urtwn.c log diff annotate
message Fix mbuf leak in urtwn(4) with frames that are CCMP-crypted in hardware.

Problem reported and fix tested by Bastian Wessling on bugs@
ok jmatthew@

date 2020-07-05T10:32:22Z
author kettenis
files src/sys/arch/powerpc64/conf/Makefile.powerpc64 log diff annotate
message We're self-hosted now.

date 2020-07-05T10:34:08Z
author kettenis
files src/sys/arch/powerpc64/powerpc64/locore.S log diff annotate
src/sys/arch/powerpc64/powerpc64/machdep.c log diff annotate
message Make sure we return ENAMETOOLONG when copying a string into a buffer of
zero bytes.

date 2020-07-05T11:29:21Z
author kettenis
files src/sys/arch/powerpc64/powerpc64/machdep.c log diff annotate
message Save FPU state to PCB before running a signal handler. This doesn't
completely fix the case where the FPU is used in a signal handler
but it is part of the solution and makes sure the processor mode check
in sys_sigreturn() passes if the process was using the FPU when the signal
happened.

date 2020-07-05T11:47:50Z
author landry
files src/sys/dev/usb/uvideo.c log diff annotate
message uvideo_querycap(): Set the 'device_caps' field of struct v4l2_capability like done in utvfu(4)

Fixes webcam detection in firefox 78, where code was added to check for
V4L2_CAP_VIDEO_CAPTURE capability on 'device_caps', whereas we only set it
in the 'capabilities' field.

According to
https://www.kernel.org/doc/html/v4.14/media/uapi/v4l/vidioc-querycap.html#description
those distinct fields are here for drivers that provide several devices,
but firefox decided to check for 'device_caps' field instead of
'capability' (cf
https://hg.mozilla.org/integration/autoland/rev/33facf191f23) - so fill
the field for compatibility reasons, while
https://bugzilla.mozilla.org/show_bug.cgi?id=1650572 discusses with
upstream what's the right way.

ok mglocker@

date 2020-07-05T12:22:43Z
author kettenis
files src/sys/arch/powerpc64/powerpc64/machdep.c log diff annotate
message Don't forget to schedule an AST in need_resched().

date 2020-07-05T12:24:16Z
author kettenis
files src/sys/arch/powerpc64/powerpc64/syscall.c log diff annotate
src/sys/arch/powerpc64/powerpc64/trap.c log diff annotate
message Count traps and interrupts. And count system calls in the same place
since this makes it easier to reason about the accounting.

date 2020-07-05T17:12:59Z
author kettenis
files src/sys/arch/powerpc64/dev/phb.c log diff annotate
message We need to set the bypass bit for "raw" DMA memory as well.

date 2020-07-05T17:31:11Z
author kettenis
files src/sys/arch/powerpc64/conf/GENERIC log diff annotate
src/sys/arch/powerpc64/conf/RAMDISK log diff annotate
message Enable xhci(4) and a (deliberately) tiny set of USB devices.

date 2020-07-05T19:20:06Z
author krw
files src/sys/arch/sparc64/sparc64/autoconf.c log diff annotate
message Use scsi_link's 'bus' field rather than slightly more obscure
dev_parent twiddling. Improves chances of progress on eliminating
various bus related fields from struct scsi_link.

Tested by kmos@

"might actually be an improvement" kettenis@.

date 2020-07-05T20:17:25Z
author krw
files src/sys/dev/eisa/ahc_eisa.c log diff annotate
src/sys/dev/ic/aic7xxx_openbsd.h log diff annotate
src/sys/dev/ic/qlw.c log diff annotate
src/sys/dev/pci/ahc_pci.c log diff annotate
src/sys/scsi/scsiconf.c log diff annotate
src/sys/scsi/scsiconf.h log diff annotate
message Nuke struct scsi_link's "scsibus" member. The two drivers using it
(ahc(4) and qlw(4)) can just compare the values of the "bus" member
directly.

A slightly different path to the same result that matthew@ traversed
in his work culminating in scsiconf.h r1.146.

date 2020-07-05T20:49:40Z
author naddy
files src/sys/arch/powerpc64/include/cpu.h log diff annotate
message use the intended operator in cpu_rnd_messybits(); ok kettenis@

date 2020-07-05T21:54:44Z
author krw
files src/sys/dev/eisa/ahc_eisa.c log diff annotate
src/sys/dev/ic/aic7xxx_openbsd.c log diff annotate
src/sys/dev/ic/aic7xxx_openbsd.h log diff annotate
src/sys/dev/ic/aic7xxxvar.h log diff annotate
src/sys/dev/ic/qlw.c log diff annotate
src/sys/dev/pci/ahc_pci.c log diff annotate
message Double checking you committed the correct diff sometimes pays
off. Sigh.