zrj [Fri, 22 Jan 2016 09:20:14 +0000 (11:20 +0200)]
usb4bsd: Cleanup pass1.
* Uniformly use #if 0 to deactivate code instead of C comments.
* Move MODULE macros after struct declarations.
zrj [Fri, 22 Jan 2016 09:15:32 +0000 (11:15 +0200)]
usb4bsd: Cleanup pass0.
* Adjust indentation, whitespace and typos.
Sascha Wildner [Thu, 21 Jan 2016 20:24:19 +0000 (21:24 +0100)]
Fix SEE ALSO sorting in a number of manual pages.
Sascha Wildner [Thu, 21 Jan 2016 10:36:25 +0000 (11:36 +0100)]
bus_dma.9: Adjust column width a bit in a list.
Sascha Wildner [Thu, 21 Jan 2016 10:26:05 +0000 (11:26 +0100)]
<net/if.h>: Cleanup the namespace a bit.
* Put everything that is not covered by POSIX under #if __BSD_VISIBLE.
Pretty much like FreeBSD did it already.
* Use standard types for stuff covered by POSIX.
Sascha Wildner [Thu, 21 Jan 2016 10:21:49 +0000 (11:21 +0100)]
<net/if.h>: Whitespace adjustment (no functional change).
Imre Vadász [Wed, 20 Jan 2016 21:27:49 +0000 (22:27 +0100)]
bus_dma.9: Document the BUS_DMA_NOCACHE flag for bus_dmamem_alloc(9).
Inspired-By: FreeBSD
Bill Yuan [Mon, 18 Jan 2016 21:57:02 +0000 (21:57 +0000)]
ipfw3: forward args verification
Sascha Wildner [Tue, 19 Jan 2016 04:28:47 +0000 (05:28 +0100)]
i386 removal, part 49/x: Remove the i386 & a.out specific -v flag in ld(1).
It continues to be accepted without having an effect for compatibility
reasons.
Matthew Dillon [Tue, 19 Jan 2016 02:37:07 +0000 (18:37 -0800)]
pstat - Add -h option
* Add the -h option to ignore BLOCKSIZE and humanize the output.
Imre Vadász [Mon, 18 Jan 2016 20:15:28 +0000 (21:15 +0100)]
if_iwm: Fix up the rate control setup code.
- Initialise rates in the order we want to use them.
- The rate table was being initialised in low->high, but the link quality
table was being initialised high->low. So, when we did a lookup, we
would get the indexes wrong.
Taken-From: FreeBSD (SVN r294248)
François Tigeot [Sat, 16 Jan 2016 12:45:08 +0000 (13:45 +0100)]
drm/linux: Implement pci_iomap()
Sascha Wildner [Sat, 16 Jan 2016 12:11:38 +0000 (13:11 +0100)]
drm/include: Add missing parentheses in a macro.
Sascha Wildner [Sat, 16 Jan 2016 11:48:20 +0000 (12:48 +0100)]
tip(1): Minor cleanup
Sascha Wildner [Sat, 16 Jan 2016 11:33:08 +0000 (12:33 +0100)]
tip(1): Remove some dead code that was never built.
François Tigeot [Sat, 16 Jan 2016 09:10:59 +0000 (10:10 +0100)]
drm/linux: Add for_each_set_bit()
Sepherosa Ziehau [Thu, 14 Jan 2016 13:53:41 +0000 (21:53 +0800)]
ig_hal/em/emx: Add I219 (Skylake) support
Obtained-from: dillon@
Tested-by: me (82574, 82573, 82571), dillon@ (I219, I217)
Sascha Wildner [Fri, 15 Jan 2016 17:31:22 +0000 (18:31 +0100)]
kernel: Fix the kern.dumpdev sysctl.
The 'dumpdev' global wasn't properly set anymore since
b24cd69c3515fb.
Some ports use this sysctl.
Reported-by: zrj
Imre Vadász [Fri, 15 Jan 2016 16:36:04 +0000 (17:36 +0100)]
i915kms.4: Document the new drm.i915.disable_aux_irq tunable.
Imre Vadász [Fri, 15 Jan 2016 15:25:56 +0000 (16:25 +0100)]
wlan - Migrate the 802.11s locks out into ieee80211_dragonflybsd.h.
Taken-From: FreeBSD (SVN r283555)
Sascha Wildner [Fri, 15 Jan 2016 15:36:36 +0000 (16:36 +0100)]
Update the pciconf(8) database.
January 10, 2016 snapshot from http://pciids.sourceforge.net/
Imre Vadász [Fri, 15 Jan 2016 11:06:15 +0000 (12:06 +0100)]
wlan - Cleanup compat shims for FreeBSD version that predate 10.0-RELEASE.
Taken-From: FreeBSD (SVN r283541)
Imre Vadász [Thu, 14 Jan 2016 14:27:05 +0000 (15:27 +0100)]
drm/i915: Add tunable for force-disabling usage of the AUX IRQ.
Adds an optional workaround which can make DisplayPort AUX communication
more reliable.
When using the AUX IRQ for AUX port communication, i915(4) would
in some cases completely fail to display a picture on a notebook screen
connected via embedded DisplayPort.
François Tigeot [Thu, 14 Jan 2016 19:58:31 +0000 (20:58 +0100)]
drm/i915: Sync with Linux 4.0
Use the generic drm_atomic_helper_plane_set_property function.
Sascha Wildner [Thu, 14 Jan 2016 19:25:22 +0000 (20:25 +0100)]
<sys/wait.h>: Clean up a bit.
* Remove the old BSD4.x union wait. As far as I can tell, all ports
have been fixed for this.
* Use __BSD_VISIBLE instead of _POSIX_SOURCE.
* Fix wait3()'s visibility.
Sascha Wildner [Thu, 14 Jan 2016 19:23:59 +0000 (20:23 +0100)]
<sys/wait.h>: Whitespace cleanup (no functional change).
Matthew Dillon [Thu, 14 Jan 2016 18:47:18 +0000 (10:47 -0800)]
kernel - Report AHCI rev programmatically (2)
* Cleanup, not going to store the string rev in sc so no need to allocate
Reported-by: swildner
Matthew Dillon [Thu, 14 Jan 2016 17:06:23 +0000 (09:06 -0800)]
ssh - Remove undocumented roaming support CVE-2016-0777 CVE-2016-0778
* Remove client-side 'roaming' feature as per openbsd patch.
* CVE-2016-0777 CVE-2016-0778. A malicious server can trick the client
into potentially leaking key material.
Sascha Wildner [Thu, 14 Jan 2016 13:10:52 +0000 (14:10 +0100)]
share/man/man9/Makefile: Fix indent.
Sascha Wildner [Thu, 14 Jan 2016 13:05:28 +0000 (14:05 +0100)]
Add a small kstrdup.9 manpage.
Sascha Wildner [Thu, 14 Jan 2016 12:14:05 +0000 (13:14 +0100)]
rbootd(8): Remove vax/m68k/tahoe code.
Sascha Wildner [Thu, 14 Jan 2016 12:10:15 +0000 (13:10 +0100)]
libc/xdr: Remove VAX specific code.
Matthew Dillon [Thu, 14 Jan 2016 05:43:54 +0000 (21:43 -0800)]
crunchgen - Fix Makefile dependency
* This should fix a parallel make dependency whos absence allowed
the .lo target to be built before all the objects finished compiling.
Matthew Dillon [Thu, 14 Jan 2016 03:10:40 +0000 (19:10 -0800)]
kernel - Report AHCI rev programmatically
* Remove the switch() and generate the AHCI rev from the register contents.
* Fixes reporting of some AHCI chipsets as an unknown version of AHCI
(Skylake reports AHCI 1.3.1, our switch only had 1.3.0).
Matthew Dillon [Wed, 13 Jan 2016 06:19:25 +0000 (22:19 -0800)]
kernel - Fix degenerate condition in dfly_setrunqueue_locked()
* dfly_setrunqueue_locked() was unconditionally adding the lp to the end
of the round-robin queue for the specified priority due to a degenerate
'... || !TAILQ_EMPTY()' test.
Remove the degenerate test, allowing a thread to be entered onto the
head of the queue if its rrcount is reasonable. Theoretically this should
allow interactivity at the same queue priority even in a heavily-batched
environment.
* Do not reset rrcount when adding to the head of the queue even if
the queue is otherwise empty. This allows the round-robin state to be
retained across short delays (for example, nanosleeps) which are not as
interactive as the system might otherwise believe, resulting in a more fair
apportionment of cpu between batchy threads that use different delays but
wind up at the same priority.
* Also adjust dfly_resetpriority() to reset lwp_rrcount to 0 when moving
a thread to a higher priority queue.
* These changes should probably be re-tested against the postgres test
suite to determine if any regressions were introduced. It could very
well be that the original action of always adding to the end of the queue
might actually be the best action to take.
Reported-by: Adrian Drzewiecki <z@drze.net>
Sascha Wildner [Wed, 13 Jan 2016 04:25:20 +0000 (05:25 +0100)]
sliplogin(8): Fix a mistake i made in
0fe90ae88cbf.
Sascha Wildner [Wed, 13 Jan 2016 04:10:04 +0000 (05:10 +0100)]
Sync sed(1) with FreeBSD (various fixes).
Sascha Wildner [Wed, 13 Jan 2016 01:39:46 +0000 (02:39 +0100)]
tr(1): Sync with FreeBSD.
* Multibyte character support.
* Better POSIX conformance.
* Some cleanup and improvements.
François Tigeot [Tue, 12 Jan 2016 19:35:41 +0000 (20:35 +0100)]
drm: Improve linux dma mapping functions
Partially-obtained-from: FreeBSD.
François Tigeot [Tue, 12 Jan 2016 18:11:32 +0000 (19:11 +0100)]
drm: Add linux/bitmap.h
Sascha Wildner [Tue, 12 Jan 2016 18:09:12 +0000 (19:09 +0100)]
basename.1: Small update from FreeBSD.
Sascha Wildner [Tue, 12 Jan 2016 17:37:26 +0000 (18:37 +0100)]
join(1): Sync with FreeBSD.
* Multibyte character support.
* Some cleanup and improvements.
Sascha Wildner [Tue, 12 Jan 2016 17:13:10 +0000 (18:13 +0100)]
cut(1): Small sync with FreeBSD (is_delim() arg type and indent).
Sascha Wildner [Tue, 12 Jan 2016 17:02:54 +0000 (18:02 +0100)]
fold(1): Sync with FreeBSD.
* Multibyte character support.
* Some cleanup and improvements.
Sascha Wildner [Tue, 12 Jan 2016 05:58:18 +0000 (06:58 +0100)]
fmt(1): Sync with FreeBSD.
* Multibyte character support.
* Some cleanup and improvements.
Sascha Wildner [Tue, 12 Jan 2016 05:40:28 +0000 (06:40 +0100)]
Remove two casts of NULL.
Sascha Wildner [Tue, 12 Jan 2016 05:31:51 +0000 (06:31 +0100)]
column(1): Small fix from FreeBSD.
Sascha Wildner [Tue, 12 Jan 2016 05:03:05 +0000 (06:03 +0100)]
look(1): Sync with FreeBSD.
* Multibyte character support.
* Some cleanup and improvements.
Sascha Wildner [Tue, 12 Jan 2016 04:33:09 +0000 (05:33 +0100)]
expand(1)/unexpand(1): Sync with FreeBSD.
* Multibyte character support.
* Some cleanup.
François Tigeot [Mon, 11 Jan 2016 21:23:31 +0000 (22:23 +0100)]
drm: Add asm/cpufeature.h
François Tigeot [Mon, 11 Jan 2016 21:09:13 +0000 (22:09 +0100)]
kernel/linux: Add hweight8()
Sascha Wildner [Mon, 11 Jan 2016 18:25:41 +0000 (19:25 +0100)]
printf(1): Sync with FreeBSD.
* Better multibyte character support.
* Some improvements for better POSIX conformance.
* Position handling (%1$, %2$ etc.).
* Use variable length array instead of alloca().
Sascha Wildner [Sun, 10 Jan 2016 23:21:35 +0000 (00:21 +0100)]
libc/gen: Cleanup Makefile.inc a bit.
Sascha Wildner [Sun, 10 Jan 2016 23:21:29 +0000 (00:21 +0100)]
makecontext_quick.3: Adjust swapcontext_quick() prototype to <ucontext.h>.
While here, start one sentence on a new line.
Sascha Wildner [Sun, 10 Jan 2016 20:18:16 +0000 (21:18 +0100)]
wc(1): Sync with FreeBSD.
* Improved multibyte character support.
* New -L option to report the longest line.
Matthew Dillon [Sun, 10 Jan 2016 19:34:29 +0000 (11:34 -0800)]
kernel - Remove kernel debugging message related to user seg-faults
* Remove kprintf("T_PAGEFLT: Warning %%rip == 0!\n"); This debugging
output was put in place during the initial 64-bit port to help debug
the VM system and is no longer needed.
* Fixes system ultra-slowness/lockup issues if a user program faults on
%rip == 0 and tries to catch the signal and return, creating a continuous
loop that saturates the console.
François Tigeot [Sun, 10 Jan 2016 10:49:25 +0000 (11:49 +0100)]
drm/i915: Use dev->pdev to get PCI device revisions
Reducing differences with Linux.
François Tigeot [Sun, 10 Jan 2016 10:40:42 +0000 (11:40 +0100)]
drm: Store PCI device information in a struct pci_dev
Reducing differences with Linux
François Tigeot [Sun, 10 Jan 2016 10:37:47 +0000 (11:37 +0100)]
drm: Improve Linux compatibility of pci structures
Sascha Wildner [Sun, 10 Jan 2016 09:00:46 +0000 (10:00 +0100)]
kernel/kate: Bad idea to put temporary values in the sensor value directly.
Pointed-out-by: Constantine Aleksandrovich Murenin
Sascha Wildner [Sun, 10 Jan 2016 08:08:23 +0000 (09:08 +0100)]
ncal(1): Sync with FreeBSD.
* Multibyte character support.
* -3 to show previous, this and next month.
* -A for months after this month.
* -B for months before this month.
* -h to disable highlighting.
* Some extensions to -m ('f' and 'p').
* Various other fixes.
Also, raise WARNS to 6.
Submitted-by: Yellow Rabbit <yrabbit@sdf.lonestar.org>
Sascha Wildner [Sun, 10 Jan 2016 03:18:57 +0000 (04:18 +0100)]
ee(1): Raise WARNS to 2.
Sascha Wildner [Sun, 10 Jan 2016 03:18:30 +0000 (04:18 +0100)]
ee(1): Fix an uninitialized variable.
Since ee(1) was switched from mktemp() to mkstemp(), the file name is
no longer initialized. Initialize it to NULL at least. The message in
case of an error will still be confusing, but for now, live with it.
Sascha Wildner [Sun, 10 Jan 2016 02:43:35 +0000 (03:43 +0100)]
w(1): Use NELEM(), raise WARNS to 3.
Sascha Wildner [Sun, 10 Jan 2016 02:41:35 +0000 (03:41 +0100)]
w(1): inet_addr() returns INADDR_NONE upon failure.
Sascha Wildner [Sun, 10 Jan 2016 02:16:48 +0000 (03:16 +0100)]
kernel/kate: CurTmp starts at -28C on Socket AM2 Revision G processors.
Such as on this 4850e of mine.
Taken-from: FreeBSD
François Tigeot [Sat, 9 Jan 2016 21:28:18 +0000 (22:28 +0100)]
drm: Always enable MSI interrupts
The Linux drm code doesn't contain any blacklist for hardware with
broken MSI support; there is no reason for MSI interrupts to not work
with DragonFly either.
Sascha Wildner [Sat, 9 Jan 2016 18:56:50 +0000 (19:56 +0100)]
vis(1): Fix some warnings and raise WARNS to 6.
Sascha Wildner [Sat, 9 Jan 2016 18:44:13 +0000 (19:44 +0100)]
rtadvd(8)/rtadvctl(8): Raise WARNS to 6 and fix two warnings.
Sascha Wildner [Sat, 9 Jan 2016 18:34:42 +0000 (19:34 +0100)]
mrouted(8): Raise WARNS to 2 and fix some warnings.
Sascha Wildner [Sat, 9 Jan 2016 18:00:22 +0000 (19:00 +0100)]
sliplogin(8): Fix a number of style(9) issues / warnings, raise WARNS to 3.
Sascha Wildner [Sat, 9 Jan 2016 17:32:03 +0000 (18:32 +0100)]
tzsetup(8): Raise WARNS to 6 and fix a warning.
Sascha Wildner [Sat, 9 Jan 2016 04:37:06 +0000 (05:37 +0100)]
rpc.lockd(8): Clean up the Makefile a little.
Sascha Wildner [Sat, 9 Jan 2016 04:19:00 +0000 (05:19 +0100)]
rpc.lockd(8): Remove an obsolete file from an older version of lockd.
Sascha Wildner [Sat, 9 Jan 2016 03:05:44 +0000 (04:05 +0100)]
i386 removal, part 48/x: Remove ancient bootdev parsing in sysctl(8).
While here, remove an i386 specific reference from isa.4's SEE ALSO.
Sascha Wildner [Sat, 9 Jan 2016 02:47:39 +0000 (03:47 +0100)]
i386 removal, part 47/x: Remove the i386 specific spic(4) device.
Sascha Wildner [Fri, 8 Jan 2016 18:17:15 +0000 (19:17 +0100)]
Sync ACPICA with Intel's version
20160108.
This includes the
20151218 upgrade which we had to revert again because
of a bug found by tkusumi. The only major change in
20160108 is a fix
for this bug.
20151218 changes:
* Execute "module-level code" as ACPI tables are loaded into the
namespace during initialization and install the default operation
region handlers for the SystemMemory, SystemIO and PCI_Config
address spaces before any ACPI tables are loaded (in order to
enable module-level code to access these address spaces). Also,
several changes to the internal _REG support and to utilities
in conjunction with these changes.
20160108 changes:
* Fixed a regression introduced in version
20151218 concerning the
execution of so-called module-level ASL/AML code. Namespace objects
created under a module-level If() construct were not properly/fully
entered into the namespace and could cause an interpreter fault when
accessed.
* Fixed a problem with the compilation of the GpioIo and GpioInt resource
descriptors. The _PIN field name was incorrectly defined to be an array
of 32-bit values, but the _PIN values are in fact 16 bits each. This
would cause incorrect bit width warnings when using Word (16-bit) fields
to access the descriptors.
Additionally, some minor fixes, features etc. were added.
For a more detailed list, please see sys/contrib/dev/acpica/changes.txt.
Tested-by: tkusumi
Zach Crownover [Thu, 7 Jan 2016 22:04:34 +0000 (22:04 +0000)]
route: various small fixes
* Added w and d flag to man page list of options
* Updated output from route command to list w and c in list of options
as well
* Added documentation in man page for d option
* Removed trailing whitespace on a few lines.
Imre Vadász [Thu, 7 Jan 2016 21:35:54 +0000 (22:35 +0100)]
if_run: Sync with FreeBSD up to r270643 (from August 26 2014)
Taken-From: FreeBSD (SVN r263985 r267089 r270192 r270643)
Sascha Wildner [Thu, 7 Jan 2016 18:30:36 +0000 (19:30 +0100)]
kernel/tmpfs: Use the more common 'ap' name for vops arguments.
Matthew Dillon [Thu, 7 Jan 2016 18:13:07 +0000 (10:13 -0800)]
hammer - remove debugging kprintf
* Remove a debugging kprintf related to mkdir() errors which can trigger
under nominal conditions (attempting to create a subdirectory in a parent
which had already been rmdir'd)
zrj [Wed, 6 Jan 2016 10:10:23 +0000 (12:10 +0200)]
hangman(6): Update to augmented version from OpenBSD.
This implements usage of extra wordlists:
* kernel symbols, from current booted kernel image;
* non-default, from Elf and conformant dictonaries.
While there, free hangman(6) from the shackles of dungeon master,
since hangman now could be used as a developer tool.
Imre Vadasz [Wed, 6 Jan 2016 12:53:25 +0000 (13:53 +0100)]
if_run: Uncomment code from FreeBSD to defer run_wme_update_cb
- This should avoid a frequently occuring deadlock in if_run.
- This workaround is already removed in current FreeBSD code, where the
net80211 layer now takes care of deferred calling of the wme_update
callback into the driver.
Sascha Wildner [Wed, 6 Jan 2016 10:33:39 +0000 (11:33 +0100)]
kernel/tmpfs: Add _PC_2_SYMLINKS support. getconf(1) adjustments.
Sascha Wildner [Wed, 6 Jan 2016 10:30:42 +0000 (11:30 +0100)]
getconf(1): Sort variable/name pairs.
zrj [Wed, 6 Jan 2016 07:40:33 +0000 (09:40 +0200)]
hals_end: Fix manlint.
While there, update .Dd in colorbars(6) too.
Imre Vadász [Sun, 3 Jan 2016 16:10:52 +0000 (17:10 +0100)]
if_iwm: Fix IEEE80211_ADDR_COPY() usage.
Taken-From: FreeBSD
Imre Vadász [Sun, 3 Jan 2016 15:57:02 +0000 (16:57 +0100)]
if_iwm: Always stop LED blinking when scanning is finished
When state is still IEEE80211_S_RUN after scanning is done, enable the LED.
This matches the behaviour of if_iwn(4).
zrj [Mon, 4 Jan 2016 17:15:46 +0000 (19:15 +0200)]
piano(6): Retire. R.I.P.
Support for /dev/speaker was removed back in 2005.
zrj [Mon, 4 Jan 2016 16:57:42 +0000 (18:57 +0200)]
games: Import colorbars and hals_end from NetBSD.
This satisfies two comes in, one comes out rule.
zrj [Mon, 4 Jan 2016 16:38:57 +0000 (18:38 +0200)]
mdoc.local: Add NetBSD 7.0 for future reference.
zrj [Tue, 5 Jan 2016 13:14:37 +0000 (15:14 +0200)]
test: ,,,^..^,,,~~~~
Sascha Wildner [Tue, 5 Jan 2016 05:14:07 +0000 (06:14 +0100)]
<unistd.h>: Add _POSIX_THREAD_ROBUST_PRIO_{INHERIT,PROTECT} definitions.
Also adjust sysconf(3) and getconf(1) accordingly.
Sascha Wildner [Tue, 5 Jan 2016 03:35:51 +0000 (04:35 +0100)]
<unistd.h>: Comment some POSIX options.
Sepherosa Ziehau [Mon, 4 Jan 2016 14:38:12 +0000 (22:38 +0800)]
re: Only probe fixed PHY location
Obtained-from: FreeBSD
Sepherosa Ziehau [Mon, 4 Jan 2016 14:15:58 +0000 (22:15 +0800)]
re: Reduce GMII PHY read/write timeout
Obtained-from: FreeBSD
Sepherosa Ziehau [Mon, 4 Jan 2016 13:23:40 +0000 (21:23 +0800)]
re: Change CFG1 and CFG5 after flip EECMD
Obtained-from: FreeBSD
Tomohiro Kusumi [Sun, 3 Jan 2016 13:40:43 +0000 (22:40 +0900)]
sbin/hammer: Fix hammer(8) manpage
Add a sentence that explains PFS via PFS is not allowed.
Sascha Wildner [Sun, 3 Jan 2016 20:55:20 +0000 (21:55 +0100)]
nl(1): Sync with FreeBSD.
* multibyte char support
* use getline()
* treat '-' as standard input
Sascha Wildner [Sun, 3 Jan 2016 19:07:30 +0000 (20:07 +0100)]
comm(1): Sync with FreeBSD.
* multibyte char support
* fix truncation of lines at LINE_MAX
* use getline()
* make functions static