summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2023-01-13drm/amdkfd: Fix kfd_process_device_init_vm error handlingJonathan Gray
From Philip Yang 9d74d1f52e16d8e07f7fbe52e96d6391418a2fe9 in linux-6.1.y/6.1.5 29d48b87db64b6697ddad007548e51d032081c59 in mainline linux
2023-01-13drm/amdgpu: Fix size validation for non-exclusive domains (v4)Jonathan Gray
From Luben Tuikov 8ba7c55e112f4ffd2a95b99be1cb1c891ef08ba1 in linux-6.1.y/6.1.5 7554886daa31eacc8e7fac9e15bbce67d10b8f1f in mainline linux
2023-01-13drm/i915/gvt: fix double free bug in split_2MB_gtt_entryJonathan Gray
From Zheng Wang 1022519da69d99d455c58ca181a6c499c562c70e in linux-6.1.y/6.1.5 4a61648af68f5ba4884f0e3b494ee1cabc4b6620 in mainline linux
2023-01-13drm/i915: unpin on error in intel_vgpu_shadow_mm_pin()Jonathan Gray
From Dan Carpenter 20a07570c1667a48fe50fdfa59f4ece57775b69a in linux-6.1.y/6.1.5 3792fc508c095abd84b10ceae12bd773e61fdc36 in mainline linux
2023-01-13add acpi_video_report_nolcd() for 6.1.5 drmJonathan Gray
2023-01-12Disable double width and height escape sequences under SMALL_KERNEL.Nicholas Marriott
ok miod
2023-01-12free(NULL) has been allowed in the kernel since 5.4; remove checks.Miod Vallat
2023-01-12Update luna88k boot procedure; help & tweaks jmc@Miod Vallat
2023-01-12Binding the accept socket in TCP input relies on the fact that theAlexander Bluhm
listen port is not bound to port 0. With a matching pf divert-to rule this assumption is no longer true and could crash the kernel with kassert. In both pf and stack drop TCP packets with destination port 0 before they can do harm. OK sashan@ claudio@
2023-01-12Add CBT (cursor back tab) sequence, from Crystal Kolipe kolipe.c atNicholas Marriott
exoticsilicon dot com. ok miod
2023-01-12Add aixterm bright colour sequences (SGR 90-97 and 100-107). FromNicholas Marriott
Crystal Kolipe kolipe.c at exoticsilicon dot com. ok miod
2023-01-12Add some missing cursor movement and scrolling escape sequences that areNicholas Marriott
supported by xterm. From Crystal Kolipe kolipe.c at exoticsilicon dot com. ok miod
2023-01-12Use solock() instead solock_shared() within sys_getsockopt(). OtherwiseVitaliy Makkoveev
we acquiring kernel lock with mutex(9) held. This partially reverts rev 1.205 of sys/kern/uipc_syscalls.c. Shared solock() is still fine for getsockname(2) and getpeername(2). Reported-by: syzbot+00a4824cb1b6a214c7d6@syzkaller.appspotmail.com ok kn@ claudio@
2023-01-12Compiling kernel with witness option failed since drm update. DoAlexander Bluhm
not define struct rwlock variable within function, witness needs global access. OK jsg@
2023-01-11Implement X-only mappings on sun4u by not letting the dtlb miss handlerMiod Vallat
allow ttes with the "exec only" bit; joint work with deraadt@, unfortunately no effect on sun4v due to the lack of software bits in ttes to fit an "exec only" bit. ok deraadt@ kettenis@
2023-01-11Remove rasops_isgray, this is no longer used. From Crystal KolipeNicholas Marriott
kolipe.c at exoticsilicon dot com. ok miod
2023-01-11Make sure we also remove read access in pmap_page_ro() when the newMark Kettenis
permissions only allow execution. Make sure we completely invalidate the PTE if the intersection between the old and new permissions is the empty set. ok deraadt@, mpi@
2023-01-11Make sure we also remove read access in pmap_page_ro() when the newMark Kettenis
permissions only allow execution. Make sure we completely invalidate the PTE if the intersection between the old and new permissions is the empty set. ok drahn@, deraadt@, mpi@
2023-01-11Use 64-bit page table entries on octeonVisa Hankala
This (over-)compensates for the frame bit reduction related to the TLB read inhibit support. However, the memory overhead of page tables is increased. OK miod@
2023-01-11Enable TLB read inhibit on OCTEON Plus and newer SoCs.Visa Hankala
OK deraadt@
2023-01-11Add TLB bypass for instruction emulationVisa Hankala
copyinsn() fetches a userland instruction through the direct map. This lets emulation work with execute-only virtual memory mappings. OK deraadt@
2023-01-11Add MIPS64r2 TLB read inhibit supportVisa Hankala
OK deraadt@ miod@
2023-01-11i386/machdep.c: revert revisions 1.659 and 1.660Scott Soule Cheloha
"put it back" kettenis@
2023-01-10Use atomic ops on the set of used segment registersGeorge Koehler
Each pmap sets a bit in usedsr to claim 16 unique VSIDs for its segment registers. Use atomic_cas_uint to set this bit (checking that the other cpu didn't steal it) and atomic_clearbits_int to clear it. Stop using splvm. ok miod@
2023-01-10In pmap_bootstrap, when importing the PROM translations into the kernel pmap,Miod Vallat
be sure to clear all software bits from the TTEs, for these bits will have different meanings in OpenBSD. Tested on a large set of sun4u and sun4v systems of different eras to not cause any regression, should be safe enough.
2023-01-10Switch the luna88k boot loader to the MI boot code, to ease future maintainenceMiod Vallat
of it. Crank version to 0.8. ok aoyama@
2023-01-10Enable the fine-grained fault type computation code added in 1.117 on allMiod Vallat
mips64 processors, not only Octeon; needed to cope with xonly mappings.
2023-01-10Switch to console before suspending in DUMBFB mode. Fixes frame buffer ↵Tobias Heider
corruption and a few other bugs/races after wakeup on Apple Silicon laptops and Lenovo x13s. ok kettenis@ deraadt@
2023-01-10rhe -> the from Crystal KolipeTheo Buehler
2023-01-10The uvm_swap_data_lock mutex can now be taken without holding the kernelMark Kettenis
lock. So it needs IPL_MPFLOOR to prevent lock ordering issues. ok jca@
2023-01-10Hide WAITPKG cpu feature from vmm(4) guests.Dave Voutila
Alder Lake and similar-era Intel platforms introduced new userland wait instructions. Since vmm was passing this cpuid bit into guests, some would attempt TPAUSE instructions and trigger invalid instruction exceptions because VMX requires additional configuration to support emulation. This also adds WAITPKG to i386 and amd64 cpu feature identification. Input from anton@, cheloha@, and guenther@. Tested by jmatthew@. OK deraadt.
2023-01-10i386: identifycpu(): only calibrate_cyclecounter() on primary CPUScott Soule Cheloha
On i386 during identifycpu(), we call calibrate_cyclecounter() for every CPU in the system. This is pointless: every new call clobbers the cpuspeed measured during the prior call. It is also extremely slow: every call to calibrate_cyclecounter() takes about 1 second. Instead, let's only call calibrate_cyclecounter() once, on the primary CPU. Multiprocessor i386 machines will now boot much faster. ok deraadt@
2023-01-10i386: identifycpu(): don't print cpuspeed after calibrate_cyclecounter()Scott Soule Cheloha
The cpuspeed set during calibrate_cyclecounter() is a bogomips measurement. It isn't an authoritative (nominal) frequency, so we shouldn't print it out when identifying each CPU. As an added bonus, this also removes some noise when diffing i386 dmesgs. ok deraadt@
2023-01-09Set the default for machdep.lidaction to 1 like on amd64.Mark Kettenis
ok tobhe@, deraadt@
2023-01-09Implement suspend on lid close.Mark Kettenis
ok tobhe@, deraadt@
2023-01-09DIAGNOSTIC is redundant with KASSERT, remove it. From Crystal Kolipe.Nicholas Marriott
ok guenther
2023-01-09Allwinner hardware sucks! The ARM generic timer on the A64 has a bugMark Kettenis
where the bottom 9 bits of the counter register can't be trusted if any of the higher bits are rolling over. This is an unpublished errata so the details aren't known. Adopt the same workaround that Linux has. This will disable the userland timecounter support on hardware affected by the hardware. We will need a similar workaround in libc to restore that functionality. tested by semarie@ ok cheloha@
2023-01-09Use PROT_EXEC when servicing instruction faults.Miod Vallat
ok aoyama@
2023-01-09Correct length of replies to primary and secondary DAs so as not to sendNicholas Marriott
a stray trailing NUL byte. From Crystal Kolipe. ok deraadt miod
2023-01-09Handle possible PROT_EXEC fault if PROT_READ fails; needed to cope withMiod Vallat
kern_exec.c 1.241
2023-01-09drm/amd/pm: correct the fan speed retrieving in PWM for some SMU13 asicsJonathan Gray
From Evan Quan 54b6a040f38075711751c61b2300a8ce7cb1741f in linux-6.1.y/6.1.4 e73fc71e8f015d61f3adca7659cb209fd5117aa5 in mainline linux
2023-01-09drm/amd/pm: bump SMU13.0.0 driver_if header to version 0x34Jonathan Gray
From Evan Quan 0b865bcd7a084e9cbf171ad3b240bf40058fd985 in linux-6.1.y/6.1.4 272b981416f8be0180c4d8066f90635fa7c1c501 in mainline linux
2023-01-09drm/amd/pm: add missing SMU13.0.7 mm_dpm feature mappingJonathan Gray
From Evan Quan 789c4804d7aed7094845da4a0ebf7099a503f8ba in linux-6.1.y/6.1.4 e0607c10ebf551a654c3577fc74b4bf5533e1cea in mainline linux
2023-01-09drm/amd/pm: add missing SMU13.0.0 mm_dpm feature mappingJonathan Gray
From Evan Quan 1cfd678e2f070fd2f005dc6e12c180ff1a1b5843 in linux-6.1.y/6.1.4 592cd24a08763975c75be850a7d4e461bfd353bf in mainline linux
2023-01-09drm/i915/migrate: Account for the reserved_spaceJonathan Gray
From Chris Wilson 6e6d577cd90b27a98ce9f06ed96bca7b59d210f0 in linux-6.1.y/6.1.4 31a2e6cbe8a4eb0d1650fff4b77872b744e14a62 in mainline linux
2023-01-09drm/i915: improve the catch-all evict to handle lock contentionJonathan Gray
From Matthew Auld ea62bd769994d6f18bd265cc156e6182a288c880 in linux-6.1.y/6.1.4 3f882f2d4f689627c1566c2c92087bc3ff734953 in mainline linux
2023-01-09drm/amdgpu: make display pinning more flexible (v2)Jonathan Gray
From Alex Deucher 52beaa0938ad33f3ee848c22935af967e3cce005 in linux-6.1.y/6.1.4 81d0bcf9900932633d270d5bc4a54ff599c6ebdb in mainline linux
2023-01-09drm/amdgpu: handle polaris10/11 overlap asics (v2)Jonathan Gray
From Alex Deucher 9724e6950ef902abd6abc5b5dfacca4b5125ba75 in linux-6.1.y/6.1.4 1d4624cd72b912b2680c08d0be48338a1629a858 in mainline linux
2023-01-09drm/amd/display: Add DCN314 display SG SupportJonathan Gray
From Yifan Zhang 3038224f5617bb4628170b29661645138f884292 in linux-6.1.y/6.1.4 fe6872adb05e85bde38f2cdec01a0f4cfb826998 in mainline linux
2023-01-09drm/i915/ttm: consider CCS for backup objectsJonathan Gray
From Matthew Auld 218f8fe668240f2ec95dcb000f61904dcdc83271 in linux-6.1.y/6.1.4 ad0fca2dceeab8fdd8e1135f4b4ef2dc46c2ead9 in mainline linux