Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-08-23 | Attempt to support IODA2 bridges such as the one found on POWER8 chips. | Mark Kettenis | |
These lack an "ibm,opal-available-m64-ranges" property, but it seems we can assume a 0-15 range. At least this is what Linux does. | |||
2020-08-23 | Add support for POWER8 (and maybe earlier) CPUs. Not sure if this works on | Mark Kettenis | |
real hardware, but it gets the kernel booting on QEMU emulating a POWER8 CPU so it's a step in the right direction. This establishes a way to distinguish CPU features based on the AT_HWCAP and AT_HWCAP2 features documented in the ELF ABI. Also use this to determine the availability of the DARN instruction instead of keying of the processor model. | |||
2020-08-23 | Use sysctl_bounded_args for simple cases in cpu_sysctl on i386 | gnezdo | |
OK kn | |||
2020-08-21 | Use u_long for generation of VSIDs. | Mark Kettenis | |
2020-08-20 | Fix build without NPCKBC and NUKBD | kn | |
The "error" variable is used in one case only, so move it into scope under #ifdef. OK deraadt gnezdo | |||
2020-08-19 | Use sysctl_bounded_args for simple cases in cpu_sysctl on amd64 | gnezdo | |
deraadt@: fine | |||
2020-08-19 | Push KERNEL_LOCK/UNLOCK() dance inside trapsignal(). | Martin Pieuchot | |
ok kettenis@, visa@ | |||
2020-08-17 | base clang is now i586. SMALL_KERNEL images have historically forced | Theo de Raadt | |
i486 (for space-saving reasons), but we don't currently need this in bsd.rd so let's try without to see if it improves things in any way (at least until the next have a space-saving crisis) | |||
2020-08-17 | Switch to a per-proc SLB cache. Seems to make GENERIC.MP kernels | Mark Kettenis | |
(much more) stable. Probably because we could restore an incoherent SLB cache since there was no locking in the trap return path. | |||
2020-08-17 | Enable PAN (Privileged Access Never) on CPUs that support it. This means | Mark Kettenis | |
that user-space access from the kernel is not allowed for "normal" load/store instructions. Only the special "unprivileged" load/store instructions are allowed. We already use those in copyin(9) and copyout(9). ok patrick@, drahn@, jsg@ | |||
2020-08-17 | Panic on an attempt to access user-space unless it is done using | Mark Kettenis | |
an "unpriviliged" load/store instruction. This makes sure we catch PAN violations and might even catch some incorrect user-space access cases on systems without PAN. ok drahn@, jsg@ | |||
2020-08-15 | Remove unused headers | Visa Hankala | |
2020-08-15 | Inline handling of receive checksum offload | Visa Hankala | |
2020-08-14 | Remove "for all XXX platforms" from comment. Fixes the issue pointed out | Mark Kettenis | |
by miod@ where the powerpc64 claimed to be "for all AArch64 platforms". ok patrick@ | |||
2020-08-14 | Fix typo. | Mark Kettenis | |
Spotted by miod@ | |||
2020-08-14 | Initialize local variable that was supposed to hold the value of curcpu(). | Mark Kettenis | |
Spotted by miod@ | |||
2020-08-13 | Add __multi3 from compiler_rt-8.x | Jeremie Courreges-Anglas | |
Needed to build a sparc64 kernel with clang 10. ok kettenis@ | |||
2020-08-10 | Do not block IPIs when acquiring the rendezvous mutex. Otherwise the | Visa Hankala | |
system would deadlock when a CPU gets blocked by the mutex while another CPU is waiting for the first CPU to finish a rendezvous request. This possibly fixes some hangs on sgi. There should be no effect on loongson and octeon because their interrupt code is sloppy with masking of IPIs. While here, rename the rendezvous mutex to better reflect its use. | |||
2020-08-05 | sigh, some duplication, but at least put things into the canonical order | Theo de Raadt | |
2020-08-04 | add cd9660, msdos, and inet6 support | Theo de Raadt | |
2020-08-04 | Initialize per-pmap lock. | Mark Kettenis | |
2020-08-04 | On POWER9 use the "darn" instruction and feed its output as entropy into | Mark Kettenis | |
the random subsystem. ok deraadt@ | |||
2020-08-03 | add more scsi devices, observed by gkoehler | Theo de Raadt | |
2020-08-02 | additional files from libkern will be needed by clang10 | Theo de Raadt | |
2020-08-02 | additional files from libkern will be needed by clang10 | Theo de Raadt | |
from mortimer | |||
2020-07-31 | like amd64: | Theo de Raadt | |
atapiscsi is not needed here. (well maybe it changes the behaviour of the pciide subsystem a tiny bit at attach-time, but we don't have the downstream cd(4) device to attach, so let's try without) | |||
2020-07-31 | Make sure bcmtmon(4) attaches even if it has a "syscon" compatible. | Mark Kettenis | |
2020-07-31 | On sun4u systems that have the STICK register, clear the NPT bit of the | Mark Kettenis | |
register such that it can be accessed from userland. With this change we can unconditionally enabled the usertc code again. ok naddy@ | |||
2020-07-30 | Only invalidate "user" SLB entry if it is currently set. | Mark Kettenis | |
2020-07-29 | atapiscsi is not needed here. (well maybe it changes the behaviour of | Theo de Raadt | |
the pciide subsystem a tiny bit at attach-time, but we don't have the downstream cd(4) device to attach, so let's try without) | |||
2020-07-25 | Port over NetBSD's arm64 disassembler for DDB. | tobhe | |
ok kettenis@, patrick@ | |||
2020-07-25 | Change kernel SLB setup code to avoid the (theoretical) possibility to | Mark Kettenis | |
enter duplicate mappings. | |||
2020-07-24 | Enable usertc if the NPT bit isn't set for %tick and %sys_tick. | Mark Kettenis | |
ok naddy@ | |||
2020-07-24 | Suppress kernel printf output in the octeon boot kernel. | Visa Hankala | |
OK kettenis@ | |||
2020-07-24 | Remove bge(4) and brgphy(4) as the bootloader doesn't include network support | Mark Kettenis | |
of any kind. Speeds up booting a bit. | |||
2020-07-24 | Implement BOOT_QUIET option that supresses kernel printf output to the | Mark Kettenis | |
console. When the kernel panics, print console output is enabled such that we see those messages. Use this option for the powerpc64 boot kernel. ok visa@, deraadt@ | |||
2020-07-23 | Free SLB descriptors when we destroy a pmap. | Mark Kettenis | |
2020-07-23 | Bump MAXCPUS (for MULTIPROCESSOR kernels) to 48, which seems to be the | Mark Kettenis | |
maximum numbers of cores available in any POWER9 system. | |||
2020-07-23 | Enter DDB directly when we encounter an unhandled trap such that we | Mark Kettenis | |
can inspect the state corresponding to that trap. | |||
2020-07-23 | Use per-pmap lock to protect userland SLB handling. | Mark Kettenis | |
2020-07-23 | Fix typo in previous commit such that the code is actually compiled in. | Mark Kettenis | |
2020-07-23 | Handle the case where we can sleep (and therefore switch CPUs) while | Mark Kettenis | |
handling kernel traps. | |||
2020-07-23 | Nuke unused struct scsi_link member of spc_softc. | Kenneth R Westerback | |
luna88k compile test by aoyama@ | |||
2020-07-22 | Nuke unused struct scsi_link member of vdsk_softc. | Kenneth R Westerback | |
sparc64 compile test by jmatthew@ | |||
2020-07-22 | Make switching CPUs in DDB work. | Mark Kettenis | |
2020-07-22 | Actually try to evict a PTE from a different slot instead of failing to | Mark Kettenis | |
evict the same PTE 16 times because the PTE is wired. | |||
2020-07-22 | Don't grab the kernel lock for mpsafe interrupts. | Mark Kettenis | |
2020-07-22 | Implement IPIs. | Mark Kettenis | |
2020-07-22 | console marker should be after : | Theo de Raadt | |
2020-07-22 | Remove debugging printf in critical section. This doesn't play well with | Mark Kettenis | |
the hash lock on MULTIPROCESSOR kernels. |