summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-05-07add support for changing the bus width and set the 4-bit mode capabilityJonathan Gray
ok patrick@ kettenis@
2016-05-06Remove #ifdef INET6 bits, missed in a commit earlier this weekJeremie Courreges-Anglas
This probably broke passive FTP on IPv6 and [ip::v6]:port syntax in RAMDISK ftp(1), sorry about that. The diff was initially ok millert@
2016-05-06Reset the bus width back to 1-bit when resetting the host. Makes imxesdhc(4)Mark Kettenis
work on the cubox-i, whereu-boot leaves the controller in 4-bit mode.
2016-05-06Revert the previous commit. There still are bad interactions between theMark Kettenis
pagedaemon and the buffer cache. requested by deraadt@
2016-05-06typos in comments; from Pedro Giffuni (FreeBSD) via Christos Zoulas (NetBSD)Ingo Schwarze
2016-05-06In verbose mode, print the router preference contained in RAs.Jeremie Courreges-Anglas
"pref" keyword taken from tcpdump.org. ok mpi@ sthen@ deraadt@
2016-05-06Unconfuse things by renaming variables to match their contents.Joel Sing
ok deraadt@ reyk@
2016-05-06A few regression tests for libedit readline(3) compat code.Ingo Schwarze
Not linked to the build for now because these tests still fail for our libedit and because readline compat is not enabled in our build. Test suite written by Bastian Maerkisch <bmaerkisch@web.de>. KNF and some minor tweaks by me.
2016-05-06Replace the generated file "fcns.c" by a simpler header "func.h"Ingo Schwarze
included only in the one file needing it, "map.c". That allows to define el_action_t directly in "map.h", which in turn allows to stop including "fcns.h" from "el.h" and include it only in the modules needing it. Now we no longer autogenerate any C files. Feedback and OK martijn@. First version also proofread by Christian Heckendorf <mbie at ulmus dot me>.
2016-05-06Make sure we always update both bits that control the bus width. Also makeMark Kettenis
sure that we reset the bus width (to 1-bit) after powering up the bus. Apparently the register write fails if the bus isn't powered on. Implement the chip callback function and advertise 4-bit bus support. ok stsp@
2016-05-06Round the requested clock frequency down to a support value instead ofMark Kettenis
insisting on an exact match. Add support for a 50 MHz clock. ok stsp@
2016-05-06Fix the DMA transfer code to repect the block size in the sdmmc command.Mark Kettenis
ok stsp@
2016-05-06Fix efiboot not to hang with a disk whose block size < 512.YASUOKA Masahiko
Report and diff from Vegar Linge Haaland ok krw
2016-05-05r1.10 of if_bnx.c effectively removed the limit on the number of segments inJonathan Matthew
the tx dma maps, apparently to allow heavily fragmented packets to be sent. The tx ring accounting in bnx_start assumed that the longest fragment chain we'd see was BNX_MAX_SEGMENTS, so sending a heavily fragmented packet when the ring was already full could cause it to overflow. In the 10 years since r1.10, we've started defragmenting packets if they won't fit in the dma map, so we can limit the maps to BNX_MAX_SEGMENTS again. While we're here, ensure there's always at least one slot on the tx ring free, for consistency between drivers. Fixes packet corruption seen by otto@ ok mpi@ dlg@
2016-05-05show what we're doing when reordering libraries, otherwise the textStuart Henderson
above it is "starting network", which can make you think something is broken when your machine is as slow as some of mine. "Yeah, that's a pretty crappy machine" deraadt@
2016-05-05Bump up the clock to 25 MHz before trying to read the SCR register of an SDMark Kettenis
card. Data transfers don't seem to work on the Realtek RTS5229 Card Reader if the clock frequency is too low, and reading the SCR requires a data transfer.
2016-05-05Remove __sigblockset. This is a leftover after the removal of the signalMartijn van Duren
blocking code in common/gs.h rev 1.14. Remove a redundant return while here. OK millert@
2016-05-05Remove uvm_mapentry_freecmp which has been unused for yearsStefan Kempf
Found by David Hill with clang.
2016-05-05Add Dual Data Rate support for eMMC at 52MHz.Mark Kettenis
2016-05-05Populate SCSI inquiry data with information from SD and MMC cards.Mark Kettenis
Code is slightly more convoluted to avoid using strncpy(9). ok jsg@, millert@, deraadt@
2016-05-05Add support for named initializers for anonymous structs/unions. This is aMark Kettenis
C11 feature that is starting to get used in places such as Mesa. This implementation takes a different approach to upstream and is therefore not covered by GPLv3. ok stefan@, jsg@
2016-05-05Fix one of the reads past the end of the buffer. FoundAlexandre Ratchov
by Geoff Hill, fix proposed by jsg@ and zhuk@.
2016-05-05Fix a pasto; from Michal Mazurek <akfaew at jasminek dot net>.Ingo Schwarze
OK mlarkin
2016-05-05syncJonathan Gray
2016-05-05Return ENOTTY in acpithinkpad backlight get/set ioctls if the maximumJonathan Gray
value is 0 to match the behaviour when the callbacks are not set. Prevents a divide by zero in wsconsctl(8) reported by Caspar Schutijser. earlier version ok jung@ deraadt@ kettenis@
2016-05-04Fix up a couple of long lines.Nicholas Marriott
2009-10-15import of gcc-4.2.1, the last gcc release under GPLv2Robert Nagy
2016-05-04Kill #ifdef INET6 occurrences in userland.Jeremie Courreges-Anglas
Prompted by and ok millert@ (tcpdump and libpcap left untouched, the #ifdef force is too strong with those)
2016-05-04Use BUS_DMA_OVERRUN to cope with the broken DMA engine of the Davicom DM9102Mark Kettenis
found on some Sun sparc64 machines. This fixes the unrecoverable DMA errors people have been seeing ever since dlg@ made changes to the pool code that changes the memory layout.
2016-05-04Some hardware (such as the onboard dc(4) of the Netra X1) has a broken DMAMark Kettenis
engine that might attempt to read beyond the end of the buffer that was programmed. The IOMMU catches this "DMA overrun" and throws an unrecoverable error at us, at which point we have no choice but to panic. To avoid this implement a BUS_DMA_OVERRUN flag that maps an additional scratch page at the end of the vdma address range. DMA requests will spill over into this page, which just returns zeroes. Thanks to matthieu@ for giving me access to a machine with the problem. ok deraadt@, beck@
2016-05-04fix for integer overflow in encode and encrypt update functions.Ted Unangst
additionally, in EncodeUpdate, if the amount written would overflow, return 0 instead to prevent bugs in the caller. CVE-2016-2105 and CVE-2016-2106 from openssl.
2016-05-04fix a padding oracle in aesni cbc mac check. there must be enough dataTed Unangst
for both the mac and padding bytes. CVE-2016-2107 from openssl
2016-05-04internal only negative types should not be handled here.Ted Unangst
CVE-2016-2108 from openssl.
2016-05-04be careful about consuming excessive memory by reading in chunks.Ted Unangst
CVE-2016-2109 from openssl.
2016-05-04revert the big change from yesterday to prepare for smaller commits.Ted Unangst
2016-05-04add IdentityAgent; noticed & ok jmc@Markus Friedl
2016-05-04Initial support for MSI-X. Only supported on amd64 for now. I have diffs toMark Kettenis
actually use this in em(4) and xhci(4), but I'm not committing those yet because we almost certainly need to save and restore the MSI-X registers during suspend/resume. However, this allows mpi@ to play with multiple-vector support in networking hardware. Requested by mpi@ ok mlarkin@, mikeb@
2016-05-04allow setting IdentityAgent to SSH_AUTH_SOCK; ok djm@Markus Friedl
2016-05-04move SSH_MSG_NONE, so we don't have to include ssh1.h; ok deraadt@Markus Friedl
2016-05-04Print SD host controller version.Mark Kettenis
2016-05-04missing const in prototypes (ssh1)Markus Friedl
2016-05-04Fix inverted logic for updating StreamLocalBindMask which would cause theDarren Tucker
server to set an invalid mask. ok djm@
2016-05-04Preserve DiffServ value when fragmenting an ipv4 packet.Vincent Gross
Ok phessler@, henning@
2016-05-04IdentityAgent for specifying specific agent sockets; ok djm@Markus Friedl
2016-05-04fix junk characters after quotesDamien Miller
2016-05-04Add high-speed support for SD cards. In theory this should double theMark Kettenis
transfer rates to and from the card. In practice the improvement will be smaller, but I am seeing serious improvement in the read speeds.
2016-05-04Correct the description of the != operator in arithmetic expansion;Ingo Schwarze
from Andras Farkas <deepbluemistake at gmail dot com>.
2016-05-04Don't mask pins configured as direct IRQ. Those are tied directly to the APICMark Kettenis
and don't generate a GPIO controller interrupt. Masking them menas devices relying on those APIC interrupts will break. Unbreaks the keyboard on the Asus x205ta, which got broken in rev 1.6.
2016-05-04Fall back to "safe-value" when "unmanage-value" is not evailable toMartin Pieuchot
configure fan speeds. from mglocker@, ok kettenis@
2016-05-04line editing correction; from andras farkasJason McIntyre