summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2023-04-28Remove error handling around mallocarray(9). I cannot fail whenAlexander Bluhm
called with M_WAITOK. OK kevlo@
2023-04-28Retire -E's "expert" mode. Introduced 23 years ago to avoidKenneth R Westerback
confusing users with FFS attributes that only experts should fiddle with. Actual use has withered away with functionality rendered moot or moved elsewhere. '-e' remains for the truly obscure corner cases. Simply excise the code for now to see if hidden users/uses are exposed. Further simplifications are possible if no such users/uses surface. ok with sthen@ millert@ kn@ otto@
2023-04-28Add a driver for the Qualcomm rng device found on the Thinkpad X13s, based onPeter Hessler
kettenis's amlrng driver. suggestions and OK patrick@
2023-04-28regenKevin Lo
2023-04-28Add support for RTL8188FTV chip to urtwn(4).Kevin Lo
Tested with Comfast CF-WU710N v4. "go ahead" deraadt@ OK stsp@
2023-04-27Use __size_t which is available in syslog.hGreg Steuck
Directly including sys/syslog.h would fail due to size_t being unknown. OK millert, miod
2023-04-27Mark the fan speed sensor as invalid when it reports -1 RPM. This happens forMiod Vallat
a short while after suspend. ok deraadt@ kn@
2023-04-27add support for I/O statistics so that tape speeds can be observed withRobert Nagy
iostat(8)
2023-04-27Remove efi32 and efi64. These are leftovers from a project that didn't goMark Kettenis
very far and the presence of these directories just confuse people and make them do more work than necessary. ok patrick@, kn@, mlarkin@
2023-04-27Remove kernel lock from rtfree(9).Vitaliy Makkoveev
Route timers and route labels protected by corresponding mutexes. `ifa' uses references counting for protection. rt_mpls_clear() could be called lockless because this is the last reference of `rt'. ok bluhm@ kn@
2023-04-27Temporarily workaround double calls into vioscsi_req_done()Kenneth R Westerback
causing NULL de-reference. Reported, initial patch and tests by Antun Matanovic. Thanks! ok miod@
2023-04-27Remove net lock from DIOCGETTIMEOUTKlemens Nanni
'pfctl -s timeouts' values are only used inside of pf, entirely protected by the pf lock through the ioctl interface; the net lock is useless. Previous attempts to remove net lock usage showed that the pf lock cannot yet entirely replace it, so start with small pieces like this one. Contrary to IPv4/6 read-only ioctls, some pf ioctls without FWRITE flag do modify internal pf state, which is not entirely obvious when approached from the ioctl layer. OK sashan dlg
2023-04-27Add `rttimer_mtx' to the locking description.Vitaliy Makkoveev
No functional changes.
2023-04-27Add support for (one of) the PCIe controllers on the RK3588 SoC. SinceMark Kettenis
MSIs don't work (yet) on this SoC, implement support for legacy interrupts for the Rockchip SoCs. Also drop the restrictions on the bus number range as the device tree I'm using has bus numbers start at 64 for the controller in question. ok patrick@, dlg@`
2023-04-27Fix config space access for the root bus of a dwpcie(4) controller whenMark Kettenis
the root bus number isn't zero. ok patrick@, dlg@
2023-04-27Add RK3588 support.Mark Kettenis
ok patrick@, dlg@
2023-04-27Add some RK3588 PCIe related clocks.Mark Kettenis
Also add some RK3588 resets. Whoever reviewed the bindings on Linux gave the brilliant advice that clock IDs and reset IDs should not in any way have a sane mapping to the hardware registers, even though that is the case on all older Rockchip SoCs and greatly simplifies the driver. So now we need to implement pointless lookup code. ok patrick@, dlg@
2023-04-27The ASIX AX88179A chipset does not work properly with the axen(4) driver.Gerhard Roth
For now switch it to cdce(4) until native support is provided by axen(4). ok bentley@ stsp@
2023-04-27Fix logic error in rtwn_r92e_get_txpower().Kevin Lo
The RTL8192EU is up to two stream TX/RX (so MCS0->15). ok stsp@
2023-04-27Whitespace fixKevin Lo
2023-04-27drm/amd/display: set dcn315 lb bpp to 48Jonathan Gray
From Dmytro Laktyushkin 4ac57c3fe2c0a74c6239170fc58fc824637c6015 in linux-6.1.y/6.1.26 6d9240c46f7419aa3210353b5f52cc63da5a6440 in mainline linux
2023-04-27drm/amdgpu: Fix desktop freezed after gpu-resetJonathan Gray
From Alan Liu bef774effb278ff0b65ea2dbaa1ab32ba6a1dc13 in linux-6.1.y/6.1.26 c8b5a95b570949536a2b75cd8fc4f1de0bc60629 in mainline linux
2023-04-27drm/i915: Fix fast wake AUX sync lenJonathan Gray
From Ville Syrjala 66eb772be27e228716bb81feee0400d995cbe605 in linux-6.1.y/6.1.26 e1c71f8f918047ce822dc19b42ab1261ed259fd1 in mainline linux
2023-04-27drm: buddy_allocator: Fix buddy allocator init on 32-bit systemsJonathan Gray
From David Gow fb766acce3cf1c9637a79c1ffb3cebc61fd9d859 in linux-6.1.y/6.1.26 4453545b5b4c3eff941f69a5530f916d899db025 in mainline linux
2023-04-26Fix phy_enable_prop_idx() to retrieve the property length with the passedPatrick Wildt
property name instead of "phys". ok dlg@
2023-04-26Introduce `rtlabel_mtx' mutex(9) to protect route labels storage. ThisVitaliy Makkoveev
time kernel and net locks are held in various combination to protect it. We don't want to put kernel lock to all the places. Netlock also can't be used because rtfree(9) which calls rtlabel_unref() has unknown netlock state within. This new `rtlabel_mtx' mutex(9) protects `rt_labels' list and `label' entry dereference. Since we don't export 'rt_label' structure, keep this lock private to net/route.c. For this reason rtlabel_id2name() now copies label string to externally passed buffer instead of returning address of `rt_labels' list data. This is the way which rtlabel_id2sa() already works. ok bluhm@
2023-04-26Implement dt(4) utrace support on amd64 and i386.Claudio Jeker
This adds stacktrace_save_utrace() to extract and save the userland stack which is stubbed out on most archs. alpha and riscv64 do not even implement dt(4) and stacktrace_save_at() so the stubs are excluded there. Additionally add a new ioctl DTIOCGETAUXBASE which allows btrace to fetch the AUX_BASE vallue from the AUX vector of a process. OK mpi@ (some time ago) discussed with kettenis@
2023-04-26Reodrer some things to fix vmctl/vmd builds after the vmm MI/MD splitMike Larkin
2023-04-26Remove +20y old rt_timer_init() commentKlemens Nanni
Obsolete since last year's r1.411 "Rework the rttimer code." OK claudio
2023-04-26Incorporate r1.140 and r1.141 of vmm.c:Mike Larkin
---------------------------- revision 1.341 date: 2023/04/26 09:39:56; author: dv; state: Exp; lines: +3 -3; commitid: 1XztmVbxa8OP2xYi; Unbreak vmm on Intel. Mistakenly enabled CET on non-CET systems. Found by anton@ & jsg@ ---------------------------- revision 1.340 date: 2023/04/24 16:53:57; author: dv; state: Exp; lines: +11 -1; commitid: q9qQ55f7h2gen8N4; vmm(4): allow guests to enable and use supervisor IBT. Why should hosts have all the fun? Conditionally unmask the cpuid bits for IBT and allow r/w access to the supervisor CET msr. Will need revisiting when we introduce usage of userland CET msr.
2023-04-26typofix rttimer commentKlemens Nanni
2023-04-26Integrate r1.339 of vmm.c which I missed during the previous MI/MD splitMike Larkin
--- revision 1.339 date: 2023/04/22 18:27:28; author: guenther; state: Exp; lines: +3 -3; commitid: ajtkYPSAhtJdB488; Rename the XCR0_* #defines to XFEATURE_* and add the new supervisor-state features: while all are appropriate for xsaves/xrstors, the supervisor-state features aren't for xcr0 but rather for the new XSS_MSR, making the current names kinda confusing. Add #defines for masking bits for xcr0 vs XSS. Add and report the new XSAVE_XFD xsave subfeature bit. ---
2023-04-26vmm.c -> vmm_machdep.c (remove old file)Mike Larkin
2023-04-26Fix splassert noticed by sthenBob Beck
Called wrong incore when not holding bio. ok claudio@
2023-04-26Refactor MD/MI parts of vmm.Mike Larkin
ok dv, deraadt
2023-04-26Fix my email address.Mark Kettenis
2023-04-26Properly handle userland branch target traps.Mark Kettenis
ok deraadt@, patrick@
2023-04-26Backout previous commit:Alexander Bluhm
Do not grab the `vmmaplk' recursively, prevent a self-deadlock. It causes panic: uvm_map_pageable_wire: stale map Found by regress/misc/posixtestsuite conformance/interfaces/mmap/18-1 requested by deraadt@
2023-04-26whitespace fixMike Larkin
2023-04-26Don't redeclare s, it's already there.Bob Beck
noticed by miod@ ok kettenis@
2023-04-26Fix missing splbio() needed in nfsBob Beck
ok claudio@ kettenis@
2023-04-26Unbreak vmm on Intel. Mistakenly enabled CET on non-CET systems.Dave Voutila
Found by anton@ & jsg@
2023-04-26Rotate the console in amdgpu when there is an orientation quirk.Anthony J. Bentley
ok jsg@
2023-04-26Fix typo in comment: default scalue values -> default scale valuesAnthony J. Bentley
2023-04-26Declare sendsyslog to match its man pageGreg Steuck
This simplifies syzkaller revival after the removal of __syscall. OK bluhm, millert, deraadt
2023-04-26Also set TSO flag on vlan interfaces.Jan Klemkow
with tweaks from bluhm, claudio and dlg I fine with it from claudio looks good to me from dlg ok bluhm
2023-04-25Fix white space.Alexander Bluhm
2023-04-25regenMark Kettenis
2023-04-25Add RK3588.Mark Kettenis
2023-04-25Rename ps_refcnt to ps_threadcnt in struct process and implementClaudio Jeker
P_HASSIBLING() using this count. OK mvs@ mpi@