OpenBSD cvs log

created 2023-08-10T18:54:57Z
begin 2023-01-31T00:00:00Z
end 2023-02-07T00:00:00Z
path src/sys
commits 57

date 2023-01-31T01:27:58Z
author gkoehler
files src/sys/arch/powerpc/include/pmap.h log diff annotate
src/sys/arch/powerpc/include/pte.h log diff annotate
src/sys/arch/powerpc/powerpc/pmap.c log diff annotate
src/sys/arch/powerpc/powerpc/trap.c log diff annotate
message Execute-only for macppc G5

The G5 PowerPC 970 has a Data Address Compare mechanism that can trap
loads and stores to pages with PTE_AC_64, while allowing instruction
fetches. Use this for execute-only mappings, like we do on powerpc64.

Add a check to pte_spill_v for execute-only mappings. Without this,
we would forever retry reading an execute-only page.

In altivec_assist, copyin would fail to read the instruction from an
execute-only page. Add copyinsn to bypass x-only, like sparc64.

with help from abieber@ deraadt@ kettenis@
ok deraadt@

date 2023-01-31T11:47:35Z
author mvs
files src/sys/netinet/if_ether.c log diff annotate
message Route lock was reverted, adjust forgotten commentary.
No functional changes.

date 2023-01-31T13:41:54Z
author mvs
files src/sys/netinet/if_ether.c log diff annotate
message Remove the last ones route lock references from comments.
No functional change.

date 2023-01-31T15:18:51Z
author deraadt
files src/sys/arch/alpha/alpha/fp_complete.c log diff annotate
src/sys/arch/alpha/alpha/locore.s log diff annotate
src/sys/arch/alpha/alpha/trap.c log diff annotate
message On systems without xonly mmu hardware-enforcement, we can still mitigate
against classic BROP with a range-checking wrapper in front of copyin() and
copyinstr() which ensures the userland source doesn't overlap the main program
text, ld.so text, signal tramp text (it's mapping is hard to distinguish
so it comes along for the ride), or libc.so text. ld.so tells the kernel
libc.so text range with msyscall(2). The range checking for 2-4 elements is
done without locking (because all 4 ranges are immutable!) and is inexpensive.

write(sock, &open, 400) now fails with EFAULT. No programs have been
discovered which require reading their own text segments with a system call.

On a machine without mmu enforcement, a test program reports the following:
userland kernel
ld.so readable unreadable
mmap xz unreadable unreadable
mmap x readable readable
mmap nrx readable readable
mmap nwx readable readable
mmap xnwx readable readable
main readable unreadable
libc unmapped? readable unreadable
libc mapped readable unreadable

ok kettenis, additional help from miod

date 2023-01-31T15:18:53Z
author deraadt
files src/sys/arch/alpha/include/cpu.h log diff annotate
message On systems without xonly mmu hardware-enforcement, we can still mitigate
against classic BROP with a range-checking wrapper in front of copyin() and
copyinstr() which ensures the userland source doesn't overlap the main program
text, ld.so text, signal tramp text (it's mapping is hard to distinguish
so it comes along for the ride), or libc.so text. ld.so tells the kernel
libc.so text range with msyscall(2). The range checking for 2-4 elements is
done without locking (because all 4 ranges are immutable!) and is inexpensive.

write(sock, &open, 400) now fails with EFAULT. No programs have been
discovered which require reading their own text segments with a system call.

On a machine without mmu enforcement, a test program reports the following:
userland kernel
ld.so readable unreadable
mmap xz unreadable unreadable
mmap x readable readable
mmap nrx readable readable
mmap nwx readable readable
mmap xnwx readable readable
main readable unreadable
libc unmapped? readable unreadable
libc mapped readable unreadable

ok kettenis, additional help from miod

date 2023-01-31T15:18:54Z
author deraadt
files src/sys/arch/alpha/include/pmap.h log diff annotate
src/sys/arch/amd64/amd64/copy.S log diff annotate
src/sys/arch/amd64/include/pmap.h log diff annotate
src/sys/arch/arm/arm/bcopyinout.S log diff annotate
src/sys/arch/arm/arm/copystr.S log diff annotate
src/sys/arch/arm/include/pmap.h log diff annotate
src/sys/arch/hppa/hppa/db_disasm.c log diff annotate
src/sys/arch/hppa/include/cpu.h log diff annotate
src/sys/arch/i386/i386/locore.s log diff annotate
src/sys/arch/i386/include/pmap.h log diff annotate
src/sys/arch/m88k/include/cpu.h log diff annotate
src/sys/arch/m88k/m88k/m88110_fp.c log diff annotate
src/sys/arch/m88k/m88k/subr.S log diff annotate
src/sys/arch/m88k/m88k/trap.c log diff annotate
message On systems without xonly mmu hardware-enforcement, we can still mitigate
against classic BROP with a range-checking wrapper in front of copyin() and
copyinstr() which ensures the userland source doesn't overlap the main program
text, ld.so text, signal tramp text (it's mapping is hard to distinguish
so it comes along for the ride), or libc.so text. ld.so tells the kernel
libc.so text range with msyscall(2). The range checking for 2-4 elements is
done without locking (because all 4 ranges are immutable!) and is inexpensive.

write(sock, &open, 400) now fails with EFAULT. No programs have been
discovered which require reading their own text segments with a system call.

On a machine without mmu enforcement, a test program reports the following:
userland kernel
ld.so readable unreadable
mmap xz unreadable unreadable
mmap x readable readable
mmap nrx readable readable
mmap nwx readable readable
mmap xnwx readable readable
main readable unreadable
libc unmapped? readable unreadable
libc mapped readable unreadable

ok kettenis, additional help from miod

date 2023-01-31T15:18:55Z
author deraadt
files src/sys/arch/mips64/include/pmap.h log diff annotate
src/sys/arch/mips64/mips64/lcore_access.S log diff annotate
src/sys/arch/powerpc/include/pmap.h log diff annotate
src/sys/arch/powerpc/powerpc/pmap.c log diff annotate
src/sys/arch/sh/include/pmap.h log diff annotate
src/sys/arch/sh/sh/locore_subr.S log diff annotate
src/sys/arch/sparc64/include/pmap.h log diff annotate
src/sys/arch/sparc64/sparc64/db_interface.c log diff annotate
src/sys/arch/sparc64/sparc64/locore.s log diff annotate
src/sys/uvm/uvm_map.c log diff annotate
src/sys/uvm/uvm_map.h log diff annotate
message On systems without xonly mmu hardware-enforcement, we can still mitigate
against classic BROP with a range-checking wrapper in front of copyin() and
copyinstr() which ensures the userland source doesn't overlap the main program
text, ld.so text, signal tramp text (it's mapping is hard to distinguish
so it comes along for the ride), or libc.so text. ld.so tells the kernel
libc.so text range with msyscall(2). The range checking for 2-4 elements is
done without locking (because all 4 ranges are immutable!) and is inexpensive.

write(sock, &open, 400) now fails with EFAULT. No programs have been
discovered which require reading their own text segments with a system call.

On a machine without mmu enforcement, a test program reports the following:
userland kernel
ld.so readable unreadable
mmap xz unreadable unreadable
mmap x readable readable
mmap nrx readable readable
mmap nwx readable readable
mmap xnwx readable readable
main readable unreadable
libc unmapped? readable unreadable
libc mapped readable unreadable

ok kettenis, additional help from miod

date 2023-01-31T15:18:56Z
author deraadt
files src/sys/kern/exec_subr.c log diff annotate
src/sys/kern/kern_sig.c log diff annotate
src/sys/kern/kern_subr.c log diff annotate
src/sys/sys/systm.h log diff annotate
message On systems without xonly mmu hardware-enforcement, we can still mitigate
against classic BROP with a range-checking wrapper in front of copyin() and
copyinstr() which ensures the userland source doesn't overlap the main program
text, ld.so text, signal tramp text (it's mapping is hard to distinguish
so it comes along for the ride), or libc.so text. ld.so tells the kernel
libc.so text range with msyscall(2). The range checking for 2-4 elements is
done without locking (because all 4 ranges are immutable!) and is inexpensive.

write(sock, &open, 400) now fails with EFAULT. No programs have been
discovered which require reading their own text segments with a system call.

On a machine without mmu enforcement, a test program reports the following:
userland kernel
ld.so readable unreadable
mmap xz unreadable unreadable
mmap x readable readable
mmap nrx readable readable
mmap nwx readable readable
mmap xnwx readable readable
main readable unreadable
libc unmapped? readable unreadable
libc mapped readable unreadable

ok kettenis, additional help from miod

date 2023-01-31T19:11:47Z
author cheloha
files src/sys/arch/amd64/amd64/lapic.c log diff annotate
message amd64: lapic_timer_trigger: disable interrupts while configuring timer

lapic_timer_oneshot() does three writes. We need to disable
interrupts to ensure the timer lands in a valid state.

Link: https://marc.info/?l=openbsd-tech&m=167482851403841&w=2

ok mlarkin@

date 2023-02-02T03:49:58Z
author jsg
files src/sys/dev/pci/drm/i915/gem/selftests/huge_pages.c log diff annotate
message drm/i915/selftests: Unwind hugepages to drop wakeref on error

From Chris Wilson
d5fb544b4ce56316bdfd542511dcd34c5798c3b8 in linux-6.1.y/6.1.9
93eea624526fc7d070cdae463408665824075f54 in mainline linux

date 2023-02-02T03:51:52Z
author jsg
files src/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c log diff annotate
src/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c log diff annotate
message drm/amd/display: fix issues with driver unload

From Hamza Mahfooz
b0b029ee04ef3dd6c7da0922204fb9e47a0b9010 in linux-6.1.y/6.1.9
e433adc60f7f847e734c56246b09291532f29b6d in mainline linux

date 2023-02-02T03:54:42Z
author jsg
files src/sys/dev/pci/drm/drm_panel_orientation_quirks.c log diff annotate
message drm: Add orientation quirk for Lenovo ideapad D330-10IGL

From Patrick Thompson
68f5d286aa3def44086d8f4e59f8e950dd1f2075 in linux-6.1.y/6.1.9
0688773f0710528e1ab302c3d6317e269f2e2e6e in mainline linux

date 2023-02-02T03:56:28Z
author jsg
files src/sys/dev/pci/drm/amd/amdkfd/kfd_svm.c log diff annotate
message drm/amdkfd: Add sync after creating vram bo

From Eric Huang
92af2d3b57a1afdfdcafb1c6a07ffd89cf3e98fb in linux-6.1.y/6.1.9
ba029e9991d9be90a28b6a0ceb25e9a6fb348829 in mainline linux

date 2023-02-02T03:58:04Z
author jsg
files src/sys/dev/pci/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c log diff annotate
src/sys/dev/pci/drm/amd/amdkfd/kfd_device_queue_manager.c log diff annotate
message drm/amdkfd: Fix NULL pointer error for GC 11.0.1 on mGPU

From Eric Huang
ca6263dc22acafc04c0d164900e5662a0e920a8a in linux-6.1.y/6.1.9
a6941f89d7c6a6ba49316bbd7da2fb2f719119a7 in mainline linux

date 2023-02-02T04:00:20Z
author jsg
files src/sys/dev/pci/drm/i915/display/intel_panel.c log diff annotate
message drm/i915: Allow panel fixed modes to have differing sync polarities

From Ville Syrjala
7fa092a05791b17414e8888a07b1e3ef3f86633e in linux-6.1.y/6.1.9
2bd0db4b3f0bd529f75b32538fc5a3775e3591c0 in mainline linux

date 2023-02-02T04:02:33Z
author jsg
files src/sys/dev/pci/drm/i915/display/intel_dp.c log diff annotate
message drm/i915: Allow alternate fixed modes always for eDP

From Ville Syrjala
2c8fb41ed0e64fd58b9381843106fb9ae8e0dc27 in linux-6.1.y/6.1.9
55cfeecc2197de68e9cc30f77c711dcbcdf27510 in mainline linux

date 2023-02-02T04:05:08Z
author jsg
files src/sys/dev/pci/drm/amd/amdgpu/amdgpu_gfx.c log diff annotate
message drm/amdgpu: complete gfxoff allow signal during suspend without delay

From Harsh Jain
3964b0c2e843334858da99db881859faa4df241d in linux-6.1.y/6.1.9
4b31b92b143f7d209f3d494c56d4c4673e9fc53d in mainline linux

date 2023-02-02T04:07:54Z
author jsg
files src/sys/dev/pci/drm/display/drm_dp_mst_topology.c log diff annotate
message drm/display/dp_mst: Correct the kref of port.

From Wayne Lin
335ef7d0777c5609d5fadb5b73b96c538fa8fc93 in linux-6.1.y/6.1.9
d8bf2df715bb8ac964f91fe8bf67c37c5d916463 in mainline linux

date 2023-02-02T04:09:36Z
author jsg
files src/sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c log diff annotate
message drm/amd/pm: add missing AllowIHInterrupt message mapping for SMU13.0.0

From Evan Quan
076f7a8798f5d87037ff6bc9aa077f854b6459fa in linux-6.1.y/6.1.9
15b207d0abdcbb2271774aa99d9a290789159e75 in mainline linux

date 2023-02-02T04:11:15Z
author jsg
files src/sys/dev/pci/drm/amd/amdgpu/mes_v11_0.c log diff annotate
message drm/amdgpu: remove unconditional trap enable on add gfx11 queues

From Jonathan Kim
60cd9bb28b973764b43dfa836fc0ac26745d54bd in linux-6.1.y/6.1.9
2de3769830346e68b3de0f4abc0d8e2625ad9dac in mainline linux

date 2023-02-02T04:13:11Z
author jsg
files src/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c log diff annotate
src/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c log diff annotate
message drm/amdgpu/display/mst: Fix mst_state->pbn_div and slot count assignments

From Lyude Paul
5891a419031d2d319623ee2a92db536bdda75d92 in linux-6.1.y/6.1.9
1119e1f9636b76aef14068c7fd0b4d55132b86b8 in mainline linux

date 2023-02-02T04:15:05Z
author jsg
files src/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c log diff annotate
message drm/amdgpu/display/mst: limit payload to be updated one by one

From Wayne Lin
be6bf2321343592f879176f8a02bfbea2b615826 in linux-6.1.y/6.1.9
cb1e0b015f56b8f3c7f5ce33ff4b782ee5674512 in mainline linux

date 2023-02-02T04:16:36Z
author jsg
files src/sys/dev/pci/drm/amd/display/dc/core/dc_link.c log diff annotate
message drm/amdgpu/display/mst: update mst_mgr relevant variable when long HPD

From Wayne Lin
af8e87f72f9ea4c6915506098e506c4e08d3d49c in linux-6.1.y/6.1.9
f85c5e25fd28fe0bf6d6d0563cf83758a4e05c8f in mainline linux

date 2023-02-02T04:20:13Z
author jsg
files src/sys/dev/pci/drm/drm_vma_manager.c log diff annotate
src/sys/dev/pci/drm/include/drm/drm_vma_manager.h log diff annotate
message drm/drm_vma_manager: Add drm_vma_node_allow_once()

From Nirmoy Das
67444f8ca31cdaf45e0b761241ad49b1ae04bcf9 in linux-6.1.y/6.1.9
899d3a3c19ac0e5da013ce34833dccb97d19b5e4 in mainline linux

date 2023-02-02T04:21:45Z
author jsg
files src/sys/dev/pci/drm/i915/gem/i915_gem_mman.c log diff annotate
message drm/i915: Fix a memory leak with reused mmap_offset

From Nirmoy Das
0bdc4b4ba7206c452ee81c82fa66e39d0e1780fb in linux-6.1.y/6.1.9
0220e4fe178c3390eb0291cdb34912d66972db8a in mainline linux

date 2023-02-02T04:23:33Z
author jsg
files src/sys/dev/pci/drm/i915/selftests/intel_scheduler_helpers.c log diff annotate
message drm/i915/selftest: fix intel_selftest_modify_policy argument types

From Arnd Bergmann
2e3539d34b8e3b6e77d47b681819e134d463108c in linux-6.1.y/6.1.9
2255bbcdc39d5b0311968f86614ae4f25fdd465d in mainline linux

date 2023-02-02T04:24:59Z
author jsg
files src/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c log diff annotate
message amdgpu: fix build on non-DCN platforms.

From Dave Airlie
432ddb5765c45e12339f2980463c89b21c96b504 in linux-6.1.y/6.1.9
f439a959dcfb6b39d6fd4b85ca1110a1d1de1587 in mainline linux

date 2023-02-02T09:35:07Z
author mvs
files src/sys/kern/uipc_socket.c log diff annotate
src/sys/kern/uipc_socket2.c log diff annotate
src/sys/sys/event.h log diff annotate
message Move the rest of common socket initialization within soalloc().

ok visa@

date 2023-02-02T13:28:31Z
author claudio
files src/sys/net/if_vlan.c log diff annotate
message Use binary or to set the ether_vtag which makes the code the same
as in the other case as argument to vlan_inject(). Result is the same.
OK dlg@ kn@ mvs@

date 2023-02-02T13:37:24Z
author claudio
files src/sys/dev/pci/if_em.c log diff annotate
message Do not endian swap the ether_vtag before stuffing it into the control word.
The endian swap to little endian happens later for the full control word.
Fixes vlans on em(4) on sparc64 systems.
OK kn@ naddy@

date 2023-02-03T06:13:08Z
author miod
files src/sys/arch/powerpc/include/asm.h log diff annotate
message Remove a bunch of pic-related macros which were supposed to mimic similar
x86 macros but have never been implemented and never been used either.

date 2023-02-03T11:31:52Z
author mbuhl
files src/sys/dev/pci/igc_i225.c log diff annotate
src/sys/dev/pci/igc_i225.h log diff annotate
src/sys/dev/pci/igc_phy.c log diff annotate
message Remove PHY ID checks. The Linux driver is no longer checking for
the PHY ID because there is only one venor.
ok kevlo@

date 2023-02-03T13:20:21Z
author kettenis
files src/sys/arch/arm64/dev/aplmca.c log diff annotate
message Set clock divider instead of relying on the pre-configured value.

ok ratchov@

date 2023-02-03T13:22:59Z
author kettenis
files src/sys/dev/fdt/sncodec.c log diff annotate
message Add sncodec(4) a driver for the TI SN012776/TAS2764 digital amplifier.

ok ratchov@

date 2023-02-03T14:48:57Z
author kettenis
files src/sys/arch/arm64/conf/GENERIC log diff annotate
src/sys/dev/fdt/files.fdt log diff annotate
message enable sncodec(4)

date 2023-02-03T18:31:16Z
author miod
files src/sys/crypto/blake2s.c log diff annotate
src/sys/crypto/blake2s.h log diff annotate
src/sys/dev/ic/ahci.c log diff annotate
message Remove redundant DIAGNOSTIC wrappers around KASSERT macros.
From Crystal Kolipe.

date 2023-02-03T18:31:17Z
author miod
files src/sys/net/wg_noise.c log diff annotate
message Remove redundant DIAGNOSTIC wrappers around KASSERT macros.
From Crystal Kolipe.

date 2023-02-03T18:32:31Z
author miod
files src/sys/dev/rasops/rasops.h log diff annotate
message Remove leftover rasops_isgray[] declaration.
From Crystal Kolipe.

date 2023-02-03T18:34:24Z
author miod
files src/sys/dev/rasops/rasops.c log diff annotate
message RASOPS_CLIPPING is about screen coordinates, don't let it mess with color
codes. NFC as this option is not enabled anywhere.

date 2023-02-04T00:07:11Z
author jsg
files src/sys/dev/pci/drm/i915/gem/i915_gem_stolen.c log diff annotate
message unstub i915_gem_stolen_lmem_setup()

date 2023-02-04T18:58:19Z
author kettenis
files src/sys/dev/fdt/sncodec.c log diff annotate
message Set default volume to -30 dB instead of using the hardware default of 0 dB
(which means maximum volume).

ok patrick@, ratchov@

date 2023-02-04T19:19:35Z
author cheloha
files src/sys/sys/timetc.h log diff annotate
message timecounting: remove incomplete PPS support

The timecounting code has had stubs for pulse-per-second (PPS) polling
since it was imported in 2004. At this point it seems unlikely that
anyone is going to finish adding PPS support, so let's remove the stubs:

- Delete the dead tc_poll_pps() call from tc_windup().
- Remove all tc_poll_pps symbols from the kernel.

Link: https://marc.info/?l=openbsd-tech&m=167519035723210&w=2

ok miod@

date 2023-02-04T19:19:36Z
author cheloha
files src/sys/arch/alpha/alpha/clock.c log diff annotate
src/sys/arch/amd64/amd64/tsc.c log diff annotate
src/sys/arch/amd64/isa/clock.c log diff annotate
src/sys/arch/arm/cortex/agtimer.c log diff annotate
src/sys/arch/arm/cortex/amptimer.c log diff annotate
src/sys/arch/arm64/dev/agtimer.c log diff annotate
src/sys/arch/armv7/omap/dmtimer.c log diff annotate
src/sys/arch/armv7/omap/gptimer.c log diff annotate
src/sys/arch/armv7/sunxi/sxitimer.c log diff annotate
src/sys/arch/hppa/dev/clock.c log diff annotate
src/sys/arch/i386/isa/clock.c log diff annotate
src/sys/arch/i386/pci/geodesc.c log diff annotate
src/sys/arch/i386/pci/gscpm.c log diff annotate
src/sys/arch/i386/pci/ichpcib.c log diff annotate
src/sys/arch/loongson/loongson/generic3a_machdep.c log diff annotate
src/sys/arch/macppc/macppc/clock.c log diff annotate
src/sys/arch/mips64/mips64/mips64_machdep.c log diff annotate
src/sys/arch/octeon/octeon/machdep.c log diff annotate
src/sys/arch/powerpc64/powerpc64/clock.c log diff annotate
src/sys/kern/kern_tc.c log diff annotate
message timecounting: remove incomplete PPS support

The timecounting code has had stubs for pulse-per-second (PPS) polling
since it was imported in 2004. At this point it seems unlikely that
anyone is going to finish adding PPS support, so let's remove the stubs:

- Delete the dead tc_poll_pps() call from tc_windup().
- Remove all tc_poll_pps symbols from the kernel.

Link: https://marc.info/?l=openbsd-tech&m=167519035723210&w=2

ok miod@

date 2023-02-04T19:19:37Z
author cheloha
files src/sys/arch/riscv64/riscv64/clock.c log diff annotate
src/sys/arch/sparc64/dev/psycho.c log diff annotate
src/sys/arch/sparc64/sparc64/clock.c log diff annotate
src/sys/dev/acpi/acpihpet.c log diff annotate
src/sys/dev/acpi/acpitimer.c log diff annotate
src/sys/dev/pci/amdpm.c log diff annotate
src/sys/dev/pci/viapm.c log diff annotate
src/sys/dev/pv/hyperv.c log diff annotate
src/sys/dev/pv/pvclock.c log diff annotate
message timecounting: remove incomplete PPS support

The timecounting code has had stubs for pulse-per-second (PPS) polling
since it was imported in 2004. At this point it seems unlikely that
anyone is going to finish adding PPS support, so let's remove the stubs:

- Delete the dead tc_poll_pps() call from tc_windup().
- Remove all tc_poll_pps symbols from the kernel.

Link: https://marc.info/?l=openbsd-tech&m=167519035723210&w=2

ok miod@

date 2023-02-04T19:33:03Z
author cheloha
files src/sys/kern/kern_clock.c log diff annotate
src/sys/kern/kern_resource.c log diff annotate
src/sys/kern/kern_time.c log diff annotate
src/sys/kern/sched_bsd.c log diff annotate
message kernel: stathz is always non-zero after cpu_initclocks()

Now that the clockintr switch is complete, cpu_initclocks() always
initializes stathz to a non-zero value. We don't call statclock()
from hardclock(9) anymore and, more broadly, we don't need to test
whether stathz is non-zero before using it.

With input from kettenis@.

Link: https://marc.info/?l=openbsd-tech&m=167434223309668&w=2

ok kettenis@ miod@

date 2023-02-04T20:04:20Z
author kettenis
files src/sys/dev/fdt/tascodec.c log diff annotate
message Set default volume to -30 dB instead of using the hardware default of 0 dB
(which means maximum volume).

ok patrick@, ratchov@

date 2023-02-04T23:11:59Z
author mglocker
files src/sys/arch/arm64/conf/GENERIC log diff annotate
src/sys/conf/files log diff annotate
src/sys/dev/acpi/files.acpi log diff annotate
src/sys/dev/acpi/ufshci_acpi.c log diff annotate
src/sys/dev/ic/ufshci.c log diff annotate
src/sys/dev/ic/ufshcireg.h log diff annotate
src/sys/dev/ic/ufshcivar.h log diff annotate
message Initial driver for Universal Flash Storage (UFS) Host Controllers.

ok kettenis@

date 2023-02-04T23:17:05Z
author cheloha
files src/sys/arch/macppc/macppc/clock.c log diff annotate
message macppc: dec_rearm: don't disable interrupts around atomic operations

We don't need to disable interrupts around ppc_mtdec(). The
underlying operation, mtdec, is atomic.

Link: https://marc.info/?l=openbsd-tech&m=167494864124073&w=2

ok gkoehler@

date 2023-02-04T23:20:54Z
author cheloha
files src/sys/arch/powerpc64/powerpc64/clock.c log diff annotate
message powerpc64: dec_rearm: don't disable interrupts around atomic operations

We don't need to disable interrupts around this singular mtdec() call.
The mtdec operation is atomic.

Link: https://marc.info/?l=openbsd-tech&m=167494864124073&w=2

ok gkoehler@

date 2023-02-05T01:57:59Z
author jsg
files src/sys/dev/pci/pcidevs log diff annotate
message add Intel Elkhart Lake ids

from:
Intel Atom x6000E Series, and Intel Pentium and Celeron N and
J Series Processors for IoT Applications
Datasheet, Volume 1
Document Number: 636112-1.6

AHCI changed from 0x4b60 to 0x4b63 to match what is seen on
Dell EMC Edge Gateway 3200 with Atom x6425RE and
Compulab fitlet3 with Atom x6425E.

0x4b7f is documented as Reserved but is SRAM

ok patrick@ jan@

date 2023-02-05T01:58:30Z
author jsg
files src/sys/dev/pci/pcidevs.h log diff annotate
src/sys/dev/pci/pcidevs_data.h log diff annotate
message regen

date 2023-02-05T02:26:02Z
author jsg
files src/sys/dev/pci/azalia.c log diff annotate
src/sys/dev/pci/dwiic_pci.c log diff annotate
src/sys/dev/pci/ichiic.c log diff annotate
message match on Elkhart Lake
ok patrick@ jan@

date 2023-02-06T06:41:38Z
author gkoehler
files src/sys/arch/powerpc/powerpc/pmap.c log diff annotate
message Add missing check for pg != NULL

The code was reading pg->pg_flags, so clang assumed pg != NULL, then
optimized a later "if (pg != NULL)" to "if (1)", and allowed a call to
pmap_enter_pv(pted, NULL). Such a call can freeze bsd.mp by trying to
lock NULL's ((struct mutex *)0x3c). I froze bsd.mp this way by
starting Xorg on a macppc with nv(4) or r128(4) video, as it tried to
mmap the xf86(4) aperture.

ok miod@

date 2023-02-06T11:16:22Z
author miod
files src/sys/arch/alpha/alpha/conf.c log diff annotate
src/sys/arch/alpha/alpha/machdep.c log diff annotate
src/sys/arch/alpha/alpha/pmap.c log diff annotate
src/sys/arch/alpha/alpha/prom.c log diff annotate
src/sys/arch/alpha/alpha/Attic/promcons.c log diff annotate
src/sys/arch/alpha/conf/files.alpha log diff annotate
src/sys/arch/alpha/include/pmap.h log diff annotate
src/sys/arch/alpha/include/prom.h log diff annotate
message Unifdef -U _PMAP_MAY_USE_PROM_CONSOLE. This code hasn't been needed in years
since the TC machines have switched to the MI zstty code.

date 2023-02-06T20:27:44Z
author jan
files src/sys/dev/pci/if_ix.c log diff annotate
message consolidate mbuf header parsing on device driver layer

with tweaks from mvs@, mpi@, dlg@, naddy@ and bluhm@

"go for it" deraadt@

ok naddy@, mvs@

date 2023-02-06T20:27:45Z
author jan
files src/sys/dev/pci/if_ixl.c log diff annotate
src/sys/net/if_ethersubr.c log diff annotate
src/sys/netinet/if_ether.h log diff annotate
message consolidate mbuf header parsing on device driver layer

with tweaks from mvs@, mpi@, dlg@, naddy@ and bluhm@

"go for it" deraadt@

ok naddy@, mvs@

date 2023-02-06T23:40:53Z
author jsg
files src/sys/dev/pci/drm/i915/i915_devlist.h log diff annotate
src/sys/dev/pci/drm/include/drm/i915_pciids.h log diff annotate
message match on another Elkhart Lake id
Noticed when looking at the datasheet. Merged into drm-intel-next.