OpenBSD cvs log

created 2023-09-20T06:45:24Z
begin 2023-09-10T00:00:00Z
end 2023-09-11T00:00:00Z
path src/sys
commits 4

date 2023-09-10T01:41:16Z
author cheloha
files src/sys/kern/kern_clockintr.c log diff annotate
message clockintr_dispatch: add intermediate pointer for clockintr_queue.cq_shadow

Adding an intermediate pointer lets me shortens "cq->cq_shadow" to
just "shadow". I think it makes the dispatch loop logic a little
easier to read.

While here, add a clarifying comment.

date 2023-09-10T03:08:05Z
author cheloha
files src/sys/kern/kern_clockintr.c log diff annotate
src/sys/kern/kern_sched.c log diff annotate
src/sys/kern/kern_time.c log diff annotate
src/sys/kern/sched_bsd.c log diff annotate
src/sys/kern/subr_prof.c log diff annotate
src/sys/sys/clockintr.h log diff annotate
src/sys/sys/resourcevar.h log diff annotate
src/sys/sys/sched.h log diff annotate
src/sys/sys/time.h log diff annotate
message clockintr: support an arbitrary callback function argument

Callers can now provide an argument pointer to clockintr_establish().
The pointer is kept in a new struct clockintr member, cl_arg. The
pointer is passed as the third parameter to clockintr.cl_func when it
is executed during clockintr_dispatch(). Like the callback function,
the callback argument is immutable after the clockintr is established.

At present, nothing uses this. All current clockintr_establish()
callers pass a NULL arg pointer. However, I am confident that dt(4)'s
profile provider will need this in the near future.

Requested by dlg@ back in March.

date 2023-09-10T06:25:09Z
author jsg
files src/sys/dev/fdt/rkdrm.c log diff annotate
src/sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.c log diff annotate
src/sys/dev/pci/drm/i915/i915_driver.c log diff annotate
src/sys/dev/pci/drm/radeon/radeon_drv.c log diff annotate
message don't error on WSDISPLAYIO_SVIDEO/WSDISPLAYIO_GVIDEO in drm drivers
it is handled by wsdisplay(4)
ok dlg@

date 2023-09-10T09:32:31Z
author jsg
files src/sys/arch/amd64/amd64/ucode.c log diff annotate
src/sys/arch/i386/i386/ucode.c log diff annotate
message load amd patch into a malloc'd region to make it page aligned

avoids a General-Protection Exception on patch loader wrmsr with
A10-5700, TN-A1 00610f01 15-10-01

the alignment requirement is not present on at least
Ryzen 5 2600X, PiR-B2 00800f82 17-08-02

problem reported and fix tested by espie@