summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
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@
2016-08-06Always allocate intrhand with M_WAITOK.Patrick Wildt
Requested by and ok kettenis@
2016-08-06Implement interrupt controller functionality in the i.MX6 GPIOPatrick Wildt
driver. This allows us to use to hook up the Ethernet interrupt on the Nitrogen6x, SabreLite and WandBoard like it's described in the device tree. ok kettenis@
2016-08-06Extend the interrupt controller API with a disestablish functionality.Patrick Wildt
This will be helpful for interrupt combiner that need to re-establish their main interrupt when their interrupt priorities change. ok kettenis@
2016-08-06Switch imx over to the generic pinctrl API.Mark Kettenis
ok patrick@
2016-08-06Build ofw_pinctrl.o and ofw_gpio.o on armv7. The latters here from theMark Kettenis
generic arm files list. There is no point in building it on armish or zaurus. ok patrick@
2016-08-06Add a generic pinctrl "framework".Mark Kettenis
ok patrick@
2016-08-06Put page tables in normal cachable memory on armv7. Check if the MMU walksMark Kettenis
the page tables coherently and also skip flushing modified ptes out of the cache in that case. Speeds up building a kernel with a factor of two on Cortex-A9 (tested by me) and Cortex-A8 (tested by mglocker@). ok patrick@
2016-08-06Add support for IPv6 tunnel endpoints. This currently only works forReyk Floeter
unicast mode, multicast is not yet supported. ifconfig vxlan0 tunnel fd00::1 fd00::2 Roughly based on an earlier diff by goda@ OK yasuoka@
2016-08-06Fix multicast mode (destination is a multicast IP): the BCAST andReyk Floeter
MCAST flags have to be cleared from the mbuf after decapsulating packets. This fixes tunneled broadcast packets, eg. ARP. It used to work before the input path was changed the flags got cleared later in the stack. OK yasuoka@
2016-08-06Rework ampintc's interrupt disestablish code to make it actually doPatrick Wildt
its job. Recalculate the mask after the handler is taken from the list to properly set the new prioritization. ok kettenis@
2016-08-06Dynamically attach intc(4) using the FDT and switch omap/am335xJonathan Gray
drivers that use the FDT over to the FDT interrupt establish API. ok kettenis@
2016-08-06Disable edma(4). It isn't currently used and is getting in the way ofJonathan Gray
future changes as it establishes an interrupt but hasn't been converted to attach with the fdt. ok kettenis@
2016-08-06Add PageGrain bits.Visa Hankala
2016-08-06Log RX errors only when the interface's debug flag is set.Visa Hankala
While here, remove unused PIP error code aliases.
2016-08-06remove now unused board specific phy definesJonathan Gray
2016-08-06Dynamically attach pluart(4) using the FDT.Jonathan Gray
ok kettenis@ patrick@
2016-08-06Dynamically attach plrtc(4) using the FDT.Jonathan Gray
ok kettenis@ patrick@
2016-08-06Dynamically attach virtio(4) using the FDT.Jonathan Gray
ok kettenis@ patrick@
2016-08-06Set up the fdt attach args for devices that attach directly to mainbusJonathan Gray
the same way as for those that attach to simplebus. ok kettenis@ patrick@
2016-08-05Use m_devget(4). From Artturi Alm.Mark Kettenis
2016-08-05Dynamically attach sxidog(4).Mark Kettenis
2016-08-05Remove sxirtc(4) from the tables now that it attaches dynamically.Mark Kettenis
2016-08-05Dynamically attach sxirtc(4); another board_id check bites the dust.Mark Kettenis
2016-08-05Check if we have the required "reg" property.Mark Kettenis
2016-08-05We don't want drivers with numbers in their names.Mark Kettenis
Requested by deraadt@
2016-08-05Replace inappropriate use of CP15_CNTPCT with CP_DCCIMVAC.Mark Kettenis
No binary change.
2016-08-05Switch the sunxi platform over to the new interrupt establish API. ThisMark Kettenis
involves turning sxiahci(4) into a real driver that dynamically attaches. ehci(4) now also attaches dynamically. ok jsg@, patrick@
2016-08-05Switch pending event clearing to an atomic swap operationMike Belopuhov
Rather than performing an atomic bit clearing for every encountered event bit set we can adjust the code to perform an atomic swap of a single row of the events array and decrease the amount of expensive atomic operations. Same optimization as for Hyper-V. From FreeBSD.
2016-08-05Switch pending event clearing to an atomic swap operationMike Belopuhov
Rather than performing an atomic bit clearing for every encountered event bit set we can adjust the code to perform an atomic swap of a single row of the events array and decrease the amount of expensive atomic operations. From FreeBSD.
2016-08-05Fixup incorrect EAGAIN handlingMike Belopuhov
2016-08-05Read events array offset must be calculated in bytesMike Belopuhov
2016-08-05Remove incorrect optimization: ring data portion size is not power of 2Mike Belopuhov
2016-08-05Unmask the timer output signal for real.Mark Kettenis
ok patrick@, jsg@
2016-08-05Drop a pointless link carrier check from the RX path.Visa Hankala
2016-08-05imxahci(4) needs ahci.cMark Kettenis
2016-08-05Trigger link state update only on media status updatesMike Belopuhov
2016-08-05Fixup the condition that prevented heartbeat & co. from attachingMike Belopuhov
2016-08-04Commit in6_selectsrc() split again, with missing assignment fixed.Vincent Gross
2016-08-04Dynamically attach ampintc(4) and make it register itself as an interruptMark Kettenis
controller. Switch all i.MX6 devices over to the new FDT-aware interrupt establish API and enable imxgpc(4). This may break other platforms that use ampintc(4) as their interrupt controller. We will fix this as soon as possible by switching them over to the new interrupt establish API as well. This also removes the hack in fec(4) to avoid the gpio-based interrupt workaround. This commit is an essential step on the road to fix that issue properly. ok patrick@, jsg@