summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2016-08-15normalize some commentsTed Unangst
2016-08-15Don't take shortcuts cleaning/invalidating the caches. The Cortex-A7 and mostMark Kettenis
other ARMv7 CPUs have a L2 cache that is larger than 32KB. And some of those even have L1 caches larger than that. So bailing out after 32KB will leave the cache partially dirty. Fixes the SATA problems on Allwinner A20 based boards. ok patrick@
2016-08-15Now that com(4) uses a different iot for the initial console and thePatrick Wildt
main attachment, the serial port is now longer recognized as console. To fix this, store the OFW node of the initial console and check it in the attachment driver. ok kettenis@
2016-08-15First stab at porting the awinmmc(4) driver from NetBSD. The driver willMark Kettenis
be known as sximmc(4) and is somewhat functional. Still needs proper clock support and some further cleanup.
2016-08-15For some reason the RTL8211E PHY on the Banana Pi responds to both address 0Mark Kettenis
and 1. As a result rgephy(4) attaches twice. Prevent this from happening by passing the PHY address, which is part of the device tree, down from the bus-specific glue to the generic driver code.
2016-08-15Allow com(4) to make use of the simplebus address translation.Patrick Wildt
This typically works for every simplebus client, but com(4) did not make use of the supplied bus tag. Instead it references the global a4x bus tag. This is needed as the ARM com(4) controllers use 4-byte spaced registers, while com(4) operates on 1-byte. To be able to make use of the address translation, copy the a4x bus tag and replace the cookie and map function with the one supplied by simplebus. ok kettenis@
2016-08-15Move the com(4) fdt attachment driver to a more generic location andPatrick Wildt
rename it to fit the typical scheme of such an attachment driver. ok kettenis@ jsg@
2016-08-15Remove IWM_CMD_SYNC, which expands to zero while all the otherStefan Sperling
IWM_CMD_* values are bit flags. The same was done 2 years ago in Linux git commit a10229271946731959b2269370d0492d88cfab23.
2016-08-15replace the last uses of m_copym2 with m_dup_pkt.David Gwynne
ok mpi@ visa@
2016-08-15Use pinctrl to configure the pins used by the EMAC.Mark Kettenis
ok jsg@
2016-08-15Use the regulator API to supply power to the target.Mark Kettenis
Tested by Daniel Bolgheroni on a Cubietech Cubieboard2. ok jsg@
2016-08-15Neuter fuse_vptofh() and fuse_fhtovp(). I implemented those functionsMartin Natano
under the assumption, that fuse_vget() has reasonable semantics, while this is not the case. fusefs_vget() only functions correctly, if the file in questions has recently been accessed and is still in the vnode cache of the userspace daemon associated with the mount point. As a matter of fact the fuse api doesn't feature a reasonable way to map inode numbers to a handle at all (see struct fuse_operations). ok guenther
2016-08-15No need to reset si_selpid after calling selwakeup() the functionMartin Pieuchot
already does it.
2016-08-15Introduce bpf_put() and bpf_get() instead of mixing macro and functionsMartin Pieuchot
for the reference counting. ok dlg@
2016-08-15Check if ``bd_bif'' is NULL inside bpf_catchpacket() to match bpfread()Martin Pieuchot
and bpfwrite(), all of which will need to grabe a lock to protect the buffers. ok dlg@
2016-08-15Merge bpfilter_create() into bpfopen() and make it such that theMartin Pieuchot
descriptor is referenced before it is inserted in the global list. ok dlg@
2016-08-15Drain FIFOs on init same as com(4) does it and reduce the RX FIFO interruptMarcus Glocker
trigger to 1 character. This fixes a hang seen on the allwinner,sun5i-r8 board during boot when the driver switches to interrupts and no terminal is attached. ok kettenis
2016-08-14Add imxtemp(4), a temperature sensor for the i.MX6 SoC. Based on code writtenMark Kettenis
by patrick@. ok deraadt@
2016-08-14remove uneeded sa1111_reg.h includeJonathan Gray
ok kettenis@
2016-08-14Remove code for Intel 80219/80321 xscale processors used by armish.Jonathan Gray
Generic xscale support and support for pxa2x0 used by zaurus remains.
2016-08-14Fix setting the SMP bit in the Auxiliary Control Register. The old code wasMark Kettenis
toggling the bit, clearing it when already set. On Cortex-A7 setting the SMP bit is essential since without it the CPU doesn't actually use its caches. The SMP bit supposed to be set before turning on the caches and the MMU, so move the setting of the Auxiliary Control Register before setting the System Control Register. ok jsg@
2016-08-14Allow a bus_dmamap_sync() of length zero.Mark Kettenis
ok tedu@
2016-08-14Remove some annoying debug printfs to get rid of u_quad_t in cnmac.Visa Hankala
2016-08-14Utilize the TLB Execute-Inhibit bit with non-executable mappings on CPUsVisa Hankala
that support the Execute-Inhibit exception. This makes user space W^X effective on Octeon Plus and later Octeon versions. Feedback from miod@, thanks! No objection from deraadt@
2016-08-14u_quad_t -> uint64_tDavid Gwynne
de is amazing(tm). it really should be cut back and simplified a bit.
2016-08-14change some types in bio from u_quad_t to uint64_t, and fix casts inDavid Gwynne
drivers that fill that field in too. quad types are going away.
2016-08-14replace u_quad_t with uint64_t.David Gwynne
guenther is proposing the removal of u_quad_t. uint64_t is more portable. tested on a perc5 and perc6, no functional change.
2016-08-13Add the shim to make dwge(4) attach to simplebus(4). This brings usMark Kettenis
working gigabit on the Allwinner A20. Probably won't work yet on other Allwinner SoCs due to differences in how the clocks get set up. Based on an earlier diff from patrick@.
2016-08-13Add GMAC clock support. Based on an earlier diff from patrick@.Mark Kettenis
2016-08-13Missed a couple qaddr_t castsPhilip Guenther
2016-08-13Eliminate pointless casts to qaddr_t of a value being assigned to a void*Philip Guenther
ok kettenis@ krw@ natano@ dlg@ espie@
2016-08-13Add the core of the code for dwge(4), a driver for the Synopsis DesignwareMark Kettenis
GMAC core which is used on the Allwinner A20 SoCs and later SoCs in the Allwinner family. Since this core is very likely to show up the base of other devices, it gets to live here in dev/ic. Ported from NetBSD (where it is named awge(4)) by patrick@. Some further fixes by me. ok deraadt@
2016-08-13modern interfaces should use modern speelings, so spell quad_t as int64_t.Ted Unangst
2016-08-13Remove entries that are no longer needed.Mark Kettenis
2016-08-13Kill FUSE_ROOT_ID and use FUSE_ROOTINO instead. Also, remove one (ino_t)Martin Natano
cast from FUSE_ROOTINO, as it is already included in the #define. ok kettenis
2016-08-13Use regulalator API instead of private functions.Mark Kettenis
2016-08-13Build ofw_regulator.o.Mark Kettenis
2016-08-13Add a minimal regulator "framework".Mark Kettenis
ok jsg@, patrick@
2016-08-12Include map entries that have an amap associated with them in the coredump.Mark Kettenis
This fixes coredumps of processes that use relro to make part of their writable address space read-only. ok guenther@
2016-08-12Dedup vnode type information. Fuse stores the vnode type in two places:Martin Natano
vtype in struct fusefs_node and v_type in struct vnode. Given the fact, that fusefs_node structs are never allocated without an associated vnode and those two fields are always in sync, one of those locations is superfluous. While there remove the unused nlookup field. ok mpi
2016-08-12Hook up sxipio(4) to the generic gpio code.Mark Kettenis
2016-08-12Call pinctrl_byname() such that ports left unconfiguraed by u-boot will workMark Kettenis
as well. ok deraadt@, millert@
2016-08-12Hook up sxipio(4) to the generic pinctrl code. The device binding is prettyMark Kettenis
retarded, requiring tables to map text strings to the apropriate numbers. These tables were generated automatically from data extracted from the Linux kernel and are kept in a separate file. This should make it easy to add support for more SoCs from the same family. ok deraadt@, millert@
2016-08-12Switch omap to the generic ofw pinctrl framework.Jonathan Gray
ok kettenis@
2016-08-11fuse requires ufs_ihash.cMartin Natano
ok mpi
2016-08-11Dynamically attach omgpio(4) using the FDT.Jonathan Gray
am335x has a compatible string of "ti,omap4-gpio" and has the same offsets as omap4, so combine the omap4 and am335x cases when setting up function pointers.
2016-08-11Dynamically attach omehci using the FDT.Jonathan Gray
ok kettenis@ patrick@
2016-08-11shuffle some code to make it more symmetrical.David Gwynne
no functional change.
2016-08-11replace abuse of the static map entries RB_ENTRY pointers with an SLISTDavid Gwynne
free static entries are kept in a simple linked list, so use SLIST to make this obvious. the RB_PARENT manipulations are ugly and confusing. ok kettenis@
2016-08-11take TASKQ_CANTSLEEP way from the softnet taskq.David Gwynne
the big reason for this is to let us use rw locks in the network stack, which is how at least two major efforts outside the tree have approached making pf mpsafe. this was discussed at length at n2k16. there was general agreement that this is necessary for us to move smp work forward in the stack.