summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-08-22Before pmap7.c rev 1.35 and pmap.h rev 1.44 DMA'able memory with theJonathan Gray
BUS_DMA_COHERENT flag was mapped as device memory which does not use the store buffer. It is now mapped as normal inner and outer non-cacheable which does. While we drain the cpu store buffer for this case, on cortex a9 systems we also need to explicitly drain the PL310 L2's store buffer. With PL310 revisions r3p2 and later this is done automatically after being present in the store buffer for 256 cycles. On i.MX6 PL310 is rev r3p1 which does not have this behaviour. This issue is i.MX6 errata ERR055199 and PL310 errata 769419. This change restores io performance with a usb flash drive attached to my cubox. Raw reads go from 3 MB/s to 19 MB/s for example. Based on code written by patrick@ some time ago. ok kettenis@ patrick@
2016-08-21Use generic clock API to enable the module clock.Mark Kettenis
2016-08-21Add support for all the ahb, apb0 and apb1 clock gating devices on sun4i,Mark Kettenis
sun5i and sun7i.
2016-08-21Implement some fundamental clocks using the new clock framework.Mark Kettenis
ok patrick@
2016-08-21Add a minimal clock "framework". Build it on armv7.Mark Kettenis
ok patrick@
2016-08-21introduce a union of sockaddr types and eliminate a lot of casts.Ted Unangst
2016-08-21bugfix: when fgetwc(3) fails, fgetwln(3) must fail as well;Ingo Schwarze
OK jca@ martijn@ millert@
2016-08-21Make lease_value() unescape quoted strings. To be fully compliant, weAlexander Hall
should unvis() it too, but I think this is enough, at least for now. ok krw@
2016-08-21tweak previousRobert Peichaer
OK halex, krw
2016-08-21Fix a pasto in a comment.Mark Kettenis
2016-08-21fix obvious typo in the .Dt section numberIngo Schwarze
2016-08-21There are three callers of update_vattr(). Two of them don't use theMartin Natano
updated struct vattr afterwards, so the call can be removed. Remove both calls and the function itself, inlining the last remaining call. ok millert
2016-08-21When detecting the console on attach test fa_node and stdout_node not fa_regJonathan Gray
and pl011consaddr as the pl011consaddr addresss may have been translated. Set cn_dev at this point as well as in com(4) and imxuart(4) to handle cases where stdout is not serial0.
2016-08-21Remove the remains of a workaround to get GIC ranges for exynos.Jonathan Gray
Exynos differed from everything else by not having GIC at fixed offsets from PERIPHBASE. Now that ampintc/GIC attaches using FDT we get the ranges out of the FDT instead of using offsets from PERIPHBASE.
2016-08-21Dynamically attach exuart using the FDT.Jonathan Gray
2016-08-21Change sleep from crazy backoff to one second of sleep between retriesBob Beck
ok deraadt@
2016-08-20syncTheo de Raadt
2016-08-20Fix indentation.Mark Kettenis
2016-08-20Argh, commit from the wrong tree. Revert previous commit.Mark Kettenis
2016-08-20Fix indentation.Mark Kettenis
2016-08-20Properly initialize the message parser. fix a regression where theEric Faurot
message headers would not be altered as expected. ok gilles@
2016-08-20add "armv7" to the Dt line;Jason McIntyre
2016-08-20Sync connect_wait() example with its real usage in ftp(1).Todd C. Miller
2016-08-20Use connect(2) + a connect_wait() function instead of connect_sync(),Todd C. Miller
similar to the example in connect(2). OK tedu@
2016-08-20sximmc(4)Mark Kettenis
2016-08-20Enable sximmc(4).Mark Kettenis
2016-08-20Increase MSGBUFSIZE to 8 pages.Mark Kettenis
ok deraadt@
2016-08-20Various improvements to make this work better.Mark Kettenis
Restrict the block size to 512 bytes for now. While Linux and NetBSD seem to allow larger block sizes (4096 and 8192 bytes) I'm getting errors wth an older 2G Sandisk SD card that advertises support for 1024 byte blocks. Implement switching between the 400 KHz "discovery" clock and the 25 MHz "operational" clock. Enable the right clock based on the SD/MMC "unit" number. Don't advertise highspeed capabilities for now as I'm not sure how the adjust the clock timing in that case. Fix the way we calculate the number of blocks and the size of the total data transfer to matc what we do in sdhc(4).
2016-08-20Add some code to set the SD/MMC clocks.Mark Kettenis
2016-08-20Don't set MSGBUFSIZE here such that the setting in <machine/param.h> takesMark Kettenis
effect. This will let us have different settings on armv7 and zaurus and also unconfuses this developer. ok tom@, deraadt@
2016-08-20Format string fixes in debug code: need %llx to print 64 bit valuesStefan Kempf
ok kettenis@ deraadt@ mlarkin@
2016-08-20Declare all _asr_* debug functions as hidden.Jeremie Courreges-Anglas
Reported by & similar diff by guenther@ some time ago, ok eric@
2016-08-20already in v2 according to ↵Ingo Schwarze
http://www.tuhs.org/Archive/PDP-11/Distributions/research/1972_stuff/unix_2nd_edition_manual.pdf patch from Sevan Janiyan <venture37 at geeklan dot co dot uk>
2016-08-20When a mismatching end macro occurs while at least two nested blocksIngo Schwarze
are open, all except the innermost open block got a bogus MDOC_ENDED marker, in some situations triggering segfaults down the road which tb@ found with afl(1). Fix the logic error by figuring out up front whether an end macro has a matching body, and if it hasn't, don't mark any blocks as broken.
2016-08-20When scanning upwards for a column list to put a .Ta macro in,Ingo Schwarze
ignore body end markers of lists breaking other blocks. Fixing a logical error that caused a NULL deref found by tb@ with afl(1).
2016-08-20Replace bcmmuart(4) with com(4).Mark Kettenis
ok patrick@
2016-08-20Tweak timer debug output.Jeremie Courreges-Anglas
-RA timer on em0 is set to 16:0 +RA timer on em0 is set to 16.0s
2016-08-20Move counters from u_quad_t to uint64_t.Jeremie Courreges-Anglas
Printing is already done with %llu/(unsigned long long) casts.
2016-08-20fsdb(8) sucks in and is pledged by fsck(8). Since it uses editline(3),Theo Buehler
add a special case for the missing "rpath" and "tty" promises. Issue found and initial analysis by Jan Stary, thanks! ok deraadt
2016-08-20If a column list starts with implicit rows (that is, rows without .It)Ingo Schwarze
and roff-level nodes (e.g. tbl or eqn) follow, don't run into an assertion. Instead, wrap the roff-level nodes in their own row. Issue found by tb@ with afl(1).
2016-08-20Remove obsolete sxiuart(4) header.Patrick Wildt
Noticed by mglocker@.
2016-08-20sxiuart(4) has been replaced with com(4).Patrick Wildt
ok kettenis@
2016-08-20shorten pkcs7 text;Jason McIntyre
2016-08-20Correctly enter a mapping as writable if no "page modified" emulationMark Kettenis
is needed. ok visa@, patrick@
2016-08-20Figuring out the clock frequency used for a com(4) device on armv7 is hard.Mark Kettenis
Avoid doing so for the early console and instead rely on the firmware to set up the right baud rate and such. ok visa@, millert@, jsg@
2016-08-20Push 'field changed' guards into 'change field' functions;Richard Procter
optimise pf_patch_32(); simplify pf_match_addr() OK mikeb@
2015-01-29reorg tbl(7) test suiteIngo Schwarze
2016-08-20Retire pf_translate_ap()Richard Procter
OK mpi@ mikeb@
2016-08-20shorten the passwd text; ok jsingJason McIntyre
2016-08-19move mem.c to hppa directory like every other arch.Ted Unangst
(probably landed in dev because it has support for this viper thing, but i like consistency for the /dev/null parts.) ok kettenis