openbsd
2 weeks agodrm/amdgpu: enable gfxoff quirk on HP 705G4
jsg [Fri, 11 Oct 2024 02:20:19 +0000 (02:20 +0000)]
drm/amdgpu: enable gfxoff quirk on HP 705G4

From Peng Liu
fe90214179d5ea295f573039eb1a9f7090d94e3c in linux-6.6.y/6.6.55
2c7795e245d993bcba2f716a8c93a5891ef910c9 in mainline linux

2 weeks agodrm/amdgpu: add raven1 gfxoff quirk
jsg [Fri, 11 Oct 2024 02:18:49 +0000 (02:18 +0000)]
drm/amdgpu: add raven1 gfxoff quirk

From Peng Liu
a3c8cbefce38793ad4ac048aef08643e148bf031 in linux-6.6.y/6.6.55
0126c0ae11e8b52ecfde9d1b174ee2f32d6c3a5d in mainline linux

2 weeks agodrm/amd/display: fix double free issue during amdgpu module unload
jsg [Fri, 11 Oct 2024 02:16:34 +0000 (02:16 +0000)]
drm/amd/display: fix double free issue during amdgpu module unload

From Tim Huang
cf6f3ebd6312d465fee096d1f58089b177c7c67f in linux-6.6.y/6.6.55
20b5a8f9f4670a8503aa9fa95ca632e77c6bf55d in mainline linux

2 weeks agodrm/amd/display: Add null check for 'afb' in amdgpu_dm_plane_handle_cursor_update...
jsg [Fri, 11 Oct 2024 02:15:02 +0000 (02:15 +0000)]
drm/amd/display: Add null check for 'afb' in amdgpu_dm_plane_handle_cursor_update (v2)

From Srinivasan Shanmugam
75839e2365b666ff4e1b9047e442cab138eac4f6 in linux-6.6.y/6.6.55
cd9e9e0852d501f169aa3bb34e4b413d2eb48c37 in mainline linux

2 weeks agodrm/amd/display: Check null pointers before using dc->clk_mgr
jsg [Fri, 11 Oct 2024 02:13:25 +0000 (02:13 +0000)]
drm/amd/display: Check null pointers before using dc->clk_mgr

From Alex Hung
9641bc4adf8446034e490ed543ae7e9833cfbdf5 in linux-6.6.y/6.6.55
95d9e0803e51d5a24276b7643b244c7477daf463 in mainline linux

2 weeks agodrm/amd/display: Handle null 'stream_status' in 'planes_changed_for_existing_stream'
jsg [Fri, 11 Oct 2024 02:11:23 +0000 (02:11 +0000)]
drm/amd/display: Handle null 'stream_status' in 'planes_changed_for_existing_stream'

From Srinivasan Shanmugam
4778982c73d6c9f3fdbdbc6b6c8aa18df98251af in linux-6.6.y/6.6.55
8141f21b941710ecebe49220b69822cab3abd23d in mainline linux

2 weeks agodrm/amd/display: Add null check for top_pipe_to_program in commit_planes_for_stream
jsg [Fri, 11 Oct 2024 02:09:05 +0000 (02:09 +0000)]
drm/amd/display: Add null check for top_pipe_to_program in commit_planes_for_stream

From Srinivasan Shanmugam
e47e563c6f0db7d792a559301862c19ead0dfc2f in linux-6.6.y/6.6.55
66d71a72539e173a9b00ca0b1852cbaa5f5bf1ad in mainline linux

2 weeks agodrm/amdkfd: amdkfd_free_gtt_mem clear the correct pointer
jsg [Fri, 11 Oct 2024 02:06:47 +0000 (02:06 +0000)]
drm/amdkfd: amdkfd_free_gtt_mem clear the correct pointer

From Philip Yang
30ceb873cc2e97348d9da2265b2d1ddf07f682e1 in linux-6.6.y/6.6.55
c86ad39140bbcb9dc75a10046c2221f657e8083b in mainline linux

2 weeks agodrm/amdgpu: disallow multiple BO_HANDLES chunks in one submit
jsg [Fri, 11 Oct 2024 02:04:07 +0000 (02:04 +0000)]
drm/amdgpu: disallow multiple BO_HANDLES chunks in one submit

From Pierre-Eric Pelloux-Prayer
44e4aeaef96b2624b341597b1a8e595c89925892 in linux-6.6.y/6.6.55
fec5f8e8c6bcf83ed7a392801d7b44c5ecfc1e82 in mainline linux

2 weeks agodrm/amdgpu: Fix get each xcp macro
jsg [Fri, 11 Oct 2024 02:02:18 +0000 (02:02 +0000)]
drm/amdgpu: Fix get each xcp macro

From Asad Kamal
7879ad0aa996dc0c66950a6416e0ae227288f362 in linux-6.6.y/6.6.55
ef126c06a98bde1a41303970eb0fc0ac33c3cc02 in mainline linux

2 weeks agoremove unused struct cpu_freq_tbl
jsg [Thu, 10 Oct 2024 23:15:27 +0000 (23:15 +0000)]
remove unused struct cpu_freq_tbl

2 weeks agosysctl.2: NET_RT_DUMP defaults to the current rtable
lucas [Thu, 10 Oct 2024 22:21:05 +0000 (22:21 +0000)]
sysctl.2: NET_RT_DUMP defaults to the current rtable

2 weeks agoRemove the gazillion of macros to get fields from curcpu(), and use
miod [Thu, 10 Oct 2024 19:33:05 +0000 (19:33 +0000)]
Remove the gazillion of macros to get fields from curcpu(), and use
relative addressing from the register holding the value of curcpu() instead.
No functional change, but shaves a few bytes of code on MULTIPROCESSOR kernels.

2 weeks agoAdd test for the various authentication config options.
claudio [Thu, 10 Oct 2024 14:02:47 +0000 (14:02 +0000)]
Add test for the various authentication config options.

2 weeks agoAdd a sixel_support format variable which is 1 if SIXEL is supported
nicm [Thu, 10 Oct 2024 10:41:33 +0000 (10:41 +0000)]
Add a sixel_support format variable which is 1 if SIXEL is supported
(always 0 on OpenBSD), requested by Misaki Masa in GitHub issue 4177

2 weeks agoPrint the session id (PID of the session leader) instead of a pointer.
claudio [Thu, 10 Oct 2024 10:24:14 +0000 (10:24 +0000)]
Print the session id (PID of the session leader) instead of a pointer.

Pointers are only visible when run as superuser. Also in most cases
you want to know which process is the session leader and which process
groups belong together. So it is better to print the session id.
OK deraadt@ (long time ago)

2 weeks agoAlways print account URI on first creation of an account key.
florian [Thu, 10 Oct 2024 09:39:35 +0000 (09:39 +0000)]
Always print account URI on first creation of an account key.

This was hidden behind -v but it seems useful to always have this when
creating a new account.

As sthen points out in his previous commit:
This is useful if you want to set a CAA DNS record restricting
issuance to a specific user account.

OK deraadt

2 weeks agoRemove unused CONF_imodule struct members and accessors
tb [Thu, 10 Oct 2024 06:51:22 +0000 (06:51 +0000)]
Remove unused CONF_imodule struct members and accessors

ok beck jsing

2 weeks agoneuter the tun/tap ioctls that try and modify interface flags.
dlg [Thu, 10 Oct 2024 06:50:58 +0000 (06:50 +0000)]
neuter the tun/tap ioctls that try and modify interface flags.

historically there was just tun(4) that supported both layer 3 p2p
and ethernet modes, but had to be reconfigured at runtime by userland
to properly change the interface type and interface flags. this is
obviously not a great idea, mostly because a lot of stack behaviour
around address management makes assumptions based on these parameters,
and changing them at runtime confuses things.

splitting tun so ethernet was handled by a specific tap(4) driver
was a first step at locking this down. this takes a further step
by restricting userlands ability to reconfigure the interface flags,
specifically IFF_BROADCAST, IFF_MULTICAST, and IFF_POINTOPOINT.

this change lets userland pass those values via the ioctls, but
only if they match the current set of flags on the interface. these
flags are set appropriate for the type of interface when it's
created, but should not be changed afterwards.

nothing in base uses these ioctls, so the only fall out will be
from ports doing weird things.

ok claudio@ kn@

2 weeks agoallow MSI with the QEMU default pc-i440fx machine
jsg [Thu, 10 Oct 2024 06:00:42 +0000 (06:00 +0000)]
allow MSI with the QEMU default pc-i440fx machine

This makes it possible to use MSI for virtual functions of Intel network
devices without having to specify the q35 machine.

QEMU is detected by testing for the Qumranet pci subsystem vendor id,
suggested by sf@.  MSI previously wasn't enabled as 82441FX is in the list
of excluded devices.

Initial patch from Yuichiro NAITO. ok yasuoka@ sf@

2 weeks agoallow MSI with the QEMU default pc-i440fx machine
jsg [Thu, 10 Oct 2024 05:51:23 +0000 (05:51 +0000)]
allow MSI with the QEMU default pc-i440fx machine

This makes it possible to use MSI for virtual functions of Intel network
devices without having to specify the q35 machine.

QEMU is detected by testing for the Qumranet pci subsystem vendor id,
suggested by sf@.  MSI previously wasn't enabled as i440fx models a machine
from 1996 with ACPI 1.0, and MSI is only enabled for ACPI >= 2.0.

Initial patch from Yuichiro NAITO. ok yasuoka@ sf@

2 weeks agoremove unused agp_softc variables
jsg [Thu, 10 Oct 2024 03:36:10 +0000 (03:36 +0000)]
remove unused agp_softc variables

2 weeks agoremove unused defines
jsg [Thu, 10 Oct 2024 00:41:01 +0000 (00:41 +0000)]
remove unused defines

2 weeks agoremove unused struct agp_memory_info
jsg [Thu, 10 Oct 2024 00:30:34 +0000 (00:30 +0000)]
remove unused struct agp_memory_info

2 weeks agoGet trust anchor via unbound-checkconf(8)
kn [Wed, 9 Oct 2024 15:42:56 +0000 (15:42 +0000)]
Get trust anchor via unbound-checkconf(8)

This tool knows our default config path and '-o auto-trust-anchor-file'
prints the actually set path, if any, regardless of whether exists.

Use that to generate it rather than a best-effort grep/hardcoded path.

OK sthen

2 weeks agoAdd regress test that sends a SIGSTOP to a child whit its mainproc gone.
claudio [Wed, 9 Oct 2024 12:59:59 +0000 (12:59 +0000)]
Add regress test that sends a SIGSTOP to a child whit its mainproc gone.
Right now this fails since dowait6() depends on ps_mainproc for this.

2 weeks agoRemove SSL_R_TRIED_TO_USE_UNSUPPORTED_CIPHER
tb [Wed, 9 Oct 2024 10:27:52 +0000 (10:27 +0000)]
Remove SSL_R_TRIED_TO_USE_UNSUPPORTED_CIPHER

Nothing uses this and it collides with ALPN

2 weeks agoMake it possible to configure tcp md5 and ipsec on rtr as well
claudio [Wed, 9 Oct 2024 10:01:29 +0000 (10:01 +0000)]
Make it possible to configure tcp md5 and ipsec on rtr as well

Single out the auth_config yacc rules. Even though this requires an
extra merge_auth_conf() function to handle manual IPsec setups but
even with that this seems like a net gain.

There is no rtr cache that does tcp md5 on OpenBSD so those bits remain
untested for now.
OK tb@

2 weeks agoClear ps_xsig when continuing after a PS_TRACED stop.
claudio [Wed, 9 Oct 2024 08:58:19 +0000 (08:58 +0000)]
Clear ps_xsig when continuing after a PS_TRACED stop.

Also remove the ps_xsig handling in setrunnable() it is in the wrong spot
and causes signals to be delivered over and over again.

Attaching to an already stopped process is affected by this. The SIGSTOP
sent by ptrace is now ignored in ptsignal() and as a result gdb will hang
in wait4() until a SIGCONT is delivered to the process. After that all
works as usual.

OK mpi@

2 weeks agoConvert prsignal() into a real function
claudio [Wed, 9 Oct 2024 08:39:49 +0000 (08:39 +0000)]
Convert prsignal() into a real function

Also do not use ps_mainproc as the thread the signal is send to. Sending
a signal to ps_mainproc may not work reliably if it already exited. Use
TAILQ_FIRST(&pr->ps_threads) instead but first check that the process has
not yet entered exit1().

OK mpi@

2 weeks agoAdd missing alert descriptions (taken from RFC 8446)
tb [Wed, 9 Oct 2024 08:22:28 +0000 (08:22 +0000)]
Add missing alert descriptions (taken from RFC 8446)

This is so gross...

2 weeks agoAdd missing alerts to SSL_alert_desc_string{,_long}()
tb [Wed, 9 Oct 2024 08:01:39 +0000 (08:01 +0000)]
Add missing alerts to SSL_alert_desc_string{,_long}()

ok beck

2 weeks agoAdd missing alert errors and error strings
tb [Wed, 9 Oct 2024 08:00:29 +0000 (08:00 +0000)]
Add missing alert errors and error strings

For every TLS alert there needs a corresponding error with error code
having an offset of SSL_AD_REASON_OFFSET (aka 1000), otherwise the error
stack fails to set the reason correctly.

ok beck

2 weeks agoAppease mandoc -Tlint
tb [Wed, 9 Oct 2024 07:25:35 +0000 (07:25 +0000)]
Appease mandoc -Tlint

3 weeks agoAdd .Xr to pkg_check-version(1) in packages-specs(7), as pkg_check-version(1)
semarie [Wed, 9 Oct 2024 07:22:13 +0000 (07:22 +0000)]
Add .Xr to pkg_check-version(1) in packages-specs(7), as pkg_check-version(1)
can be used to verify the ordering of package names.

ok tb@

3 weeks agocorrect indentation
jsg [Wed, 9 Oct 2024 01:52:11 +0000 (01:52 +0000)]
correct indentation

3 weeks agomake attachments use pre-existing activate functions; ok deraadt@
jsg [Wed, 9 Oct 2024 00:38:25 +0000 (00:38 +0000)]
make attachments use pre-existing activate functions; ok deraadt@

3 weeks agoRelax DMA restrictions on ehci(4) and xhci(4) controllers that can do
kettenis [Tue, 8 Oct 2024 19:42:31 +0000 (19:42 +0000)]
Relax DMA restrictions on ehci(4) and xhci(4) controllers that can do
64-bit DMA.

ok mpi@, mlarkin@

3 weeks agoAdd the BUS_DMA_64BIT flag to bus_dmamem_alloc(9) calls since NVMe devices
kettenis [Tue, 8 Oct 2024 19:41:23 +0000 (19:41 +0000)]
Add the BUS_DMA_64BIT flag to bus_dmamem_alloc(9) calls since NVMe devices
can do 64-bit DMA.

ok mpi@, mlarkin@

3 weeks agoMake bus_dmamem_alloc(9) recognize the BUS_DMA_64BIT flag and interpret
kettenis [Tue, 8 Oct 2024 19:40:00 +0000 (19:40 +0000)]
Make bus_dmamem_alloc(9) recognize the BUS_DMA_64BIT flag and interpret
it as a request for memory without any DMA restrictions, which means that
the call is allowed to allocate memory above the 4GB boundary on amd64.

ok mpi@, mlarkin@

3 weeks agoExtend the socket handover from parent to rtr process to also include teardown
claudio [Tue, 8 Oct 2024 12:28:09 +0000 (12:28 +0000)]
Extend the socket handover from parent to rtr process to also include teardown

This is needed to support tcp md5sum and ipsec auth for rtr.
OK tb@

3 weeks agoReplace ps_oppid (old parent pid) with ps_opptr (a pointer to the old parent process...
claudio [Tue, 8 Oct 2024 12:02:24 +0000 (12:02 +0000)]
Replace ps_oppid (old parent pid) with ps_opptr (a pointer to the old parent process struct).

This simplifies some code and removes the no need to call prfind in
process_untrace().
OK mpi@

3 weeks agoMove common code to update the proc runtime into tuagg_add_runtime().
claudio [Tue, 8 Oct 2024 11:57:59 +0000 (11:57 +0000)]
Move common code to update the proc runtime into tuagg_add_runtime().

OK mpi@ kn@

3 weeks agoDraw pane status line on the correct line when at the bottom, fixes
nicm [Tue, 8 Oct 2024 09:40:50 +0000 (09:40 +0000)]
Draw pane status line on the correct line when at the bottom, fixes
issues if the window size is smaller than the entire terminal. GitHub
issue 3943.

3 weeks agoAdjust lock requirements for ps_pptr, ps_ppid and ps_oppid.
claudio [Tue, 8 Oct 2024 09:05:40 +0000 (09:05 +0000)]
Adjust lock requirements for ps_pptr, ps_ppid and ps_oppid.

ps_pptr, ps_ppid and ps_oppid require the KERNEL_LOCK and the process mutex
to be modified. At the same time either KERNEL_LOCK or process mutex needs
to be taken to read the values.

This is needed to further unlock ptsignal().
OK kettenis@, mvs@

3 weeks agoPut the prompt cursor attributes into the status line screen and use
nicm [Tue, 8 Oct 2024 06:29:44 +0000 (06:29 +0000)]
Put the prompt cursor attributes into the status line screen and use
that rather than updating the current screen (since there might not be
one).

3 weeks agoremove unused struct
jsg [Tue, 8 Oct 2024 05:28:11 +0000 (05:28 +0000)]
remove unused struct

3 weeks agoremove unused ffs_checkoverlap() ext2fs_checkoverlap(); ok miod@
jsg [Tue, 8 Oct 2024 02:58:26 +0000 (02:58 +0000)]
remove unused ffs_checkoverlap() ext2fs_checkoverlap(); ok miod@

3 weeks agoremove unused uvm_pause(); ok miod@
jsg [Tue, 8 Oct 2024 02:29:10 +0000 (02:29 +0000)]
remove unused uvm_pause(); ok miod@

3 weeks agoset activate for ufshci_acpi and ufshci_fdt
jsg [Tue, 8 Oct 2024 00:46:29 +0000 (00:46 +0000)]
set activate for ufshci_acpi and ufshci_fdt

tested by mglocker@ with pci, acpi and fdt attachments
ok mglocker@ deraadt@

3 weeks agoapply the CVE-2024-8508 fix from unbound (put a limit on resources used
sthen [Tue, 8 Oct 2024 00:21:08 +0000 (00:21 +0000)]
apply the CVE-2024-8508 fix from unbound (put a limit on resources used
for handling DNS compression). OK florian

3 weeks agoWhen acme-client is run with -v, show the account URI from the Location
sthen [Mon, 7 Oct 2024 23:47:00 +0000 (23:47 +0000)]
When acme-client is run with -v, show the account URI from the Location
header sent by the server in response to the newAccount API call (used for
every cert request). This is useful if you want to set a CAA DNS record
restricting issuance to a specific user account, rather than just "all of
$whichever_acme_CA".  ok florian

3 weeks agoRemove VMFUNC feature detection and tracking.
dv [Mon, 7 Oct 2024 20:30:17 +0000 (20:30 +0000)]
Remove VMFUNC feature detection and tracking.

vmm(4) doesn't use the VMX VMFUNC instruction.

ok mlarkin@

3 weeks agouse the Ox macro instead of "OpenBSD";
jmc [Mon, 7 Oct 2024 15:57:15 +0000 (15:57 +0000)]
use the Ox macro instead of "OpenBSD";

3 weeks agoTweak genassym code generation to force preprocessor conditional directives
miod [Mon, 7 Oct 2024 15:41:46 +0000 (15:41 +0000)]
Tweak genassym code generation to force preprocessor conditional directives
to always be put inside functions.

This allows such statements to appear anywhere in assym.cf; without this
change they would require at least one `export' or `define' stanza to occur
first.

Problem noticed by & ok jsg@

3 weeks agomerge unbound 1.21.1
sthen [Mon, 7 Oct 2024 15:38:21 +0000 (15:38 +0000)]
merge unbound 1.21.1

3 weeks agoFix unbound CVE-2024-8508, put a limit on resources used for handling
sthen [Mon, 7 Oct 2024 15:35:11 +0000 (15:35 +0000)]
Fix unbound CVE-2024-8508, put a limit on resources used for handling
DNS compression. OK florian

From unbound 1.21.1 (rest will be merged shortly).

3 weeks agoAdd comment accidentally omitted on commit
tb [Mon, 7 Oct 2024 14:45:33 +0000 (14:45 +0000)]
Add comment accidentally omitted on commit

3 weeks agoupdate crl number draft link
tb [Mon, 7 Oct 2024 14:21:51 +0000 (14:21 +0000)]
update crl number draft link

3 weeks agoAdd a multithreaded test for SIGSTOP and SIGCONT behaviour.
claudio [Mon, 7 Oct 2024 14:01:12 +0000 (14:01 +0000)]
Add a multithreaded test for SIGSTOP and SIGCONT behaviour.

This actually installs a SIGTSTP handler which then triggers a SIGSTOP.
Currently unlinked since both SIGSTOP and SIGCONT delivery is busted.

3 weeks agoadd UQ_ALWAYS_OPEN for another PixArt mouse
sthen [Mon, 7 Oct 2024 13:27:13 +0000 (13:27 +0000)]
add UQ_ALWAYS_OPEN for another PixArt mouse

3 weeks agosync
sthen [Mon, 7 Oct 2024 13:26:32 +0000 (13:26 +0000)]
sync

3 weeks agoadd another PixArt mouse, to be used in quirks
sthen [Mon, 7 Oct 2024 13:26:18 +0000 (13:26 +0000)]
add another PixArt mouse, to be used in quirks

3 weeks agoThe two usual use cases are sysupgrade and sysupgrade -s, jumping
deraadt [Mon, 7 Oct 2024 13:21:53 +0000 (13:21 +0000)]
The two usual use cases are sysupgrade and sysupgrade -s, jumping
forward to the same key, or the key+.1.  But sometimes you want to
update an older machine far forward (either with -s, or with -R), and
the required key might not exist on-disk.  Since getting the key isn't
automated, people make some poor decisions to get the key.  Previous
to 7.6 the situation was worse, (and obviously older releases will have
the old sysupgrade script, though you can copy this one to those machines
and it will work, but please do that securely..)
Moving forward this improves the workflow: a new set of keybundles
(signed by older keys) have been made available so that sysupgrade
can securely and automatically download the required key.
ok job tb beck sthen

3 weeks agoAdd prompt-cursor-colour and prompt-cursor-style to set the style of the
nicm [Mon, 7 Oct 2024 12:58:36 +0000 (12:58 +0000)]
Add prompt-cursor-colour and prompt-cursor-style to set the style of the
cursor in the command prompt and remove the emulated cursor, from
Alexander Arch in GitHub issue 4170.

3 weeks agorpki-client: add small unit test for the sequence number
tb [Mon, 7 Oct 2024 12:27:27 +0000 (12:27 +0000)]
rpki-client: add small unit test for the sequence number

got this wrong too many times, let's make sure this is right.

3 weeks agorpki-client: fix validity interval check
tb [Mon, 7 Oct 2024 12:19:52 +0000 (12:19 +0000)]
rpki-client: fix validity interval check

The language in RFC 5280, section 4.1.2.5 includes the end points of the
validity interval.

Reported by Tom Harrison

ok claudio job

3 weeks agorpki-client: fix seqnum upper bound
tb [Mon, 7 Oct 2024 12:18:31 +0000 (12:18 +0000)]
rpki-client: fix seqnum upper bound

An ASN1_INTEGER doesn't contain the ASN.1 encoding in its data. It contains
a BIGNUM. In particular, there's no padding octet for integers with the top
bit of the top octet set. Do the check the dumb way and check all the parts
individually: non-negative, not larger than 20 octets and bit 159 not set.

Reported by Tom Harrison

ok claudio job

3 weeks agoAdd initial-repeat-time option to allow the first repeat time to be
nicm [Mon, 7 Oct 2024 08:50:47 +0000 (08:50 +0000)]
Add initial-repeat-time option to allow the first repeat time to be
increased and later reduced, from David le Blanc in GitHub issue 4164.

3 weeks agoAdd support for AX88772D.
kevlo [Mon, 7 Oct 2024 07:35:40 +0000 (07:35 +0000)]
Add support for AX88772D.

AX88772D is a USB 2.0 device.  It is very similar to AX88179A overall.
The most significant difference is that AX88179A supports 1000Mbps speeds
while AX88772D does not.

grammer fix from jmc@

ok miod@

3 weeks agodrm/amd/display: Validate backlight caps are sane
jsg [Mon, 7 Oct 2024 05:30:12 +0000 (05:30 +0000)]
drm/amd/display: Validate backlight caps are sane

From Mario Limonciello
c886061bbdd1f37190939b11926055413e86a56c in linux-6.6.y/6.6.54
327e62f47eb57ae5ff63de82b0815557104e439a in mainline linux

3 weeks agodrm/amd/display: Round calculated vtotal
jsg [Mon, 7 Oct 2024 05:28:20 +0000 (05:28 +0000)]
drm/amd/display: Round calculated vtotal

From Robin Chen
9ce1ee22dc6829175ec2dfd74d78d79eb20e0732 in linux-6.6.y/6.6.54
c03fca619fc687338a3b6511fdbed94096abdf79 in mainline linux

3 weeks agodrm/amd/display: Add HDMI DSC native YCbCr422 support
jsg [Mon, 7 Oct 2024 05:25:26 +0000 (05:25 +0000)]
drm/amd/display: Add HDMI DSC native YCbCr422 support

From Leo Ma
55fcbe5f60865717479a9d6a8d8d076c8f443759 in linux-6.6.y/6.6.54
07bfa9cdbf3cd2daadfaaba0601f126f45951ffa in mainline linux

3 weeks agodrm/amd/display: Fix Synaptics Cascaded Panamera DSC Determination
jsg [Mon, 7 Oct 2024 05:23:13 +0000 (05:23 +0000)]
drm/amd/display: Fix Synaptics Cascaded Panamera DSC Determination

From Fangzhi Zuo
b5d38f1d4acb3a0aa0763d4d70bec6c9cf51300c in linux-6.6.y/6.6.54
4437936c6b696b98f3fe1d8679a2788c41b4df77 in mainline linux

3 weeks agodrm/radeon/evergreen_cs: fix int overflow errors in cs track offsets
jsg [Mon, 7 Oct 2024 05:20:34 +0000 (05:20 +0000)]
drm/radeon/evergreen_cs: fix int overflow errors in cs track offsets

From Nikita Zhandarovich
fa94d60546d2ba8c55f3c87483404162f1fbe863 in linux-6.6.y/6.6.54
3fbaf475a5b8361ebee7da18964db809e37518b7 in mainline linux

3 weeks agodrm/amd/amdgpu: Properly tune the size of struct
jsg [Mon, 7 Oct 2024 05:17:14 +0000 (05:17 +0000)]
drm/amd/amdgpu: Properly tune the size of struct

From WangYuli
8e7760ed234f55f28dfd68254d08c9d0527dd766 in linux-6.6.y/6.6.54
0cee47cde41e22712c034ae961076067d4ac13a0 in mainline linux

3 weeks agodrm/radeon: properly handle vbios fake edid sizing
jsg [Mon, 7 Oct 2024 05:14:50 +0000 (05:14 +0000)]
drm/radeon: properly handle vbios fake edid sizing

From Alex Deucher
de67850b401946dc683103d11d7814ae5611750e in linux-6.6.y/6.6.54
17c6baff3d5f65c8da164137a58742541a060b2f in mainline linux

3 weeks agodrm/amdgpu: properly handle vbios fake edid sizing
jsg [Mon, 7 Oct 2024 05:12:00 +0000 (05:12 +0000)]
drm/amdgpu: properly handle vbios fake edid sizing

From Alex Deucher
78b9e10b3bd1bb04c40f9f12b899951a6904772b in linux-6.6.y/6.6.54
8155566a26b8d6c1dd914f06a0c652e4e2f2adf1 in mainline linux

3 weeks agodrm/amd/display: Add null check for set_output_gamma in dcn30_set_output_transfer_func
jsg [Mon, 7 Oct 2024 05:02:58 +0000 (05:02 +0000)]
drm/amd/display: Add null check for set_output_gamma in dcn30_set_output_transfer_func

From Srinivasan Shanmugam
ddf9ff244d704e1903533f7be377615ed34b83e7 in linux-6.6.y/6.6.54
08ae395ea22fb3d9b318c8bde28c0dfd2f5fa4d2 in mainline linux

3 weeks agodrop redundant AF attach ioctl
kn [Mon, 7 Oct 2024 04:29:01 +0000 (04:29 +0000)]
drop redundant AF attach ioctl

SIOCAIFADDR_IN6 to configure an IPv6 address does everything SIOCIFAFATTACH
does, i.e. it enables IPv6 on the interface if not done so already.

vm.conf(5) 'local inet6' works as before.

OK mlarkin

3 weeks agoinclude proc.h to fix APMDEBUG build
jsg [Mon, 7 Oct 2024 01:31:22 +0000 (01:31 +0000)]
include proc.h to fix APMDEBUG build

3 weeks agoFix the rx refill timeout to only refill rings that are currently empty.
jmatthew [Sun, 6 Oct 2024 23:43:18 +0000 (23:43 +0000)]
Fix the rx refill timeout to only refill rings that are currently empty.
This is normally how the timeout works, but in this driver it's complicated
by the use of separate rx and ag rings.

This prevents the refill timeout from operating on a ring concurrently
with an rx interrupt, which leads to corruption and crashes as experienced
by bluhm@

ok dlg@
earlier version tested by and ok bluhm@

3 weeks agoremove unused DEBUG_PLEDGE lines; ok deraadt@
jsg [Sun, 6 Oct 2024 23:39:24 +0000 (23:39 +0000)]
remove unused DEBUG_PLEDGE lines; ok deraadt@

3 weeks agoTurn off finite field (a.k.a modp) Diffie-Hellman key exchange in sshd
djm [Sun, 6 Oct 2024 23:37:17 +0000 (23:37 +0000)]
Turn off finite field (a.k.a modp) Diffie-Hellman key exchange in sshd
by default. Specifically, this removes the diffie-hellman-group* and
diffie-hellman-group-exchange-* methods. The client is unchanged and
continues to support these methods by default.

Finite field Diffie Hellman is slow and computationally expensive for
the same security level as Elliptic Curve DH or PQ key agreement while
offering no redeeming advantages.

ECDH has been specified for the SSH protocol for 15 years and some
form of ECDH has been the default key exchange in OpenSSH for the last
14 years.

ok markus@

3 weeks agoremove unneeded includes and defines; ok miod@
jsg [Sun, 6 Oct 2024 22:47:38 +0000 (22:47 +0000)]
remove unneeded includes and defines; ok miod@

3 weeks agouse rdmsr_safe() instead of rdmsr() for probing feature
semarie [Sun, 6 Oct 2024 16:24:02 +0000 (16:24 +0000)]
use rdmsr_safe() instead of rdmsr() for probing feature

the second could raise general protection fault on non-existant MSR

fix with help of jsg@
ok dv@

3 weeks agonew opt-in PATCH_QUIET aka. patch(1) -s; OK tb
kn [Sun, 6 Oct 2024 10:24:52 +0000 (10:24 +0000)]
new opt-in PATCH_QUIET aka. patch(1) -s;  OK tb

3 weeks agoTry to stay near the same line in modes if the current one is removed.
nicm [Sun, 6 Oct 2024 09:30:22 +0000 (09:30 +0000)]
Try to stay near the same line in modes if the current one is removed.

3 weeks agoremove unused axppmic_rsb_cd, axppmic at rsb uses axppmic_cd
jsg [Sun, 6 Oct 2024 03:46:48 +0000 (03:46 +0000)]
remove unused axppmic_rsb_cd, axppmic at rsb uses axppmic_cd

3 weeks agoremove unused sched_cost_load variable
jsg [Sun, 6 Oct 2024 01:50:56 +0000 (01:50 +0000)]
remove unused sched_cost_load variable

3 weeks agoremove unused wi_usb_cd, wi at usb uses wi_cd
jsg [Sun, 6 Oct 2024 01:28:39 +0000 (01:28 +0000)]
remove unused wi_usb_cd, wi at usb uses wi_cd

3 weeks agoremove unused atw_beacon_len_adjust variable
jsg [Sun, 6 Oct 2024 01:12:15 +0000 (01:12 +0000)]
remove unused atw_beacon_len_adjust variable

3 weeks agoSeperate -> Separate
jsg [Sun, 6 Oct 2024 00:13:42 +0000 (00:13 +0000)]
Seperate -> Separate

3 weeks agoMake scaling available for normal mice, too; not just for touchpads.
chrisz [Sat, 5 Oct 2024 13:27:16 +0000 (13:27 +0000)]
Make scaling available for normal mice, too; not just for touchpads.
Add reverse_scrolling to the manpage.

ok bru@

3 weeks agoSend focus events to pane when entering or leaving popup, GitHub issue
nicm [Sat, 5 Oct 2024 12:10:16 +0000 (12:10 +0000)]
Send focus events to pane when entering or leaving popup, GitHub issue
3991.

3 weeks agoremove unneeded includes
jsg [Sat, 5 Oct 2024 09:54:39 +0000 (09:54 +0000)]
remove unneeded includes

3 weeks agoerror on long locator lines, don't overflow buffers
jsg [Sat, 5 Oct 2024 01:07:38 +0000 (01:07 +0000)]
error on long locator lines, don't overflow buffers
found with afl, feedback and ok millert@

3 weeks agoRemove some debugging left behind.
nicm [Sat, 5 Oct 2024 00:35:35 +0000 (00:35 +0000)]
Remove some debugging left behind.

3 weeks agoAdd copy-mode-position-format to configure the position indicator.
nicm [Sat, 5 Oct 2024 00:32:55 +0000 (00:32 +0000)]
Add copy-mode-position-format to configure the position indicator.

3 weeks agoDocument missing window-layout-changed hook.
nicm [Fri, 4 Oct 2024 22:36:11 +0000 (22:36 +0000)]
Document missing window-layout-changed hook.