summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2016-01-06We want the first, not the last, OpenBSD partition in the MBR.Kenneth R Westerback
2016-01-06Bring efidev.c goodness into softraid.c by returning and displayingKenneth R Westerback
the same error messages on GPT processing failures. Add a message about failed GPT entry checksum error to both. This was inadvertantly deleted in the switch to one entry at a time processing. tweaks & ok yasuoka@ jsing@
2016-01-05Remove PTE locking from pmap_extract() because it does not add any MPVisa Hankala
safety. The function has to be called in a context where conflicting pmap updates cannot happen. Otherwise the returned physical address might not be valid. Suggested by kettenis@
2016-01-05Some implementations of HitSyncDCache() call pmap_extract() for va->paVisa Hankala
conversion. Because pmap_extract() acquires the PTE mutex, a "locking against myself" panic is triggered if the cache routine gets called in a context where the mutex is already held. In the pmap, all calls to HitSyncDCache() are for a whole page. Add a new cache routine, HitSyncDCachePage(), which gets both the va and the pa of a page. This removes the need of the va->pa conversion. The new routine has the same signature as SyncDCachePage(), allowing reuse of the same routine for cache implementations that do not need differences between "Hit" and non-"Hit" routines. With the diff, POWER Indigo2 R8000 boots multiuser again. Tested on sgi GENERIC-IP27.MP and octeon GENERIC.MP, too. Diff from miod@, ok kettenis@
2016-01-04Remove parameter name from gpt_chk_mbr() prototype and add prototypeKenneth R Westerback
for findopenbsd_gpt().
2016-01-04Do proper termination of VMs by doing proper VCPU run state management.Mike Larkin
This should fix some of the odd termination errors people have been seeing (vmctl status showing running VMs after they have exited/crashed, and invalid instruction panics on vmptrld during certain races) This diff also implements dropping the biglock when running a VCPU, and reacquiring the lock as needed based on the type of exit (normal vs. external interrupt) diff supplied by Stefan Kempf <sn.kempf at t-online.de>, many thanks!
2016-01-04wrap a long lineMike Larkin
2016-01-03Don't need two 16K static buffers to checksum the GPT entries and find theKenneth R Westerback
OpenBSD partition. Just one 128-byte stack copy of a single entry. Problems with EFI installs involving many disks reported by and fix tested by Thomas Bohl. Stefan Kempf pointed finger of suspicion at the addition of the 2nd 16K static buffer for softraid GPT and suggested/reviewed several versions of the diff. Tweaked and ok jsing@
2016-01-03enable pchtemp(4) on i386.Daniel Dickman
ok kettenis@
2016-01-02Take the PHY of iec(4) out of reset before attaching the interface.Visa Hankala
Otherwise the PHY goes undetected on the slave node of a dual-node Origin 200. The PHY gets enabled by diagnostic checks but only on the master node. As the attach code will now do the enabling, the checks can be disabled on reboot, making reboots faster especially on IP27. Tested on Origin 200 (IP27), Fuel (IP35 with iec), and Origin 350 (IP35 without iec). Diff from miod@, ok krw@
2015-12-31Add pchtemp(4) a driver for the thermal sensor on recent Intel PCHs.Mark Kettenis
2015-12-31Protect mips64 pmap and pvlist structs with a mutex to make pmapVisa Hankala
operations MP-safe. Tested on octeon and sgi (IP27, IP30). Feedback from kettenis@ long ago
2015-12-29Remove NULL-checks before free().mmcc
ok tb@
2015-12-27welcome GENERIC.IP27 MP (dual cpu on O350 now)Theo de Raadt
ok visa
2015-12-27If available prefer the rdseed instruction over rdrand when adding entropyJonathan Gray
to the kernel rng. If the rdseed source is empty fallback to rdrand as suggested by naddy. rdrand output comes from a prng that is periodically reseeded. rdseed should give us more bits of entropy. ok naddy@ djm@ deraadt@
2015-12-25Add IPI logic. Assign two additional interrupts for inter-processorVisa Hankala
signalling as a workaround to a limitation in the hub interrupt code, to allow four CPUs per node. At the moment, multi-node setups are not supported.
2015-12-25Add launch logic for secondary CPUs. The PROM's launch entry point addressVisa Hankala
and function signature are from Linux.
2015-12-25Make interrupt masking MP-aware. Linux IP27 and IP35 ports served as aVisa Hankala
substitute for hardware documentation.
2015-12-25Add timecounter for MP.Visa Hankala
2015-12-25Use the ErrorEPC register for curcpu() on Origin, for now.Visa Hankala
2015-12-24If the GPT header checksum check fails, do *not* say the OpenBSD partitionKenneth R Westerback
starts at sector 1. Instead return -1, as for all other failures during the header check.
2015-12-24Make all instances of gpt_chk_mbr() identical (bar static vsKenneth R Westerback
non-static) by passing disk size as 2nd parameter instead of the different structures holding the disk size info. The fifth copy of gpt_chk_mbr() in fdisk is a little specialer. No functional change.
2015-12-24Add prototype for gpt_chk_mbr() to i386_installboot.c. Add 'static' toKenneth R Westerback
declarations of gpt_chk_mbr() to match prototypes in efidev.c and softraid.c.
2015-12-24Normalize return values from various exit functions.Mike Larkin
Another diff from Stefan Kempf <sn.kempf at t-online.de>.
2015-12-24Make sure we don't overflow a page during vm_readpage/vm_writepage.Mike Larkin
Noticed over a month ago by Stefan Kempf <sn.kempf at t-online.de>, and I shamefully just got around to committing it. Thanks Stefan.
2015-12-24More adress -> addressmmcc
2015-12-24Argh. The other part the wrong diff was missing.Kenneth R Westerback
Use the size info in struct sr_boot_volume, and not the uninitialized info in the disklabel, when checking the GPT protective MBR. Now both GPT and MBR formatted softraid volumes actually boot. As a bonus add prototype for gpt_chk_mbr().
2015-12-23Ooops. Wrong version of the diff committed, with reversed check forKenneth R Westerback
MBR/GPT. Problem found the hard way by Glenn Faustino on tech@
2015-12-23Execution of the `sync' instruction is not supported by the T-Bus andVisa Hankala
raises a machine check exception. Do not report anything on console in that case, so that userland does not suffer too much. Diff from miod@
2015-12-22commited -> committedmmcc
2015-12-22Find OpenBSD disklabel on GPT partitioned softraid volumes. Now you canKenneth R Westerback
boot from such volumes to match being able to install to them. Problem spotted by jcs@, fix tested by rpe@, ok jsing@
2015-12-21add virtio-console driverStefan Fritsch
This patch adds a new driver for use of virtio-console devices as ttys. It's still in an early state and not compiled by default, yet. Currently it is only wired into amd64. i386 is still missing. Discussed with uebayasi@, deraadt@
2015-12-19make things fit, by skipping pcn* for now -- randomly firing a driver.Theo de Raadt
2015-12-19move to 5.9-betaTheo de Raadt
2015-12-19Enable agp(4), this makes X11 usable on my Dual G5 with radeondrm(4).Martin Pieuchot
ok kettenis@
2015-12-18A store to FPA does not need splnet(). The operation is atomic.Visa Hankala
2015-12-18Prevent uvm_fault() when hitting a breakpoint by restoring the originalGerhard Roth
page protection bits. Go ahead, mlarkin@
2015-12-17add a size to free. from MathieuTed Unangst
2015-12-17Move vcpu register state init to vmd. Allows vmd bootloader to make theMike Larkin
decision as to how the vcpu should be set up for initial start and reset. Also removes some hardcoded register constants from vmm(4). ok jsing@, mpi@
2015-12-16Remove the solbourne entries now that all its code is gone.mmcc
ok deraadt@
2015-12-15remove some not interesting debug printfsMike Larkin
2015-12-15support reset vcpu by triple fault (kernel part, userland fix will comeMike Larkin
later). discussed with deraadt@ and reyk@ at length.
2015-12-14Support only one vcpu for now, until we implement SMP support.Mike Larkin
2015-12-14track used memory in each VM. This is passed back to vmctl status.Mike Larkin
ok reyk@, beck@, mpi@
2015-12-14s/begining/beginning/gmmcc
2015-12-12comment typommcc
2015-12-12Adjust IPI numbers to get the interrupts working. Bits 5 and 6 do notVisa Hankala
seem to trigger an IPI. According to IP27 headers in Linux, those have a special meaning in hardware.
2015-12-12Identify hypervisors before configuring other children of the mainbusReyk Floeter
(bios, CPU, interrupt handlers, pvbus). This splits the pvbus attach function into two parts: pvbus_identify() to scan the CPUID registers for supported hypervisors and pvbus_attach() to attach the bus, print information, and configure the children. This will be needed for Xen and KVM, as discussed with mikeb@ and sf@ OK mlarkin@
2015-12-11comment typommcc
2015-12-11Replace mountroothook_establish(9) by config_mountroot(9) a narrower APIMartin Pieuchot
similar to config_defer(9). ok mikeb@, deraadt@