summaryrefslogtreecommitdiff
path: root/sys/arch/i386
AgeCommit message (Collapse)Author
7 daysCast atomic_load_int(9) to signed int when loading `securelevel'.Vitaliy Makkoveev
The return value of atomic_load_int(9) is unsigned so needs a cast, otherwise securelevel=-1 gets misrepresented. From Paul Fertser.
8 daysFix some typos in comments in i386/amd64 bootblocksMike Larkin
Also fix some trailing whitespace in comments. From Christian Schulte, thanks
9 daysDo not dereference `pve' after releasing `pv_mtx'.Martin Pieuchot
Prevent a race where anything can happen on `pve' resultint in an incorrect locking of a given pmap. Found the hardway by sthen@. ok jsg@, miod@, kettenis@, jca@
2024-11-08remove pmap_zero_page_uncached()Jonathan Gray
used by idle page zeroing code removed from uvm in 2015 ok miod@ mpi@ mlarkin@
2024-11-08remove unused I386_IPI_NAMES, amd64 X86_IPI_NAMES removed in 2019Jonathan Gray
2024-11-07Constify strings in symbol-related ddb interfaces, and make the iteratorMiod Vallat
callback interface a bit simpler. ok beck@ claudio@ mpi@
2024-11-05The MI boot code used to have an infinite loop trying to boot the kernel,Miod Vallat
which got limited to at most two tries 26 years ago for the 2.3 release, but the documentation was never updated to match this change. Do it now. Reported by Nir Lichtman on tech@
2024-11-04remove ability to specify root/dump/swap on st(4)Jonathan Gray
support for tape block devices was removed in 2016 ok miod@
2024-11-02Kill unused pmap_collect().Martin Pieuchot
ok miod@
2024-11-01Allocate PD for Intel's U-K before transferring mappings to the pae pmap.Martin Pieuchot
Use km_alloc(9) instead of uvm_km_zalloc() for the allocation because the mappings are no longer "lost" when switching over to the pae pmap. Introduce a new function to reduce code duplication involving km_alloc(9). Remove printing some __func__ in panic(9) strings, they are redundant. Tested by sthen@ in a bulk. ok mlarkin@, hshoexer@
2024-10-28Unlock KERN_ALLOWKMEM. The `allowkmem' is atomically accessed integer.Vitaliy Makkoveev
Also use atomic_load_int(9) to load `securelevel'. sysctl_securelevel() is mp-safe, but will be under kernel lock until all existing `securelevel' loading became mp-safe too. ok mpi
2024-10-22put opening { on same line as struct nameJonathan Gray
ok claudio@
2024-10-21remove unneeded includesJonathan Gray
2024-10-21remove unused MP_PICMODE defineJonathan Gray
2024-10-10allow MSI with the QEMU default pc-i440fx machineJonathan Gray
This makes it possible to use MSI for virtual functions of Intel network devices without having to specify the q35 machine. QEMU is detected by testing for the Qumranet pci subsystem vendor id, suggested by sf@. MSI previously wasn't enabled as 82441FX is in the list of excluded devices. Initial patch from Yuichiro NAITO. ok yasuoka@ sf@
2024-10-07include proc.h to fix APMDEBUG buildJonathan Gray
2024-10-05remove unneeded includesJonathan Gray
2024-09-26remove unneeded psl.h includeJonathan Gray
2024-09-04Fix some spelling.Marcus Glocker
Input and ok jmc@, jsg@
2024-09-01spelling; checked by jmc@, ok miod@ mglocker@ krw@Jonathan Gray
2024-08-18don't need to put config_activate_children inside cfattach, becauseTheo de Raadt
NULL means the same ok kettenis
2024-08-08Print suspend-to-idle debug info in a more concise matter.Mark Kettenis
ok mlarkin@, deraadt@
2024-07-29Set the target ACPI to S5 when we're powering down the machine. PreventsMark Kettenis
us from trying to put devices into the D3 power state which some hardware doesn't appreciate. ok ratchov@, deraadt@
2024-07-14Add elf_aux_info(3)Jeremie Courreges-Anglas
Designed to let userland peek at AT_HWCAP and AT_HWCAP2 using an already existing interface coming from FreeBSD. Headers bits were snatched from there. Input & ok kettenis@ libc bump and sets sync will follow soon
2024-07-09Remove trailing whitespace. No code change.Mike Larkin
2024-07-09fix disasm of fucomppJonathan Gray
when merging changes from FreeBSD in i386 rev 1.10 db_Esca5 was added but not used ok mlarkin@
2024-07-07remove unused i386_spurious()Jonathan Gray
2024-07-02remove oga's copyright notice, none of those changes remainJonathan Gray
2024-07-02remove unused agp_flush_cache_range()Jonathan Gray
2024-07-02remove unused agp_map functionsJonathan Gray
last use (in inteldrm) was removed in March
2024-06-30we don't need the NOBYFOUR space-savings option anymore, that codepathTheo de Raadt
was replaced a while ago. ok tb
2024-06-26return type on a dedicated line when declaring functionsJonathan Gray
ok mglocker@
2024-06-23If an ioctl(2) request isn't implemented we should return ENOTTY.Mark Kettenis
ok deraadt@
2024-06-19remove externs for global hibernate_stateJonathan Gray
removed in subr_hibernate.c rev 1.35
2024-06-18remove prototypes with no matching functionJonathan Gray
2024-06-11remove drm prototypes duplicating those in sys/conf.hJonathan Gray
2024-06-11remove prototypes for pre-wscons mouse driversJonathan Gray
2024-06-09Add a compiler barrier where missing in CPU_BUSY_CYCLE() implemsJeremie Courreges-Anglas
Having differences between architectures is asking for problems. And adding a barrier here just makes sense in most cases. This is also what cpu_relax() provides in Linux land. ok kettenis@ claudio@
2024-06-08remove unused SECMIN and SECHOUR definesJonathan Gray
2024-06-07remove unused TAB defines; ok miod@Jonathan Gray
2024-06-07Make sure we select the deepest possible C-state during suspend-to-idle.Mark Kettenis
ok deraadt@, guenther@, mlarkin@, jsg@
2024-06-07remove unused defines, missed in rev 1.34Jonathan Gray
2024-06-06Clear DF flag after kcopy faulted.Alexander Bluhm
A memory corruption in the kernel happend that was caused by memset in the wrong direction. After that DF bit was set in ddb rflags. Only kcopy and memmove use std to set DF bit. kcopy has the special property that it can fault. In this case DF is set in the trap frame. kpageflttrap() changes the return address to copy_fault via pcb_onfault. When alltraps_kern returns, it restores the rflags with DF set and jumps into copy_fault. From there a function return goes back into regular kernel execution. Now DF is set, but kernel memset and memcpy expect that it is cleared. After copy fault, also reset the DF bit with cld in copy_fault. The crash happend on OpenBSD 7.4 amd64. As i386 code looks similar, also insert cld there. OK guenther@ miod@
2024-06-04Bump versions of boot media now capable of un-hibernating from non-DEV_BSIZEKenneth R Westerback
sectored media. Bump to common version (3.67) to indicate new MI capability. Reminded by deraadt@
2024-06-04Enable hibernate/resume to nvme(4) disks with 4096 byte sectors.Kenneth R Westerback
testing by florian@ mglocker@ mlarkin@ ok deraadt@ mglocker@ mlarkin@
2024-05-30Ensure pmap_create() waits in case kernel virtual space shortage.Martin Pieuchot
Prevents a panic in pmap_pinit_pd_pae() when applying a lot of memory pressure and the kernel needs time to recover while swapping. Reported and fix tested by mvs@, also tested by sthen@ ok mlarkin@, mvs@, kettenis@
2024-05-29Implement the guts for "suspend-to-idle" on amd64. This enables suspendMark Kettenis
on machines that don't support S3. In its current state it doesn't save a lot of power, but this should improve over time. Implementation of wakeup methods is incomplete which means that some machine can't resume at the moment. ok mglocker@, mlarkin@, stsp@, deraadt@
2024-05-26Implement wakeup interrupts on amd64. Provide a dummy implementation forMark Kettenis
i386 such that we can call the necessary hooks in the suspend/resume code without adding #ifdefs. Tweak the arm64 implementation such that we can call the hooks earlier as this is necessary to mask MSI and MSI-X interrupts on arm64. ok deraadt@, mlarkin@
2024-05-22remove prototypes with no matching function and externs with no varJonathan Gray
2024-05-21remove switch_exit() prototypes, replaced by sched_exit()Jonathan Gray