summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-08-07sec(4) to support route-based ipsec vpns.David Gwynne
committing it now so jmc@ gets commits for any fixes he makes.
2023-08-07744c rev ce is Radeon RX 7900 GREJonathan Gray
found in AMD Software: Adrenalin Edition 23.7.2
2023-08-07wire sec(4) into the kernel config.David Gwynne
this makes #include "sec.h" and #if NSEC > 0 work in kernel code.
2023-08-07add sec(4) to support route based ipsec vpns.David Gwynne
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@
2023-08-07start adding support for route-based ipsec vpns.David Gwynne
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@
2023-08-06Prefer the POSIX standard st_*tim struct timespec members over thePhilip Guenther
older BSD st_*timespec names. ok millert@
2023-08-06Apply rev 1.29 from NetBSD:Philip Guenther
----- Don't printf time_t with %d; fixes PR 44128 from yamt. With this change it successfully prints mtimes after 2038. ----- ok millert@
2023-08-06regenJonathan Gray
2023-08-06add another Navi 33 device idJonathan Gray
7480 rev 00 is Radeon Pro W7600 7489 rev 00 is Radeon Pro W7500 found in AMD Software: PRO Edition 23.Q3 W7000 Series
2023-08-06Add acpi_softc == NULL checks and return ENXIO instead of crashing onTobias Heider
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@
2023-08-05hardclock(9): move setitimer(2) code into itimer_update()Scott Soule Cheloha
- 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@
2023-08-05remove trailing comma in NAME;Jason McIntyre
2023-08-05Remove the P_WSLEEP specific KASSERT(). Not only procs in state SSTOPClaudio Jeker
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@
2023-08-05Remove empty file left behind in a revert during p2k17Theo Buehler
2023-08-05cpu_idle_{enter,leave} are no-ops on mips64, so just #definePhilip Guenther
away the calls ok jca@
2023-08-05cpu_idle_{enter,leave} are no-ops on riscv64, so just #definePhilip Guenther
away the calls ok jca@
2023-08-05Inform 8bpp capability on 8bpp framebuffer inKenji Aoyama
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.
2023-08-04Convert calls to ibuf_length() where it is clear that the ibuf is notClaudio Jeker
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@
2023-08-04Remove unused struct field vlan_stripping.Jan Klemkow
pointed out by bluhm ok bluhm@
2023-08-04Sync the supported hardware list with arm64.html.Frederic Cambus
2023-08-04dma-buf: fix an error pointer vs NULL bugJonathan Gray
From Dan Carpenter c3d576baa6c8f0b34750a0b6f9b12e9d64625512 in linux-6.1.y/6.1.43 00ae1491f970acc454be0df63f50942d94825860 in mainline linux
2023-08-04drm_syncobj.c now uses dma_fence_allocate_private_stub() with an argJonathan Gray
2023-08-04dma-buf: keep the signaling time of merged fences v3Jonathan Gray
From Christian Koenig 23acc2b850ba4dfdfe2700d728be3e27710260a1 in linux-6.1.y/6.1.43 f781f661e8c99b0cb34129f2e374234d61864e77 in mainline linux
2023-08-04drm/amd/display: Write to correct dirty_rectJonathan Gray
From Benjamin Cheng d701687c898e5358f29ca11bccdfc8f54129e69c in linux-6.1.y/6.1.43 751281c55579f0cb0e56c9797d4663f689909681 in mainline linux
2023-08-04drm/amd/display: perform a bounds check before filling dirty rectanglesJonathan Gray
From Hamza Mahfooz d58fb94f24f89c833bd73d370b27b58867d78120 in linux-6.1.y/6.1.43 af22d6a869cc26b519bfdcd54293c53f2e491870 in mainline linux
2023-08-04drm/amd/display: set per pipe dppclk to 0 when dpp is offJonathan Gray
From Dmytro Laktyushkin f5e8f7a02c158afbfe7657e0358ee964978ee138 in linux-6.1.y/6.1.43 6609141c49df1b86fbad26a8643d4b4044f28b11 in mainline linux
2023-08-04Instead of forcing a NUL into struct ctl_neighbor descr adjust theClaudio Jeker
peer matching code to only match at maximum sizeof(n->descr) bytes using strncmp(). OK tb@
2023-08-04drm/i915/dpt: Use shmem for dpt objectsJonathan Gray
From Radhakrishna Sripada 507f70c06aa99d05fbb0f36de2be31ef1cf88497 in linux-6.1.y/6.1.43 3844ed5e78823eebb5f0f1edefc403310693d402 in mainline linux
2023-08-04drm/amd/display: Unlock on error path in ↵Jonathan Gray
dm_handle_mst_sideband_msg_ready_event() From Dan Carpenter e139cc2974b801f3f6e38efa047a7e3b7121fc8d in linux-6.1.y/6.1.43 38ac4e8385ffb275b1837986ca6c16f26ea028c5 in mainline linux
2023-08-04drm/amd: Fix an error handling mistake in psp_sw_init()Jonathan Gray
From Mario Limonciello 5c58d120bf81a1fe6cc05e640568c0da14042c09 in linux-6.1.y/6.1.43 c01aebeef3ce45f696ffa0a1303cea9b34babb45 in mainline linux
2023-08-04drm/i915: Fix an error handling path in igt_write_huge()Jonathan Gray
From Christophe JAILLET a71cd15a8592482bc3adead423ec4ff4502f0a72 in linux-6.1.y/6.1.43 e354f67733115b4453268f61e6e072e9b1ea7a2f in mainline linux
2023-08-04drm/amd/display: Prevent vtotal from being set to 0Jonathan Gray
From Daniel Miess 15c94c3151d9fa86294efb4c6618cae44530e49b in linux-6.1.y/6.1.43 2a9482e55968ed7368afaa9c2133404069117320 in mainline linux
2023-08-04drm/amd/display: Fix possible underflow for displays with large vblankJonathan Gray
From Daniel Miess d5741133e6e2f304b40ca1da0e16f62af06f4d22 in linux-6.1.y/6.1.43 1a4bcdbea4319efeb26cc4b05be859a7867e02dc in mainline linux
2023-08-04Sync with userland libzTheo Buehler
2023-08-04Fix a couple of typos in a commentTheo Buehler
from upstream
2023-08-04drm/amd/display: update extended blank for dcn314 onwardsJonathan Gray
From Gabe Teeger 342ec1696d2dcc66e7d2905c5aa52e9c9e86d527 in linux-6.1.y/6.1.43 469a62938a45ef382c9cb7b9fec6c6c1fcd781c0 in mainline linux
2023-08-04drm/amd/display: Add FAMS validation before trying to use itJonathan Gray
From Rodrigo Siqueira 27931ea53ce59ff421c42c08d4ad3df4b632babe in linux-6.1.y/6.1.43 e3416e872f84086667df21daf166506fab97358d in mainline linux
2023-08-04drm/amd/display: fix dc/core/dc.c kernel-docJonathan Gray
From Randy Dunlap 6415d5de13f532297005ef100cefa92c80fe40db in linux-6.1.y/6.1.43 db4107e92a817502ad19fdd30250f87dcb6f6331 in mainline linux
2023-08-04drm/amd/display: Rework comments on dc fileJonathan Gray
From Rodrigo Siqueira 549f20581996835bae1d6567b2cc60ad0a5ef9cd in linux-6.1.y/6.1.43 e366f36958f60c431a7430c8c421c9db0ec6738d in mainline linux
2023-08-04drm/ttm: never consider pinned BOs for eviction&swapJonathan Gray
From Christian Koenig 17e188e0feb008bab5f4b083083dff7cdc633ca1 in linux-6.1.y/6.1.43 a2848d08742c8e8494675892c02c0d22acbe3cf8 in mainline linux
2023-08-04drm/ttm: Don't leak a resource on eviction errorJonathan Gray
From Thomas Hellstrom e9c44738cb1f537b177cc1beabcf6913690460cd in linux-6.1.y/6.1.43 e8188c461ee015ba0b9ab2fc82dbd5ebca5a5532 in mainline linux
2023-08-04drm/ttm: Don't print error message if eviction was interruptedJonathan Gray
From Thomas Hellstrom 3a8f9b8ccf2b34623cd7264cd78c80f8806959d5 in linux-6.1.y/6.1.43 8ab3b0663e279ab550bc2c0b5d602960e8b94e02 in mainline linux
2023-08-04drm/amd/display: Set minimum requirement for using PSR-SU on PhoenixJonathan Gray
From Mario Limonciello 76fcfc6ae3a64033626647bae7b6d1f2d8bea72a in linux-6.1.y/6.1.43 cd2e31a9ab93d13c412a36c6e26811e0f830985b in mainline linux
2023-08-04drm/amd/display: Set minimum requirement for using PSR-SU on RembrandtJonathan Gray
From Mario Limonciello f8b61a2c29fc70f64daad698cf09c1f79a0e39f9 in linux-6.1.y/6.1.43 c35b6ea8f2ecfa9d775530b70d4e727869099a9c in mainline linux
2023-08-04drm/amd/display: Update correct DCN314 register headerJonathan Gray
From Cruise Hung 41c666e2b7515c551940ae5ba0437bd2e17fbe85 in linux-6.1.y/6.1.43 268182606f26434c5d3ebd0e86efcb0418dec487 in mainline linux
2023-08-04drm/amd/display: fix dcn315 single stream crb allocationJonathan Gray
From Dmytro Laktyushkin 8f0582fb6d0edf3581b1ece0cc186ab82fb083b4 in linux-6.1.y/6.1.43 49f26218c344741cb3eaa740b1e44e960551a87f in mainline linux
2023-08-04drm/amd/display: add pixel rate based CRB allocation supportJonathan Gray
From Dmytro Laktyushkin 38fa05cad9df113fb31fabc0b88f5ca681235bd2 in linux-6.1.y/6.1.43 9ba90d760e9354c124fa9bbea08017d96699a82c in mainline linux
2023-08-04drm/amd/display: fix unbounded requesting for high pixel rate modes on dcn315Jonathan Gray
From Dmytro Laktyushkin ad8c20954406491a8280d0a442ac4bb9ea9e674e in linux-6.1.y/6.1.43 655435df0936ce2fda0d5ced7e50101179a3acfd in mainline linux
2023-08-04drm/amd/display: use low clocks for no plane configsJonathan Gray
From Dmytro Laktyushkin acba20a5b2c80385110efdcec00dcefd041b120f in linux-6.1.y/6.1.43 2641c7b7808191cba25ba28b82bb73ca294924cc in mainline linux
2023-08-04drm/amd/display: add ODM case when looking for first split pipeJonathan Gray
From Samson Tam 8d515d39d8005981479a93fd6bee2649c59f0b1b in linux-6.1.y/6.1.43 59de751e3845d699e02dc4da47322b92d83a41e2 in mainline linux