Age | Commit message (Collapse) | Author |
|
|
|
ok deraadt@
|
|
with the ASID format on TLB entry lines.
|
|
ok phessler, deraadt
|
|
a part of the free memory list, terminating it prematurely.
|
|
Make sure that any preceding stores become visible to other CPUs before
setting the AST flag in need_resched() and signotify(). This should
prevent a very unlikely case with inter-CPU ASTs where the receiving
CPU uses stale state.
When clearing the AST flag in ast(), ensure that the clearing store
is performed before any other memory accesses in the AST handler.
Otherwise, there is a slight risk of losing an AST request that gets
posted while the handler is running.
OK guenther@
|
|
The barrier ensures that any lockless state changes become visible
to other CPUs before the IPI is sent. Otherwise, a receiving CPU
might still observe an old state when it processes the interrupt.
OK guenther@
|
|
Make the interrupt and trap return paths check for ASTs with interrupts
disabled. If there is no pending request, interrupts are kept disabled
until return to userspace. This fixes delayed processing of an AST
request that arrives from another CPU after the AST flag has been
checked but before the CPU has finished the return path. The IPI that
follows the setting of the AST flag forces kernel re-entry and recheck
of AST.
Noticed by guenther@
|
|
Pointed out by Jerome Pinot
|
|
Pointed out by Jerome Pinot
|
|
Pointed out by Jerome Pinot
|
|
Pointed out by Jerome Pinot
|
|
Pointed out by Jerome Pinot
|
|
Pointed out by Jerome Pinot
|
|
|
|
random data into the buffer that we feed the kernel.
ok deraadt@, mlarkin@
|
|
region is properly allocated by the firmware.
Move the .bss clearing to locore.S because the section has to be ready
when the stack is taken into use. This additionally makes the
C environment more consistent at the start of mips_init().
|
|
other architectures.
|
|
|
|
|
|
ok patrick@
|
|
when we have a serial console by introducing the notion of a "primary"
graphics device. The primary graphics device is the one set up and
used by firmware (BIOS, UEFI).
The goal is to make sure that wsdisplay0 and drm0 reliably attach to
the primary graphics device such that X works out of the box even
if you have multiple cards or if you are using a serial console.
This also fixes the situation where inteldrm(4) or radeondrm(4) would
take over the console on UEFI systems even if the kernel was booted
with a serial console.
ok jsg@
|
|
just like we do for simplebus(4).
ok patrick@, visa@
|
|
ok deraadt
|
|
of the Armada 3720 SoC as used on the Turris Mox.
|
|
ok kettenis@
|
|
on loongson.
|
|
|
|
fails and locks early in boot.
|
|
When reading a file from a non-TFTP device, clear the bootmac variable
to prevent the kernel from going into netboot mode.
This allows loading a kernel from a disk device after having booted
efiboot from PXE.
style tweak and ok kettenis@
|
|
- use NULL for pointer comparisons and assignments.
- in level comparisons, use PTP_LEVELS instead of magic constants
- eliminate some superfluous variables in pmap_free_ptp()
ok mlarkin@
|
|
ok deraadt@
|
|
architectures do.
Noticed by deraadt@
|
|
Not enabled yet because of a conflict with octrtc(4).
|
|
Reduce code clutter by removing the file name and line number output
from witness(4). Typically it is easy enough to locate offending locks
using the stack traces that are shown in lock order conflict reports.
Tricky cases can be tracked using sysctl kern.witness.locktrace=1 .
This patch additionally removes the witness(4) wrapper for mutexes.
Now each mutex implementation has to invoke the WITNESS_*() macros
in order to utilize the checker.
Discussed with and OK dlg@, OK mpi@
|
|
in a generic way, correcting the handling of the LAPIC page.
ok mlarkin@
|
|
behaviour is not mandatory, the SDM says a CPU "may" do this. Better to
be safe than sorry.
A similar treatment will be needed for SVM, and for the cases where the
host CPU does not have VPIDs/ASIDs. Those will be committed separately.
Original diff from Guillaume Pagnoux, thanks!
|
|
On such systems we should skip setting the voltage and just change the
clock frequency. An example of such a system is the HiKey970 where
firmware running on a microcontroller will transparently adjust the voltage.
ok patrick@
|
|
called from an IPI routine).
|
|
Fixes panic on `vmctl start foo'.
OK tedu deraadt
|
|
use memmove. We don't know whether EFI allocated overlapping memory.
|
|
memcpy() correct behaviour. This also brings the bcopy() macro into line.
|
|
The assembler does not handle undeclared local symbols properly
and generates R_MIPS_CALL16 relocations where it should generate
local GOT references. For now, get along with the problem by
declaring local symbols where necessary.
OK kettenis@ guenther@
|
|
|
|
caches. If the physical page was previously used by userland it is
likely that this page is still in the cache and writing to the newly
mapped page could result in unexpected behaviour.
ok kettenis@
|
|
ok patrick@, dlg@, visa@
|
|
tightly-built ramdisk kernels, set the option in per-arch Makefile.inc
based upon SMALL_KERNEL
|
|
linux 4.19.34.
Adds support for more Intel hardware:
Broxton/Apollo Lake (was is_preliminary in 4.4)
Amber Lake (another Kaby Lake refresh)
Gemini Lake
Coffee Lake
Whiskey Lake
Cannon Lake (though no hardware with Intel graphics ever shipped)
Ice Lake (alpha support, hardware not released)
This does not add support for new radeon hardware on the AMD side as
newer radeons have a different kernel driver (amdgpu).
Thanks to the OpenBSD Foundation for sponsoring this work, kettenis@ for
helping and a bunch of other developers for testing.
|
|
|
|
"Yes, fix that" deraadt@
|