summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2016-08-27Add support for the PXN bit in level 1 translation table descriptors andMark Kettenis
enable it on CPUs that support it. When enabled, this prevents the kernel from executing userland code. ok jsg@, tom@
2016-08-27Add support for the watchdog timer found on A31 and later SoCs, which has aMark Kettenis
slightly different register layout. Also fix the watchdog such that it actually disables itself when you set the period to 0 and actually gives you a period that is close to what you asked for.
2016-08-27Handle the quirky that the FIFO register sits at a different location onMark Kettenis
the A31 and later SoCs.
2016-08-27Add support for sun8i-h3, the Allwinner H3. For this SoC, the device treeMark Kettenis
contains a single clock control unit node that handles most clocks. The driver handles this through tables that describe the gating, reset signals and the clock hierarchy. This description is (deliberately) incomplete. We will add clocks on an as-needed basis. You will need a recent device tree, that includes a "allwinner,sun8i-h3-ccu" compatible node for things to work. ok patrick@
2016-08-27qaddr_t is (now) deadPhilip Guenther
ok deraadt@
2016-08-27Declare lseek() instead of assuming it'll be provided elsewherePhilip Guenther
ok deraadt@
2016-08-26Implement bus dma support for loading raw mappings so that we can usePatrick Wildt
xhci(4) on ARM. The only way the load raw operation can get to know about the coherent flag is via the segments. Store it there when the memory is initially mapped. Also store the virtual address which we need to know when we have to flush the caches on a non-coherent mapping. ok kettenis@
2016-08-26Add support for the Allwinner H3 (sun8i-h3).Mark Kettenis
2016-08-26Since the caller already checks and handles COHERENT we don't needPatrick Wildt
to explicitly check for the flag. ok kettenis@
2016-08-26Remove cpu_cpwait() calls; they are no-ops on armv7.Mark Kettenis
ok tom@
2016-08-26Remove the code that switches around MMU domains on armv7. MMU domains areMark Kettenis
basically a relic from the past. Using them doesn't make a lot of sense the way our pmaps work. Support for MMU domains isn't present in long-descriptor translation table format, so it is clearly on its way out. Based on a diff from Artituri Alm. ok patrick@
2016-08-26Remove unused prototype for sxiccmu_enablemodule().Marcus Glocker
ok kettenis
2016-08-26The *_HEAD_INITIALIZER() macros are documented as taking the struct,Philip Guenther
not a pointer to it
2016-08-26Pull in <sys/time.h> for clock_ymdhms bitsPhilip Guenther
ok deraadt@
2016-08-26correct INTR_MSG_MASK to include INTR_MSG_1Jonathan Gray
ok dlg@
2016-08-25Remove a check to expire received prefix.Martin Pieuchot
This check does not make sense since November 2000 when IPv6 autoconf address deletion has been made independent from prefix lifetimes. Fix a case when a route was added to the table but the corresponding address was not, leaving v6 unusable. Found the hardway by and ok sthen@
2016-08-25Spliced TCP sockets become faster when the output part is runningAlexander Bluhm
as its own task thread. This is inspired by userland copy where a process also has to go through the scheduler. This gives the socket buffer a chance to be filled up and tcp_output() is called less often and with bigger chunks. When two kernel tasks share all the workload, the current scheduler implementation will hang userland processes on single cpu machines. As a workaround put a yield() into the splicing thread after each task execution. This reduces the number of calls of tcp_output() even more. OK tedu@ mpi@
2016-08-25Completely revert the M_WAIT change on the cluster allocation andAlexander Bluhm
bring back the behaviour of rev 1.72. Although allocating small mbufs when allocating an mbuf cluster fails seems suboptimal, this should not be changed as a side effect when introducing m_getuio(). OK claudio@
2016-08-25Simplify ip6_getpmtu() to use a 'struct rtentry *' instead of twoMartin Pieuchot
'struct route_in6 *'. This is another little step towards deprecating 'struct route{,_in6}' Inputs from and ok bluhm@
2016-08-25Enable the UWXN bit in the SCTRL register when available. This shouldMark Kettenis
prevent the kernel from accidentally executing userland pages that are writable. ok jsg@, patrick@
2016-08-25pool_setipl for udfDavid Gwynne
ok phessler@ krw@
2016-08-25pool_setiplDavid Gwynne
ok kettenis@
2016-08-25pool_setiplDavid Gwynne
ok kettenis@
2016-08-24Replace pmap_fault_fixup() with an access flag fault handler on armv7.Mark Kettenis
ok tom@
2016-08-24pool_setipl for oce(4)David Gwynne
ok mikeb@
2016-08-24Kill ip6_forward_rt reducing differences between v4 and v6.Martin Pieuchot
A single forwarding cache is not the answer. The answer is 42... err PF! ok bluhm@
2016-08-24Use rtalloc(9) directly instead of in6_selectsr() in icmp6_reflect().Martin Pieuchot
This is another little step towards deprecating 'struct route{,_in6}'. ok bluhm@
2016-08-24pool_setipl for cardbus and drm pools.David Gwynne
ok kettenis@
2016-08-23rename nfiles to numfiles to avoid shadowing and stretch out the name.Ted Unangst
ok deraadt
2016-08-23Deassert all reset signals for the controller. Add support for more recentMark Kettenis
SoCs that have a separate clock for each PHY.
2016-08-23Add functions to assert/deassert all reset signals for a device.Mark Kettenis
2016-08-23Add support for the usb clock on sun5i-a13 as well.Mark Kettenis
2016-08-23re-enable acpicbkbd by default now that acpiec won't try burst modeJoshua Stein
on the chrome ec
2016-08-23don't enter burst mode for single-byte reads and writes.Joshua Stein
avoids problems on hardware with broken or unimplemented burst mode and isn't really necessary for such small transactions anyway. matches what linux and freebsd have done for a long time. tested in snaps ok deraadt kettenis
2016-08-23The device trees for sun8i and sun9i no longer include an address in theMark Kettenis
name of the /soc node. Leave it off, as the device path will still match on nodes that include it.
2016-08-23Actually make fdt_find_node() return NULL if the node couldn't be found.Mark Kettenis
ok tom@
2016-08-23Update the L2 content of a RTF_CACHED entry instead of going thoughMartin Pieuchot
a create/delete/insert cycle as such entry cannot be deleted when referenced. Regression reported by and ok bluhm@
2016-08-23The TLB refill and XTLB refill exceptions use distinct exception vectorsVisa Hankala
on Loongson 3A. Consequently, the kernel has to set up both vectors to prevent panics with virtual address references. On Loongson 2F, it is enough to set up the TLB refill vector because the XTLB refill exception uses the same vector address. ok miod@
2016-08-23pool_setiplDavid Gwynne
2016-08-23Use rtalloc(9) directly instead of in6_selectsr() in NS/NA outputMartin Pieuchot
routines. This is another little step towards deprecating 'struct route{,_in6}'. ok bluhm@
2016-08-23Do not use a single global struct route_in6 to cache route lookups.Martin Pieuchot
This is a little step towards deprecating 'struct route{,_in6}'. ok jca@, claudio@
2016-08-23Implement support for DT_INIT_ARRAY, DT_FINI_ARRAY and DT_PREINIT_ARRAY.Mark Kettenis
Don't skip DT_INIT and DT_FINI for the main executable. This matches what Linux and Solaris do. ok guenther@
2016-08-23pool_setipl for tmpfs.David Gwynne
2016-08-23remove duplicated test for em_82574Jonathan Gray
2016-08-23Convert %q to %ll in format stringsPhilip Guenther
ok natano@ krw@
2016-08-22Fix two small bugs in the new reset API code.Mark Kettenis
2016-08-22Remove unused code and definitions.Mark Kettenis
2016-08-22Use new clock API.Mark Kettenis
2016-08-22Use new clock API to manipulate clocks.Mark Kettenis
2016-08-22Add support for the gmac clock.Mark Kettenis