summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
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@
2018-03-27Try harder to execute code protected by mutexes after entering ddb(4).Martin Pieuchot
Should prevent a panic after panic reported by mlarkin@. ok mlarkin@, visa@
2018-03-27Use a goto to merge multiple error blocks in sosplice().Martin Pieuchot
ok bluhm@
2018-03-27Exclude SIGKILL from ptrace(2) interception.Martin Pieuchot
This can lead to a deadlock where the parent waits infinitely for the traced process. Original problem reported by tb@ and worked around by visa@ for release by not calling CURSIG() twice in userret(). ok tb@, visa@
2018-03-27take us to 6.3-currentTheo de Raadt
2018-03-24Fix intr_restore() on luna88k to restore the previously saved stateVisa Hankala
rather than enable interrupts unconditionally. Tested by and OK aoyama@; no objection deraadt@
2018-03-24Avoid calling issignal() twice on signal delivery in order notVisa Hankala
to generate more than one ptrace(2) event. Do that by checking pending signals first without altering any state. If there is an unmasked signal ready for delivery, acquire the kernel lock and redo the checks in issignal(). This prevents gdb from blocking on exit when it attempts to kill an attached process, issue reported by tb@. OK mpi@, deraadt@
2018-03-22iBackout the preparations for fixing Meltdown on i386. The task wasAlexander Bluhm
only halfway done and the current state does not help anybody. For OpenBSD 6.3 release go back to the original code before 2018/03/13. This gives us a stable release and the changes will come back later. discussed with guenther@ deraadt@ hshoexer@
2018-03-22In vldcp(4), initialize lc_rx_state to a magic value which is notStefan Sperling
used by the hypervisor interface. This allows the driver to sync up with the firmware's Rx channel state (DOWN/UP/RESET) upon the first interrupt, and repair inconsistent Rx channel head/tail queue state if necessary. Unwedges another interrupt storm observed when starting ldomd on my T5220 after a reboot. In case the firmware's Rx queue head and tail are initially not equal, the normal interrupt handling path will not operate as expected due to the interrupt storm, and we never told the firmware to shut up. Other cbus(4) drivers might benefit from a similar fix, but we're too close to release for experiments, so I'm just fixing vldcp(4). ok kettenis@ deraadt@
2018-03-21The function carp_prepare_ad() never fails. The error handling inAlexander Bluhm
the caller would leak a mbuf. Convert carp_prepare_ad() to a void function and remove the error check. reported by Maxime Villard; OK mpi@
2018-03-21In ip6_output() check that the interface of a route is valid. ForAlexander Bluhm
IPv4 we do the same and there are races that triggers it. Increment the statistics counter for both. from markus@; OK mpi@
2018-03-21When installing a shared interrupt handler, copy the ih_bus and ih_cpuMark Kettenis
members of the interrupt handler struct. Fixes a panic on sun4v systems with shared interrupts. tested by stsp@
2018-03-21Disable the rw lock assertion after panic. Allows reboot from ddb.Alexander Bluhm
OK mpi@ visa@
2018-03-21Add mvicu(4), a driver for the Interrupt Consolidation Unit found onMark Kettenis
Marvell Armada 7K and 8K SoCs. ok patrick@
2018-03-21Add support for Marvell Armada 7K and 8K SoCs.Mark Kettenis
ok patrick@, visa@
2018-03-21Register regmap regardless of whether the node has a "phandle" property.Mark Kettenis
ok patrick@, visa@
2018-03-21Fix the way we detect xrun on the recording end, which may prevent theAlexandre Ratchov
ring read pointer from wrapping, in turn allowing the process to read past the ring boundaries. ok deraadt@
2018-03-20Make use of the new common bus space tag in imxuart(4) so it does notPatrick Wildt
need to source armv7 headers and can be used on arm64 as well. Also don't hardcode com(4)'s major number. ok kettenis@