OpenBSD cvs log

created 2024-08-24T20:00:06Z
begin 2024-08-18T00:00:00Z
end 2024-08-19T00:00:00Z
path src/sys
commits 19

date 2024-08-18T02:53:08Z
author deraadt
files src/sys/dev/acpi/acpi.c log diff annotate
message If FADT indicates FADT_POWER_S0_IDLE_CAPABLE, print "S0ix" instead
of "S0" on the acpi: sleep states line. (In my view, this flag-bit
announces that the hardware vendor + bios vendor + microsoft have agreed
this machine has enough "features" that S0 suspend is about as good or
better than S3, for various criteria).
ok kettenis mlarkin

date 2024-08-18T02:59:51Z
author deraadt
files src/sys/dev/usb/usb.c log diff annotate
message Upon resume, run usb_attach_roothub() in DVACT_WAKEUP rather than DVACT_RESUME.
The usb root hub is a software construct, not actual hardware, and the code
has a potential to reach sleeping points (which won't work because DVACT_RESUME
runs cold).

date 2024-08-18T03:25:04Z
author deraadt
files src/sys/dev/i2c/iatp.c log diff annotate
src/sys/dev/i2c/ietp.c log diff annotate
src/sys/dev/i2c/ihidev.c log diff annotate
message add missing child activate handling, found due to idiom inspection
tested by phessler, input from kettenis

date 2024-08-18T07:34:45Z
author stsp
files src/sys/dev/ic/qwx.c log diff annotate
message plug a memory leak in qwx(4) by freeing vifs when the interface goes down

date 2024-08-18T08:01:03Z
author mpi
files src/sys/kern/subr_hibernate.c log diff annotate
message Remove outdated comment about UVM_PLA_WAITOK and the pagedaemon.

ok miod@, mlarkin@

date 2024-08-18T08:18:49Z
author mpi
files src/sys/uvm/uvm_pmemrange.c log diff annotate
message Do not cache pages belonging to memory ranges with a `use' count.

Such pages belong to the DMA or ISA memory ranges and caching them
accelerate their exhaustion. On amd64, at least, the kernel relies
on having low pages available at any time and cannot recover from
their exhaustion.

Should prevent livelocks reported by jsg@ and tb@ on amd64.

ok deraadt@

date 2024-08-18T08:23:58Z
author mpi
files src/sys/dev/dt/dt_dev.c log diff annotate
message Get rid of intermediate copy before passing events to userland.

From Christian Ludwig with some tweaks.

date 2024-08-18T10:50:22Z
author kettenis
files src/sys/dev/pci/drm/apple/apldcp.c log diff annotate
message Some machines have more than one DCP, so apldcp(4) can attach multiple
times. So make the task pool private to each instance to avoid
initializing the pool again, which would panic the kernel.

ok tobhe@

date 2024-08-18T11:08:47Z
author kettenis
files src/sys/dev/i2c/ihidev.c log diff annotate
message Don't short-circuit interrupt handling when the sc_dying flag is set. Just
don't forward reports to the child drivers instead. This fixes an issue
with hardware that sends an interrupt in response to a reset request when
a level-triggered interrupt is used. In that case the interrupt would
just keep triggering when we issue a reset when we resume (when sc_dying
is set) since we didn't clear the interrupt condition by reading from the
device.

ok mlarkin@, deraadt@

date 2024-08-18T11:10:10Z
author kettenis
files src/sys/dev/acpi/pchgpio.c log diff annotate
message Add Meteor Lake support.

ok jsg@

date 2024-08-18T14:35:14Z
author deraadt
files src/sys/dev/pci/azalia.c log diff annotate
message there are azalia that will fail to attach. in the activate function for
DVACT_QUIESCE, this was handled by doing nothing. however, the other
DVACT methods were still trying to touch the device. This needs to
bail out earlier.
ok ratchov

date 2024-08-18T14:42:56Z
author deraadt
files src/sys/dev/pci/auixp.c log diff annotate
src/sys/dev/pci/azalia.c log diff annotate
src/sys/dev/pci/cs4280.c log diff annotate
src/sys/dev/pci/cs4281.c log diff annotate
src/sys/dev/pci/esa.c log diff annotate
src/sys/dev/pci/eso.c log diff annotate
src/sys/dev/pci/maestro.c log diff annotate
src/sys/dev/pci/yds.c log diff annotate
message Most audio drivers were incorrectly (or not at all) informing their children
about suspend/resume related events, and they all have audio.c as a child,
which definately needs to know!
ok ratchov

date 2024-08-18T15:03:01Z
author deraadt
files src/sys/dev/sdmmc/sdmmc.c log diff annotate
message For DVACT_RESUME, let the children know we are ready *after* calling
our own wakeup(). The wakeup() won't result in anything running now
because DVACT_RESUME is running in "cold !=0, interrupts blocked,
scheduler stopped", but it is idiomatically incorrect to inform your
children you are ready before you are ready.

date 2024-08-18T15:09:49Z
author deraadt
files src/sys/dev/pckbc/pms.c log diff annotate
message Driver was not calling the child activate functions in the correct way.
There is a child -- wsmouse, which has an activate function, so this
is another oversight...

date 2024-08-18T15:50:47Z
author deraadt
files src/sys/arch/arm/cortex/cortex.c log diff annotate
message don't need to put config_activate_children inside cfattach, because
NULL means the same
ok kettenis

date 2024-08-18T15:50:49Z
author deraadt
files src/sys/arch/arm/mainbus/mainbus.c log diff annotate
src/sys/arch/arm64/dev/mainbus.c log diff annotate
src/sys/arch/i386/i386/bios.c log diff annotate
src/sys/arch/i386/i386/mainbus.c log diff annotate
src/sys/arch/powerpc64/dev/mainbus.c log diff annotate
src/sys/arch/riscv64/dev/mainbus.c log diff annotate
message don't need to put config_activate_children inside cfattach, because
NULL means the same
ok kettenis

date 2024-08-18T19:44:10Z
author phessler
files src/sys/dev/softraid.c log diff annotate
message unregister softraid sensors when the volumes are removed

From Sven M. Hallberg

tested and OK phessler@
OK mvs@

date 2024-08-18T20:28:41Z
author deraadt
files src/sys/dev/pci/maestro.c log diff annotate
message oops, forgot variable

date 2024-08-18T21:04:29Z
author bluhm
files src/sys/arch/amd64/amd64/bus_dma.c log diff annotate
message Use define to test bounce buffer in amd64 bus dma.

To debug bounce buffers easily on non-SEV hardware, introduce a
define FORCE_BOUNCE_BUFFER that activates them. Default is off,
no functional change.

OK miod@