summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* MFC r307131: install header files required development with libzfs_coreavg2016-10-281-0/+11
|
* MFC r307130: smbus: allow child devices to be added via hintsavg2016-10-282-63/+139
|
* MFC r306808:kib2016-10-281-2/+7
| | | | Add verbosity around failed reboot(2) call.
* MFC r306807:kib2016-10-281-1/+9
| | | | | | When making a pause after detecting hard kill of the single-user shell, ensure that we do sleep for at least the specified time, in presence of signals.
* MFC r307651:hselasky2016-10-281-5/+30
| | | | | | Add support for adjusting the hardware buffering delay for USB audio. Requested by: Goran Mekic <meka@tilda.center>
* MFC 303002: Include process IDs in core dumps.jhb2016-10-283-2/+9
| | | | | | | | | When threads were added to the kernel, the pr_pid member of the NT_PRSTATUS note was repurposed to store LWP IDs instead of process IDs. However, the process ID was no longer recorded in core dumps. This change adds a pr_pid field to prpsinfo (NT_PRSINFO). Rather than bumping the prpsinfo version number, note parsers can use the note's payload size to determine if pr_pid is present.
* MFC r307869:kib2016-10-271-1/+1
| | | | Fix typo.
* MFC r305539: work around AMD erratum 793 for family 16h, models 00h-0Fhavg2016-10-271-0/+14
|
* MFC r306801: implement zfs_vptocnp() using z_parent propertyavg2016-10-273-2/+46
|
* MFC r307578davidcs2016-10-263-97/+108
| | | | | | | | | | | 1. Use taskqueue_create() instead of taskqueue_create_fast() for both fastpath and slowpath taskqueues. 2. Service all transmits in taskqueue threads. 3. additional stats counters for keeping track of - bd availability - tx buf ring not emptied in the fp task queue. These are drained via timeout taskqueue. - tx attempts during link down.
* MFC r307628:ae2016-10-261-1/+5
| | | | Fix `ipfw table lookup` handler to return entry value, but not its index.
* MFC r307638:gahr2016-10-261-2/+2
| | | | | | | | | | | Chase a cornercase in printenv and sync its behaviour with builtin's The cornercase is when printenv is passed a parameter in the form VAR=val, where VAR=val exists in the environment. In this case, printenv would print a spurious newline and returns 0. Approved by: cognet MFC after: 1 week
* MFC r307132: Use copyout() instead of pointing sbuf to user-space buffer.mav2016-10-261-2/+2
|
* Merge r307937:glebius2016-10-251-4/+4
| | | | | | | | Fix unchecked array reference in the VGA device emulation code. Submitted by: Ilja Van Sprundel <ivansprundel ioactive.com> Patch by: tychon Security: SA-16:32
* Merge r307936:glebius2016-10-251-1/+4
| | | | | | | | | The argument validation in r296956 was not enough to close all possible overflows in sysarch(2). Submitted by: Kun Yang <kun.yang chaitin.com> Patch by: kib Security: SA-16:15
* accept4 actually expect SOCK_NONBLOCK and not O_NONBLOCKbapt2016-10-251-1/+1
| | | | | Reported by: jhb Pointyhat to: bapt
* MFC r307787:bapt2016-10-251-2/+2
| | | | | | | Fix typo in the COMPILER_VERSION check PR: 213120 Submitted by: Yuta Satoh <nigoro.dev@gmail.com>
* MFC r307786:bapt2016-10-252-2/+12
| | | | | | | Do not install NIS program rc script if WITHOUT_NIS is set PR: 213375 Submitted by: sergey@akhmatov.ru
* MFC r307783:bapt2016-10-254-66/+94
| | | | Import tzdata 2016h
* MFC r307551:jch2016-10-253-3/+42
| | | | | | | | | | | | | | | | | | Fix a double-free when an inp transitions to INP_TIMEWAIT state after having been dropped. This change enforces in_pcbdrop() logic in tcp_input(): "in_pcbdrop() is used by TCP to mark an inpcb as unused and avoid future packet delivery or event notification when a socket remains open but TCP has closed." PR: 203175 Reported by: Palle Girgensohn, Slawa Olhovchenkov Tested by: Slawa Olhovchenkov Reviewed by: Slawa Olhovchenkov Approved by: gnn, Slawa Olhovchenkov Differential Revision: https://reviews.freebsd.org/D8211 Sponsored by: Verisign, inc
* MFC r307379:manu2016-10-242-1/+302
| | | | | | axp209: Add support for regulators Except for LDO4, all regulators are supported.
* MFC r306680:kib2016-10-245-22/+58
| | | | Reduce the cost of TLB invalidation on x86 by using per-CPU completion flags.
* MFC r307501:kib2016-10-241-2/+8
| | | | | If vm_fault_hold(9) finds that fs.m is wired, do not free it after a pager error, leave the page to the wire owner.
* MFC r307499:kib2016-10-242-1/+2
| | | | Export vm_page_xunbusy_maybelocked().
* MFC r306570:markj2016-10-244-13/+0
| | | | Allow tracing of functions prefixed by "__".
* MFC r307522: makesyscalls.sh: remove trailing space on the "created from" lineemaste2016-10-241-2/+1
| | | | | | | | | | | | | | | | | | | In r10905 and r10906 makesyscalls was modified to avoid emitting a literal $Id$ string in the generated file, with: gsub("[$]Id: ", "", $0) gsub(" [$]", "", $0) Then r11294 added some functionality and also tried to address the $Id$ problem in a different way, by removing every $: sed -e 's/\$//g ... This rendered the gsub infeffective. The gsub was later updated to track the $Id$ -> $FreeBSD$ switch, even though it did not do anything. Revert the addition of the s/\$//g, and update the gsub to keep the resulting format the same.
* MFC r307520: elfdump: correct DT_AUXILIARY / DT_USED / DT_FILTER definitionsemaste2016-10-241-3/+3
| | | | | | r109332 introduced these three as DT_SUNW_*. Update to the correct names already used elsewhere in FreeBSD and the Sun "Linker and Libraries Guide"
* MFC r307215:mm2016-10-2210-31/+127
| | | | | | | Sync libarchive with vendor. Style and tests fixes. Important vendor bugfixes (relevant to FreeBSD): #801: FreeBSD Coverity report: resource leak in libarchive/tar/test/main.c
* MFC r305707:bapt2016-10-221-4/+1
| | | | Directly set the O_NONBLOCK flags via open(2)
* MFC r303223:bapt2016-10-2232-642/+1181
| | | | Update mandoc to 1.13.4 release
* MFC r302471, r302473:bapt2016-10-222-15/+13
| | | | | | | | | | | | | | | | r302471: Add RCS Id. Sort options in SYNOPSIS. Fix macro usage. Fix Dd. Submitted by: wiz@NetBSD.org Obtained from: NetBSD r302473: Sync usage between program and man page. Increase column width. [1] Simplifay the usage() function Replace errx/strerror with errc Submitted by: wiz@NetBSD.org [1] Obtained from: NetBSD
* MFC r303265:bapt2016-10-221-2/+1
| | | | Remove reference cpp(1) which is not used anymore
* MFC r307364:bapt2016-10-221-3/+1
| | | | directly create the socket with SOCK_NONBLOCK instead of calling fcntl(2)
* MFC r306554:bapt2016-10-221-4/+2
| | | | Use accept4 with O_NONBLOCK rather than accept + fcntl
* MFC r306544:bapt2016-10-2222-274/+841
| | | | Import libucl 20160812
* MFC r303783, r305927:bapt2016-10-221-40/+29
| | | | | | | | | | | | | r303783: sdiff: remove non finish/function code 2 extra options not available neither on other BSD nor in GNU sdiff: --diff-pid and --pipe-fd were present in the SoC code, none were usable Just remove it r305927: Remove reference of z(s)diff which was dropped before importing
* MFC r303784, r303785, r305620:bapt2016-10-223-19/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r303784: etcupdate: directly use diff3(1) instead of merge(1) During the last attempt to rmeove GNU rcs, 2 blockers were spotted: We need an ident(1) and etcupdate(8) uses merge(1). Now nothing should prevent to remove rcs from base Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D7401 r303785: always install etcupdate Now that etcupdate does not depend on rcs anymore there is no need to conditionnally install it r305620: (by vangyzen ) etcupdate: preserve the metadata of the destination file When using diff3 to perform a three-way merge, etcupdate lost the destination file's metadata. The metadata from the temporary file were used instead. This was unpleasant for rc.d scripts, which require execute permission. Use "cat >" to overwrite the destination file's contents while preserving its metadata. Reviewed by: bapt Sponsored by: Dell Technologies Differential Revision: https://reviews.freebsd.org/D7817
* MFC r306860:gonzo2016-10-221-87/+83
| | | | | | | | | | | Add multitouch support for RPi's FT5406 - Add multitouch support (protocol B) - Report physical size of the screen - Switch from using busy loop to callbacks - Enable callbacks only when there is active listener on /dev/input/eventX Submitted by: Vladimir Kondratiev <wulf@cicgroup.ru>
* MFC r306647, r306855, r306857gonzo2016-10-226-25/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r306647: const-ify struct evdev_methods Submitted by: Vladimir Kondratiev <wulf@cicgroup.ru> Suggested by: hselasky r306855: Allow using of driver's mutex instead internal one for evdev locking. Add new API call: evdev_register_mtx which takes lock argument that should be used instead of internal one for evdev locking. Useful for cases if evdev_push_event() is always called with driver's lock taken and reduces amount of lock aquisitions. This allows to avoid LOR between ev_open/ev_close invocations and evdev_push_event() Such LOR can happen when ev_open/ev_close methods acquire driver lock and evdev_push_event() is called with this lock taken. Submitted by: Vladimir Kondratiev <wulf@cicgroup.ru> r306857: Implement EVDEV_FLAG_MT_AUTOREL flag (autorelease touchpoints) Automaticaly release (send ABS_MT_TRACKING_ID = -1) MT-slots that has not been listed in current MT protocol type B report. Slot is counted as listed if corresponding ABS_MT_SLOT event has been sent regardless of other MT events. Events are sent on SYN_REPORT event. Submitted by: Vladimir Kondratiev <wulf@cicgroup.ru>
* MFC r306618, r306619gonzo2016-10-224-5/+16
| | | | | | | | | | | | r306618: Fix attach/detach methods - Initialize lock before starting worker process - Do not hold lock when destroying evdev. By that time ther should be no other active code pathes that can access softc r306619: Add rpi_ft5406 module and add it to extra modules in Raspberry Pi configs
* MFC r306530, r306531, r306532, r306579:gonzo2016-10-2213-35/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r306530: Declare a module for evdev and add dependency to ukbd(4) and ums(4) Prepare for making evdev a module. "Pure" evdev device drivers (like touchscreen) and evdev itself can be built as a modules regardless of "options EVDEV" in kernel config. So if people does not require evdev functionality in hybrid drivers like ums and ukbd they can, for instance, kldload evdev and utouchscreen to run FreeBSD in kiosk mode. r306531: Add dependency to evdev module (if required) r306532: Add dependency to evdev module r306579: Modularize evdev - Convert "options EVDEV" to "device evdev" and "device uinput", add modules for both new devices. They are isolated subsystems and do not require any compile-time changes to general kernel subsytems - For hybrid drivers that have evdev as an optional way to deliver input events add option EVDEV_SUPPORT. Update all existing hybrid drivers to use it instead of EVDEV - Remove no-op DECLARE_MODULE in evdev, it's not required, MODULE_VERSION is enough - Add evdev module dependency to uinput Submitted by: Vladimir Kondratiev <wulf@cicgroup.ru>
* MFC: 305937bapt2016-10-221-1/+34
| | | | | | | Capsicum-ize tee(1) Reviewed by: allanjude Differential Revision: https://reviews.freebsd.org/D7940
* MFC: 307368,307369,307372,307381bapt2016-10-225-56/+29
| | | | | | | | Remove the common.h include which is actually not used in sdiff.c Turn editit into a static function Move cleanup() into the edit.c file which is the only users of that function Remove common.{c,h} Fix typos in sdiff(1) message and improve display
* MFC: 306864,307648bapt2016-10-221-1/+1
| | | | Groff is needed only if MK_GROFF and MK_SHAREDOCS are both true.
* MFC r306430gonzo2016-10-224-0/+348
| | | | | | | | | | | | | | | | | Add touchscreen support for the official 7" RPi touch display Technically touchscreen chip is FT5406 but all hardware communication is performed by VideCore and only final results are presented to ARM part through memory region shared between VC and ARM. evdev is used as userland interface. FT5406 supports up to 10 touchpoints, but for now driver emulates single touch device because I do not have GUI bits to test this functionality. Driver is not enabled in default config for RPI and RPI2 Tested with: evdev-dump, tslib
* MFC r306578:gonzo2016-10-221-1/+1
| | | | | | Fix gcc compilation error input_absinfo.code is unsigned so condition is always false
* MFC r306134:gonzo2016-10-222-57/+205
| | | | | | | | | | | | Add evdev support to ums(4) event generation is disabled by default in favour of sysmouse. This behavoiur is controlled by kern.evdev.rcpt_mask sysctl, bit 2 should be set to give priority to hw over sysmouse Submitted by: Vladimir Kondratiev <wulf@cicgroup.ru> Reviewed by: hans Differential Revision: https://reviews.freebsd.org/D7863
* MFC r306132, r306275:gonzo2016-10-222-1/+80
| | | | | | | | | | | | | | | | | | r306132: Add evdev support to ukbd driver event generation is disabled by default in favour of kbdmux. This behavoiur is controlled by kern.evdev.rcpt_mask sysctl, bit 3 should be set to give priority to hw over mux Submitted by: Vladimir Kondratiev <wulf@cicgroup.ru> Reviewed by: hans Differential Revision: https://reviews.freebsd.org/D7957 r306275: Do not perform extra check for NULL, evdev_free can handle NULL value Submitted by: Vladimir Kondratiev <wulf@cicgroup.ru>
* MFC r305708, r305719gonzo2016-10-224-1/+81
| | | | | | | | | | | | | | | | | | | | | | r305708: Add evdev support to TI ADC/touchscreen driver Add generic evdev support to touchscreen part of ti_adc: two absolute coordinates + button touch to indicate pen position. Pressure value reporting is not implemented yet. Tested on: Beaglebone Black + 4DCAPE-43T + tslib r305719: Cleanup evdev support for TI ADC/TS - evdev_set_methods call is not required if actual methods are no-ops - evdev_set_serial is also optional if there is no meaningful input device identifier - evdev_set_id on the other hand is mandatory, so set virtual bus with dummy vendor/product/version Suggested by: Vladimir Kondratiev
* MFC r305706, r305749, r306274gonzo2016-10-2215-2/+4640
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r305706: Add evdev protocol implementation evdev is a generic input event interface compatible with Linux evdev API at ioctl level. It allows using unmodified (apart from header name) input evdev drivers in Xorg, Wayland, Qt. This commit has only generic kernel API. evdev support for individual hardware drivers like ukbd, ums, atkbd, etc. will be committed later. Project was started by Jakub Klama as part of GSoC 2014. Jakub's evdev implementation was later used as a base, updated and finished by Vladimir Kondratiev. Submitted by: Vladimir Kondratiev <wulf@cicgroup.ru> Reviewed by: adrian, hans Differential Revision: https://reviews.freebsd.org/D6998 r305749: Remove semicolon from the end of the macro definition Reported by: hans r306274: Handle NULL argument in evdev_free Add check for evdev argument of evdev_free being NULL. This is valid value and should not cause crash. In this case evdev_free does nothing Submitted by: Vladimir Kondratiev <wulf@cicgroup.ru>
OpenPOWER on IntegriCloud