summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-07-26Shutd down the power domains suring suspend.Mark Kettenis
ok patrick@, tobhe@
2023-07-26drm/atomic: Fix potential use-after-free in nonblocking commitsJonathan Gray
From Daniel Vetter e4a0e09b79bd2c0895c508cdc5e0265a083cc05d in linux-6.1.y/6.1.40 4e076c73e4f6e90816b30fcd4a0d7ab365087255 in mainline linux
2023-07-26call kref_init() in drm_attach() matching the call in drm_dev_init()Jonathan Gray
2023-07-26Remove constructor attribute for OPENSSL_cpuid_setup() on arm/aarch64.Joel Sing
OPENSSL_cpuid_setup() is invoked via OPENSSL_init_crypto(), whihc is triggered by various entry points to the library. As such, we do not need to invoke it as a constructor. ok tb@
2023-07-26drm/amd/pm: conditionally disable pcie lane/speed switching for SMU13Jonathan Gray
From Mario Limonciello bd8cd38d3ac6b6410ac4e7401ef3dca057a9b285 in linux-6.1.y/6.1.40 31c7a3b378a136adc63296a2ff17645896fcf303 in mainline linux
2023-07-26drm/amd/pm: share the code around SMU13 pcie parameters updateJonathan Gray
From Evan Quan 11dc77a645b78b2fa8e730232f530778af4f710d in linux-6.1.y/6.1.40 dcb489bae65d92cfd26da22c7a0d6665b06ecc63 in mainline linux
2023-07-26drm/ttm: Don't leak a resource on swapout move errorJonathan Gray
From Thomas Hellstrom f037f6038736bd038ddb9c72de979a08cc1ee3b5 in linux-6.1.y/6.1.40 a590f03d8de7c4cb7ce4916dc7f2fd10711faabe in mainline linux
2023-07-26drm/amdgpu: avoid restore process run into dead loop.Jonathan Gray
From gaba fe26d0fa9408896e821d1c8dd2ab52171da03ed9 in linux-6.1.y/6.1.40 8a774fe912ff09e39c2d3a3589c729330113f388 in mainline linux
2023-07-26drm/amd/display: Add monitor specific edid quirkJonathan Gray
From Aurabindo Pillai 8404d0e274ac1f780e29fa6380ad4e2f9c4bd3da in linux-6.1.y/6.1.40 613a7956deb3b1ffa2810c6d4c90ee9c3d743dbb in mainline linux
2023-07-26drm/amd/display: Correct `DMUB_FW_VERSION` macroJonathan Gray
From Mario Limonciello 7ad40467fdfb57bdd8540a4a08cbb448f323c275 in linux-6.1.y/6.1.40 274d205cb59f43815542e04b42a9e6d0b9b95eff in mainline linux
2023-07-26drm/amd/display: add a NULL pointer checkJonathan Gray
From Sung-huai Wang ad85fc99d6389bde08dc1dec55a2443514feba6e in linux-6.1.y/6.1.40 0f48a4b83610cb0e4e0bc487800ab69f51b4aca6 in mainline linux
2023-07-26drm/amdgpu: fix clearing mappings for BOs that are always valid in VMJonathan Gray
From Samuel Pitoiset 91e69e67d401eb67178ce5992ddc9b1046b39ee7 in linux-6.1.y/6.1.40 ea2c3c08554601b051d91403a241266e1cf490a5 in mainline linux
2023-07-26drm/amd/display: disable seamless boot if force_odm_combine is enabledJonathan Gray
From Leo Chen 3546f76c7ad87d0ade575a5c4acad5e4704d927c in linux-6.1.y/6.1.40 26518b39181876064850209ecdab48c0ee5924b1 in mainline linux
2023-07-26drm/amd/display: Remove Phantom Pipe Check When Calculating K1 and K2Jonathan Gray
From Austin Zheng a2ef3163c3604788abdc060cab74c95ed44fec1a in linux-6.1.y/6.1.40 1966bbfdfe476d271b338336254854c5edd5a907 in mainline linux
2023-07-26drm/amd/display: edp do not add non-edid timingsJonathan Gray
From Hersen Wu c4629c757528f87ee22ea8fe16c645e471b9cbf6 in linux-6.1.y/6.1.40 7a0e005c7957931689a327b2a4e7333a19f13f95 in mainline linux
2023-07-26drm/amd/display: fix seamless odm transitionsJonathan Gray
From Dmytro Laktyushkin 31fb25ecbba6ebe11dc497952310b986e05dd3a0 in linux-6.1.y/6.1.40 75c2b7ed080d7421157c03064be82275364136e7 in mainline linux
2023-07-26drm/atomic: Allow vblank-enabled + self-refresh "disable"Jonathan Gray
From Brian Norris db0a9a29912cdc1834214fe35101a4917f8b9907 in linux-6.1.y/6.1.40 9d0e3cac3517942a6e00eeecfe583a98715edb16 in mainline linux
2023-07-26drm/amd/pm: add abnormal fan detection for smu 13.0.0Jonathan Gray
From Kenneth Feng 13e8af958cfa97d93d9824b863208c0bb0977361 in linux-6.1.y/6.1.40 2da0036ea99bccb27f7fe3cf2aa2900860e9be46 in mainline linux
2023-07-26drm/amdgpu: Fix minmax warningJonathan Gray
From Luben Tuikov e8b6b7b8132500ecb241f7f685398028017ec0d3 in linux-6.1.y/6.1.40 abd51738fe754a684ec44b7a9eca1981e1704ad9 in mainline linux
2023-07-26drm/amdgpu: add the fan abnormal detection featureJonathan Gray
From lyndonli d7d53c669da90181827e42583582192646a4d933 in linux-6.1.y/6.1.40 ef5fca9f7294509ee5013af9e879edc5837c1d6c in mainline linux
2023-07-26drm/amd/pm: revise the ASPM settings for thunderbolt attached scenarioJonathan Gray
From Evan Quan c8c703befd2fb2ebbcc9cedbdc98953b52453a35 in linux-6.1.y/6.1.40 fd21987274463a439c074b8f3c93d3b132e4c031 in mainline linux
2023-07-26drm/amdgpu/sdma4: set align mask to 255Jonathan Gray
From Alex Deucher 4596c812916a582e16aedfb243aaee8d010c6220 in linux-6.1.y/6.1.40 e5df16d9428f5c6d2d0b1eff244d6c330ba9ef3a in mainline linux
2023-07-26drm/client: Send hotplug event after registering a clientJonathan Gray
From Thomas Zimmermann 7c880188c71066449a76de71de772198a0c30a7c in linux-6.1.y/6.1.40 27655b9bb9f0d9c32b8de8bec649b676898c52d5 in mainline linux
2023-07-26drm/i915: Fix one wrong caching mode enum usageJonathan Gray
From Tvrtko Ursulin 5a9aecb6651c6e1ef8198c162340ebe172b7a551 in linux-6.1.y/6.1.40 113899c2669dff148b2a5bea4780123811aecc13 in mainline linux
2023-07-26drm/i915: Don't preserve dpll_hw_state for slave crtc in BigjoinerJonathan Gray
From Stanislav Lisovskiy f1e746aedd7dfbdea84b690c56154a11b68dc4de in linux-6.1.y/6.1.40 5c413188c68da0e4bffc93de1c80257e20741e69 in mainline linux
2023-07-26-.Cd "pseudo-device gre"Jason McIntyre
+.Cd "pseudo-device eoip"
2023-07-26Print error messages to stderr as opposed of using syslog.Anton Lindqvist
2023-07-25Add CXXOPTS.ASOU Masato
ok deraadt@
2023-07-25statclock: move profil(2), GPROF code to profclock(), gmonclock()Scott Soule Cheloha
This patch isolates profil(2) and GPROF from statclock(). Currently, statclock() implements both profil(2) and GPROF through a complex mechanism involving both platform code (setstatclockrate) and the scheduler (pscnt, psdiv, and psratio). We have a machine-independent interface to the clock interrupt hardware now, so we no longer need to do it this way. - Move profil(2)-specific code from statclock() to a new clock interrupt callback, profclock(), in subr_prof.c. Each schedstate_percpu has its own profclock handle. The profclock is enabled/disabled for a given CPU when it is needed by the running thread during mi_switch() and sched_exit(). - Move GPROF-specific code from statclock() to a new clock interrupt callback, gmonclock(), in subr_prof.c. Where available, each cpu_info has its own gmonclock handle . The gmonclock is enabled/disabled for a given CPU via sysctl(2) in prof_state_toggle(). - Both profclock() and gmonclock() have a fixed period, profclock_period, that is initialized during initclocks(). - Export clockintr_advance(), clockintr_cancel(), clockintr_establish(), and clockintr_stagger() via <sys/clockintr.h>. They have external callers now. - Delete pscnt, psdiv, psratio. From schedstate_percpu, also delete spc_pscnt and spc_psdiv. The statclock frequency is not dynamic anymore so these variables are now useless. - Delete code/state related to the dynamic statclock frequency from kern_clockintr.c. The statclock frequency can still be pseudo-random, so move the contents of clockintr_statvar_init() into clockintr_init(). With input from miod@, deraadt@, and claudio@. Early revisions cleaned up by claudio. Early revisions tested by claudio@. Tested by cheloha@ on amd64, arm64, macppc, octeon, and sparc64 (sun4v). Compile- and boot- tested on i386 by mlarkin@. riscv64 compilation bugs found by mlarkin@. Tested on riscv64 by jca@. Tested on powerpc64 by gkoehler@.
2023-07-25stop building unused dhclientKlemens Nanni
replaced by dhcpleased in 2021, no install media ships dhclient anymore. OK florian
2023-07-25Extend the PCKBC_CANT_TRANSLATE feature, specific to Tadpole/RDI hardware,Miod Vallat
to also support scan code set #3 in addition to the existing scan code set #2. This makes the built-in keyboard on the Tadpole UltraBook IIe work.
2023-07-25Fix a few more 0/NULL misspellingsTheo Buehler
2023-07-25Use [a,b), not [a,b-1] in a commentTheo Buehler
2023-07-25EC_POINT_is_on_curve() error is -1, not 0.Theo Buehler
ok miod
2023-07-25cpu_idle_{enter,leave} are no-ops on amd64 now, so just #definePhilip Guenther
away the calls ok deraadt@ mpi@ miod@
2023-07-25Some hypervisors (such as Hertzner) allow msr read of DE_CFG (which doesTheo de Raadt
not indicate bit 9 set, but they could have a firmware fix) but then block a msr write to bit 9 (which disables enough AVX optimizations to prevent the exfiltration of data), with a fault. So let's also check the HV bit before we decide to modify the bit. hypervisors are expected to set that bit. tested by lucas at sexy dot is. with jsg, ok mlarkin
2023-07-24RegenMiod Vallat
2023-07-24Fix prototype of getlogin_r syscall to match userland prototype (use size_tMiod Vallat
for the length argument). Fortunately, this only affects 64-bit platforms and all of those would pass the argument in registers, so there is no BE64 regression to expect and no need to renumber that system call. Found with afresh1@ as part of his perl syscall emulator.
2023-07-24Use RAWKEY constants for scan code tables, rather than magic numbers.Miod Vallat
No functional change intended.
2023-07-24Fix scan code value for print screen key.Miod Vallat
2023-07-24Fix two EC_POINT_is_on_curve() checksTheo Buehler
This API can fail for various reasons, in which case it returns -1, so you need to check if (EC_POINT_is_on_curve_checks(...) <= 0). ok miod
2023-07-24Make sure we do not increase the escape sequence argument count beyond usableMiod Vallat
bounds, in case escape sequences end up with too many semicolons. Without this, the kernel could be made to access random memory after receiving some specially crafted DCS or CSI terminal escape sequences. Reported by David Leadbeater (dgl, dgl dot cx)
2023-07-24Fix EC_POINT_is_on_curve() checks.Theo Buehler
If not even the idiot who invented this API gets this right...
2023-07-24Fix a minibug in DH_check()Theo Buehler
Or in the flag, don't overwrite the already set ones. ok jsing
2023-07-24Set DE_CFG[9] -- a chickenbit which stops Zenbleed. The chickenbit mayTheo de Raadt
have other side-effects (not disclosed by AMD), and firmwares fixes may be better (and have other side-effects, same story). Newer processors will probably be validated more carefully by AMD. Issue found by Tavis Ormandy. This is errata 7.2/033_amdcpu.patch.sig and 7.3/011_amdcpu.patch.sig Zenbleed also blocked on select cpus by using errata 7.3/012_amdfirmware.patch.sig + 7.3/013_amdcpufirmware.patch / 7.2/034_amdfirmware.patch.sig + 7.2/035_amdcpufirmware.patch.sig which load AMD cpu firmwares (firmware.openbsd.org is updated often to contain the best firmwares) ok jsg
2023-07-24after the boot block changes on i386, sthen noticed a dmesg changeJonathan Gray
-pci0 at mainbus0 bus 0: configuration mode 1 (bios) +pci0 at mainbus0 bus 0: configuration mode 1 (no bios) deraadt then spent many hours narrowing down the problem to the inline assembly in pciprobe(). It tried to save the carry flag result of pci bios present. But did so after a shift which sets the carry flag. Ask for CF in the output and avoid the shift. ok deraadt@ kettenis@
2023-07-24Remove OPENSSL_cpuid_setup() call from OPENSSL_add_all_algorithms_noconf()Joel Sing
OPENSSL_cpuid_setup() used to need to be called from OPENSSL_add_all_algorithms(), as that was the main entry point. These days we do on demand initialisation and there are various paths that lead to OPENSSL_init_crypto() being called, which in turn calls OPENSSL_cpuid_setup(). ok tb@
2023-07-24Mark read/write registers as non-overlapping for bn_qwmulw_{addqw_,}addw()Joel Sing
This does not cause an issue currently, however if called differently to their current usage, it can lead to an input being overwritten and incorrect results being generated.
2023-07-24Use C99 initializers for x509_name_ffTheo Buehler
2023-07-24remove errstr -stats testTheo Buehler
reminded by anton