openbsd
15 months agoIn 2016, chat changed its syslog output for hidden strings.
guenther [Mon, 7 Aug 2023 06:21:53 +0000 (06:21 +0000)]
In 2016, chat changed its syslog output for hidden strings.
Sync the manpage to match.

markup advice jmc@

15 months agoadd support route based ipsec vpn negotiation with sec(4) via isakmpd.
dlg [Mon, 7 Aug 2023 04:10:08 +0000 (04:10 +0000)]
add support route based ipsec vpn negotiation with sec(4) via isakmpd.

this adds "interface secX" to the grammar that you can use instead
of specifying tunnel/transport modes and traffic selectors.

if you have config like "ike interface sec0 local ... peer ...",
ipsecctl will generate the right config for isakmpd to negotiate
esp tunnels for all traffic between 0.0.0.0/0 and 0.0.0.0/0. however,
this also specifies that they should be set up as interface SAs in
the kernel for use with sec(4).

this supports route-based instead of policy based ipsec encapsulation,
and allows us to more easily operate with other vendors and products
that also offer route-based vpns with opinions about the negotiated
policy that doesnt fit with the SPD.

support from many including markus@ tobhe@ claudio@ sthen@ patrick@
now is a good time deraadt@

15 months agosupport configuring interface SAs for route-based ipsec vpns.
dlg [Mon, 7 Aug 2023 04:01:29 +0000 (04:01 +0000)]
support configuring interface SAs for route-based ipsec vpns.

add "Interface NUMBER" to the config parser to specify that once
SAs have been negotiated with a peer, install the SAs with the
sadb_x_iface extension set up, but skip installing the flows/SPD
entries.

this allows for the negotiation of multiple esp tunnels covering
all traffic between 0.0.0.0/0 to 0.0.0.0/0, and then being able to
do something useful with them using the routing table and sec(4)
interfaces instead of having SPD entries fight over those packets
in the kernel.

this in turn allows interoperation with other ipsec/vpn solutions
that require the negotiation of such tunnels.

support from many including markus@ tobhe@ claudio@ sthen@ patrick@
now is a good time deraadt@

15 months agoadd the glue between ipsec security associations and sec(4) interfaces.
dlg [Mon, 7 Aug 2023 03:43:57 +0000 (03:43 +0000)]
add the glue between ipsec security associations and sec(4) interfaces.

if TDBF_IFACE is set on a tdb, the ipsec stack will pass it to the
sec(4) driver to keep track of instead of wiring it up for security
associations to use.

when sec(4) transmits a packet, it will look up it's list of tdbs
to find the right SA to encrypt and send the packet out with.

if an incoming ipsec packet arrives with TDBF_IFACE set, it's passed
to sec(4) to be injected back into the network stack as if it was
received on the sec interface, instead of being reinjected into the
IP stack like normal SA/SPD processing does.

note that this means you do not have to configure tunnel endpoints
on sec(4) interfaces, instead you line the interface unit number
in the ipsec config up with the minor number of the sec(4) interfaces.
the peer IPs used on the SAs are what's used as the traffic endpoints.

support from many including markus@ tobhe@ claudio@ sthen@ patrick@
now is a good time deraadt@

15 months agoadd a struct sadb_x_iface message for interface SAs
dlg [Mon, 7 Aug 2023 03:35:06 +0000 (03:35 +0000)]
add a struct sadb_x_iface message for interface SAs

this allows userland to install (and see) security associations for
route-based ipsec vpns. if this message is part of an SA, it causes
the TDBF_IFACE flag and associated fields in a tdb to be set.

the interface unit field in this message maps to minor number of
the sec(4) interface you want to the SA to work with. ie, set the
sadb_x_iface_unit field in struct sadb_x_iface to 1 to set up an
SA for use with sec1. the sadb_x_iface_direction in the message
uses IPSP_DIRECTION_IN and IPSP_DIRECTION_OUT to specify in which
direction that SA is supposed to process traffic.

support from many including markus@ tobhe@ claudio@ sthen@ patrick@
now is a good time deraadt@

15 months agosec(4) to support route-based ipsec vpns.
dlg [Mon, 7 Aug 2023 03:17:42 +0000 (03:17 +0000)]
sec(4) to support route-based ipsec vpns.

committing it now so jmc@ gets commits for any fixes he makes.

15 months ago744c rev ce is Radeon RX 7900 GRE
jsg [Mon, 7 Aug 2023 02:47:55 +0000 (02:47 +0000)]
744c rev ce is Radeon RX 7900 GRE
found in AMD Software: Adrenalin Edition 23.7.2

15 months agowire sec(4) into the kernel config.
dlg [Mon, 7 Aug 2023 01:59:38 +0000 (01:59 +0000)]
wire sec(4) into the kernel config.

this makes #include "sec.h" and #if NSEC > 0 work in kernel code.

15 months agoadd sec(4) to support route based ipsec vpns.
dlg [Mon, 7 Aug 2023 01:57:33 +0000 (01:57 +0000)]
add sec(4) to support route based ipsec vpns.

ipsec security associations (SAs, aka tdbs inside the kernel) can
now specify that they're to be used with an interface (using
TDBF_IFACE) rather than the ipsec security policy database. sec(4)
is the driver providing that interface.

the name is specifically chosen to not be ipsec(4) because that's
already taken by the manpage for the ipsec stack generally. sec(4)
is short, easy to type and pronounce, and kind of sounds like ipsec
anyway. the names for this type of interface in other platforms
seems to be universally terrible and too generic, so i didn't want
to copy any of those either.

sec(4) can be considered equivalent to gif(4) protected by ipsec,
and on the wire it actually looks the same. sec(4) exists to better
support how security associations for route-based ipsec VPNs are
negotiated and to avoid SPD entries for them.

the code is a little green, but i'm putting it in now so it can be
hacked on in the tree.

support from many including markus@ tobhe@ claudio@ sthen@ patrick@
now is a good time deraadt@

15 months agostart adding support for route-based ipsec vpns.
dlg [Mon, 7 Aug 2023 01:44:51 +0000 (01:44 +0000)]
start adding support for route-based ipsec vpns.

rather than use ipsec flows (aka, entries in the ipsec security
policy database) to decide which traffic should be encapsulated in
ipsec and sent to a peer, this tweaks security associations (SAs)
so they can refer to a tunnel interface. when traffic is routed
over that tunnel interface, an ipsec SA is looked up and used to
encapsulate traffic before being sent to the peer on the SA. When
traffic is received from a peer using an interface SA, the specified
interface is looked up and the packet is handed to it so it looks
like packets come out of the tunnel.

to support this, SAs get a TDBF_IFACE flag and iface and iface_dir
fields.  When TDBF_IFACE is set the iface and dir fields are
considered valid, and the tdb/SA should be used with the tunnel
interface instead of the SPD.

support from many including markus@ tobhe@ claudio@ sthen@ patrick@
now is a good time deraadt@

15 months agoPrefer the POSIX standard st_*tim struct timespec members over the
guenther [Sun, 6 Aug 2023 19:36:13 +0000 (19:36 +0000)]
Prefer the POSIX standard st_*tim struct timespec members over the
older BSD st_*timespec names.

ok millert@

15 months agoApply rev 1.29 from NetBSD:
guenther [Sun, 6 Aug 2023 19:33:54 +0000 (19:33 +0000)]
Apply rev 1.29 from NetBSD:
-----
Don't printf time_t with %d; fixes PR 44128 from yamt. With this change it
successfully prints mtimes after 2038.
-----

ok millert@

15 months agoregen
jsg [Sun, 6 Aug 2023 14:41:10 +0000 (14:41 +0000)]
regen

15 months agoadd another Navi 33 device id
jsg [Sun, 6 Aug 2023 14:40:25 +0000 (14:40 +0000)]
add another Navi 33 device id

7480 rev 00 is Radeon Pro W7600
7489 rev 00 is Radeon Pro W7500
found in AMD Software: PRO Edition 23.Q3 W7000 Series

15 months agoAdd acpi_softc == NULL checks and return ENXIO instead of crashing on
tobhe [Sun, 6 Aug 2023 14:30:08 +0000 (14:30 +0000)]
Add acpi_softc == NULL checks and return ENXIO instead of crashing on
non-acpi x86 machines.  This was lost in refactoring when moving /dev/apm
code from acpi.c to acpi_apm.c.

Found by Anton Lindqvist after report from xavier.s at mailoo dot org
ok kettenis@

15 months agohardclock(9): move setitimer(2) code into itimer_update()
cheloha [Sat, 5 Aug 2023 20:07:55 +0000 (20:07 +0000)]
hardclock(9): move setitimer(2) code into itimer_update()

- Move the setitimer(2) code responsible for updating the ITIMER_VIRTUAL
  and ITIMER_PROF timers from hardclock(9) into a new clock interrupt
  routine, itimer_update().  itimer_update() is periodic and runs at the
  same frequency as the hardclock.

  + Revise itimerdecr() to run within itimer_mtx instead of entering
    and leaving it.

- Each schedstate_percpu has its own itimer_update() handle, spc_itimer.
  A new scheduler flag, SPCF_ITIMER, indicates whether spc_itimer was
  started during the last mi_switch() and needs to be stopped during the
  next mi_switch() or sched_exit().

- A new per-process flag, PS_ITIMER, indicates whether ITIMER_VIRTUAL
  and/or ITIMER_PROF are running.  Checking the flag is easier than
  entering itimer_mtx to check process.ps_timer[].  The flag is set
  and cleared in a new helper function, process_reset_itimer_flag().

- In setitimer(), call need_resched() when the state of ITIMER_VIRTUAL
  or ITIMER_PROF is changed to force an mi_switch() and update
  spc_itimer.

claudio@ notes that ITIMER_PROF could be implemented as a high-res
timer using the thread's execution time as a guide for when to
interrupt the process and assert SIGPROF.  This would probably work
really well in single-threaded processes.  ITIMER_VIRTUAL would be
more difficult to make high-res, though, as you need to exclude time
spent in the kernel.

Tested on powerpc64 by gkoehler@.  With input from claudio@.

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

ok claudio@

15 months agoremove trailing comma in NAME;
jmc [Sat, 5 Aug 2023 18:27:55 +0000 (18:27 +0000)]
remove trailing comma in NAME;

15 months agoRemove the P_WSLEEP specific KASSERT(). Not only procs in state SSTOP
claudio [Sat, 5 Aug 2023 12:41:04 +0000 (12:41 +0000)]
Remove the P_WSLEEP specific KASSERT(). Not only procs in state SSTOP
can be added to the run queue but also procs in state SRUN. The latter
happens when schedcpu() kicks in before the proc had a chance to run.
Problem spotted by gkoehler@
OK cheloha@

15 months agoRemove empty file left behind in a revert during p2k17
tb [Sat, 5 Aug 2023 08:47:31 +0000 (08:47 +0000)]
Remove empty file left behind in a revert during p2k17

15 months agocpu_idle_{enter,leave} are no-ops on mips64, so just #define
guenther [Sat, 5 Aug 2023 05:46:36 +0000 (05:46 +0000)]
cpu_idle_{enter,leave} are no-ops on mips64, so just #define
away the calls

ok jca@

15 months agocpu_idle_{enter,leave} are no-ops on riscv64, so just #define
guenther [Sat, 5 Aug 2023 05:45:52 +0000 (05:45 +0000)]
cpu_idle_{enter,leave} are no-ops on riscv64, so just #define
away the calls

ok jca@

15 months agoInform 8bpp capability on 8bpp framebuffer in
aoyama [Sat, 5 Aug 2023 00:34:19 +0000 (00:34 +0000)]
Inform 8bpp capability on 8bpp framebuffer in
WSDISPLAYIO_GETSUPPORTEDDEPTH ioctl.

This is needed to use recent updated wsfb(4) driver in 8bpp mode.
We can use 1bpp X server on 8bpp framebuffer by 'startx -- -depth 1'.

Tested by me.

15 months agoConvert calls to ibuf_length() where it is clear that the ibuf is not
claudio [Fri, 4 Aug 2023 19:06:25 +0000 (19:06 +0000)]
Convert calls to ibuf_length() where it is clear that the ibuf is not
NULL to ibuf_size(). In some cases it is clear that the ibuf pointer
should just be checked for NULL since afterwards a new ibuf is allocated
in its place.
OK tb@

15 months agoRemove unused struct field vlan_stripping.
jan [Fri, 4 Aug 2023 10:58:27 +0000 (10:58 +0000)]
Remove unused struct field vlan_stripping.

pointed out by bluhm

ok bluhm@

15 months agoSync the supported hardware list with arm64.html.
fcambus [Fri, 4 Aug 2023 10:29:09 +0000 (10:29 +0000)]
Sync the supported hardware list with arm64.html.

15 months agodma-buf: fix an error pointer vs NULL bug
jsg [Fri, 4 Aug 2023 09:36:28 +0000 (09:36 +0000)]
dma-buf: fix an error pointer vs NULL bug

From Dan Carpenter
c3d576baa6c8f0b34750a0b6f9b12e9d64625512 in linux-6.1.y/6.1.43
00ae1491f970acc454be0df63f50942d94825860 in mainline linux

15 months agodrm_syncobj.c now uses dma_fence_allocate_private_stub() with an arg
jsg [Fri, 4 Aug 2023 09:31:20 +0000 (09:31 +0000)]
drm_syncobj.c now uses dma_fence_allocate_private_stub() with an arg

15 months agodma-buf: keep the signaling time of merged fences v3
jsg [Fri, 4 Aug 2023 09:30:48 +0000 (09:30 +0000)]
dma-buf: keep the signaling time of merged fences v3

From Christian Koenig
23acc2b850ba4dfdfe2700d728be3e27710260a1 in linux-6.1.y/6.1.43
f781f661e8c99b0cb34129f2e374234d61864e77 in mainline linux

15 months agodrm/amd/display: Write to correct dirty_rect
jsg [Fri, 4 Aug 2023 09:23:40 +0000 (09:23 +0000)]
drm/amd/display: Write to correct dirty_rect

From Benjamin Cheng
d701687c898e5358f29ca11bccdfc8f54129e69c in linux-6.1.y/6.1.43
751281c55579f0cb0e56c9797d4663f689909681 in mainline linux

15 months agodrm/amd/display: perform a bounds check before filling dirty rectangles
jsg [Fri, 4 Aug 2023 09:22:11 +0000 (09:22 +0000)]
drm/amd/display: perform a bounds check before filling dirty rectangles

From Hamza Mahfooz
d58fb94f24f89c833bd73d370b27b58867d78120 in linux-6.1.y/6.1.43
af22d6a869cc26b519bfdcd54293c53f2e491870 in mainline linux

15 months agodrm/amd/display: set per pipe dppclk to 0 when dpp is off
jsg [Fri, 4 Aug 2023 09:20:15 +0000 (09:20 +0000)]
drm/amd/display: set per pipe dppclk to 0 when dpp is off

From Dmytro Laktyushkin
f5e8f7a02c158afbfe7657e0358ee964978ee138 in linux-6.1.y/6.1.43
6609141c49df1b86fbad26a8643d4b4044f28b11 in mainline linux

15 months agoInstead of forcing a NUL into struct ctl_neighbor descr adjust the
claudio [Fri, 4 Aug 2023 09:20:12 +0000 (09:20 +0000)]
Instead of forcing a NUL into struct ctl_neighbor descr adjust the
peer matching code to only match at maximum sizeof(n->descr) bytes
using strncmp().
OK tb@

15 months agodrm/i915/dpt: Use shmem for dpt objects
jsg [Fri, 4 Aug 2023 09:18:11 +0000 (09:18 +0000)]
drm/i915/dpt: Use shmem for dpt objects

From Radhakrishna Sripada
507f70c06aa99d05fbb0f36de2be31ef1cf88497 in linux-6.1.y/6.1.43
3844ed5e78823eebb5f0f1edefc403310693d402 in mainline linux

15 months agodrm/amd/display: Unlock on error path in dm_handle_mst_sideband_msg_ready_event()
jsg [Fri, 4 Aug 2023 09:16:46 +0000 (09:16 +0000)]
drm/amd/display: Unlock on error path in dm_handle_mst_sideband_msg_ready_event()

From Dan Carpenter
e139cc2974b801f3f6e38efa047a7e3b7121fc8d in linux-6.1.y/6.1.43
38ac4e8385ffb275b1837986ca6c16f26ea028c5 in mainline linux

15 months agodrm/amd: Fix an error handling mistake in psp_sw_init()
jsg [Fri, 4 Aug 2023 09:15:07 +0000 (09:15 +0000)]
drm/amd: Fix an error handling mistake in psp_sw_init()

From Mario Limonciello
5c58d120bf81a1fe6cc05e640568c0da14042c09 in linux-6.1.y/6.1.43
c01aebeef3ce45f696ffa0a1303cea9b34babb45 in mainline linux

15 months agodrm/i915: Fix an error handling path in igt_write_huge()
jsg [Fri, 4 Aug 2023 09:13:44 +0000 (09:13 +0000)]
drm/i915: Fix an error handling path in igt_write_huge()

From Christophe JAILLET
a71cd15a8592482bc3adead423ec4ff4502f0a72 in linux-6.1.y/6.1.43
e354f67733115b4453268f61e6e072e9b1ea7a2f in mainline linux

15 months agodrm/amd/display: Prevent vtotal from being set to 0
jsg [Fri, 4 Aug 2023 09:12:01 +0000 (09:12 +0000)]
drm/amd/display: Prevent vtotal from being set to 0

From Daniel Miess
15c94c3151d9fa86294efb4c6618cae44530e49b in linux-6.1.y/6.1.43
2a9482e55968ed7368afaa9c2133404069117320 in mainline linux

15 months agodrm/amd/display: Fix possible underflow for displays with large vblank
jsg [Fri, 4 Aug 2023 09:10:24 +0000 (09:10 +0000)]
drm/amd/display: Fix possible underflow for displays with large vblank

From Daniel Miess
d5741133e6e2f304b40ca1da0e16f62af06f4d22 in linux-6.1.y/6.1.43
1a4bcdbea4319efeb26cc4b05be859a7867e02dc in mainline linux

15 months agoSync with userland libz
tb [Fri, 4 Aug 2023 09:09:52 +0000 (09:09 +0000)]
Sync with userland libz

15 months agoFix a couple of typos in a comment
tb [Fri, 4 Aug 2023 09:09:04 +0000 (09:09 +0000)]
Fix a couple of typos in a comment

from upstream

15 months agodrm/amd/display: update extended blank for dcn314 onwards
jsg [Fri, 4 Aug 2023 09:08:44 +0000 (09:08 +0000)]
drm/amd/display: update extended blank for dcn314 onwards

From Gabe Teeger
342ec1696d2dcc66e7d2905c5aa52e9c9e86d527 in linux-6.1.y/6.1.43
469a62938a45ef382c9cb7b9fec6c6c1fcd781c0 in mainline linux

15 months agodrm/amd/display: Add FAMS validation before trying to use it
jsg [Fri, 4 Aug 2023 09:05:41 +0000 (09:05 +0000)]
drm/amd/display: Add FAMS validation before trying to use it

From Rodrigo Siqueira
27931ea53ce59ff421c42c08d4ad3df4b632babe in linux-6.1.y/6.1.43
e3416e872f84086667df21daf166506fab97358d in mainline linux

15 months agodrm/amd/display: fix dc/core/dc.c kernel-doc
jsg [Fri, 4 Aug 2023 09:03:05 +0000 (09:03 +0000)]
drm/amd/display: fix dc/core/dc.c kernel-doc

From Randy Dunlap
6415d5de13f532297005ef100cefa92c80fe40db in linux-6.1.y/6.1.43
db4107e92a817502ad19fdd30250f87dcb6f6331 in mainline linux

15 months agodrm/amd/display: Rework comments on dc file
jsg [Fri, 4 Aug 2023 09:00:56 +0000 (09:00 +0000)]
drm/amd/display: Rework comments on dc file

From Rodrigo Siqueira
549f20581996835bae1d6567b2cc60ad0a5ef9cd in linux-6.1.y/6.1.43
e366f36958f60c431a7430c8c421c9db0ec6738d in mainline linux

15 months agodrm/ttm: never consider pinned BOs for eviction&swap
jsg [Fri, 4 Aug 2023 08:58:34 +0000 (08:58 +0000)]
drm/ttm: never consider pinned BOs for eviction&swap

From Christian Koenig
17e188e0feb008bab5f4b083083dff7cdc633ca1 in linux-6.1.y/6.1.43
a2848d08742c8e8494675892c02c0d22acbe3cf8 in mainline linux

15 months agodrm/ttm: Don't leak a resource on eviction error
jsg [Fri, 4 Aug 2023 08:57:11 +0000 (08:57 +0000)]
drm/ttm: Don't leak a resource on eviction error

From Thomas Hellstrom
e9c44738cb1f537b177cc1beabcf6913690460cd in linux-6.1.y/6.1.43
e8188c461ee015ba0b9ab2fc82dbd5ebca5a5532 in mainline linux

15 months agodrm/ttm: Don't print error message if eviction was interrupted
jsg [Fri, 4 Aug 2023 08:55:47 +0000 (08:55 +0000)]
drm/ttm: Don't print error message if eviction was interrupted

From Thomas Hellstrom
3a8f9b8ccf2b34623cd7264cd78c80f8806959d5 in linux-6.1.y/6.1.43
8ab3b0663e279ab550bc2c0b5d602960e8b94e02 in mainline linux

15 months agodrm/amd/display: Set minimum requirement for using PSR-SU on Phoenix
jsg [Fri, 4 Aug 2023 08:54:09 +0000 (08:54 +0000)]
drm/amd/display: Set minimum requirement for using PSR-SU on Phoenix

From Mario Limonciello
76fcfc6ae3a64033626647bae7b6d1f2d8bea72a in linux-6.1.y/6.1.43
cd2e31a9ab93d13c412a36c6e26811e0f830985b in mainline linux

15 months agodrm/amd/display: Set minimum requirement for using PSR-SU on Rembrandt
jsg [Fri, 4 Aug 2023 08:52:17 +0000 (08:52 +0000)]
drm/amd/display: Set minimum requirement for using PSR-SU on Rembrandt

From Mario Limonciello
f8b61a2c29fc70f64daad698cf09c1f79a0e39f9 in linux-6.1.y/6.1.43
c35b6ea8f2ecfa9d775530b70d4e727869099a9c in mainline linux

15 months agodrm/amd/display: Update correct DCN314 register header
jsg [Fri, 4 Aug 2023 08:49:46 +0000 (08:49 +0000)]
drm/amd/display: Update correct DCN314 register header

From Cruise Hung
41c666e2b7515c551940ae5ba0437bd2e17fbe85 in linux-6.1.y/6.1.43
268182606f26434c5d3ebd0e86efcb0418dec487 in mainline linux

15 months agodrm/amd/display: fix dcn315 single stream crb allocation
jsg [Fri, 4 Aug 2023 08:44:44 +0000 (08:44 +0000)]
drm/amd/display: fix dcn315 single stream crb allocation

From Dmytro Laktyushkin
8f0582fb6d0edf3581b1ece0cc186ab82fb083b4 in linux-6.1.y/6.1.43
49f26218c344741cb3eaa740b1e44e960551a87f in mainline linux

15 months agodrm/amd/display: add pixel rate based CRB allocation support
jsg [Fri, 4 Aug 2023 08:43:06 +0000 (08:43 +0000)]
drm/amd/display: add pixel rate based CRB allocation support

From Dmytro Laktyushkin
38fa05cad9df113fb31fabc0b88f5ca681235bd2 in linux-6.1.y/6.1.43
9ba90d760e9354c124fa9bbea08017d96699a82c in mainline linux

15 months agodrm/amd/display: fix unbounded requesting for high pixel rate modes on dcn315
jsg [Fri, 4 Aug 2023 08:40:56 +0000 (08:40 +0000)]
drm/amd/display: fix unbounded requesting for high pixel rate modes on dcn315

From Dmytro Laktyushkin
ad8c20954406491a8280d0a442ac4bb9ea9e674e in linux-6.1.y/6.1.43
655435df0936ce2fda0d5ced7e50101179a3acfd in mainline linux

15 months agodrm/amd/display: use low clocks for no plane configs
jsg [Fri, 4 Aug 2023 08:39:01 +0000 (08:39 +0000)]
drm/amd/display: use low clocks for no plane configs

From Dmytro Laktyushkin
acba20a5b2c80385110efdcec00dcefd041b120f in linux-6.1.y/6.1.43
2641c7b7808191cba25ba28b82bb73ca294924cc in mainline linux

15 months agodrm/amd/display: add ODM case when looking for first split pipe
jsg [Fri, 4 Aug 2023 08:36:52 +0000 (08:36 +0000)]
drm/amd/display: add ODM case when looking for first split pipe

From Samson Tam
8d515d39d8005981479a93fd6bee2649c59f0b1b in linux-6.1.y/6.1.43
59de751e3845d699e02dc4da47322b92d83a41e2 in mainline linux

15 months agodrm/amd/display: Use min transition for all SubVP plane add/remove
jsg [Fri, 4 Aug 2023 08:33:41 +0000 (08:33 +0000)]
drm/amd/display: Use min transition for all SubVP plane add/remove

From Alvin Lee
3a88351318bb70f0bc60153d8d80d642fb051a86 in linux-6.1.y/6.1.43
e4c1b01bc35b04e15782608165aa85b9e1724f7b in mainline linux

15 months agodrm/amd/display: Include surface of unaffected streams
jsg [Fri, 4 Aug 2023 08:31:53 +0000 (08:31 +0000)]
drm/amd/display: Include surface of unaffected streams

From Rodrigo Siqueira
a5397c85f0b89ac4138809ff5d537b9326730d43 in linux-6.1.y/6.1.43
f6ae69f49fcf697b6ffa93d58eb3746897f61cf8 in mainline linux

15 months agodrm/amd/display: Copy DC context in the commit streams
jsg [Fri, 4 Aug 2023 08:29:53 +0000 (08:29 +0000)]
drm/amd/display: Copy DC context in the commit streams

From Rodrigo Siqueira
d5b3e4cf9942039765ee0b909bd3f913479481cb in linux-6.1.y/6.1.43
0e986cea0347902b2c72b09c8fe9c0f30d7decb4 in mainline linux

15 months agodrm/amd/display: Enable new commit sequence only for DCN32x
jsg [Fri, 4 Aug 2023 08:27:42 +0000 (08:27 +0000)]
drm/amd/display: Enable new commit sequence only for DCN32x

From Rodrigo Siqueira
4efb2d22003f51cf188b68b2f2c5980c39eb2e22 in linux-6.1.y/6.1.43
7b36f4d18e3e4941d12fe027ad6ad6123c257027 in mainline linux

15 months agodrm/amd/display: Rework context change check
jsg [Fri, 4 Aug 2023 08:25:37 +0000 (08:25 +0000)]
drm/amd/display: Rework context change check

From Rodrigo Siqueira
bc2c7003888b4311e3bcc392326279fc97911602 in linux-6.1.y/6.1.43
10fdb0a11c555e0d6f7698d2874581d06e99ee71 in mainline linux

15 months agodrm/amd/display: Check if link state is valid
jsg [Fri, 4 Aug 2023 08:24:05 +0000 (08:24 +0000)]
drm/amd/display: Check if link state is valid

From Rodrigo Siqueira
810329d3d41890e49d75cde006bf3ddf1ccebb9a in linux-6.1.y/6.1.43
03ce7b387e8b0f4a1dc97a878545bdf7c7f23251 in mainline linux

15 months agodrm/amd/display: add FB_DAMAGE_CLIPS support
jsg [Fri, 4 Aug 2023 08:22:27 +0000 (08:22 +0000)]
drm/amd/display: add FB_DAMAGE_CLIPS support

From Hamza Mahfooz
f1edb2f58adb7113b59de7453025d096919a892e in linux-6.1.y/6.1.43
30ebe41582d1ea5a7de990319f9e593dad4886f7 in mainline linux

15 months agodrm/amd: Align SMU11 SMU_MSG_OverridePcieParameters implementation with SMU13
jsg [Fri, 4 Aug 2023 08:20:08 +0000 (08:20 +0000)]
drm/amd: Align SMU11 SMU_MSG_OverridePcieParameters implementation with SMU13

From Mario Limonciello
6e385845eea187c573949e31e21d6934af1f3415 in linux-6.1.y/6.1.43
e701156ccc6c7a5f104a968dda74cd6434178712 in mainline linux

15 months agodrm/amd: Move helper for dynamic speed switch check out of smu13
jsg [Fri, 4 Aug 2023 08:16:55 +0000 (08:16 +0000)]
drm/amd: Move helper for dynamic speed switch check out of smu13

From Mario Limonciello
32631ac27c914e4de8b37987b282e9799f33d8dc in linux-6.1.y/6.1.43
188623076d0f1a500583d392b6187056bf7cc71a in mainline linux

15 months agodrm/amd/display: Keep PHY active for dp config
jsg [Fri, 4 Aug 2023 08:13:07 +0000 (08:13 +0000)]
drm/amd/display: Keep PHY active for dp config

From Agustin Gutierrez
a9174f0d7addf4c1c9eddef87d4433b7706e77b7 in linux-6.1.y/6.1.43
2b02d746c1818baf741f4eeeff9b97ab4b81e1cf in mainline linux

15 months agoApply ConnectTimeout to multiplexing local socket connections. If the
dtucker [Fri, 4 Aug 2023 06:32:40 +0000 (06:32 +0000)]
Apply ConnectTimeout to multiplexing local socket connections.  If the
multiplex socket exists but the connection times out, ssh will fall back
to a direct connection the same way it would if the socket did not exist
at all.  ok djm@

15 months agoMove the ENGINE_new() prototype a line down
tb [Fri, 4 Aug 2023 05:44:51 +0000 (05:44 +0000)]
Move the ENGINE_new() prototype a line down

15 months agoLink new ccs test to build
tb [Thu, 3 Aug 2023 20:13:12 +0000 (20:13 +0000)]
Link new ccs test to build

Exception needed since the test expects an unexpected_message alert, while
we throw a decode_error.

15 months agoEnable vlan stripping of LRO packets in ix(4)
jan [Thu, 3 Aug 2023 18:56:32 +0000 (18:56 +0000)]
Enable vlan stripping of LRO packets in ix(4)

tested by bluhm

ok bluhm@

15 months agoMake the bn_rand_interval() API a bit more ergonomic
tb [Thu, 3 Aug 2023 18:53:55 +0000 (18:53 +0000)]
Make the bn_rand_interval() API a bit more ergonomic

Provide bn_rand_in_range() which is a slightly tweaked version of what was
previously called bn_rand_range().

The way bn_rand_range() is called in libcrypto, the lower bound is always
expressible as a word. In fact, most of the time it is 1, the DH code uses
a 2, the MR tests in BPSW use 3 and an exceptinally high number appears in
the Tonelli-Shanks implementation where we use 32. Converting these lower
bounds to BIGNUMs on the call site is annoying so let bn_rand_interval()
do that internally and route that through bn_rand_in_range(). This way we
can avoid using BN_sub_word().

Adjust the bn_isqrt() test to use bn_rand_in_range() since that's the
only caller that uses actual BIGNUMs as lower bounds.

ok jsing

15 months agoRetire the bn_rand_interval() test
tb [Thu, 3 Aug 2023 18:44:31 +0000 (18:44 +0000)]
Retire the bn_rand_interval() test

This test was never particularly useful. An upcoming API change for
the internal bn_rand_interval() API would require some adjustments.
It's not worth it.

15 months agoadd extract example and reorder flags on other examples
aisha [Thu, 3 Aug 2023 18:17:54 +0000 (18:17 +0000)]
add extract example and reorder flags on other examples

comments sthen@ and Peter J. Philipp <pjp AT delphinusdns DOT org>
ok jmc@

15 months agoRemove unused sk/lh macros
tb [Thu, 3 Aug 2023 16:32:15 +0000 (16:32 +0000)]
Remove unused sk/lh macros

ok jsing miod

15 months agoRemove the per-cpu loadavg calculation.
claudio [Thu, 3 Aug 2023 16:12:08 +0000 (16:12 +0000)]
Remove the per-cpu loadavg calculation.
The current scheduler useage is highly questionable and probably not helpful.
OK kettenis@ cheloha@ deraadt@

15 months agoMark the exponential constants for load avarage calculation as const.
claudio [Thu, 3 Aug 2023 16:08:12 +0000 (16:08 +0000)]
Mark the exponential constants for load avarage calculation as const.
OK cheloha@

15 months agoMove solock() down to sosetopt(). A part of standalone sblock() work.
mvs [Thu, 3 Aug 2023 09:49:08 +0000 (09:49 +0000)]
Move solock() down to sosetopt(). A part of standalone sblock() work.
This movement required because buffers related SO_SND* and SO_RCV*
socket options should be protected with sblock(). However, standalone
sblock() has different lock order with solock() and `so_snd' and
`so_rcv' buffers. At least sblock() for `so_snd' buffer will always be
taken before solock() in the sosend() path.

The (*pr_ctloutput)() call was removed from the SOL_SOCKET level 'else'
branch. Except the SO_RTABLE case where it handled in the special way,
this is null op call.

For SO_SND* and SO_RCV* cases solock() will be replaced by sblock() in
the future.

Feedback from bluhm

Tested by bluhm naddy

ok bluhm

15 months agoadd EXIT STATUS section with information for the exec subcommand
aisha [Wed, 2 Aug 2023 23:34:13 +0000 (23:34 +0000)]
add EXIT STATUS section with information for the exec subcommand

patch by Matthew Martin <phy1729 AT gmail DOT com>

15 months agoCheckHostIP has defaulted to 'no' for a while; make the commented-
djm [Wed, 2 Aug 2023 23:04:38 +0000 (23:04 +0000)]
CheckHostIP has defaulted to 'no' for a while; make the commented-
out config option match. From Ed Maste

15 months agoSet a low water mark on scsi_xfer_pool and prime the pool. This way there
kettenis [Wed, 2 Aug 2023 19:58:52 +0000 (19:58 +0000)]
Set a low water mark on scsi_xfer_pool and prime the pool.  This way there
will always be some scsi_xfer structures around.  Hopefully that means the
pagedaemon can actually write out pages to swap if we're out of physical
memory.

ok krw@

15 months agoMinor changes to reduce differences between vt100 and sun emulations. NFCI
miod [Wed, 2 Aug 2023 19:20:19 +0000 (19:20 +0000)]
Minor changes to reduce differences between vt100 and sun emulations. NFCI

15 months agouvm_loadav: don't recompute schedstate_percpu.spc_nrun
cheloha [Wed, 2 Aug 2023 13:54:45 +0000 (13:54 +0000)]
uvm_loadav: don't recompute schedstate_percpu.spc_nrun

We track the nrun value in schedstate_percpu.spc_nrun.  There is no
reason to walk the allproc list to recompute it.

Prompted by claudio@.

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

ok claudio@

15 months agoadd axp313a support
uaa [Wed, 2 Aug 2023 11:52:18 +0000 (11:52 +0000)]
add axp313a support

ok kettenis@

15 months agodon't change the end marker in sg_set_page()
jsg [Wed, 2 Aug 2023 11:03:17 +0000 (11:03 +0000)]
don't change the end marker in sg_set_page()

Prompted by bad memory accesses seen with page flipping on alder lake
and raptor lake.  Starting xfce reliably caused problems.

reported by kn@ and yasuoka@, both confirmed this fixes it
ok kn@ kettenis@

15 months agoMore whitespace fixes from knfmt
tb [Wed, 2 Aug 2023 09:25:36 +0000 (09:25 +0000)]
More whitespace fixes from knfmt

15 months agoRemove unused vm_map_upgrade() & vm_map_downgrade().
mpi [Wed, 2 Aug 2023 09:19:47 +0000 (09:19 +0000)]
Remove unused vm_map_upgrade() & vm_map_downgrade().

Upgrade/downgrade operations on a `vmmaplk' are no longer necessary since
vm_map_busy() completely unlocks it (r1.318 of uvm/uvm_map.c).

ok kettenis@

15 months agoSimplify disk encryption question
kn [Wed, 2 Aug 2023 08:51:16 +0000 (08:51 +0000)]
Simplify disk encryption question

The yes/no question was mistaken as actual passphrase prompt and/or details
in parentheses were taken as option list (despite the lack of commas).

Unmention the only disk encryption mechanism we support and simply ask
whether to protect the root disk with a passphrase or not (still yes/no).

Prodded by solene, feedback from many
Wording from naddy, similar wording from sthen
OK naddy sthen deraadt afresh1

15 months agoRemove extraneous parentheses and fix weird whitespace.
tb [Wed, 2 Aug 2023 08:50:02 +0000 (08:50 +0000)]
Remove extraneous parentheses and fix weird whitespace.

15 months agoDrop the _ex from BN_BLINDING_{convert,invert}_ex()
tb [Wed, 2 Aug 2023 08:44:38 +0000 (08:44 +0000)]
Drop the _ex from BN_BLINDING_{convert,invert}_ex()

15 months agoRemove the unused BN_BLINDING_{convert,invert}()
tb [Wed, 2 Aug 2023 08:39:04 +0000 (08:39 +0000)]
Remove the unused BN_BLINDING_{convert,invert}()

ok jsing

15 months agoMake BN_BLINDING_{new,update}() static in bn_blind.c
tb [Wed, 2 Aug 2023 08:34:42 +0000 (08:34 +0000)]
Make BN_BLINDING_{new,update}() static in bn_blind.c

ok jsing

15 months agoRemove the unused flags member of BN_BLINDING
tb [Wed, 2 Aug 2023 08:31:12 +0000 (08:31 +0000)]
Remove the unused flags member of BN_BLINDING

Nothing sets this, so remove it along with BN_BLINDING_NO_{UPDATE,RECREATE}
and some checks that are always true.

ok jsing

15 months agoRemove the unused flags accessors for BN_BLINDING
tb [Wed, 2 Aug 2023 08:26:55 +0000 (08:26 +0000)]
Remove the unused flags accessors for BN_BLINDING

ok jsing

15 months agoRemove a 16 year old confusing lie
tb [Wed, 2 Aug 2023 08:02:56 +0000 (08:02 +0000)]
Remove a 16 year old confusing lie

The mod member of BN_BLINDING hasn't been /* just a reference */ since
the branch prediction mitigations in OpenSSL bd31fb21 from March 2007.

15 months agoRevert r1.31 - contrary to what I wrote, scaled versions of ld.d and st.d
miod [Wed, 2 Aug 2023 06:14:46 +0000 (06:14 +0000)]
Revert r1.31 - contrary to what I wrote, scaled versions of ld.d and st.d
are 64-bit loads and stores and may hit aligned-to-32-bits-but-not-64-bits
addresses.

15 months agoAdd (limited) support for setting PPL0 on JH7110.
kettenis [Tue, 1 Aug 2023 18:20:07 +0000 (18:20 +0000)]
Add (limited) support for setting PPL0 on JH7110.

ok jsing@

15 months agoRemove unused prototype
tb [Tue, 1 Aug 2023 17:19:49 +0000 (17:19 +0000)]
Remove unused prototype

15 months agoThe swapper left the building long time ago. Now with the issue in
claudio [Tue, 1 Aug 2023 14:15:44 +0000 (14:15 +0000)]
The swapper left the building long time ago. Now with the issue in
inteldrm fixed we should be able to remove this unneeded wakeup for good.
OK mvs@ cheloha@ deraadt@

15 months agoremove unnecessary if statement. github PR#422 from eyalasulin999,
dtucker [Tue, 1 Aug 2023 08:15:04 +0000 (08:15 +0000)]
remove unnecessary if statement.  github PR#422 from eyalasulin999,
ok djm@

15 months agoDon't force early wrap around for jiffies.
claudio [Tue, 1 Aug 2023 07:57:55 +0000 (07:57 +0000)]
Don't force early wrap around for jiffies.

In inteldrm the function intel_dp_wait_source_oui() can be called before
last_oui_write is set and so the code requires a positive initial jiffies
value. On linux this is the case for 64bit systems (but not for 32bit) and
because of this idiosyncracy this bug was introduced in upstream intel code.
Instead of adding another OpenBSD specific quirk to drm code alter our
jiffies initalisation.

Systems affected are at least "ALDERLAKE_P, gen 12" and "TIGERLAKE, gen 12"
Suggested fix by kettenis@
OK jsg@

15 months agoImplement time_after() and firends as static inline functions.
claudio [Tue, 1 Aug 2023 06:40:18 +0000 (06:40 +0000)]
Implement time_after() and firends as static inline functions.
The previous macros were too optimistic about types and also did a signed
subtraction that could overflow.
OK miod@ kettenis@ deraadt@ jsg@