Age | Commit message (Collapse) | Author |
|
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@
|
|
|
|
details from the ELF header instead of faking it.
Proposal from mlarkin, tested on most architectures already
|
|
same as recent change in MI boot.
"If it works, sure you can commit it" deraadt@
|
|
|
|
|
|
Rework some event injection code which was using an incorrect v_eventinj
field format.
ok deraadt
|
|
The LS_CFG MSR is used as a different way to determine if SSBD controls
are present. Since we don't implement this, inject a #UD on read of this
MSR, which Linux interprets as "not having SSBD controls".
ok deraadt
|
|
following return.
This change adds a constraint that the name passed to the RETGUARD_* macros
must correspond to the name in the corresponding ENTRY which starts the
function (or a function which appears beforehand in the same file). Since
we use the distance from the ENTRY definition to calculate how much padding
to insert, the ENTRY symbol must be in scope at assembly time. This is
almost always the case already, since it is the natural way to name the
retguard symbols so they remain unique.
ok deraadt@
|
|
Ensure TLB is flushed to avoid stale entries when uvm removes
entries from a guest VM's EPT. This is done on VM teardown and when uvm
pages out pages in low memory situations. Prompted by a conversation with
Maxime from NetBSD a few months back.
ok deraadt
|
|
control features on AMD. Linux tries to use them and since these are not
fully implemented yet, it results in an OOPS during boot on recent
hardware.
When these are properly passed through, we can restore advertising
support for this feature.
ok deraadt@
|
|
ok kettenis@
|
|
ok deraadt@ kettenis@
|
|
the MSRs to support them. Fixes an OOPS during Linux guest VM boot on
Ryzen.
ok deraadt
|
|
|
|
ok deraadt
|
|
matches trm which is now public
|
|
instead of EFIFB_HEIGHT and EFIFB_WIDTH when calling rasops_init() in
efifb_cnremap() and efifb_attach().
This appeared to cause issues on some systems, as reported by Dmitry on
bugs@.
|