summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
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.
2016-08-11The ARMv7 ARM says that the TLB may hold translation table entries at anyMark Kettenis
level of the translation table, including entries that point to further levels of the tables. This means that we have to do a TLB flush whenever we invalidate an L1 slot too. Doing so fixes the pmap_fault_fixup issue on Cortex-A7 processors.
2016-08-10Add defines for the Access Flag as found on armv7. Fix definition of theMark Kettenis
non Global bit Small page desciptions. iConsistently name the S-bit Sharable in comments.
2016-08-10Shuffle armv7 access permission bits around to something that is compatibleMark Kettenis
with setting the Access Flag Enable bit in the System Control Register. The new settings mean that read-only userland pages are no longer writable by the kernel, which is a good thing. Set the Access Flag Enable bit. ok patrick@
2016-08-10Kill stale prototypes.Martin Natano
ok deraadt millert stefan
2016-08-10armish handled some early-gen arm machines, which required tons ofTheo de Raadt
workarounds. Some of them will soon stand in the way of armv7. Off to the attic you go.
2016-08-10fix previous; ffs_vinit() requires #ifdef _KERNEL to not break theMartin Natano
sbin/fsck_ffs build. bad natano! reported by naddy
2016-08-10ufs_vinit() should really be called ffs_vinit(); it's only called fromMartin Natano
ffs code. ok mpi tedu
2016-08-10ext2fs only has one set of specops/fifoopsMartin Natano
ok mpi tedu
2016-08-10attach agtimer with fdt on RAMDISK as wellJonathan Gray
2016-08-10Dynamically attach agtimer(4). Since agtimer(4) also provides the delay()Mark Kettenis
function for platforms that have it, rework the code a bit such that it can be used before agtimer(4) attaches. Introduce a new agtimer_init() function that checks whether the CPU implements the Generic Timer feature and switches to agtimer_delay() if that feature is present. Call this function from the generic platform initialization code. ok jsg@
2016-08-10On armv7 we put the vector page up high and never have to bother switching it.Mark Kettenis
Remove the code to do so from cpuswitch(). ok guenther@
2016-08-09Just re-set the line speed when required. This fixes a serial consoleMarcus Glocker
hang seen on the allwinner,sun5i-r8. ok kettenis
2016-08-09Check xs->status for SCSI_CHECK even in underrun situations.Kenneth R Westerback
Lets Bacula find the end of medium on LTO5 drive. Reported & fix tested by Kor son of Rynar. ok mikeb@ deraadt@
2016-08-09The page tables are cached now, and given the significant speedup, IMark Kettenis
don't think we'll ever go back. So let's ditch the code that tries to check and patch up incorrect memory attributes. Also realize that pmap_clean_page(pg, FALSE) doesn't do anything anymore so remove those calls and drop the 2nd argument from pmap_clean_page(pg, TRUE) calls. Last but not least, get rid of pmap_pte_init_generic() here. The only useful thing it did was setting pmap_copy_page_func() and pmap_zero_page_func(). This diff should not introduce any change in behaviour. ok visa@
2016-08-09When interrupted, connect() should leave the socket connecting in thePhilip Guenther
background, similar to a non-blocking socket. Return EALREADY whenever already connecting, not just for non-blocking sockets. Fix from {Free,Net}BSD Prompted by a report from Michael Reed (m.reed (at) mykolab.com) ok millert@
2016-08-08Move the cpu_setup() call to the end of initarm(). On Cortex-A53 processorsMark Kettenis
atomic instructions don't work unless the data cache is enabled. This happens in cpu_setup(), but that gets currently called from cpu_startup() which runs after a number of kernel subsystems have been initialized. Since some of these subsystems use locks, which need atomic instructions, we fault on Cortex-A53. Since at the end of initarm() we're done setting up the pmap and initializing other low-level sense, calling cpu_setup() here makes much more sense. Remove setting up proc0paddr as well from cpu_startup(), since that already happens in initarm(). Tested on zaurus by deraadt@. ok jsg@, patrick@
2016-08-08W^X violations are only permitted for binaries marked "wxneeded" onTheo de Raadt
"wxallowed" filesystems. mmap(2) & mprotect(2) now return ENOTSUP. (To diagnose buggy programs, consider using sysctl kern.wxabort=1 and looking at the coredumps) ok kettenis tedu naddy
2016-08-08Fixup incorrect format specification bugs spotted by jsg@Mike Belopuhov
2016-08-08Mapping non-cachable memory as cachable and subsequently changing the mappingMark Kettenis
to non-cachable is retarded. Fix this by introducing PMAP_NOCACHE and PMAP_DEVICE flags that can be or'ed into the physical address passed to pmap_kenter(9), like we have on many of our other architectures. This way we can also properly distinguish between device memory and normal (non-cachable) memory. ok visa@
2016-08-08Execute address hooks in the update case.Martin Pieuchot
This matches what IPv4 is doing and unbreak carp(4) when the same address is set twice, for example when running netstart(8) multiple times. Issue reported by and fix from Simon Mages.
2016-08-08Implement mmc power sequencing; makes the sdo interface on the cubox-i workMark Kettenis
and see the BCM4330 wireless (for which we don't have a driver yet). ok jsg@
2016-08-08ARMv7 data caches are "effectively" PIPT. This means there is in generalMark Kettenis
no need to clean and/or invalidate cached pages. So remove most of the cache cleaning and invalidation from the pmap. We still need to synchronize the instruction cache with the data cache in various places though. And we also need to make sure that we clean and invalidate when we make a page non-cachable. Tested by Daniel Bolgheroni, mglocker@ and jsg@. on Cortex-A8 and myself on Cortex-A9. ok visa@
2016-08-07Make iwm(4) automagically recover from fatal firmware errors by leaving theStefan Sperling
interface marked UP and scheduling the init task. Matches iwn(4) behaviour.
2016-08-07Use the device tree to lookup the address of the ARM control logic and removeMark Kettenis
some debug crap that I accidentally committed.
2016-08-07Add the Raspberry Pi 2/3 devices here as well.Mark Kettenis
Spotted by patrick@
2016-08-07Initial support for Raspberry Pi 2/3. All the hard work done by patrick@, IMark Kettenis
just cleaned things up a bit. Any bugs introduced in that process are entirely mine. This doesn't work yet. But when it does, you'll need recent firmware from the Raspberry Pi Foundation git repository at https://github.com/raspberrypi/firmware The device tree for the Raspberry Pi is somewhat in flux as bits and pieces to support the Raspberry Pi 2 and 3 are committed to the mainline Linux kernel.
2016-08-07whitespaceReyk Floeter
2016-08-07Define VXLAN_VNI_UNSET and VXLAN_VNI_MAX instead of using magic numbers.Reyk Floeter
No functional change.
2016-08-07Add XOR cookies for lr and sp. Stop saving/restoring r12 to/from the jmpbuf.Philip Guenther
Switch from calling obsolete sig{block,setmask} to directly using the sigprocmask syscall. ok deraadt@ kettenis@
2016-08-07add $OpenBSD$ tagsJonathan Matthew
2016-08-06Always allocate intrhand with M_WAITOK.Patrick Wildt
Requested by and ok kettenis@