| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The timecounter struct is large and I think it may change in the
future. Changing it later will be easier if we use C99-style
initialization for all timecounter structs. It also makes reading the
code a bit easier.
For reasons I cannot explain, switching to C99-style initialization
sometimes changes the hash of the resulting object file, even though
the resulting struct should be the same. So there is a binary change
here, but only sometimes. No behavior should change in either case.
I can't compile-test this everywhere but I have been staring at the
diff for days now and I'm relatively confident this will not break
compilation. Fingers crossed.
ok gnezdo@
|
|
|
|
|
|
|
|
|
| |
exposing battery sensors for HID++ 2.0 devices. Most of the code is
derived from the hid-logitech-hidpp Linux driver.
Thanks to Ville Valkonen <weezeldinga at gmail dot com> for testing.
ok mglocker@
|
|
|
|
|
| |
SMALL_KERNEL specific variations.
ok espie jsg
|
|
|
|
|
|
| |
IPMI. Use these calls to add support for impi(4) on PowerNV systems.
ok dlg@
|
|
|
|
|
|
|
|
| |
This includes ujoy_hid_is_collection() to work around limitations of
hid_is_collection() until this can be combined without fallout.
input, testing with 8bitdo controller, and ok brynet@
PS4 controller testing, fix for hid_is_collection, and ok mglocker@
|
|
|
|
|
|
|
|
|
|
|
|
| |
mode. On modern processors (POWER8 and later) there is no performance
penalty for this as long as exceptions are disabled in the FPSCR (which
is the default). This way we don't have to implement an
architecture-dependent system call to set the mode, as it can only be done
by the kernel.
With help from gkoehler@
ok gkoehler@
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When opal(4) attaches, look in the device tree for a psscr value. In
cpu_idle_cycle(), use this psscr value and the stop instruction to
wait for the next interrupt. In mp kernels, cpu_unidle() now sends an
interrupt. In "sysctl hw.sensors", the power and temperature sensors
from opalsens(4) may show lower values.
The cpu may exit stop at the system reset vector after losing user
registers. If so, restore some registers. For now, ignore deeper
stop states that would lose hypervisor registers.
Our mp kernel uses only the first hardware thread of each core. Take
the extra threads from the firmware and stop them forever; this may
switch the core from SMT4 to single-thread mode and increase
performance.
partly by kettenis@, ok kettenis@
|
| |
|
| |
|
|
|
|
| |
ok kettenis@
|
|
|
|
| |
are disabled by default on all CPUs.
|
| |
|
|
|
|
|
| |
size. Fixes booting on machines that have memory banks higher up in
physical address space which needs a larger TCE table.
|
|
|
|
|
|
|
|
|
|
| |
At a minimum, amd64/i386 should now boot from 4TB GPT formatted disks.
More daddr32_t terminations with extreme prejudice to follow.
Tested by various, in snaps for a few days.
ok deraadt@
|
| |
|
| |
|
|
|
|
|
| |
generic_space_read_N() and generic_space_write_N() as they should not do
any byte swapping.
|
|
|
|
|
|
|
| |
Simplify MD code and reduce the amount of recursion into the signal code
which helps when dealing with locks.
ok cheloha@, deraadt@
|
|
|
|
|
|
|
|
|
| |
The bootmac passed is supposed to be the MAC address of the NIC that
we have booted from. This allows bsd.rd to realize it should run an
unattended install via network. This is needed for adding powerpc64
to bluhm's regression tests.
ok kettenis@
|
|
|
|
| |
for us.
|
|
|
|
|
| |
unconditionally now that astfb(4) can be used as the console as well.
Only print that we're the console if we actually are.
|
|
|
|
|
| |
and early kernel boot messages will appear on opalcons(4) until astfb(4)
attaches.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
and amdgpu(4) drivers do unaligned access to uncached memory because the
Linux DRM code doesn't mark pointers to device memory (VRAM) as volatile.
I'm still investigating a better solution but this gets things going such
that we can also look at the userland side of this issue.
discussed with deraadt@
|
|
|
|
|
| |
without this. The machine reboots and the core we were running on will
be deconfigured.
|
| |
|
| |
|
|
|
|
|
| |
PCI address space. Needed for radeondrm(4) and amdgpu(4) since Radeon GPUs
only implement 36, 40 or 44 bits of address space.
|
| |
|
| |
|
|
|
|
|
| |
around buggy Radeon cards that advertise 64-bit MSI but only implement
40 bits.
|
|
|
|
| |
ok deraadt@ kettenis@
|
|
|
|
|
|
|
| |
This is what we already do on powerpc and seems to be what everybody
does for 64-bit POWER systems.
ok deraadt@, patrick@
|
|
|
|
|
| |
minor refactorings to narrow KERNEL_LOCK just around uvm_fault()
ok kettenis
|
|
|
|
| |
ok deraadt@ kettenis@
|
|
|
|
| |
on POWER8 machines with older versions of OPAL.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
spotted by gkoehler, ok mortimer
|
|
|
|
| |
ok deraadt@
|
|
|
|
| |
ok patrick@, deraadt@
|
| |
|
| |
|
|
|
|
| |
ok kettenis
|