openbsd
2 months agoRemove the ibuf_size(pdu) % sizeof(uint32_t) == 0 since it is already
claudio [Fri, 9 Aug 2024 14:00:48 +0000 (14:00 +0000)]
Remove the ibuf_size(pdu) % sizeof(uint32_t) == 0 since it is already
done in rtr_parse_header(). No need to do it twice.

2 months agoAdjust RTR ASPA pdu parser to draft-ietf-sidrops-8210bis-14 which finally
claudio [Fri, 9 Aug 2024 13:52:09 +0000 (13:52 +0000)]
Adjust RTR ASPA pdu parser to draft-ietf-sidrops-8210bis-14 which finally
adjusted the pdu to follow the other ASPA drafts.
OK tb@

2 months agoenable GuC authentication of HuC
jsg [Fri, 9 Aug 2024 11:04:07 +0000 (11:04 +0000)]
enable GuC authentication of HuC

The HEVC/H.265 micro Controller (HuC) requires authentication via
the Graphics micro Controller (GuC) on pre DG2/MTL hardware.

HuC is required for Low Power Encoding with the
Intel Media Driver for VAAPI.

Using GuC for command submission caused memory corruption on DG2
and inconsistent errors on boot with Alder Lake, so GuC was
previously disabled entirely in a local change.

initial diff from and tested by rsadowski@ (on Alder Lake)

2 months agoRegenerate expected files since gcc4 switched to std=gnu9x some time ago.
claudio [Fri, 9 Aug 2024 08:31:26 +0000 (08:31 +0000)]
Regenerate expected files since gcc4 switched to std=gnu9x some time ago.
OK deraadt@ millert@

2 months agoAdd string.h include and typecast data to reduce warnings
claudio [Fri, 9 Aug 2024 08:30:13 +0000 (08:30 +0000)]
Add string.h include and typecast data to reduce warnings
OK deraadt@ millert@

2 months agoansi functions and prototypes
deraadt [Fri, 9 Aug 2024 05:16:13 +0000 (05:16 +0000)]
ansi functions and prototypes
ok denis

2 months agoAdd OrangePi Zero2 (Allwinner H616). prompted by & ok jsg@
dtucker [Fri, 9 Aug 2024 04:40:09 +0000 (04:40 +0000)]
Add OrangePi Zero2 (Allwinner H616).  prompted by & ok jsg@

2 months agoregen
jsg [Fri, 9 Aug 2024 01:52:01 +0000 (01:52 +0000)]
regen

2 months agoadd Ryzen 9000 "Granite Ridge" id
jsg [Fri, 9 Aug 2024 01:50:16 +0000 (01:50 +0000)]
add Ryzen 9000 "Granite Ridge" id

found in AMD Software: Adrenalin Edition 24.7.1
GC 10.3.6, DCN 3.1.5 same as Ryzen 7000 "Raphael" and
Ryzen 7045 "Dragon Range"

2 months agoct.h: move two asterisks to the proper place
tb [Thu, 8 Aug 2024 23:50:29 +0000 (23:50 +0000)]
ct.h: move two asterisks to the proper place

2 months agocheck_complete: accept #error
tb [Thu, 8 Aug 2024 23:44:43 +0000 (23:44 +0000)]
check_complete: accept #error

2 months agocheck_complete: OBJ_bsearch_() and OBJ_bsearch_ex_() are gone
tb [Thu, 8 Aug 2024 23:43:56 +0000 (23:43 +0000)]
check_complete: OBJ_bsearch_() and OBJ_bsearch_ex_() are gone

2 months agoinstead of including a literal NUL in a string, use "x$(printf \\000)x"
tb [Thu, 8 Aug 2024 19:18:44 +0000 (19:18 +0000)]
instead of including a literal NUL in a string, use "x$(printf \\000)x"

2 months agoFix gasio access size.
kettenis [Thu, 8 Aug 2024 18:46:13 +0000 (18:46 +0000)]
Fix gasio access size.

2 months agoStart wire_count for EPT pde pages at 1.
dv [Thu, 8 Aug 2024 15:57:22 +0000 (15:57 +0000)]
Start wire_count for EPT pde pages at 1.

Corrects an off-by-one error that results in EPT pte's not being
removed properly.

ok mlarkin@

2 months agoIn sysctl KERN_FILE_BYPID stop traversal after pid has been found.
bluhm [Thu, 8 Aug 2024 15:02:36 +0000 (15:02 +0000)]
In sysctl KERN_FILE_BYPID stop traversal after pid has been found.

When searching for a specific process, there is no need to traverse
the list of all processes to the end.  Break after pid has been
found and the file structure has been filled.  Also check for arg
>= 0 as this is consistent with the arg < -1 check before.  This
makes no functional difference as process 0 has PS_SYSTEM set and
is skipped anyway.

OK millert@ mvs@

2 months agoigc(4): Use same size for DMA mapping and allocation for rx bufs
jan [Thu, 8 Aug 2024 14:58:49 +0000 (14:58 +0000)]
igc(4): Use same size for DMA mapping and allocation for rx bufs

Also remove the ETHER_ALIGN which leads to corruped mbufs.

ok bluhm@

2 months agoPrevent spurious "/bsd.upgrade is not u+x" message when the file is missing.
miod [Thu, 8 Aug 2024 13:59:11 +0000 (13:59 +0000)]
Prevent spurious "/bsd.upgrade is not u+x" message when the file is missing.

ok kn@

2 months agoMake user ci_flags is declared volatile.
miod [Thu, 8 Aug 2024 13:56:00 +0000 (13:56 +0000)]
Make user ci_flags is declared volatile.

2 months agoUnlock KERN_MSGBUFSIZE and KERN_CONSBUFSIZE.
mvs [Thu, 8 Aug 2024 10:25:00 +0000 (10:25 +0000)]
Unlock KERN_MSGBUFSIZE and KERN_CONSBUFSIZE.

`msgbufp' and `consbufp' are immutable, such as `msg_magic' and
`msg_bufs'. initmsgbuf() and initconsbuf() which initialize this buffers
are called during kernel bootstrap, when concurrent sysctl(2) is
impossible, so they don't need to be reordered or use barriers.

ok bluhm

2 months agoui_util.c needs stdio.h and ui.h, but not ui_compat.h and ui_local.h
tb [Thu, 8 Aug 2024 09:56:51 +0000 (09:56 +0000)]
ui_util.c needs stdio.h and ui.h, but not ui_compat.h and ui_local.h

2 months agoUse timingsafe_memcmp() when comparing the authenticators. from iij.
yasuoka [Thu, 8 Aug 2024 09:16:37 +0000 (09:16 +0000)]
Use timingsafe_memcmp() when comparing the authenticators.  from iij.

2 months agoPrint suspend-to-idle debug info in a more concise matter.
kettenis [Thu, 8 Aug 2024 07:02:38 +0000 (07:02 +0000)]
Print suspend-to-idle debug info in a more concise matter.

ok mlarkin@, deraadt@

2 months agoMake intelmpc(4) print information about the residency counters advertised
kettenis [Thu, 8 Aug 2024 07:01:22 +0000 (07:01 +0000)]
Make intelmpc(4) print information about the residency counters advertised
in the LPIT table.

ok mlarkin@, deraadt@

2 months agonew dell DW5821e variant is another umb(4); from Bryan Vyhmeister
deraadt [Thu, 8 Aug 2024 05:10:00 +0000 (05:10 +0000)]
new dell DW5821e variant is another umb(4); from Bryan Vyhmeister

2 months agosync
deraadt [Thu, 8 Aug 2024 05:09:33 +0000 (05:09 +0000)]
sync

2 months agonew dell DW5821e variant is another umb(4); from Bryan Vyhmeister
deraadt [Thu, 8 Aug 2024 05:09:09 +0000 (05:09 +0000)]
new dell DW5821e variant is another umb(4); from Bryan Vyhmeister

2 months agoFix a typo in log message.
yasuoka [Thu, 8 Aug 2024 03:58:53 +0000 (03:58 +0000)]
Fix a typo in log message.

2 months agohmac test: fix build with gcc
tb [Thu, 8 Aug 2024 03:46:50 +0000 (03:46 +0000)]
hmac test: fix build with gcc

The bounded attribute leads to failing regress compilation with gcc due
to a test passing a negative length to exercise a chck.

noticed and fixed suggested by claudio

2 months agosync
deraadt [Wed, 7 Aug 2024 23:03:49 +0000 (23:03 +0000)]
sync

2 months agoold keys can go away
deraadt [Wed, 7 Aug 2024 23:03:24 +0000 (23:03 +0000)]
old keys can go away

2 months agoadd 7.7 base key
deraadt [Wed, 7 Aug 2024 23:02:48 +0000 (23:02 +0000)]
add 7.7 base key

2 months agoUpdate sparc64 ok files to match with reality.
claudio [Wed, 7 Aug 2024 18:26:44 +0000 (18:26 +0000)]
Update sparc64 ok files to match with reality.
OK deraadt@

2 months agoRework fork-exit regress to work with any pagesize not only 4k.
claudio [Wed, 7 Aug 2024 18:25:39 +0000 (18:25 +0000)]
Rework fork-exit regress to work with any pagesize not only 4k.
Also mmap PROT_READ|PROT_WRITE instead of write only.
Add a bit more extra space for the stack allocations.
With all of this this test no longer fails on sparc64
OK deraadt@ bluhm@

2 months agoAttach ksmn(4) on 19h/7x devices
brynet [Wed, 7 Aug 2024 17:39:00 +0000 (17:39 +0000)]
Attach ksmn(4) on 19h/7x devices

Tested on:
cpu0: AMD Ryzen 7 PRO 8700GE w/ Radeon 780M Graphics, 3650.01 MHz, 19-75-02, patch 0a705205

Thanks to Jan (@js@x0r.be on mastodon) for testing.

"Sure" deraadt@

2 months agosync
deraadt [Wed, 7 Aug 2024 16:01:18 +0000 (16:01 +0000)]
sync

2 months agocrank to 7.6-beta, release date is vague
deraadt [Wed, 7 Aug 2024 15:59:24 +0000 (15:59 +0000)]
crank to 7.6-beta, release date is vague

2 months agoadjust check_complete after recent-ish API and docs changes
tb [Wed, 7 Aug 2024 10:26:43 +0000 (10:26 +0000)]
adjust check_complete after recent-ish API and docs changes

2 months agoFix a typo
yasuoka [Wed, 7 Aug 2024 07:15:18 +0000 (07:15 +0000)]
Fix a typo

2 months agoregen
jsg [Wed, 7 Aug 2024 06:49:54 +0000 (06:49 +0000)]
regen

2 months agoadd devices seen on Lenovo ThinkCentre M75q Gen 5 with
jsg [Wed, 7 Aug 2024 06:48:55 +0000 (06:48 +0000)]
add devices seen on Lenovo ThinkCentre M75q Gen 5 with
Ryzen 5 PRO 8500GE 19-78-00

2 months agoasprintf() and vasprintf() are in POSIX-2024. Update #include
guenther [Wed, 7 Aug 2024 05:15:28 +0000 (05:15 +0000)]
asprintf() and vasprintf() are in POSIX-2024.  Update #include
visibility and manpages and add restrict qualifiers in all the
specified places to the *printf family.

ok millert@

2 months agowcslcpy() and wcslcat() are in POSIX-2024. Update #include visibility
guenther [Wed, 7 Aug 2024 04:59:45 +0000 (04:59 +0000)]
wcslcpy() and wcslcat() are in POSIX-2024.  Update #include visibility
and manpages and add restrict qualifiers.

ok millert@

2 months agoUnlock `udpctl_vars'.
mvs [Tue, 6 Aug 2024 20:15:53 +0000 (20:15 +0000)]
Unlock `udpctl_vars'.

`udp_sendspace' and `udp_recvspace' are integers which read-only
accessed in udp_attach(). `udpcksum' read-only accessed in udp_output().
No netlock required to modify them through sysctl(2).

ok bluhm

2 months agoFor consistency with other similar sysctl(2) variables use
mvs [Tue, 6 Aug 2024 20:14:56 +0000 (20:14 +0000)]
For consistency with other similar sysctl(2) variables use
atomic_load_int(9) while loading `somaxconn' and `sominconn'.

ok bluhm

2 months agoUse atomic_load_int(9) for unlocked read access to net.unix.*space
mvs [Tue, 6 Aug 2024 20:13:58 +0000 (20:13 +0000)]
Use atomic_load_int(9) for unlocked read access to net.unix.*space
sysctl(2) variables.

ok bluhm

2 months agoRevert the knote_processexit() bits of the diff. It introduced a small
claudio [Tue, 6 Aug 2024 18:41:20 +0000 (18:41 +0000)]
Revert the knote_processexit() bits of the diff. It introduced a small
window where a knote is available but PS_ZOMBIE is not yet set (causing
waitpid() to not return that pid).
Requested by jca@ and deraadt@

2 months agoSome laptops will generate an EC event shortly after we attempt to enter
kettenis [Tue, 6 Aug 2024 17:38:56 +0000 (17:38 +0000)]
Some laptops will generate an EC event shortly after we attempt to enter
a low power S0 idle state.  Since we register the EC GPE as a wakeup GPE
this means we'll wake up immediately.  Unfortunately we have to register
that GPE as a wakeup GPE otherwise many laptops won't wake up when the
user opens the lid (and some laptops won't wake up at all).  So add some
code to handle EC events while suspended and introduce the concept of
wakeup AML notify handlers.  Register the acpibtn(4) notify handlers as
wakeup notify handlers such that we wake up.  We'll go back to sleep
immediately if we wake up for any other EC event.

ok mlarkin@, deraadt@

2 months agoSome Intel xhci(4) controllers don't fully power down unless they've seen
kettenis [Tue, 6 Aug 2024 17:30:04 +0000 (17:30 +0000)]
Some Intel xhci(4) controllers don't fully power down unless they've seen
a "save state" command.  So use that command when we suspend (and don't
reset the controller at that point such that it doesn't forget about it).
Note that on resume we don't restore the state.  Instead we just reset
the controller and bring it up from scratch.  There isn't much state to
save anyway since we detach all USB devices when we suspend.

ok mlarkin@, deraadt@

2 months agoUnlock sysctl net.inet.ip.directed-broadcast.
bluhm [Tue, 6 Aug 2024 16:56:09 +0000 (16:56 +0000)]
Unlock sysctl net.inet.ip.directed-broadcast.

ip_directedbcast is read once in either ip_input() or pf_test()
during packet processing.  So writing the variable does not need
net lock.

OK mvs@

2 months agoOn the RK3588 eMMC controller it appears that after a failed command a
patrick [Tue, 6 Aug 2024 15:03:36 +0000 (15:03 +0000)]
On the RK3588 eMMC controller it appears that after a failed command a
completion signal shows up some time after the error signal.  This can
lead to the case that when the next command is being executed, the old
completion signal is still recorded and the driver may think the command
already executed.  Resetting the status before executing a new command
makes sense, albeit it's technically still possible that the controller
issues another completion signal.  It shouldn't happen because a reset
was issued and we're also waiting for the command and data inhibit bits
to be cleared, but who knows.  This makes the eMMC come up reliably.

ok kettenis@

2 months agoUnlock KERN_CLOCKRATE.
mvs [Tue, 6 Aug 2024 12:36:54 +0000 (12:36 +0000)]
Unlock KERN_CLOCKRATE.

Read-only access to local `clkinfo' filled with immutable data.

ok bluhm

2 months agoThe devicetree spec says in section 2.4:
kettenis [Tue, 6 Aug 2024 09:07:15 +0000 (09:07 +0000)]
The devicetree spec says in section 2.4:

If an interrupt-generating device does not have an interrupt-parent
property, its interrupt parent is assumed to be its devicetree
parent.

Implement this aspect of the spec in the same way as Linux does by not
just looking at the immediate parent but keep on walking up the tree
until we hit a node with an "interrupt-controller" property or a node
that has an "interrupt-parent" property.

similar diff as committed for arm64 a couple of days ago
ok jca@

2 months agoStop using KERNEL_LOCK to protect the per process kqueue list
claudio [Tue, 6 Aug 2024 08:44:54 +0000 (08:44 +0000)]
Stop using KERNEL_LOCK to protect the per process kqueue list

Instead of the KERNEL_LOCK use the ps_mtx for most operations.
If the ps_klist is modified an additional global rwlock (kqueue_ps_list_lock)
is required. This includes the knotes with NOTE_FORK and NOTE_EXIT since
in either cases a ps_klist is changed. In the NOTE_FORK | NOTE_TRACK case
the call to kqueue_register() can sleep this is why a global rwlock is used.

Adjust the reaper() to call knote_processexit() without KERNEL_LOCK.
Double lock idea from visa@
OK mvs@

2 months agoDefine _LOCORE before including machine/ctlreg.h in ASM code.
claudio [Tue, 6 Aug 2024 05:39:48 +0000 (05:39 +0000)]
Define _LOCORE before including machine/ctlreg.h in ASM code.
OK miod@ kettenis@

2 months agoReplace sys/time.h with proper includes for using localtime
gnezdo [Tue, 6 Aug 2024 04:59:18 +0000 (04:59 +0000)]
Replace sys/time.h with proper includes for using localtime

Sure deraadt@

2 months agorestrict the maximum wait time you can set via BIOCSWTIMEOUT to 5 minutes.
dlg [Mon, 5 Aug 2024 23:56:10 +0000 (23:56 +0000)]
restrict the maximum wait time you can set via BIOCSWTIMEOUT to 5 minutes.

this is avoids passing excessively large values to timeout_add_nsec.

Reported-by: syzbot+f650785d4f2b3fe28284@syzkaller.appspotmail.com
2 months agotimeout_add_nsec takes a uint64_t now.
dlg [Mon, 5 Aug 2024 23:52:03 +0000 (23:52 +0000)]
timeout_add_nsec takes a uint64_t now.

2 months agochange the nsec argument to timeout_add_nsec from int to uint64_t
dlg [Mon, 5 Aug 2024 23:51:11 +0000 (23:51 +0000)]
change the nsec argument to timeout_add_nsec from int to uint64_t

you can only fit a couple of nanonseconds into an int, which limited
the usefulness of the api. worse, if a large nsec value was passed
in it could be cast to a negative int value which tripped over a
KASSERT at the top of timeout_add that ends up being called. avoid
this footgun by working in the bigger type and doing the same range
checks/fixes for other timeout_add wrappers.

ok claudio@ mvs@

2 months agoUnlock KERN_BOOTTIME.
mvs [Mon, 5 Aug 2024 18:47:29 +0000 (18:47 +0000)]
Unlock KERN_BOOTTIME.

microboottime() and following binboottime() are mp-safe and `mb' is
local data.

ok bluhm

2 months agoAdjust for arm64_intr_get_parent() changes.
kettenis [Mon, 5 Aug 2024 18:39:34 +0000 (18:39 +0000)]
Adjust for arm64_intr_get_parent() changes.

ok patrick@

2 months agoFix reporting if critical battery state.
kettenis [Mon, 5 Aug 2024 18:37:29 +0000 (18:37 +0000)]
Fix reporting if critical battery state.

ok jca@, mlarkin@

2 months agoAdd battery sensors.
kettenis [Mon, 5 Aug 2024 18:36:28 +0000 (18:36 +0000)]
Add battery sensors.

ok phessler@

2 months agoFix bridging IPv6 fragments with pf reassembly.
bluhm [Mon, 5 Aug 2024 17:47:29 +0000 (17:47 +0000)]
Fix bridging IPv6 fragments with pf reassembly.

Sending IPv6 fragments over a bridge with pf did not work.  During
input pf reassembles the packet, and at bridge output it should be
refragmented.  This is only done for PF_FWD direction, but bridge(4)
and veb(4) called pf_test() with PF_OUT argument.

OK sashan@

2 months agoUnlock most of `kern_vars' variables.
mvs [Mon, 5 Aug 2024 15:43:58 +0000 (15:43 +0000)]
Unlock most of `kern_vars' variables.

Add corresponding cases to the kern_sysctl() switch and unlock read-only
variables from `kern_vars'. Unlock KERN_SOMAXCONN and KERN_SOMINCONN
which are atomically read-only accessed only from solisten().

ok kettenis

2 months agoThe devicetree spec says in section 2.4:
kettenis [Mon, 5 Aug 2024 13:55:34 +0000 (13:55 +0000)]
The devicetree spec says in section 2.4:

If an interrupt-generating device does not have an interrupt-parent
property, its interrupt parent is assumed to be its devicetree
parent.

Implement this aspect of the spec in the same way as Linux does by not
just looking at the immediate parent but keep on walking up the tree
until we hit a node with an "interrupt-controller" property or a node
that has an "interrupt-parent" property.

same diff as committed for arm64 yesterday
ok patrick@

2 months agoTake `sysctl_lock' before kernel lock.
mvs [Mon, 5 Aug 2024 13:46:16 +0000 (13:46 +0000)]
Take `sysctl_lock' before kernel lock.

ok bluhm

2 months agosync with base
tb [Mon, 5 Aug 2024 09:43:26 +0000 (09:43 +0000)]
sync with base

2 months agosync with upstream (noop for openbsd)
tb [Mon, 5 Aug 2024 09:43:07 +0000 (09:43 +0000)]
sync with upstream (noop for openbsd)

2 months agoRemove bogus connect(s, NULL, 0) call
tb [Mon, 5 Aug 2024 07:16:30 +0000 (07:16 +0000)]
Remove bogus connect(s, NULL, 0) call

The only thing it does is error because of a check added in sockargs() in
uipc_syscalls r1.155. As guenther pointed out, this may have been added
because of a misreading of the last sentence of the first paragraph of the
connect(2) manual.

Instead of erroring, this will keep listening if -k is given and otherwise
it will close the socket and exit with success.

ok guenther jeremy

2 months agoAllow our linker warnings regarding misuse of libc functions to be
anton [Mon, 5 Aug 2024 06:11:42 +0000 (06:11 +0000)]
Allow our linker warnings regarding misuse of libc functions to be
elevated to errors using the -Wl,--fatal-warnings option.

ok robert@

2 months agodrm/i915/dp: Don't switch the LTTPR mode on an active link
jsg [Mon, 5 Aug 2024 02:54:42 +0000 (02:54 +0000)]
drm/i915/dp: Don't switch the LTTPR mode on an active link

From Imre Deak
12880cc086deef91e62e2f010750087a3c23fae3 in linux-6.6.y/6.6.44
509580fad7323b6a5da27e8365cd488f3b57210e in mainline linux

2 months agodrm/i915/dp: Reset intel_dp->link_trained before retraining the link
jsg [Mon, 5 Aug 2024 02:52:34 +0000 (02:52 +0000)]
drm/i915/dp: Reset intel_dp->link_trained before retraining the link

From Imre Deak
a90e900f71da23a354e9d17f1dc0c654d0ae9ceb in linux-6.6.y/6.6.44
d13e2a6e95e6b87f571c837c71a3d05691def9bb in mainline linux

2 months agodrm/amd/amdgpu: Fix uninitialized variable warnings
jsg [Mon, 5 Aug 2024 02:50:36 +0000 (02:50 +0000)]
drm/amd/amdgpu: Fix uninitialized variable warnings

From Ma Ke
e150f0171c0c0c45a373a658358c51c940ed4fd9 in linux-6.6.y/6.6.44
df65aabef3c0327c23b840ab5520150df4db6b5f in mainline linux

2 months agodrm/amdgpu: reset vm state machine after gpu reset(vram lost)
jsg [Mon, 5 Aug 2024 02:47:58 +0000 (02:47 +0000)]
drm/amdgpu: reset vm state machine after gpu reset(vram lost)

From ZhenGuo Yin
323790535237927e1b6a7bc35ddf662c6e7c25cc in linux-6.6.y/6.6.44
5659b0c93a1ea02c662a030b322093203f299185 in mainline linux

2 months agodrm/dp_mst: Fix all mstb marked as not probed after suspend/resume
jsg [Mon, 5 Aug 2024 02:44:55 +0000 (02:44 +0000)]
drm/dp_mst: Fix all mstb marked as not probed after suspend/resume

From Wayne Lin
e290feb8b749a06b93ed01d4cf66567cbdf0e85d in linux-6.6.y/6.6.44
d63d81094d208abb20fc444514b2d9ec2f4b7c4e in mainline linux

2 months agodrm/amdgpu/sdma5.2: Update wptr registers as well as doorbell
jsg [Mon, 5 Aug 2024 02:42:47 +0000 (02:42 +0000)]
drm/amdgpu/sdma5.2: Update wptr registers as well as doorbell

From Alex Deucher
9d74e50098492e89f319ac6922db3c2062f69340 in linux-6.6.y/6.6.44
a03ebf116303e5d13ba9a2b65726b106cb1e96f6 in mainline linux

2 months agodrm/i915/gt: Do not consider preemption during execlists_dequeue for gen8
jsg [Mon, 5 Aug 2024 02:40:00 +0000 (02:40 +0000)]
drm/i915/gt: Do not consider preemption during execlists_dequeue for gen8

From Nitin Gote
05c0fb20ca3e000a7e966584845731ba4fc950da in linux-6.6.y/6.6.44
65564157ae64cec0f527583f96e32f484f730f92 in mainline linux

2 months agodrm/amd/display: Check for NULL pointer
jsg [Mon, 5 Aug 2024 02:37:12 +0000 (02:37 +0000)]
drm/amd/display: Check for NULL pointer

From Sung Joon Kim
4ccd37085976ea5d3c499b1e6d0b3f4deaf2cd5a in linux-6.6.y/6.6.44
4ab68e168ae1695f7c04fae98930740aaf7c50fa in mainline linux

2 months agodrm/amdgpu: Remove GC HW IP 9.3.0 from noretry=1
jsg [Mon, 5 Aug 2024 02:35:12 +0000 (02:35 +0000)]
drm/amdgpu: Remove GC HW IP 9.3.0 from noretry=1

From Tim Van Patten
6d72626808325c1986cbf90b0ce27a59b4291876 in linux-6.6.y/6.6.44
1446226d32a45bb7c4f63195a59be8c08defe658 in mainline linux

2 months agodrm/amdgpu: Check if NBIO funcs are NULL in amdgpu_device_baco_exit
jsg [Mon, 5 Aug 2024 02:33:42 +0000 (02:33 +0000)]
drm/amdgpu: Check if NBIO funcs are NULL in amdgpu_device_baco_exit

From Friedrich Vock
67b4592a7d74e57a5a0929eaf3ae30414ebd39ae in linux-6.6.y/6.6.44
0cdb3f9740844b9d95ca413e3fcff11f81223ecf in mainline linux

2 months agodrm/amdgpu: Fix memory range calculation
jsg [Mon, 5 Aug 2024 02:31:14 +0000 (02:31 +0000)]
drm/amdgpu: Fix memory range calculation

From Lijo Lazar
ae1dd0a379e41db7d4773880e6918948668ef3ad in linux-6.6.y/6.6.44
ce798376ef6764de51d8f4684ae525b55df295fa in mainline linux

2 months agodrm/amd/pm: Fix aldebaran pcie speed reporting
jsg [Mon, 5 Aug 2024 02:28:52 +0000 (02:28 +0000)]
drm/amd/pm: Fix aldebaran pcie speed reporting

From Lijo Lazar
0af2e5cb74514877326448becf40365b073b44e2 in linux-6.6.y/6.6.44
b6420021e17e262c57bb289d0556ee181b014f9c in mainline linux

2 months agodrm/amdkfd: Fix CU Masking for GFX 9.4.3
jsg [Mon, 5 Aug 2024 02:26:35 +0000 (02:26 +0000)]
drm/amdkfd: Fix CU Masking for GFX 9.4.3

From Mukul Joshi
cd1885ae4cbf191332ae66f8a214e52fb226ba43 in linux-6.6.y/6.6.44
85cf43c554e438e2e12b0fe109688c9533e4d93f in mainline linux

2 months agoppoll() is in POSIX-2024. Update #include visibility and manpages
guenther [Sun, 4 Aug 2024 22:28:08 +0000 (22:28 +0000)]
ppoll() is in POSIX-2024.  Update #include visibility and manpages
and add restrict qualifiers.  While here, rename the BUGS section
to CAVEATS since they're really "these probably don't do what you
want" notes and not things that need fixing.

ok millert@

2 months agoFix typo.
mglocker [Sun, 4 Aug 2024 20:10:38 +0000 (20:10 +0000)]
Fix typo.

ok kettenis@

2 months agobump datasize for armv7's pbuild user, some software has grown over the years
phessler [Sun, 4 Aug 2024 20:06:04 +0000 (20:06 +0000)]
bump datasize for armv7's pbuild user, some software has grown over the years

OK jca@

2 months agosync
deraadt [Sun, 4 Aug 2024 17:51:49 +0000 (17:51 +0000)]
sync

2 months agoadd intelpmc(4) entry;
jmc [Sun, 4 Aug 2024 16:31:02 +0000 (16:31 +0000)]
add intelpmc(4) entry;

2 months agoAdd battery status support for the x1e80100. This SoC needs a second
kettenis [Sun, 4 Aug 2024 15:30:08 +0000 (15:30 +0000)]
Add battery status support for the x1e80100.  This SoC needs a second
firmware and requires us to shut down an initial "light" firmware that
was presumably loaded bu the system firmware.  For now the required
firmwares are not packaged and need to be copied from the Windows
install.

ok patrick@

2 months agointelpmc(4)
kettenis [Sun, 4 Aug 2024 14:21:09 +0000 (14:21 +0000)]
intelpmc(4)

2 months agoThe devicetree spec says in section 2.4:
kettenis [Sun, 4 Aug 2024 12:01:18 +0000 (12:01 +0000)]
The devicetree spec says in section 2.4:

  If an interrupt-generating device does not have an interrupt-parent
  property, its interrupt parent is assumed to be its devicetree
  parent.

Implement this aspect of the spec in the same way as Linux does by not
just looking at the immediate parent but keep on walking up the tree
until we hit a node with an "interrupt-controller" property or a node
that has an "interrupt-parent" property.

ok patrick@

2 months agoAdd intelpmc(4), a driver for the power management controller found on
kettenis [Sun, 4 Aug 2024 11:05:18 +0000 (11:05 +0000)]
Add intelpmc(4), a driver for the power management controller found on
various Intel SoCs.  The driver takes care of calling the AML methods
needed to enter low power idle states during suspend-to-idle (S0i).
The driver also implements some debug code that prints the residency of
various power states in dmesg.  Based on some earlier code by jcs@

ok jcs@

2 months agoMake a little effort to treate CRLF as LF in config files. GitHub issue
nicm [Sun, 4 Aug 2024 09:42:23 +0000 (09:42 +0000)]
Make a little effort to treate CRLF as LF in config files. GitHub issue
3720.

2 months agoThe Linux console has some bugs with bright colours. It seems likely
nicm [Sun, 4 Aug 2024 09:35:30 +0000 (09:35 +0000)]
The Linux console has some bugs with bright colours. It seems likely
that it is emulating them by setting a bright (or bold) flag; however,
when the colour is changed from a bright colour (say SGR 96) to a
non-bright (say SGR 36), the flag is not reset, so the new colour
remains as bright. SGR 39 (default colour) also does not reset, so you
end up with the bright default colour. Work around this by sending SGR 0
when switching away from a bright colour, and disable AX for TERM=linux.
Also make the check for AX simpler and do not check for the op
capability is not actually used. GitHub issue 3976.

2 months ago-l should be before -r, pointed out by jmc a while ago.
nicm [Sun, 4 Aug 2024 09:01:18 +0000 (09:01 +0000)]
-l should be before -r, pointed out by jmc a while ago.

2 months agoAdjust the logic when deleting last buffer to better preserve the
nicm [Sun, 4 Aug 2024 08:53:43 +0000 (08:53 +0000)]
Adjust the logic when deleting last buffer to better preserve the
selection: if selecting the element below the deleted one fails (because
as the last one), select the one above it instead. From Daniel Mueller,
GitHub issue 4043.

2 months agoUse paste_is_empty to check if there are no buffers since paste_get_top
nicm [Sun, 4 Aug 2024 08:39:38 +0000 (08:39 +0000)]
Use paste_is_empty to check if there are no buffers since paste_get_top
will return NULL if there are no automatic buffers.

2 months agox509_vfy.c: drop some unnecessary parentheses
tb [Sun, 4 Aug 2024 08:15:36 +0000 (08:15 +0000)]
x509_vfy.c: drop some unnecessary parentheses

2 months ago- sort SEE ALSO
jmc [Sun, 4 Aug 2024 05:18:28 +0000 (05:18 +0000)]
- sort SEE ALSO
- radiusd_file(8) is section 8, not 5