Commit Graph

234699 Commits

Author SHA1 Message Date
riastradh 428ae67203 Put the lock error info in the panicstr so ddb can get at it. 2015-04-15 14:41:17 +00:00
riastradh 8f010f576c Release the glock on VOP_GETPAGES failure.
Tripped over by nick@'s failing disk, missing unlock in error branch
discovered by jmcneill@.
2015-04-15 14:39:24 +00:00
matt c488bc320d Remove FAST_FPE code 2015-04-15 13:22:50 +00:00
riastradh 691129c8c5 KASSERT x then y, not x && y, to give more specific errors. 2015-04-15 13:02:16 +00:00
hsuenaga c6d25b5b2b add L2 cache write eviction buffer sync barrier 2015-04-15 12:11:31 +00:00
hsuenaga 95e00c8bb4 clean up cpufuncs of CPU_PJ4B.
PJ4B is a ARMv7 compatible CPU, so most of cpufuncs are just redundant.
we need funcs for:
  - Marvell specific registers
  - workaround of errata
  - and Marvell specific L2 cache maintainance
if I/O coherency fabric is enabled(option AURORA_IO_CACHE_COHERENCY),
probaly we don't need to maintain L2 cache by software.
2015-04-15 10:52:18 +00:00
hsuenaga 7a326516ba implement L2 cache maintenance operations of ARMADA XP.
the L2 cahce maintenance operations are defined on SoC internal registers.
2015-04-15 10:40:36 +00:00
hsuenaga a7d5f1c231 lookup clock frequencies of ARMADA 370 correctly. 2015-04-15 10:30:42 +00:00
hsuenaga c3635de7de add u-boot argument parser for Marvell ARMADA XP/370.
use 'ethaddr' and 'eth1addr' in u-boot argument to setup MAC address of mvgbe.
2015-04-15 10:15:40 +00:00
ozaki-r e952648134 Use LIST_FOREACH_SAFE
We have to use LIST_FOREACH_SAFE because LIST_REMOVE is used
inside the loop through encap_remove.
2015-04-15 08:47:28 +00:00
justin 6324ab4097 On big endian machines needs to include sys/endian.h for le32dec
Mainly affects cross builds on big endian; tested on FreeBSD mips
and Linux ppc.
2015-04-15 08:31:05 +00:00
nonaka a9b6bcb09c Register iwm(4) with pmf(9).
Patch from Pierre Pronchery.
2015-04-15 05:40:48 +00:00
ozaki-r 73c17c4a13 Replace DIAGNOSTIC & panic with KASSERT/KASSERTMSG 2015-04-15 03:38:50 +00:00
ozaki-r dcfb08075f Add $NetBSD$ at the top of the file 2015-04-15 03:32:23 +00:00
christos d6eaf99167 Coverity CID 1264915, Via FreeBSD (Xin Li)
When reading in the original file name from gzip header, we read
in PATH_MAX + 1 bytes from the file.  In r281500, strrchr() is
used to strip possible path portion of the file name to mitigate
a possible attack.  Unfortunately, strrchr() expects a buffer
that is NUL-terminated, and since we are processing potentially
untrusted data, we can not assert that be always true.

Solve this by reading in one less byte (now PATH_MAX) and
explicitly terminate the buffer after the read size with NUL.
2015-04-15 02:29:12 +00:00
jmcneill 6c00453054 __HAVE_PREEEMPTION -> __HAVE_PREEMPTION 2015-04-14 22:36:53 +00:00
riastradh 786bf0b470 Forgot commit: Move another <sys/rndsource.h> to where it belongs. 2015-04-14 21:09:48 +00:00
riastradh 56d3242969 Include <sys/rndsource.h> where it is actually used.
I had removed <sys/rnd.h> from files that didn't mention anything of
the rnd(9) API.  But they included other files which assumed
<sys/rnd.h> had already been included.
2015-04-14 20:32:35 +00:00
bouyer 80bc374bef Note DMA support for sdhc on beaglebone 2015-04-14 19:41:38 +00:00
bouyer 75ac5055c8 Add the edma controller, and enable DMA for sdhc0 and sdhc1 2015-04-14 18:45:57 +00:00
bouyer 9fe03010cf Add support for DMA transfers. From Jared D. McNeill, with final debug by me.
With this I can get nearly 20MB/s from my sdcard on the BB black at 1Ghz
(not bad for a 50Mhz 4-bits bus), and still 15MB/s on the BB white at
low speed (275Mhz).
2015-04-14 18:45:25 +00:00
bouyer 2ab6d4b9bd Ops, remove empty files that should not be there. 2015-04-14 18:38:27 +00:00
bouyer 529684c049 Add a driver for the Enhanced Direct Memory Access controller found
in the AM335x SoC. Written by Jared D. McNeill, with some final debug
by me.
Supports only DMA (not QDMA) yet, and there's no support for DMA event
matrix yet (this means that only primary DMA events can be used)
2015-04-14 18:37:43 +00:00
bouyer 1478a901ec Add a new SDHC_FLAG, SDHC_FLAG_EXTDMA_DMAEN, which request that the
SDHC_DMA_ENABLE bit be set in the command, even if we're using an
external DMA engine. Needed by the upcoming DMA support for AM335x
(beaglebone).
2015-04-14 18:34:29 +00:00
christos 9552b16b76 mention yacc requirement for acpica 2015-04-14 14:18:59 +00:00
riastradh ee3e1f931f Omit needless variable. 2015-04-14 14:18:57 +00:00
riastradh dd73799480 Omit needless rnd_wakeup_readers. 2015-04-14 14:16:34 +00:00
riastradh 8ded945441 Centralize bookkeeping of rnd_initial_entropy.
It is not adjusted everywhere it should be, although the only places
it perhaps formally ought to be are places with questionable entropy
estimates in the first place.
2015-04-14 14:11:51 +00:00
christos 52f7cfdab7 use the newer skeleton file. 2015-04-14 14:08:36 +00:00
christos dbd0ad548c - remove malloc/realloc casts.
- use YYINT instead of short.
2015-04-14 14:08:21 +00:00
riastradh 15aebae27c Make the softint cookies static. 2015-04-14 13:57:35 +00:00
riastradh 78c7cd3319 Fix rump build: rndpseudo_50.c now needed by kernel, not rnd device. 2015-04-14 13:32:34 +00:00
riastradh 72bd6b4bfa Group initialization of rnd_samples and rnd_global. 2015-04-14 13:26:58 +00:00
riastradh eaea47613c Gather global pool and sources state into a cacheline-aligned struct. 2015-04-14 13:23:25 +00:00
riastradh 511c5fc9ff Omit unused rndpool_cv. 2015-04-14 13:15:36 +00:00
riastradh 0b9df2ad94 Move RND_EXTRACT_{ANY,GOOD} to rndpool.h whose API they are part of. 2015-04-14 13:14:20 +00:00
riastradh c3178eae02 Make various things now private to kern_rndq.c static. 2015-04-14 13:12:33 +00:00
riastradh b5cd74a06e Make rnd_getmore acquire rndpool_mtx itself. 2015-04-14 13:08:22 +00:00
riastradh b86e4b4dba #ifdef RND_VERBOSE printf -> rnd_printf_verbose 2015-04-14 13:05:33 +00:00
riastradh 9b39e9c3c6 Sort includes. 2015-04-14 13:03:37 +00:00
riastradh e75aac8fa3 Move substantive part of rnd_ioctl to kern_rndq.c. 2015-04-14 12:51:30 +00:00
riastradh 2ade1483d8 Omit unused rndsource `anonymous'. 2015-04-14 12:35:44 +00:00
riastradh a8379f86d8 Remove null pointer dereference in the code that never worked before... 2015-04-14 12:33:53 +00:00
riastradh 81b1249fe7 Eliminate remaining cases of u_int*_t in kern_rndq.c. 2015-04-14 12:28:12 +00:00
riastradh c101c28183 Eliminate last two cases of u_int*_t in rndpseudo.c. 2015-04-14 12:27:02 +00:00
riastradh 0ea00109fe Use binuptime, not microtime/nanotime as substitute cycle counter. 2015-04-14 12:25:41 +00:00
riastradh 550e06a8cd Include rndpool.h, rndsource.h here because we use them. 2015-04-14 12:21:12 +00:00
riastradh 37553abcc1 No need for <sys/rnd.h> here either. Missed this one yesterday too. 2015-04-14 12:19:57 +00:00
rodent 870b6e5640 moar because moar 2015-04-14 12:19:48 +00:00
riastradh 4168fc3b21 Need only <sys/rndsource.h>, not <sys/rnd.h>.
Made this change yesterday, failed to commit it -- sorry!
2015-04-14 12:18:37 +00:00