OpenBSD cvs log

created 2020-11-01T20:22:23Z
begin 2020-10-25T00:00:00Z
end 2020-10-26T00:00:00Z
path src/sys
commits 18

date 2020-10-25T01:36:59Z
author jsg
files src/sys/dev/pci/azalia_codec.c log diff annotate
message recognise some more realtek codecs found in submitted dmesgs

date 2020-10-25T01:55:18Z
author cheloha
files src/sys/kern/kern_fork.c log diff annotate
src/sys/kern/kern_time.c log diff annotate
message setitimer(2): ITIMER_REAL: use kclock timeouts

Reimplement the ITIMER_REAL interval timer with a kclock timeout.

Couple things of note:

- We need to use the high-res nanouptime(9) call, not the low-res
getnanouptime(9).
- The code is simpler now that we aren't working with ticks.

Misc. thoughts:

- Still unsure if "kclock" is the right name for these things.
- MP-safely cancelling a periodic timeout is very difficult.

date 2020-10-25T02:54:38Z
author jsg
files src/sys/dev/pci/azalia_codec.c log diff annotate
message use pci macros when testing subvendor id for idt codecs

date 2020-10-25T04:16:55Z
author jsg
files src/sys/dev/pci/azalia.c log diff annotate
message enable snooping on more AMD devices

date 2020-10-25T07:20:10Z
author jsg
files src/sys/dev/pci/pcidevs log diff annotate
message add more Intel azalia ids

rename Intel 0xa171
The same id is used by HM175 QM175 CM238 (KBL-H), not just CM238.

date 2020-10-25T07:20:53Z
author jsg
files src/sys/dev/pci/pcidevs.h log diff annotate
message regen

date 2020-10-25T07:20:54Z
author jsg
files src/sys/dev/pci/pcidevs_data.h log diff annotate
message regen

date 2020-10-25T07:22:06Z
author jsg
files src/sys/dev/pci/azalia.c log diff annotate
message enable snooping on more Intel devices

date 2020-10-25T08:31:40Z
author mglocker
files src/sys/dev/acpi/abl.c log diff annotate
message Unbreak brightness setting on MacBooks introduced by abl(4).
MacBooks already handle the brightness through the drm driver.
Therefore only attach abl(4) to iMacs.

Issue initially reported by James Luigy.

Discussed with kettenis@, ok jung@

date 2020-10-25T09:03:01Z
author phessler
files src/sys/dev/usb/usbdevs log diff annotate
message add my new graphics tablet, not yet working

date 2020-10-25T09:03:45Z
author phessler
files src/sys/dev/usb/usbdevs.h log diff annotate
src/sys/dev/usb/usbdevs_data.h log diff annotate
message sync

date 2020-10-25T09:43:46Z
author kettenis
files src/sys/dev/pci/drm/files.drm log diff annotate
message Add firmload attribute to drivers that load firmware.

ok jsg@

date 2020-10-25T10:23:40Z
author kettenis
files src/sys/dev/pci/drm/radeon/radeon_kms.c log diff annotate
message Make mapping the "I/O Space" BAR optional. POWER9 systems don't support
"I/O Space" on their PCIe host bridges and for most (all) Radeon variants
there is an alternative method to access the relevant registers.

ok jsg@

date 2020-10-25T10:31:33Z
author visa
files src/sys/arch/octeon/conf/GENERIC log diff annotate
src/sys/arch/octeon/conf/files.octeon log diff annotate
message Add missing firmload attribute.

date 2020-10-25T10:33:31Z
author visa
files src/sys/arch/octeon/conf/GENERIC log diff annotate
message Revert accidental commit.

date 2020-10-25T10:55:42Z
author visa
files src/sys/kern/subr_log.c log diff annotate
src/sys/sys/msgbuf.h log diff annotate
message Serialize msgbuf access with a mutex.

This introduces a system-wide mutex that serializes msgbuf operations.
The mutex controls access to all modifiable fields of struct msgbuf.
It also covers logsoftc.sc_state.

To avoid adding extra lock order constraints that would affect use of
printf(9), the code does not take new locks when the log mutex is held.

The code assumes that there is at most one thread using logread(). This
keeps the logic simple. If there was more than one reader, logread()
might return the same data to different readers. Also, log wakeup might
not be reliable with multiple threads.

Tested in snaps for two weeks.

OK mpi@

date 2020-10-25T14:11:16Z
author kettenis
files src/sys/arch/powerpc64/dev/phb.c log diff annotate
message Implement a workaround for PCI devices that can't address the full 64-bit
PCI address space. Needed for radeondrm(4) and amdgpu(4) since Radeon GPUs
only implement 36, 40 or 44 bits of address space.

date 2020-10-25T16:54:43Z
author deraadt
files src/sys/arch/alpha/alpha/trap.c log diff annotate
message As done with other architectures, narrow the KERNEL_LOCK around uvm_fault()
as best we can.