OpenBSD cvs log

created 2023-08-10T02:10:54Z
begin 2023-01-03T00:00:00Z
end 2023-01-10T00:00:00Z
path src/sys
commits 72

date 2023-01-03T10:59:00Z
author tobhe
files src/sys/dev/fdt/gpiobl.c log diff annotate
message Disable display backlight on Apple Silicon laptops when suspending.

ok kettenis@ patrick@

date 2023-01-03T15:50:52Z
author anton
files src/sys/dev/usb/uhidpp.c log diff annotate
message Group more request and response constants.

date 2023-01-03T15:51:40Z
author anton
files src/sys/dev/usb/uhidpp.c log diff annotate
message The software id in the request must be copied as is to the response by the
hardware. Leverage the fact that the same id can be anything within [1, 15] by
using a different id per request in a round robin fashion. Makes it easier to
correlate requests and responses while making sense of the debug output.

date 2023-01-03T15:52:02Z
author anton
files src/sys/dev/usb/uhidpp.c log diff annotate
message Poll battery sensors less frequently.

date 2023-01-04T02:00:49Z
author dlg
files src/sys/net/pf.c log diff annotate
src/sys/net/pf_ioctl.c log diff annotate
src/sys/net/pfvar.h log diff annotate
src/sys/net/pfvar_priv.h log diff annotate
message move the pf_state_tree rb tree type from pfvar.h to pfvar_priv.h

the pf_state_tree types are kernel private, and are not used by
userland. make build agrees with me.

while here, move the pf_state_tree from the RB macros to the RBT
functions. this shaves about 13k off pf.o on amd64.

ok sashan@

date 2023-01-04T03:47:10Z
author dlg
files src/sys/net/ifq.h log diff annotate
message fix a comment, no functional change.

date 2023-01-04T06:33:33Z
author jsg
files src/sys/uvm/uvm_mmap.c log diff annotate
message Chuck Cranor rescinded the advertising clause of uvm_mmap.c in
NetBSD rev 1.134 and confirmed with Mike Hibler that the University of
Utah would do the same.

https://mail-index.netbsd.org/source-changes/2011/02/02/msg018021.html

ok deraadt@

date 2023-01-04T07:06:08Z
author jsg
files src/sys/dev/cardbus/if_ath_cardbus.c log diff annotate
message Ichiro FUKUHARA agreed to rescind clause 3 and 4 in
NetBSD if_ath_cardbus.c rev 1.36

https://mail-index.netbsd.org/source-changes/2009/10/21/msg002189.html

date 2023-01-04T09:24:14Z
author jsg
files src/sys/arch/alpha/stand/netboot/dev_net.c log diff annotate
src/sys/lib/libsa/bootparam.c log diff annotate
message Gordon W. Ross agreed to rescind clause 3 and 4 in
NetBSD dev_net.c rev 1.15 bootparam.c rev 1.19

https://mail-index.netbsd.org/source-changes/2009/10/21/msg002212.html

date 2023-01-04T09:34:26Z
author jsg
files src/sys/arch/macppc/dev/zs.c log diff annotate
message Gordon W. Ross and Bill Studenmund agreed to rescind clause 3 and 4 in
NetBSD zs.c rev 1.49

https://mail-index.netbsd.org/source-changes/2009/10/27/msg002419.html

date 2023-01-04T10:05:44Z
author jsg
files src/sys/dev/microcode/siop/ncr53cxxx.c log diff annotate
src/sys/dev/microcode/siop/osiop.ss log diff annotate
message Michael L. Hitch agreed to rescind clause 3 and 4 in
NetBSD ncr53cxxx.c rev 1.16 osiop.ss rev 1.2

https://mail-index.netbsd.org/source-changes/2009/10/21/msg002215.html

date 2023-01-04T10:31:55Z
author dlg
files src/sys/net/if_pfsync.c log diff annotate
src/sys/net/pf.c log diff annotate
src/sys/net/pf_ioctl.c log diff annotate
src/sys/net/pf_lb.c log diff annotate
src/sys/net/pfvar.h log diff annotate
src/sys/net/pfvar_priv.h log diff annotate
message move the pf_state_tree_id type from pfvar.h to pfvar_priv.h.

the pf_state_tree_id type is private to the kernel.

while here, move it from being an RB tree to an RBT tree. this saves
about 12k in pf.o on amd64.

ok sashan@

date 2023-01-04T10:59:34Z
author jsg
files src/sys/arch/mips64/include/kcore.h log diff annotate
src/sys/sys/kcore.h log diff annotate
message Leo Weppelman agreed to rescind clause 3 and 4 in
NetBSD kvm_dump.3 rev 1.15 kcore.h rev 1.3

https://mail-index.netbsd.org/source-changes/2009/10/20/msg002169.html

date 2023-01-04T13:01:46Z
author deraadt
files src/sys/arch/arm64/stand/efiboot/Makefile log diff annotate
message experiments for --execute-only on arm64 and riscv64 are going well,
which will prompt making that the default. That means efiboot, which
build in a different way, must disable the link option.
ok kettenis

date 2023-01-04T13:01:47Z
author deraadt
files src/sys/arch/riscv64/stand/efiboot/Makefile log diff annotate
message experiments for --execute-only on arm64 and riscv64 are going well,
which will prompt making that the default. That means efiboot, which
build in a different way, must disable the link option.
ok kettenis

date 2023-01-04T13:08:23Z
author jsg
files src/sys/dev/microcode/ncr53cxxx/Attic/ncr53cxxx.c log diff annotate
message remove unused version of ncr53cxxx.c
ok deraadt@ miod@

date 2023-01-04T14:42:46Z
author jsg
files src/sys/dev/mii/devlist2h.awk log diff annotate
src/sys/dev/pcmcia/devlist2h.awk log diff annotate
src/sys/dev/sdmmc/devlist2h.awk log diff annotate
message Christos Zoulas removed his name from advertising clauses and copyrights
of some files in NetBSD. Make the same changes here.

https://mail-index.netbsd.org/source-changes/2017/06/03/msg084953.html
https://mail-index.netbsd.org/source-changes/2017/06/03/msg084955.html
https://mail-index.netbsd.org/source-changes/2019/12/02/msg111431.html
https://mail-index.netbsd.org/source-changes/2019/12/02/msg111432.html

date 2023-01-04T14:58:04Z
author jsg
files src/sys/arch/sparc64/sparc64/in_cksum.S log diff annotate
message Eduardo Horvath agreed to rescind clause 3 and 4 in
NetBSD fgen.1 rev 1.9 cpu_in_cksum.S rev 1.2

https://mail-index.netbsd.org/source-changes/2009/10/19/msg002130.html

date 2023-01-04T15:48:00Z
author kettenis
files src/sys/dev/pci/drm/include/linux/string.h log diff annotate
message Implement strscpy() and implement strscpy_pad() on top of that. Fixes the
return value in case of truncation.

ok jsg@

date 2023-01-04T22:13:43Z
author kettenis
files src/sys/arch/powerpc/powerpc/trap.c log diff annotate
message The access type for an instruction storage interrupt should not
include PROT_READ, otherwise faults on executable pages mapped only as
PORT_EXEC will not work.

ok deraadt@

date 2023-01-05T10:06:58Z
author sashan
files src/sys/net/pf_table.c log diff annotate
message pfctl fails to add addresses to undefined/inactive table

pfr_add_tables() function must set PFR_TFLAG_ACTIVE flag
to table which is attached to rule. This will then allow
pfr_add_addrs() to populate the table with addresses.

without this pair of pfctl(8) commands fails as follows:
# echo 'pass from <foo> to any' |pfctl -f -
# pfctl -t foo -T add 192.168.1.0/24
pfctl: Table does not exist


OK mbuhl@

date 2023-01-05T20:35:44Z
author kettenis
files src/sys/arch/arm/arm/fault.c log diff annotate
message The access type for a prefetch abort should not include PROT_READ,
otherwise faults on executable pages mapped only as PROT_EXEC will
not work.

ok deraadt@

date 2023-01-05T21:39:57Z
author deraadt
files src/sys/kern/kern_exec.c log diff annotate
message after a few trap.c were fixed to fault with the right access, the
signal trampoline can now be PROT_EXEC (without PROT_READ) everywhere
ok kettenis

date 2023-01-05T23:44:35Z
author dlg
files src/sys/net/pf.c log diff annotate
src/sys/net/pf_ioctl.c log diff annotate
message more consistently name pf_state * variables "st".

pf_state ** are generally called "stp" now too.

discussed with and ok sashan@

date 2023-01-06T14:17:15Z
author kn
files src/sys/netinet6/nd6_nbr.c log diff annotate
message Merge common code into new nd6_dad_destroy()

The current code wrt. stopping DAD for and removing a particular IP from
the list is flawed.

Introduce a single nd6_dad_destroy() to the cleanup, so that there's
only one place to fix.

This is just a mechanical deduplication without significant behaviour
change; in case a duplicated address was found, RTM_CHGADDRATTR now goes
out before cleanup, which should be no problem.

The nd6_dad_create() pendant could be done as well, but the end of
nd6_dad_start() is currently the only place where a new IP/DAD entry is
set up, so little gain besides function name symmetry.

OK claudio

date 2023-01-06T14:24:36Z
author kn
files src/sys/netinet6/nd6.c log diff annotate
message Simplify nd6_options() initialise logic

nd_opts_{search,last,done} are exlusively used in the internal option
handling machinery; the only two nd6_options() callers only use
nd_opts_{src,tgt}_lladdr.

nd6_options() always zeroes and initialises the caller's struct nd_opts.
If icmp6len is zero, i.e. if there are no ICMP6 header options left,
everything inside *ndopts is zero, except nd_opts_done=1 which is not
used by the callers.

Set the internal nd_opts_{search,last,done} members only when needed.

OK claudio

date 2023-01-06T14:29:47Z
author kn
files src/sys/netinet6/nd6.c log diff annotate
message Clarify nd6_option() return semantics

nd_opts_last is set only once in nd6_options() during struct init and
guaranteed non-NULL as it is set to the function's argument *opt which
is passed in as (struct_ptr + 1) in both callers.

nd6_option(), the internal helper, returns a pointer to the next option
or NULL, which means either "no option, ok" or "invalid option, fail".

Failure is signaled through nd_opts_last being NULL after nd6_option()
returned, which only happens if nd6_option() zeroed the whole *ndopts.

Move the two cases under mnemonic labels and zap the now obviously
redundant bzero() call in nd6_options().

OK claudio

date 2023-01-06T14:32:55Z
author kn
files src/sys/netinet6/nd6.c log diff annotate
message Inline nd6_option() helper, remove indirections

Move the function body into the while loop, merge identical variables,
pull the `invalid' label out of the loop and straighten `skip' into the
`skip1' label.

Merging nd6_option() into nd6_options() is now much clearer after the
previous clean up.

nd_opts_{search,last,done} are now clearly "private" to n6_options() and
can be cleaned up from struct nd_opts next.

OK claudio

date 2023-01-06T14:35:34Z
author kn
files src/sys/netinet6/nd6.c log diff annotate
src/sys/netinet6/nd6.h log diff annotate
message Clean up struct nd_opts, use nd6_options() function local variables

nd_opts_search is really the next option, so call it next_opt.

nd_opts_done == 1 means next_opt == NULL, i.e. no more option to handle,
so zap the former and use the latter to stop.

Finally drop the useless struct members, all under _KERNEL.

OK claudio

date 2023-01-06T17:44:34Z
author sashan
files src/sys/net/pf.c log diff annotate
src/sys/net/pf_ioctl.c log diff annotate
src/sys/net/pfvar.h log diff annotate
src/sys/net/pfvar_priv.h log diff annotate
message PF_ANCHOR_STACK_MAX is insufficient protection against stack overflow.
On amd64 stack overflows for anchor rule with depth ~30. The tricky
thing is the 'safe' depth varies depending on kind of packet processed
by pf_match_rule(). For example for local outbound TCP packet stack
overflows when recursion if pf_match_rule() reaches depth 24.

Instead of lowering PF_ANCHOR_STACK_MAX to 20 and hoping it will
be enough on all platforms and for all packets I'd like to stop
calling pf_match_rule() recursively. This commit brings back
pf_anchor_stackframe array we used to have back in 2017. It also
revives patrick@'s idea to pre-allocate stack frame arrays
from per-cpu.

OK kn@

date 2023-01-06T19:05:46Z
author miod
files src/sys/arch/hppa/stand/libsa/pdc.c log diff annotate
message Remove unused local variables as well as the dependency on <machine/nvm.h>.

date 2023-01-06T19:07:17Z
author miod
files src/sys/arch/hppa/include/Attic/nvm.h log diff annotate
message Remove no longer needed and quite worthless header.

date 2023-01-06T19:08:36Z
author miod
files src/sys/kern/vfs_lookup.c log diff annotate
message Replace last user of copystr() with strlcpy(). NFCI

date 2023-01-06T19:10:18Z
author miod
files src/sys/arch/alpha/alpha/locore.s log diff annotate
src/sys/arch/amd64/amd64/copy.S log diff annotate
src/sys/arch/arm/arm/copystr.S log diff annotate
src/sys/arch/arm64/arm64/copystr.S log diff annotate
src/sys/arch/hppa/hppa/machdep.c log diff annotate
src/sys/arch/i386/i386/locore.s log diff annotate
src/sys/arch/m88k/m88k/m88k_machdep.c log diff annotate
src/sys/arch/powerpc/conf/files.powerpc log diff annotate
src/sys/arch/powerpc/powerpc/Attic/copystr.c log diff annotate
src/sys/arch/riscv64/riscv64/copystr.S log diff annotate
src/sys/arch/sh/sh/locore_c.c log diff annotate
src/sys/arch/sparc64/sparc64/locore.s log diff annotate
src/sys/sys/systm.h log diff annotate
message Remove copystr(9), unless used internally by copy{in,out}str.

date 2023-01-06T19:12:12Z
author miod
files src/sys/arch/powerpc/powerpc/Attic/copystr.c log diff annotate
message Oops, forgot to cvs rm

date 2023-01-06T19:23:53Z
author miod
files src/sys/arch/arm/arm/undefined.c log diff annotate
message Use copyin32() to fetch a faulting instruction rather than short-circuit it
with a comment saying that we really ought to use copyin* here.

date 2023-01-07T05:24:58Z
author guenther
files src/sys/kern/kern_exec.c log diff annotate
src/sys/kern/kern_fork.c log diff annotate
src/sys/kern/kern_pledge.c log diff annotate
src/sys/kern/kern_prot.c log diff annotate
src/sys/kern/syscalls.master log diff annotate
src/sys/sys/proc.h log diff annotate
src/sys/sys/sysctl.h log diff annotate
message Add {get,set}thrname(2) for putting thread names in the kernel and
exposed in a new field returned by sysctl(KERN_PROC). Update
pthread_{get,set}_name_np(3) to use the syscalls. Show them, when
set, in ps -H and top -H output.

libc and libpthread minor bumps

ok mpi@, mvs@, deraadt@

date 2023-01-07T05:25:39Z
author guenther
files src/sys/kern/init_sysent.c log diff annotate
src/sys/kern/syscalls.c log diff annotate
src/sys/sys/syscall.h log diff annotate
src/sys/sys/syscallargs.h log diff annotate
message regen

date 2023-01-07T06:40:21Z
author asou
files src/sys/dev/pv/hypervic.c log diff annotate
src/sys/dev/pv/pvbus.c log diff annotate
src/sys/dev/pv/pvvar.h log diff annotate
src/sys/dev/pv/vmt.c log diff annotate
src/sys/dev/pv/xenstore.c log diff annotate
message The maximum length of the value is extended to 64k bytes.

ok yasuoka

date 2023-01-07T10:09:34Z
author kettenis
files src/sys/arch/hppa/hppa/pmap.c log diff annotate
src/sys/arch/hppa/include/pte.h log diff annotate
message The PA-RISC architecture supports execute-only mappings by using a
"remain at privilege level 3" gateway page. Make use of this.

ok deraadt@, miod@

date 2023-01-07T11:09:16Z
author stsp
files src/sys/net80211/ieee80211_input.c log diff annotate
message Make net80211 drop beacons received on secondary HT/VHT channels.

Prevents iwm firmware panics and makes association work with 11ac APs
which transmit beacons on channels other than their primary channel.
We would use the wrong channel in such cases, and iwm would request
a bogus channel configuration, which made the firmware unhappy.

Tested by myself on iwm 8265 and florian on iwm 9260.
This issue did likely affect iwx devices, too.

ok mpi@

date 2023-01-07T17:29:37Z
author miod
files src/sys/arch/powerpc64/powerpc64/machdep.c log diff annotate
message Bring back a local copystr() declaration, as copy{in,out} still make us of it
but its body is in locore.

date 2023-01-08T06:54:51Z
author anton
files src/sys/dev/usb/uhidpp.c log diff annotate
message Rename argument funcidx_swid to func_idx as it does not include any software id.
No functional change.

date 2023-01-08T10:26:36Z
author mvs
files src/sys/net/pfkeyv2.c log diff annotate
message Use NULL instead 0 for pointer initialization.

date 2023-01-09T00:22:47Z
author daniel
files src/sys/net80211/ieee80211_input.c log diff annotate
message restore NetBSD RCS ID

Looks like this was removed in rev 1.85 without comment (which may have
been unintentional).

ok stsp@

date 2023-01-09T02:12:13Z
author guenther
files src/sys/kern/kern_prot.c log diff annotate
message setthrname() should return EINVAL, not ENAMETOOLONG, when the
input is too long.

ok mpi@

date 2023-01-09T03:37:44Z
author dlg
files src/sys/net/ifq.c log diff annotate
src/sys/net/ifq.h log diff annotate
message count the number times a packet was dropped by bpf as fdrops.

date 2023-01-09T03:39:14Z
author dlg
files src/sys/net/ifq.c log diff annotate
message flesh out ifiq_enqueue

date 2023-01-09T03:59:28Z
author jsg
files src/sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c log diff annotate
message drm/amdgpu: skip MES for S0ix as well since it's part of GFX

From Alex Deucher
33a3b7fad8273e7bcbef0f456c2070be8adcad45 in linux-6.1.y/6.1.4
afa6646b1c5d3affd541f76bd7476e4b835a9174 in mainline linux

date 2023-01-09T04:01:17Z
author jsg
files src/sys/dev/pci/drm/amd/amdgpu/mes_v11_0.c log diff annotate
message drm/amdgpu: skip mes self test after s0i3 resume for MES IP v11.0

From Tim Huang
a354a9e3fc3b5475b80395a3015644e26352223f in linux-6.1.y/6.1.4
8660495a9c5b9afeec4cc006b3b75178f0fb2f10 in mainline linux

date 2023-01-09T04:03:10Z
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: update SMU13.0.0 reported maximum shader clock

From Evan Quan
9d455cb89dc576f752beebcadc823511882fb321 in linux-6.1.y/6.1.4
7a18e089eff02f17eaee49fc18641f5d16a8284b in mainline linux

date 2023-01-09T04:04:57Z
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: correct SMU13.0.0 pstate profiling clock settings

From Evan Quan
ed00567b170fc461d8755003e5cf4e0b008aff90 in linux-6.1.y/6.1.4
32a7819ff8e25375c7515aaae5cfcb8c44a461b7 in mainline linux

date 2023-01-09T04:07:06Z
author jsg
files src/sys/dev/pci/drm/amd/amdgpu/mmhub_v2_0.c log diff annotate
src/sys/dev/pci/drm/amd/amdgpu/mmhub_v2_3.c log diff annotate
src/sys/dev/pci/drm/amd/amdgpu/mmhub_v3_0.c log diff annotate
src/sys/dev/pci/drm/amd/amdgpu/mmhub_v3_0_1.c log diff annotate
src/sys/dev/pci/drm/amd/amdgpu/mmhub_v3_0_2.c log diff annotate
message drm/amdgpu: fix mmhub register base coding error

From Yang Wang
51c107f91bf1d49fdd1538e46770e6f146f40267 in linux-6.1.y/6.1.4
347fafe0eb46df941965c355c77ce480e4d49f1f in mainline linux

date 2023-01-09T04:09:22Z
author jsg
files src/sys/dev/pci/drm/drm_connector.c log diff annotate
message drm/connector: send hotplug uevent on connector cleanup

From Simon Ser
d988f0bcf579b4bcb0b7aba217a882ec150bcc2a in linux-6.1.y/6.1.4
6fdc2d490ea1369d17afd7e6eb66fecc5b7209bc in mainline linux

date 2023-01-09T04:11:31Z
author jsg
files src/sys/dev/pci/drm/i915/display/intel_dsi_vbt.c log diff annotate
message drm/i915/dsi: fix VBT send packet port selection for dual link DSI

From Mikko Kovanen
556a7e74af59048bf73777b25395cf90be9b377f in linux-6.1.y/6.1.4
f9cdf4130671d767071607d0a7568c9bd36a68d0 in mainline linux

date 2023-01-09T04:13:33Z
author jsg
files src/sys/dev/pci/drm/i915/gem/i915_gem_object.c log diff annotate
src/sys/dev/pci/drm/i915/gem/i915_gem_object_types.h log diff annotate
src/sys/dev/pci/drm/i915/gem/i915_gem_ttm_pm.c log diff annotate
message drm/i915/ttm: consider CCS for backup objects

From Matthew Auld
218f8fe668240f2ec95dcb000f61904dcdc83271 in linux-6.1.y/6.1.4
ad0fca2dceeab8fdd8e1135f4b4ef2dc46c2ead9 in mainline linux

date 2023-01-09T04:15:53Z
author jsg
files src/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c log diff annotate
message drm/amd/display: Add DCN314 display SG Support

From Yifan Zhang
3038224f5617bb4628170b29661645138f884292 in linux-6.1.y/6.1.4
fe6872adb05e85bde38f2cdec01a0f4cfb826998 in mainline linux

date 2023-01-09T04:17:50Z
author jsg
files src/sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.c log diff annotate
message drm/amdgpu: handle polaris10/11 overlap asics (v2)

From Alex Deucher
9724e6950ef902abd6abc5b5dfacca4b5125ba75 in linux-6.1.y/6.1.4
1d4624cd72b912b2680c08d0be48338a1629a858 in mainline linux

date 2023-01-09T04:19:25Z
author jsg
files src/sys/dev/pci/drm/amd/amdgpu/amdgpu_object.c log diff annotate
message drm/amdgpu: make display pinning more flexible (v2)

From Alex Deucher
52beaa0938ad33f3ee848c22935af967e3cce005 in linux-6.1.y/6.1.4
81d0bcf9900932633d270d5bc4a54ff599c6ebdb in mainline linux

date 2023-01-09T04:22:46Z
author jsg
files src/sys/dev/pci/drm/i915/i915_gem_evict.c log diff annotate
src/sys/dev/pci/drm/i915/i915_gem_evict.h log diff annotate
src/sys/dev/pci/drm/i915/i915_vma.c log diff annotate
src/sys/dev/pci/drm/i915/gem/i915_gem_execbuffer.c log diff annotate
src/sys/dev/pci/drm/i915/gem/i915_gem_mman.c log diff annotate
src/sys/dev/pci/drm/i915/selftests/i915_gem_evict.c log diff annotate
message drm/i915: improve the catch-all evict to handle lock contention

From Matthew Auld
ea62bd769994d6f18bd265cc156e6182a288c880 in linux-6.1.y/6.1.4
3f882f2d4f689627c1566c2c92087bc3ff734953 in mainline linux

date 2023-01-09T04:24:23Z
author jsg
files src/sys/dev/pci/drm/i915/gt/intel_migrate.c log diff annotate
message drm/i915/migrate: Account for the reserved_space

From Chris Wilson
6e6d577cd90b27a98ce9f06ed96bca7b59d210f0 in linux-6.1.y/6.1.4
31a2e6cbe8a4eb0d1650fff4b77872b744e14a62 in mainline linux

date 2023-01-09T04:26:30Z
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 SMU13.0.0 mm_dpm feature mapping

From Evan Quan
1cfd678e2f070fd2f005dc6e12c180ff1a1b5843 in linux-6.1.y/6.1.4
592cd24a08763975c75be850a7d4e461bfd353bf in mainline linux

date 2023-01-09T04:28:04Z
author jsg
files src/sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c log diff annotate
message drm/amd/pm: add missing SMU13.0.7 mm_dpm feature mapping

From Evan Quan
789c4804d7aed7094845da4a0ebf7099a503f8ba in linux-6.1.y/6.1.4
e0607c10ebf551a654c3577fc74b4bf5533e1cea in mainline linux

date 2023-01-09T04:30:22Z
author jsg
files src/sys/dev/pci/drm/amd/pm/swsmu/inc/smu_v13_0.h log diff annotate
src/sys/dev/pci/drm/amd/pm/swsmu/inc/pmfw_if/smu13_driver_if_v13_0_0.h log diff annotate
src/sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c log diff annotate
message drm/amd/pm: bump SMU13.0.0 driver_if header to version 0x34

From Evan Quan
0b865bcd7a084e9cbf171ad3b240bf40058fd985 in linux-6.1.y/6.1.4
272b981416f8be0180c4d8066f90635fa7c1c501 in mainline linux

date 2023-01-09T04:32:29Z
author jsg
files src/sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c log diff annotate
src/sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c log diff annotate
message drm/amd/pm: correct the fan speed retrieving in PWM for some SMU13 asics

From Evan Quan
54b6a040f38075711751c61b2300a8ce7cb1741f in linux-6.1.y/6.1.4
e73fc71e8f015d61f3adca7659cb209fd5117aa5 in mainline linux

date 2023-01-09T06:04:14Z
author miod
files src/sys/arch/sh/sh/trap.c log diff annotate
message Handle possible PROT_EXEC fault if PROT_READ fails; needed to cope with
kern_exec.c 1.241

date 2023-01-09T07:48:12Z
author nicm
files src/sys/dev/wscons/wsemul_vt100_subr.c log diff annotate
message Correct length of replies to primary and secondary DAs so as not to send
a stray trailing NUL byte. From Crystal Kolipe.

ok deraadt miod

date 2023-01-09T11:18:44Z
author miod
files src/sys/arch/m88k/m88k/trap.c log diff annotate
message Use PROT_EXEC when servicing instruction faults.
ok aoyama@

date 2023-01-09T15:22:53Z
author kettenis
files src/sys/arch/arm64/dev/agtimer.c log diff annotate
src/sys/arch/arm64/include/timetc.h log diff annotate
message Allwinner hardware sucks! The ARM generic timer on the A64 has a bug
where the bottom 9 bits of the counter register can't be trusted if any of
the higher bits are rolling over. This is an unpublished errata so the
details aren't known. Adopt the same workaround that Linux has.

This will disable the userland timecounter support on hardware affected
by the hardware. We will need a similar workaround in libc to restore
that functionality.

tested by semarie@
ok cheloha@

date 2023-01-09T15:49:36Z
author nicm
files src/sys/dev/wscons/wsemul_vt100.c log diff annotate
message DIAGNOSTIC is redundant with KASSERT, remove it. From Crystal Kolipe.

ok guenther

date 2023-01-09T20:29:35Z
author kettenis
files src/sys/arch/arm64/dev/aplsmc.c log diff annotate
src/sys/arch/arm64/dev/apm.c log diff annotate
message Implement suspend on lid close.

ok tobhe@, deraadt@

date 2023-01-09T20:32:21Z
author kettenis
files src/sys/arch/arm64/arm64/machdep.c log diff annotate
message Set the default for machdep.lidaction to 1 like on amd64.

ok tobhe@, deraadt@