summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2018-03-31Recommit preparation for i386 Meltdown fix after OpenBSD 6.3 release.Alexander Bluhm
- provide a cpu_softc for cpu_attach() etc. - replace per PCB TSS with per CPU TSS The first change prepares for cpu_info being embedded in a cpu_full_info. Therefore during autoconf/cpu_attach we hand down a softc. The second change removes the per PCB TSS. We now have one TSS per CPU, thus in cpu_switchto() we only have to patch the ring 0 stack pointer instead of loading a new TSS. This also allows for cleaning up the GDT, so we only have a single slot for the TSS. from hshoexer@; OK deraadt@
2018-03-31r1.7 of xhci_fdt.c pulls in the regulator API.Visa Hankala
Add ofw_regulator.c and its dependencies to fix build.
2018-03-30Enable imxanatop(4).Patrick Wildt
2018-03-30Move imxanatop(4) to sys/dev/fdt.Patrick Wildt
2018-03-30No need to include armv7var.h.Patrick Wildt
2018-03-30No need to include armv7var.h and imxccmvar.h.Patrick Wildt
2018-03-30Remove unused PCIe code from imxiomuxc(4). I'm sure we can do thisPatrick Wildt
better now with the FDT framework when we actually tackle PCIe.
2018-03-30Enable imxiic(4).Patrick Wildt
2018-03-30Move imxiic(4) to sys/dev/fdt.Patrick Wildt
2018-03-30Attach imxesdhc(4) to i.MX8M as well.Patrick Wildt
2018-03-30Enable imxesdhc(4).Patrick Wildt
2018-03-30Move imxesdhc(4) to sys/dev/fdt.Patrick Wildt
2018-03-30Enable imxgpio(4).Patrick Wildt
2018-03-30Move imxgpio(4) to sys/dev/fdt so it can be shared between arm64 and armv7.Patrick Wildt
2018-03-30Replace MD disable/restore interrupt in the establish and disestablishPatrick Wildt
code in imxgpio(4) with splhigh() and splx() which is MI and should be good enough for the job. Discussed with kettenis@
2018-03-30Cut down imxgpio(4) with a big axe. There were plenty of pieces thatPatrick Wildt
were not needed anymore since we switched to the FDT-based GPIO code.
2018-03-30Add sizes to some free() calls.David Hill
OK visa@
2018-03-30Store the allocation size in inpcbhead for free().David Hill
OK visa@
2018-03-30Remove a premature newline print. A later print already does it andPatrick Wildt
thus creates an erroneous line break.
2018-03-30Unlock the NET_LOCK() before calling vn_lock(9) to avoid a lock orderingMartin Pieuchot
issues with upcoming NFSnode's locks. ok visa@
2018-03-30Attach imxgpc(4) to i.MX8M as well.Patrick Wildt
ok kettenis@
2018-03-30Enable imxgpc(4).Patrick Wildt
2018-03-30Move imxgpc(4) to sys/dev/fdt so it can be shared between arm64 and armv7.Patrick Wildt
ok kettenis@
2018-03-30Add some sensible error checking in the hibernate io path, helpfullyJonathan Matthew
suggested by coverity (via daniel@)
2018-03-29Call imxuart(4) early attach on arm64.Patrick Wildt
2018-03-29Move imxuart(4) to sys/dev/fdt so it can be shared between arm64 and armv7.Patrick Wildt
Discussed with kettenis@
2018-03-29Initialize the secondary core's schedstate before spinning them up.Patrick Wildt
ok kettenis@
2018-03-29Set p->p_cpu in cpu_switchto() like we do on other MP architectures.Patrick Wildt
ok kettenis@
2018-03-29Enable mvclock(4), mvicu(4), mvpinctrl(4), mvgpio(4) and mvrtc(4). ThisMark Kettenis
brings us very basic support for the SolidRun MACCHIATOBin.
2018-03-29Add mvrtc(4), a driver for the RTC integrated on various Marvell Armada SoCs.Mark Kettenis
2018-03-29Use "marvell,spi-ranges" property to map GICP interrupts numbers into GICMark Kettenis
SPI numbers. Makes higher numbered GICP interrupts actually work.
2018-03-29Add support for legacy binding used in device trees for Marvell devices forMark Kettenis
USB PHY support and add support for "usb-nop-xceiv" PHYs. ok patrick@, jsg@
2018-03-29Make sparc64 ofwboot open the softraid boot chunk early on and keep theStefan Sperling
handle open until a kernel has been loaded from the softraid volume. This works around an apparent memory leak in the firmware on T5220 which fails to load an ldom guest kernel from softraid with a "Fast Data Access MMU Miss" trap after many OF_open()/OF_close() calls. This problem goes away when we call OF_open()/OF_close() just once instead of for every block we want to read. Crank ofwboot version to 1.10. Make sure to keep working boot media around before upgrading! Softraid boot of an T5220 ldom guest (CRYPTO), and a v240 (RAID 1), have been tested and are known to work. Please report issues to bugs@. ok kettenis@
2018-03-29NET_LOCK is also required in pppxwrite and pppxclose.Jonathan Matthew
ok dlg@ mpi@
2018-03-29Remove RDTSCP from the CPUID flags reported to the guest VM. The instructionMike Larkin
was already disabled, but reporting it as available and then failing it caused SmartOS to crash during boot. ok pd@
2018-03-29KNF (wrap a long line)Mike Larkin
2018-03-29Explicitly declare the gdt storage in struct cpu_info_full instead ofPhilip Guenther
implicitly putting it in the padding to page-size. This eliminates a couple Coverity issues from the Meltdown work. testing daniel@ ok mlarkin@
2018-03-28Use RWL_IS_VNODE with locks that are acquired through VOP_LOCK(),Visa Hankala
to appease WITNESS. ext2fs and ffs already use the flag. The same locking pattern appears with other file systems too, so this patch addresses the remaining cases. OK mpi@
2018-03-28- memory leak occurs when adding same table twice.Alexandr Nedvedicky
(tj found fix in FreeBSD repo for us) OK @bluhm, @henning
2018-03-28Call FREF() right after fd_getfile() in getsock().Martin Pieuchot
This ensure that all operations manipulating a 'struct file *' do so with a properly refcounted element. ok visa@, bluhm@
2018-03-28Call FREF() right after fd_getfile() in sys_flock().Martin Pieuchot
This ensure that all operations manipulating a 'struct file *' do so with a properly refcounted element. ok visa@, bluhm@
2018-03-28Call FREF() right after fd_getfile*() in pread(), prwrite() & co.Martin Pieuchot
This ensure that all operations manipulating a 'struct file *' do so with a properly refcounted element. ok visa@, tedu@, bluhm@
2018-03-28Check for possible race after sleeping instead of using a rwlock toMartin Pieuchot
protect insertions in `nm_ntree'. This will prevent a future lock ordering problem with NFSnode's lock. ok tedu@, visa@
2018-03-28Mark ext2fs inode recursive lock as RWL_IS_VNODE like for ffs to let itMartin Pieuchot
play with WITNESS. ok visa@
2018-03-28Configure tx and rx chain delay based on device tree properties.Mark Kettenis
ok mlarkin@
2018-03-28drm/edid: set ELD connector type in drm_edid_to_eld()Jonathan Gray
From Jani Nikula b59718a13495d420491fa86f915273066d89fcab in linux 4.4.y/4.4.123 1d1c36650752b7fb81cee515a9bba4131cac4b7c in mainline linux
2018-03-28drm: Defer disabling the vblank IRQ until the next interrupt (for instant-off)Jonathan Gray
From Chris Wilson 1b3ec39d3b6d1d252e03a86fcdcc8f8a2970258e in linux 4.4.y/4.4.123 608b20506941969ea30d8c08dc9ae02bb87dbf7d in mainline linux
2018-03-27Add acpicmos(4), a driver that implements SystemCMOS OperationRegionMark Kettenis
access support. This fixes machines where the AML doesn't check whether support for this OperationRegion type has been registered by the OS. ok mlarkin@
2018-03-27Use memcpy instead of bcopy when the memory does not overlap.David Hill
OK deraadt@ florian@
2018-03-27Make sure that programs violating a pledge(2) promise or some memoryMartin Pieuchot
protection cannot block the final SIGABRT. While here apply the same logic to ddb(4)'s kill command. From semarie@, ok deraadt@