summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* - uri is expected to be nul-terminated (strchr used later),delphij2015-08-311-4/+3
| | | | | | | so use strlcpy instead of strncpy. - unroll the other two cases of strncpy+\0 to strlcpy. MFC after: 2 weeks
* Constify opt_f and opt_t and eliminate unneeded copying. This fixesdelphij2015-08-311-4/+4
| | | | | | | memory leaks. Reported by: clang static analyzer MFC after: 2 weeks
* Simplify lla_rt_output()/nd6_add_ifa_lle() by setting lle state inmelifaro2015-08-313-19/+8
| | | | alloc handler, based on flags.
* Add support for the UGA draw protocol. This includes adding amarcel2015-08-303-56/+925
| | | | | | | | | | | | | | | | | command called 'uga' to show whether UGA is implemented by the firmware and what the settings are. It also includes filling the efi_fb structure from the UGA information when GOP isn't implemented by the firmware. Since UGA does not provide information about the stride, we set the stride to the horizontal resolution. This is likely not correct and we should determine the stride by trial and error. For now, this should show something on the console rather than nothing. Refactor this file to maximize code reuse. PR: 202730
* Add the LED definitions from vendor's DTS.loos2015-08-304-1/+29
| | | | | | | Add gpioled support to A20 kernel. While here rename the gpio phandle to match the one used in the vendor's DTS.
* The vendor's DTS for Allwinner A20 uses a different way to map the gpioloos2015-08-301-0/+13
| | | | | | | pins, they specify the bank and the pin in two separated cells. This allow the use of vendor's DTS definitions by adding a gpio map routine that copes with that.
* oops - mis-commit.adrian2015-08-301-2/+0
|
* Convert this over to use the new cdev based ioctl path.adrian2015-08-305-18/+16
|
* Migrate the stats API for iwn(4) into a cdev ioctl, rather than tyingadrian2015-08-303-11/+74
| | | | | | | into the vap. This allows for possible hardware interaction without needing a vap configured.
* A bibliography of FreeBSD and BSD related papers and books.gnn2015-08-301-0/+363
| | | | | Keep this file in order by primary key which is the first author's last name and the year of publication.
* Use P1B_PRIO_MAX to designate max posix priority for the RR/FIFOkib2015-08-301-1/+1
| | | | | | | | | | | scheduler types. It was intended to be used there, compare with the min value, and with the test for correctness in ksched_setscheduler(). Note that P1B_PRIO_MAX and RTP_PRIO_MAX do have the same numerical values, the change is cosmetical. Sponsored by: The FreeBSD Foundation MFC after: 1 week
* Remove single-use macros obfuscating malloc(9) and free(9) calls.kib2015-08-302-94/+71
| | | | | | | Style. Sponsored by: The FreeBSD Foundation MFC after: 1 week
* sh: Fix read with escaped IFS characters at the end.jilles2015-08-303-12/+28
| | | | | Characters escaped with a backslash must be treated as if they were not in IFS. This includes stripping trailing IFS characters.
* Reduce the difference to vendor DTS by using the vendor compat strings (atloos2015-08-301-1/+2
| | | | | some point we have to use the complete vendor DTS files, but we're not there yet).
* In preparation to support other A20 based boards, rename the CUBIEBOARD2loos2015-08-301-5/+2
| | | | | | | | | | | | | | kernel configuration to A20. There are other boards (namely the banana pi) that use exactly the same devices. Additionally, we are moving from static FDT support (DTB compiled in-kernel) to DTB passed to kernel by the boot loader (ubldr). The u-boot for these boards are already available on ports and as the crochet support for these boards isn't committed yet, this should not bring any issues. Discussed with: ian
* Revert r286880: If at first this change made sense, it turns outjch2015-08-301-11/+1
| | | | | | | | it helps only the TCP timers callout(9) usage. As the benefit for others callout(9) usages did not reach a consensus the historical usage should prevail. Differential Revision: https://reviews.freebsd.org/D3078
* Put r284245 back in place: If at first this fix was seen as a temporaryjch2015-08-302-15/+45
| | | | | | | | | | | | | | workaround for a callout(9) issue, it turns out it is instead the right way to use callout in mpsafe mode without using callout_drain(). r284245 commit message: Fix a callout race condition introduced in TCP timers callouts with r281599. In TCP timer context, it is not enough to check callout_stop() return value to decide if a callout is still running or not, previous callout_reset() return values have also to be checked. Differential Revision: https://reviews.freebsd.org/D2763
* Remove support for FreeBSD < 602110.delphij2015-08-302-12/+0
|
* Fix compilation error on gcc-5.2.0 - it now warns on non-paranthen'edadrian2015-08-301-2/+2
| | | | | | | | logical negation when used in this fashion. Tested: * compile only
* Don't assign 'ptr' without using it.delphij2015-08-301-1/+0
| | | | | Reported by: clang static analyzer MFC after: 2 weeks
* Fix a mistake in r287292. Despite correctly stating intent in thekib2015-08-301-2/+2
| | | | | | | | | comment above, POSIX_SPAWN_SETSIGMASK and POSIX_SPAWN_SETSIGDEF handlers used libthr interposed functions instead of syscalls. Noted by: jilles Sponsored by: The FreeBSD Foundation MFC after: 6 days
* Add a gop command to help diagnose VT efifb problems. The gopmarcel2015-08-301-0/+95
| | | | | | | command has the following sub-commands: list - list all possible modes (paged) get - return the current mode set <mode> - set the current mode to <mode>
* - Replace N(a)/N(i)/N(T)/LEN(a)/ARRAY_SIZE(a) with nitems()rodrigc2015-08-2930-196/+201
| | | | | | | | - Add missing <err.h> for err() and <sys/sysctl.h> for sysctlbyname() - NULL -> 0 for 5th parameter of sysctlbyname() Submitted by: Andriy Voskoboinyk <s3erios@gmail com> Differential Revision: https://reviews.freebsd.org/D3442
* sh: Add set -o nolog.jilles2015-08-294-5/+15
| | | | | | | | | | POSIX requires this to prevent entering function definitions in history but this implementation does nothing except retain the option's value. In ksh88, function definitions were usually entered in the history file, even when they came from ~/.profile and the $ENV file, to allow displaying their definitions. This is also the first option that does not have a letter.
* Support the ZTE MF112 HSUPA 3G USB stick.gavin2015-08-292-0/+2
| | | | MFC after: 1 week
* Use 5 times RTO.Max as the default for the shutdown guard timertuexen2015-08-293-7/+7
| | | | | | | | as required by RFC 4960. The sysctl variable can be used to overwrite this. Discussed with: rrs MFC after: 1 week
* Remove 600 bytes of port_priv from struct ctl_io_hdr.mav2015-08-292-41/+29
| | | | | This field used only for camtgt frontend, and once it any way preallocates all requests, let it preallocate this memory too, not bothering core code.
* Switch libc from using _sig{procmask,action,suspend} symbols, whichkib2015-08-2922-121/+104
| | | | | | | | | | | | | | | | | | | | | | | | are aliases for the syscall stubs and are plt-interposed, to the libc-private aliases of internally interposed sigprocmask() etc. Since e.g. _sigaction is not interposed by libthr, calling signal() removes thr_sighandler() from the handler slot etc. The result was breaking signal semantic and rtld locking. The added __libc_sigprocmask and other symbols are hidden, they are not exported and cannot be called through PLT. The setjmp/longjmp functions for x86 were changed to use direct calls, and since PIC_PROLOGUE only needed for functional PLT indirection on i386, it is removed as well. The PowerPC bug of calling the syscall directly in the setjmp/longjmp implementation is kept as is. Reported by: Pete French <petefrench@ingresso.co.uk> Tested by: Michiel Boland <boland37@xs4all.nl> Reviewed by: jilles (previous version) Sponsored by: The FreeBSD Foundation MFC after: 1 week
* Attach pass driver to LUNs is OFFLINE state.mav2015-08-297-11/+18
| | | | | | | Previously such LUNs were silently ignored. But while they indeed unable to process most of SCSI commands, some, like RTPG, they still can. MFC after: 1 month
* Use the userland exported states and handle them completely.tuexen2015-08-291-7/+16
|
* Fix a buffer overrun which may lead to data corruption, introduced indelphij2015-08-291-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r286951 by reinstating changes in r274628. In l2arc_compress_buf(), we allocate a buffer to stash away the compressed data in 'cdata', allocated of l2hdr->b_asize bytes. We then ask zio_compress_data() to compress the buffer, b_l1hdr.b_tmp_cdata, which is of l2hdr->b_asize bytes, and have the compressed size (or original size, if compress didn't gain enough) stored in csize. To pad the buffer to fit the optimal write size, we round up the compressed size to L2 device's vdev_ashift. Illumos code rounds up the size by at most SPA_MINBLOCKSIZE. Because we know csize <= b_asize, and b_asize is integer multiple of SPA_MINBLOCKSIZE, we are guaranteed that the rounded up csize would be <= b_asize. However, this is not necessarily true when we round up to 1 << vdev_ashift, because it could be larger than SPA_MINBLOCKSIZE. So, in the worst case scenario, we are overwriting at most (1 << vdev_ashift - SPA_MINBLOCKSIZE) bytes of memory next to the compressed data buffer. Andriy's original change in r274628 reorganized the code a little bit, by moving the padding to after we determined that the compression was beneficial. At which point, we would check rounded size against the allocated buffer size, and the buffer overrun would not be possible.
* Fix the exporting of SCTP association states to userland. Without this,tuexen2015-08-295-8/+49
| | | | | | associations in SHUTDOWN-PENDING were never reported correctly. MFC after: 3 weeks
* Report CLOSED as state for bound sockets for consistency withtuexen2015-08-291-3/+1
| | | | | | | netstat and the way TCP is handled. PR: 201585 MFC after: 3 weeks
* In r286705 (Illumos 5960/a2cdcdd), a separate thread is created with curprocdelphij2015-08-291-2/+2
| | | | | | | | | | as parent. In the case of a send or receive, the curproc would be the userland application that issues the ioctl. This would trigger an assertion failure introduced in Solaris compatibility shims in r196458 when kernel is compiled with INVARIANTS. Fix this by using p0 (proc0 or kernel) as the parent thread when creating the kernel threads.
* Add reminder to run etcupdate or mergemaster to get updatedglebius2015-08-291-0/+8
| | | | | | rc.d scripts for wireless. Poked by: adrian
* Implement RSS hashing/re-hashing for IPv6 ingress packets.adrian2015-08-294-8/+226
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This mirrors the basic IPv4 implementation - IPv6 packets under RSS now are checked for a correct RSS hash and if one isn't provided, it's done in software. This only handles the initial receive - it doesn't yet handle reinjecting / rehashing packets after being decapsulated from various tunneling setups. That'll come in some follow-up work. For non-RSS users, this is almost a giant no-op. It does change a couple of ipv6 methods to use const mbuf * instead of mbuf * but it doesn't have any functional changes. So, the following now occurs: * If the NIC doesn't do any RSS hashing, it's all done in software. Single-queue, non-RSS NICs will now have the RX path distributed into multiple receive netisr queues. * If the NIC provides the wrong hash (eg only IPv6 hash when we needed an IPv6 TCP hash, or IPv6 UDP hash when we expected IPv6 hash) then the hash is recalculated. * .. if the hash is recalculated, it'll end up being injected into the correct netisr queue for v6 processing. Submitted by: Tiwei Bie <btw@mail.ustc.edu.cn> Differential Revision: https://reviews.freebsd.org/D3504
* Rename rss_soft_m2cpuid() -> rss_soft_m2cpuid_v4() in preparation foradrian2015-08-293-3/+3
| | | | | | | an IPv6 version to show up. Submitted by: Tiwei Bie <btw@mail.ustc.edu.cn> Differential Revision: https://reviews.freebsd.org/D3504
* The TLB1 TSIZE is a multiple of 4, not 2, so shift 2 bits, not 1.jhibbits2015-08-291-1/+1
|
* Remove now unused (and #if 0'ed out) headers.adrian2015-08-291-12/+0
|
* Mark ValleyView/Bay Trail as not supportedbapt2015-08-291-0/+2
|
* Remove now obsolete comment.imp2015-08-281-1/+0
| | | | MFC After: 2 days
* Per overwhelming sentiment in the code review, use FEATURE instead.imp2015-08-281-5/+1
| | | | | Differential Revision: https://reviews.freebsd.org/D3488 MFC After: 2 days
* Comment out cleaning files, since it cleans too much.imp2015-08-281-1/+2
|
* Remove .WAIT hacks and put in specific dependencies.imp2015-08-281-2/+5
|
* Add missing ofw_machdep.h. Make x86 ofw_machdep.h work pc98 too.imp2015-08-282-1/+7
| | | | | This allows the owc module to compile on pc98 and seems preferable to adding another special case in the build system.
* Add underscores to attributes when checking for __has_attribute.pfg2015-08-281-5/+5
| | | | | | This is a good practice to avoid confusion with allowed macros. Suggested by: jilles
* Move dwmmc.h to dwmmc_reg.h. This is in preperation for adding support toandrew2015-08-282-1/+6
| | | | | | subclass the dwmmc driver to allow SoC specific attachments. Sponsored by: ABT Systems Ltd
* Add back missing -m32 for amd64 and powerpc64 that was lostimp2015-08-281-0/+3
| | | | in the move to bsd.stand.mk.
* Fix an NFS server bug that manifested in "ls -al" displaying a plustrasz2015-08-281-0/+2
| | | | | | | | | sign on every directory exported via NFSv4 with NFSv4 ACLs enabled. Reviewed by: rmacklem@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3502
* trailing spacepfg2015-08-281-1/+1
|
OpenPOWER on IntegriCloud