summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
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@
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