OpenBSD cvs log

created 2024-07-07T02:25:56Z
begin 2024-07-02T00:00:00Z
end 2024-07-03T00:00:00Z
path src/sys
commits 13

date 2024-07-02T04:10:25Z
author jsg
files src/sys/arch/amd64/pci/agp_machdep.c log diff annotate
src/sys/arch/i386/pci/agp_machdep.c log diff annotate
src/sys/dev/pci/agpvar.h log diff annotate
message remove unused agp_map functions
last use (in inteldrm) was removed in March

date 2024-07-02T04:29:01Z
author jsg
files src/sys/arch/amd64/pci/agp_machdep.c log diff annotate
src/sys/arch/i386/pci/agp_machdep.c log diff annotate
src/sys/dev/pci/agpvar.h log diff annotate
message remove unused agp_flush_cache_range()

date 2024-07-02T04:42:43Z
author jsg
files src/sys/arch/amd64/pci/agp_machdep.c log diff annotate
src/sys/arch/i386/pci/agp_machdep.c log diff annotate
message remove oga's copyright notice, none of those changes remain

date 2024-07-02T05:50:02Z
author gkoehler
files src/sys/dev/hid/hidkbd.c log diff annotate
message Support numpad on newer macppc Apple PowerBooks

This is for newer PowerBooks with ukbd(4), and doesn't affect older
models with akbd(4). The Fn key now makes a numpad,

7 8 9 0 - 7 8 9 / =
U I O P => 4 5 6 *
J K L ; 1 2 3 -
M . / 0 . +

Also, Fn+F6 is Num Lock. This acts like Num Lock on other USB
keyboards, and unlike Num Lock on akbd(4).

From jon (at) elytron (dot) openbsd (dot) amsterdam

date 2024-07-02T08:27:04Z
author kettenis
files src/sys/dev/acpi/acpi.c log diff annotate
message Do not attach acpitz(4) if the _STA method indicates that a thermal zone
isn't present. While it isn't clear whether _STA applies to thermal zones
according to the ACPI standard, this prevents issues on the Asus Vivobook S15.

ok miod@, patrick@, deraadt@

date 2024-07-02T10:25:16Z
author kettenis
files src/sys/arch/arm64/arm64/cpu.c log diff annotate
src/sys/arch/arm64/arm64/lse.S log diff annotate
src/sys/arch/arm64/conf/Makefile.arm64 log diff annotate
src/sys/arch/arm64/conf/files.arm64 log diff annotate
message The traditional LL/SC atomics perform poorly on modern arm64 systems with
many CPU cores. With the recent conversion of the sched lock to a mutex
some systems appear to hang if the sched lock is contended. ARMv8.1
introduced an LSE feature that provides atomic instructions such as CAS
that perform much better. Unfortunately these can't be used on older
ARMv8.0 systems. Use -moutline-atomics to make the compiler generate
function calls for atomic operations and provide an implementation for
the functions we use in the kernel that use LSE when available and fall
back on LL/SC.

Fixes regressions seen on Ampere Altra and Apple M2 Pro/Max/Ultra since
the conversion of the sched lock to a mutex.

tested by claudio@, phessler@, mpi@
ok patrick@

date 2024-07-02T18:33:47Z
author bluhm
files src/sys/net/pf.c log diff annotate
src/sys/netinet/ip_input.c log diff annotate
src/sys/netinet/ip_mroute.c log diff annotate
src/sys/netinet/ip_output.c log diff annotate
src/sys/netinet/ip_var.h log diff annotate
message Read IPsec forwarding information once.

Fix MP race between reading ip_forwarding in ip_input() and checking
ip_forwarding == 2 in ip_output(). In theory ip_forwarding could
be 2 during ip_input() and later 0 in ip_output(). Then a packet
would be forwarded that was never allowed. Currently exclusive
netlock in sysctl(2) prevents all races.

Introduce IP_FORWARDING_IPSEC and pass it with the flags parameter
that was introduced for IP_FORWARDING.

Instead of calling m_tag_find(), traversing the list, and comparing
with NULL, just check the PACKET_TAG_IPSEC_IN_DONE bit. Reading
ipsec_in_use in ip_output() is a performance hack that is not
necessary. New code only checks tree bits.

OK mvs@

date 2024-07-02T19:41:52Z
author patrick
files src/sys/arch/arm64/dev/smmu_fdt.c log diff annotate
message Give the Qualcomm Snapdragon X Elite (X1E80100) the same treatment as its
predecessors and don't touch the SMMUv2.

ok kettenis@

date 2024-07-02T19:43:52Z
author patrick
files src/sys/dev/fdt/qcgpio_fdt.c log diff annotate
message From what we currently use, the Qualcomm Snapdragon X Elite (X1E80100)
GPIO controller is to be treated equally as the SC8280XP, apart from
the new one having a few more pins.

ok kettenis@

date 2024-07-02T19:44:37Z
author patrick
files src/sys/dev/fdt/dwpcie.c log diff annotate
message Support the Qualcomm Snapdragon X Elite (X1E80100) PCIe controller. We do
not do anything fancy for the SC8280XP either, so treat it equally.

ok kettenis@

date 2024-07-02T19:59:54Z
author kettenis
files src/sys/arch/arm64/arm64/cpu.c log diff annotate
message Fix unintended comparison between signed and unsigned integer.
C type conversion rules are hard, let's go shopping.

ok patrick@

date 2024-07-02T22:28:02Z
author kettenis
files src/sys/dev/pci/pcidevs log diff annotate
message Add Qualcomm X1E80100

date 2024-07-02T22:28:29Z
author kettenis
files src/sys/dev/pci/pcidevs.h log diff annotate
src/sys/dev/pci/pcidevs_data.h log diff annotate
message regen