1
0
mirror of https://github.com/openbsd/src.git synced 2026-04-22 05:05:03 +00:00
Commit Graph

243802 Commits

Author SHA1 Message Date
jsg
171185e673 drm/i915: Order OP vs. timeout correctly in __wait_for()
From Ville Syrjala
859b14e0be9e7b0f26630510d337413c7747be51 in linux-6.18.y/6.18.21
6ad2a661ff0d3d94884947d2a593311ba46d34c2 in mainline linux
2026-04-07 09:57:46 +00:00
jsg
48d7b51e7a drm/i915/dp_tunnel: Fix error handling when clearing stream BW in atomic state
From Imre Deak
8581466b827fdf0300a3e2e93900ddefd8240053 in linux-6.18.y/6.18.21
77fcf58df15edcf3f5b5421f24814fb72796def9 in mainline linux
2026-04-07 09:54:43 +00:00
jsg
d9c03210a3 drm/amd/display: Fix drm_edid leak in amdgpu_dm
From Alex Hung
eb95595194e4755b62360aa821f40a79b0953105 in linux-6.18.y/6.18.21
37c2caa167b0b8aca4f74c32404c5288b876a2a3 in mainline linux
2026-04-07 09:52:19 +00:00
jsg
72a6c7ed42 drm/amdgpu: prevent immediate PASID reuse case
From Eric Huang
51ccaf0e30c303149244c34820def83d74c86288 in linux-6.18.y/6.18.21
14b81abe7bdc25f8097906fc2f91276ffedb2d26 in mainline linux

This requires a further change to avoid a sleeping alloc while
holding a mutex.  Not yet in 6.18.y

drm/amdgpu: fix the idr allocation flags

From Prike Liang
62f553d60a801384336f5867967c26ddf3b17038 in mainline linux
2026-04-07 09:50:17 +00:00
jsg
86b8b6dfa4 drm/amdgpu: Fix fence put before wait in amdgpu_amdkfd_submit_ib
From Srinivasan Shanmugam
39820864eacd886f1a6f817414fb8f9ea3e9a2b4 in linux-6.18.y/6.18.21
7150850146ebfa4ca998f653f264b8df6f7f85be in mainline linux
2026-04-07 09:38:36 +00:00
jsg
8237b8a7cb drm/amd/display: Do not skip unrelated mode changes in DSC validation
From Yussuf Khalil
8a5edc97fd9c6415ff2eff872748439a97e3c3d8 in linux-6.18.y/6.18.21
aed3d041ab061ec8a64f50a3edda0f4db7280025 in mainline linux
2026-04-07 09:36:22 +00:00
jsg
afebcd8b6c drm/i915/gmbus: fix spurious timeout on 512-byte burst reads
From Samasth Norway Ananda
842aa6103b6f286e2bcee395b38807d3ae0d0b26 in linux-6.18.y/6.18.21
08441f10f4dc09fdeb64529953ac308abc79dd38 in mainline linux
2026-04-07 09:32:15 +00:00
jsg
f93360f79a drm/amdgpu: fix gpu idle power consumption issue for gfx v12
From Yang Wang
ad696758a45ca0c70fa60b7fd2f921edec7fc600 in linux-6.18.y/6.18.21
a6571045cf06c4aa749b4801382ae96650e2f0e1 in mainline linux
2026-04-07 09:30:23 +00:00
jsg
82bd097ce6 drm/ttm/tests: Fix build failure on PREEMPT_RT
From Maarten Lankhorst
be0c2255d717c8c548cba3b78c6d3c33ecd1feb8 in linux-6.18.y/6.18.21
a58d487fb1a52579d3c37544ea371da78ed70c45 in mainline linux
2026-04-07 09:27:59 +00:00
jsg
321c78384e add idr_alloc_cyclic() for 6.18.21 drm 2026-04-07 09:11:15 +00:00
jsg
4d83098c9f add DEFINE_IDR() for 6.18.21 drm 2026-04-07 09:04:16 +00:00
kettenis
1b32fd23ab Add PCIe PHY support.
ok mlarkin@, deraadt@
2026-04-07 08:29:30 +00:00
kettenis
6216598462 Add a few more PCIe related clocks and resets.
ok mlarkin@, deraadt@
2026-04-07 08:28:34 +00:00
kettenis
d8bd1b9877 Add ASPM bits for PCIe link capabilities register.
ok mlarkin@, deraadt@
2026-04-07 08:20:40 +00:00
djm
c0d9e079f3 want stdint.h here now that we've switched from u_intXX_t -> uintXX_t 2026-04-07 07:40:40 +00:00
bcook
f96d31f38e fix timer emulation-related VM hangs
This fixes state machine issues that resulted in hangs with OpenBSD-i386 VMs
when using the i8254 hardware timecounter with vmm. This also manifested in
incorrect i8254 calibration (wrong CPU speed in dmesg).

tested with Debian 12 amd64, i386
Apine Linux 3.23 x86 (with 4GB memory), x86_64
OpenBSD 7.9 beta amd64, i386

ok mlarkin@
2026-04-07 03:21:10 +00:00
deraadt
75447644f5 sycn 2026-04-07 03:20:31 +00:00
jsg
c0c2c6a525 match VT8261 SATA and another VT8251 SATA
from Andrius V
2026-04-07 00:15:41 +00:00
jsg
78d83baf11 match more VIA ISA bridges when determining IDE DMA modes
from Andrius V
2026-04-07 00:10:24 +00:00
jsg
d11a7860a0 regen 2026-04-07 00:00:13 +00:00
jsg
3f9a7b4c15 add more VIA SATA and ISA ids
from Andrius V
2026-04-06 23:59:43 +00:00
kettenis
2f2ccc0b8b smtpmic(4) 2026-04-06 21:49:50 +00:00
kettenis
f5c52f3440 Add smtpmic(4), a driver for the SpacemiT P1 PMIC.
ok jca@, mlarkin@
2026-04-06 19:48:07 +00:00
mlarkin
90f2f56f2c remove incomplete/never finished loongson hibernate code
This was started many years ago and never finished. Ongoing work in hibernate
is complicated by having this old code present.

ok miod
2026-04-06 19:34:08 +00:00
kettenis
08411904fb Sadly the SpacemiT K1 has peripherals than can only do 32-bit DMA.
ok jca@, mlarkin@, deraadt@
2026-04-06 19:12:36 +00:00
mlarkin
e1bb9b8c6d zero direct map pages before populating
Zero the DM PTE/PDE pages before use. Fixes a bug on machines with more than
512GB RAM; those pages might contain previous data/junk and panic during
pmap_randomize.

Tested on various amd64 laptops, an openbsd amd64 vmm VM and an EPYC server
with 1TB RAM.

Fix supplied by Chris Cunningham, thanks!
2026-04-06 18:27:33 +00:00
deraadt
da10deba81 sync 2026-04-06 17:58:33 +00:00
kettenis
fe321e1b70 smtcomphy(4) 2026-04-06 10:50:59 +00:00
kettenis
2289b82059 smtiic(4) 2026-04-06 10:46:13 +00:00
kettenis
b9b6c45f27 smtclock(4) 2026-04-06 10:42:12 +00:00
kettenis
2062d5e739 Fix pasto. 2026-04-06 10:41:31 +00:00
kettenis
6405cd40f6 Add smtiic(4), a driver for the I2C controller found on the SpacemiT K1
SoC.  This is a close relative of mviic(4), but the register layout
changed and some bits moved within the registers.

ok jca@
2026-04-06 10:30:27 +00:00
kettenis
e7bf55dd66 Bring back the PXA2X0 variant; it resurfaced in the SpacemiT K1 SoC.
Incorporate a fix inspired by NetBSD to keep the console enabled when
userland closes the device.
2026-04-06 10:27:53 +00:00
kirill
15aed7f109 relayd: support TLS with multiple listeners
Fix a bug in relay_inherit() which runs only
relay_load_certfiles(conf, rb, NULL) unconditionally which isn't
alligned with logic in parser when it parses relay block, where multiple
certificates are load as relay_load_certfiles(conf, rb, NULL) only if
here no tlscerts (for default host) and otherwise it loads keypairs.

OK: rsadowski@
2026-04-06 09:14:54 +00:00
tb
e7e66f0619 x509v3.h: remove pointless #ifdef HEADER_CONF_H
x509v3.h has included conf.h since June 20, 1999, OpenSSL commit ba404b5e,
so HEADER_CONF_H has been defined since then. Also since then, CONF_VALUE
(only available via conf.h) has been used outside of HEADER_CONF_H, making
that #ifdef doubly pointless.

ok bcook jsing kenjiro
2026-04-06 08:24:57 +00:00
tb
1155ce2f64 cms_local.h: remove #ifdef X509V3_HEADER_H
All thirteen files including cms_local.h do that after including cms.h,
which already includes x509v3.h, so this is always defined. While here
make the cms_local.h a bit more selfstanding by including asn1.h and
x509v3.h

ok bcook jsing (who had the same diff) kenjiro
2026-04-06 08:18:19 +00:00
jca
2136085e78 Tweak vendor #define list to follow numerical ordering
No functional change
2026-04-06 08:13:22 +00:00
jca
308537939c Follow the sparc64 lead and simply define curcpu in the kernel as the
special register containing its value, this is a general register (x4)
and therefore can be used directly

Diff stolen from miod@ who is on strike but agreed to let me commit
this.  ok kettenis@
2026-04-06 08:10:54 +00:00
op
5ca605e59d fix crash on invalid tags file
If the tag entry points to the line number zero, less crashes because
internally it uses that line number to imply that the tag is associated
with a pattern.

issue reported by Henry Ford (henryfordkjv at gmail), thanks!

ok kirill@
2026-04-05 23:17:30 +00:00
kettenis
8a4a3a78bb Treat "Instruction access fault" (EXCP_FAULT_FETCH) traps as PROT_EXEC.
Fixes random SIGSEGV on the SpecemiT X60 cores.

ok mlarkin@, deraadt@
2026-04-05 22:13:21 +00:00
kettenis
d1a03e1b55 regen 2026-04-05 22:09:58 +00:00
kettenis
3bf4d59d7b Add SpacemiT K1. 2026-04-05 22:06:19 +00:00
kettenis
677c135bc8 Add smtcomphy(4), a driver for the USB3/PCIe combo PHY found on the
SpacemiT K1 SoC.

ok jsing@, jca@
2026-04-05 18:08:11 +00:00
nicm
1cb5aded8b When a cell is cleared after having been moved, we cannot reuse its
extended data, because that may still be in use. Add a flag to
grid_clear_cell to indicate this. Fixes irritating problems with ICH
(CSI @) mostly visible in emacs.
2026-04-05 15:43:17 +00:00
nicm
bc22b0de19 Add extkeys feature to tmux itself so nested tmux works, GitHub issue 4960. 2026-04-05 14:29:04 +00:00
nicm
dfa9e9637e Set less crazy limits (than INT_MAX) for pad and trim, makes ossfuzz happier. 2026-04-05 13:24:02 +00:00
kn
f907228fda Hoist mips64 CPU accounting to get multiple softnet threads on MP systems
Increment ncpus (hw.ncpu) in mips64 cpuattach() instead of octeon/loongson
hw_cpu_hatch() running before, not after MI sofnet_percpu(), respectively.

This matches what arm64, macppc and powerpc64 do.

Local traffic may now be distributed across multiple threads, while physical
drivers like cnmac(4/octeon) still lack multiqueue support to do so.

loongson was not tested, but should behave the same.

initial report Jordan Geoghegan
tests kirill bluhm Janne Johansson
feedback miod bluhm kettenis
OK kirill visa
2026-04-05 13:11:58 +00:00
kettenis
401a1d0147 Implement support for the Zicbom and Svpbmt extensions. Rework the cache
flushing code to operate on virtual addresses instead of physical
addresses.  Seems the Zicbom implementation on the SpacemiT X60 cores
doesn't flush the caches if the mapping is non-cachable.  So adjust
_pmap_kenter_pa() to use a temporary cachable mapping to clean a page we
want to map non-cachable.

ok jca@
2026-04-05 11:48:17 +00:00
kettenis
9092a47d4d Add smtclock(4), a driver for the clock/reset controller on the SpacemiT
K1 SoC.

ok jca@
2026-04-05 11:40:50 +00:00
mlarkin
1d8b087cfc netgroup_mkdb(8) calls abort() when _ng_parse() returns
_NG_ERROR for a malformed netgroup entry. Make this code
exit via the same paradigm as other errors (errx).

From Renaud Allard, thanks!

ok op@
2026-04-04 21:20:42 +00:00