dragonfly.git
8 years agodrm/linux: Add for_each_set_bit()
François Tigeot [Sat, 16 Jan 2016 09:10:59 +0000 (10:10 +0100)]
drm/linux: Add for_each_set_bit()

8 years agoig_hal/em/emx: Add I219 (Skylake) support
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)
8 years agokernel: Fix the kern.dumpdev sysctl.
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
8 years agoi915kms.4: Document the new drm.i915.disable_aux_irq tunable.
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.

8 years agowlan - Migrate the 802.11s locks out into ieee80211_dragonflybsd.h.
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)

8 years agoUpdate the pciconf(8) database.
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/

8 years agowlan - Cleanup compat shims for FreeBSD version that predate 10.0-RELEASE.
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)

8 years agodrm/i915: Add tunable for force-disabling usage of the AUX IRQ.
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.

8 years agodrm/i915: Sync with Linux 4.0
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.

8 years ago<sys/wait.h>: Clean up a bit.
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.

8 years ago<sys/wait.h>: Whitespace cleanup (no functional change).
Sascha Wildner [Thu, 14 Jan 2016 19:23:59 +0000 (20:23 +0100)]
<sys/wait.h>: Whitespace cleanup (no functional change).

8 years agokernel - Report AHCI rev programmatically (2)
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
8 years agossh - Remove undocumented roaming support CVE-2016-0777 CVE-2016-0778
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.

8 years agoshare/man/man9/Makefile: Fix indent.
Sascha Wildner [Thu, 14 Jan 2016 13:10:52 +0000 (14:10 +0100)]
share/man/man9/Makefile: Fix indent.

8 years agoAdd a small kstrdup.9 manpage.
Sascha Wildner [Thu, 14 Jan 2016 13:05:28 +0000 (14:05 +0100)]
Add a small kstrdup.9 manpage.

8 years agorbootd(8): Remove vax/m68k/tahoe code.
Sascha Wildner [Thu, 14 Jan 2016 12:14:05 +0000 (13:14 +0100)]
rbootd(8): Remove vax/m68k/tahoe code.

8 years agolibc/xdr: Remove VAX specific code.
Sascha Wildner [Thu, 14 Jan 2016 12:10:15 +0000 (13:10 +0100)]
libc/xdr: Remove VAX specific code.

8 years agocrunchgen - Fix Makefile dependency
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.

8 years agokernel - Report AHCI rev programmatically
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).

8 years agokernel - Fix degenerate condition in dfly_setrunqueue_locked()
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>
8 years agosliplogin(8): Fix a mistake i made in 0fe90ae88cbf.
Sascha Wildner [Wed, 13 Jan 2016 04:25:20 +0000 (05:25 +0100)]
sliplogin(8): Fix a mistake i made in 0fe90ae88cbf.

8 years agoSync sed(1) with FreeBSD (various fixes).
Sascha Wildner [Wed, 13 Jan 2016 04:10:04 +0000 (05:10 +0100)]
Sync sed(1) with FreeBSD (various fixes).

8 years agotr(1): Sync with FreeBSD.
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.

8 years agodrm: Improve linux dma mapping functions
François Tigeot [Tue, 12 Jan 2016 19:35:41 +0000 (20:35 +0100)]
drm: Improve linux dma mapping functions

Partially-obtained-from: FreeBSD.

8 years agodrm: Add linux/bitmap.h
François Tigeot [Tue, 12 Jan 2016 18:11:32 +0000 (19:11 +0100)]
drm: Add linux/bitmap.h

8 years agobasename.1: Small update from FreeBSD.
Sascha Wildner [Tue, 12 Jan 2016 18:09:12 +0000 (19:09 +0100)]
basename.1: Small update from FreeBSD.

8 years agojoin(1): Sync with 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.

8 years agocut(1): Small sync with FreeBSD (is_delim() arg type and indent).
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).

8 years agofold(1): Sync with FreeBSD.
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.

8 years agofmt(1): Sync with FreeBSD.
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.

8 years agoRemove two casts of NULL.
Sascha Wildner [Tue, 12 Jan 2016 05:40:28 +0000 (06:40 +0100)]
Remove two casts of NULL.

8 years agocolumn(1): Small fix from FreeBSD.
Sascha Wildner [Tue, 12 Jan 2016 05:31:51 +0000 (06:31 +0100)]
column(1): Small fix from FreeBSD.

8 years agolook(1): Sync with 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.

8 years agoexpand(1)/unexpand(1): Sync with FreeBSD.
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.

8 years agodrm: Add asm/cpufeature.h
François Tigeot [Mon, 11 Jan 2016 21:23:31 +0000 (22:23 +0100)]
drm: Add asm/cpufeature.h

8 years agokernel/linux: Add hweight8()
François Tigeot [Mon, 11 Jan 2016 21:09:13 +0000 (22:09 +0100)]
kernel/linux: Add hweight8()

8 years agoprintf(1): Sync with FreeBSD.
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().

8 years agolibc/gen: Cleanup Makefile.inc a bit.
Sascha Wildner [Sun, 10 Jan 2016 23:21:35 +0000 (00:21 +0100)]
libc/gen: Cleanup Makefile.inc a bit.

8 years agomakecontext_quick.3: Adjust swapcontext_quick() prototype to <ucontext.h>.
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.

8 years agowc(1): Sync with FreeBSD.
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.

8 years agokernel - Remove kernel debugging message related to user seg-faults
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.

8 years agodrm/i915: Use dev->pdev to get PCI device revisions
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.

8 years agodrm: Store PCI device information in a struct pci_dev
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

8 years agodrm: Improve Linux compatibility of pci structures
François Tigeot [Sun, 10 Jan 2016 10:37:47 +0000 (11:37 +0100)]
drm: Improve Linux compatibility of pci structures

8 years agokernel/kate: Bad idea to put temporary values in the sensor value directly.
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
8 years agoncal(1): Sync with FreeBSD.
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>
8 years agoee(1): Raise WARNS to 2.
Sascha Wildner [Sun, 10 Jan 2016 03:18:57 +0000 (04:18 +0100)]
ee(1): Raise WARNS to 2.

8 years agoee(1): Fix an uninitialized variable.
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.

8 years agow(1): Use NELEM(), raise WARNS to 3.
Sascha Wildner [Sun, 10 Jan 2016 02:43:35 +0000 (03:43 +0100)]
w(1): Use NELEM(), raise WARNS to 3.

8 years agow(1): inet_addr() returns INADDR_NONE upon failure.
Sascha Wildner [Sun, 10 Jan 2016 02:41:35 +0000 (03:41 +0100)]
w(1): inet_addr() returns INADDR_NONE upon failure.

8 years agokernel/kate: CurTmp starts at -28C on Socket AM2 Revision G processors.
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

8 years agodrm: Always enable MSI interrupts
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.

8 years agovis(1): Fix some warnings and raise WARNS to 6.
Sascha Wildner [Sat, 9 Jan 2016 18:56:50 +0000 (19:56 +0100)]
vis(1): Fix some warnings and raise WARNS to 6.

8 years agortadvd(8)/rtadvctl(8): Raise WARNS to 6 and fix two warnings.
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.

8 years agomrouted(8): Raise WARNS to 2 and fix some warnings.
Sascha Wildner [Sat, 9 Jan 2016 18:34:42 +0000 (19:34 +0100)]
mrouted(8): Raise WARNS to 2 and fix some warnings.

8 years agosliplogin(8): Fix a number of style(9) issues / warnings, raise WARNS to 3.
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.

8 years agotzsetup(8): Raise WARNS to 6 and fix a warning.
Sascha Wildner [Sat, 9 Jan 2016 17:32:03 +0000 (18:32 +0100)]
tzsetup(8): Raise WARNS to 6 and fix a warning.

8 years agorpc.lockd(8): Clean up the Makefile a little.
Sascha Wildner [Sat, 9 Jan 2016 04:37:06 +0000 (05:37 +0100)]
rpc.lockd(8): Clean up the Makefile a little.

8 years agorpc.lockd(8): Remove an obsolete file from an older version of lockd.
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.

8 years agoi386 removal, part 48/x: Remove ancient bootdev parsing in sysctl(8).
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.

8 years agoi386 removal, part 47/x: Remove the i386 specific spic(4) device.
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.

8 years agoSync ACPICA with Intel's version 20160108.
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
8 years agoroute: various small fixes
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.

8 years agoif_run: Sync with FreeBSD up to r270643 (from August 26 2014)
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)

8 years agokernel/tmpfs: Use the more common 'ap' name for vops arguments.
Sascha Wildner [Thu, 7 Jan 2016 18:30:36 +0000 (19:30 +0100)]
kernel/tmpfs: Use the more common 'ap' name for vops arguments.

8 years agohammer - remove debugging kprintf
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)

8 years agohangman(6): Update to augmented version from OpenBSD.
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.

8 years agoif_run: Uncomment code from FreeBSD to defer run_wme_update_cb
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.

8 years agokernel/tmpfs: Add _PC_2_SYMLINKS support. getconf(1) adjustments.
Sascha Wildner [Wed, 6 Jan 2016 10:33:39 +0000 (11:33 +0100)]
kernel/tmpfs: Add _PC_2_SYMLINKS support. getconf(1) adjustments.

8 years agogetconf(1): Sort variable/name pairs.
Sascha Wildner [Wed, 6 Jan 2016 10:30:42 +0000 (11:30 +0100)]
getconf(1): Sort variable/name pairs.

8 years agohals_end: Fix manlint.
zrj [Wed, 6 Jan 2016 07:40:33 +0000 (09:40 +0200)]
hals_end: Fix manlint.

While there, update .Dd in colorbars(6) too.

8 years agoif_iwm: Fix IEEE80211_ADDR_COPY() usage.
Imre Vadász [Sun, 3 Jan 2016 16:10:52 +0000 (17:10 +0100)]
if_iwm: Fix IEEE80211_ADDR_COPY() usage.

Taken-From: FreeBSD

8 years agoif_iwm: Always stop LED blinking when scanning is finished
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).

8 years agopiano(6): Retire. R.I.P.
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.

8 years agogames: Import colorbars and hals_end from NetBSD.
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.

8 years agomdoc.local: Add NetBSD 7.0 for future reference.
zrj [Mon, 4 Jan 2016 16:38:57 +0000 (18:38 +0200)]
mdoc.local: Add NetBSD 7.0 for future reference.

8 years agotest: ,,,^..^,,,~~~~
zrj [Tue, 5 Jan 2016 13:14:37 +0000 (15:14 +0200)]
test: ,,,^..^,,,~~~~

8 years ago<unistd.h>: Add _POSIX_THREAD_ROBUST_PRIO_{INHERIT,PROTECT} definitions.
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.

8 years ago<unistd.h>: Comment some POSIX options.
Sascha Wildner [Tue, 5 Jan 2016 03:35:51 +0000 (04:35 +0100)]
<unistd.h>: Comment some POSIX options.

8 years agore: Only probe fixed PHY location
Sepherosa Ziehau [Mon, 4 Jan 2016 14:38:12 +0000 (22:38 +0800)]
re: Only probe fixed PHY location

Obtained-from: FreeBSD

8 years agore: Reduce GMII PHY read/write timeout
Sepherosa Ziehau [Mon, 4 Jan 2016 14:15:58 +0000 (22:15 +0800)]
re: Reduce GMII PHY read/write timeout

Obtained-from: FreeBSD

8 years agore: Change CFG1 and CFG5 after flip EECMD
Sepherosa Ziehau [Mon, 4 Jan 2016 13:23:40 +0000 (21:23 +0800)]
re: Change CFG1 and CFG5 after flip EECMD

Obtained-from: FreeBSD

8 years agosbin/hammer: Fix hammer(8) manpage
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.

8 years agonl(1): Sync with FreeBSD.
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

8 years agocomm(1): Sync with FreeBSD.
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

8 years agousr.bin/uniq: Sync with FreeBSD
zrj [Wed, 11 Nov 2015 07:26:27 +0000 (09:26 +0200)]
usr.bin/uniq: Sync with FreeBSD

Few improvements, mainly wchar_t support.

Obtained-from: FreeBSD

8 years agore: Disable ASPM
Sepherosa Ziehau [Sun, 3 Jan 2016 12:12:34 +0000 (20:12 +0800)]
re: Disable ASPM

Referenced: FreeBSD

8 years agore: Update Realtek PHY power management related bits
Sepherosa Ziehau [Sun, 3 Jan 2016 06:21:08 +0000 (14:21 +0800)]
re: Update Realtek PHY power management related bits

Obtained-from: FreeBSD

8 years agokqueue: Move notifymsglist out of kqinfo
Sepherosa Ziehau [Sun, 3 Jan 2016 02:21:43 +0000 (10:21 +0800)]
kqueue: Move notifymsglist out of kqinfo

It is only used by socket code.

8 years ago<strings.h>: Fix VKERNEL64 build.
Sascha Wildner [Sat, 2 Jan 2016 14:09:00 +0000 (15:09 +0100)]
<strings.h>: Fix VKERNEL64 build.

8 years agokernel/tmpfs: Implement _PC_FILESIZEBITS.
Sascha Wildner [Sat, 2 Jan 2016 12:53:10 +0000 (13:53 +0100)]
kernel/tmpfs: Implement _PC_FILESIZEBITS.

8 years agokernel: Add flsll(). Identical to flsl().
Sascha Wildner [Sat, 2 Jan 2016 12:50:03 +0000 (13:50 +0100)]
kernel: Add flsll(). Identical to flsl().

Add FreeBSD's libkern version too, but on x86_64 this is not compiled,
because we use inline assembly.

8 years agokernel/tmpfs: Sort pathconf cases.
Sascha Wildner [Sat, 2 Jan 2016 11:23:27 +0000 (12:23 +0100)]
kernel/tmpfs: Sort pathconf cases.

8 years agoif_iwm: Make the wifi LED work with iwm(4) (2/2)
François Tigeot [Sat, 2 Jan 2016 08:16:25 +0000 (09:16 +0100)]
if_iwm: Make the wifi LED work with iwm(4) (2/2)

Add forgotten if_iwm_led.c to sys/conf/files

8 years agoif_iwm: Make the wifi LED work with iwm(4).
Imre Vadász [Fri, 1 Jan 2016 21:41:23 +0000 (22:41 +0100)]
if_iwm: Make the wifi LED work with iwm(4).

- While the wifi device is scanning or trying to associate, the LED
  should blink now.
- When associated to a wifi network, the LED will stop blinking and stay
  enabled.

Taken-From: OpenBSD

8 years agoif_iwm: Remove comments referring to Linux iwlwifi source filenames.
Imre Vadász [Fri, 1 Jan 2016 21:26:02 +0000 (22:26 +0100)]
if_iwm: Remove comments referring to Linux iwlwifi source filenames.

Taken-From: OpenBSD

8 years agodump.8: Remove overlooked .Pp
Sascha Wildner [Fri, 1 Jan 2016 12:45:32 +0000 (13:45 +0100)]
dump.8: Remove overlooked .Pp

8 years agoSplit EXIT STATUS and DIAGNOSTICS sections in manual pages.
Sascha Wildner [Fri, 1 Jan 2016 00:07:02 +0000 (01:07 +0100)]
Split EXIT STATUS and DIAGNOSTICS sections in manual pages.

Also correct some DIAGNOSTICS -> EXIT STATUS where it described only
the exit codes.

8 years agoif_iwm: Just store the struct firmware pointer, like if_iwn does.
Imre Vadász [Thu, 31 Dec 2015 22:13:12 +0000 (23:13 +0100)]
if_iwm: Just store the struct firmware pointer, like if_iwn does.

if_iwm was passing the firmware data pointer to firmware_put(9), instead
of the struct firmware pointer that was returned by firmware_get(9).

8 years agoif_iwm: Apply some changes from OpenBSD, if_iwm.c rev 1.39 -> 1.42
Imre Vadász [Wed, 30 Dec 2015 16:01:11 +0000 (17:01 +0100)]
if_iwm: Apply some changes from OpenBSD, if_iwm.c rev 1.39 -> 1.42

- Use m_defrag(9) instead of rolling our own version of it.

- Limit the number of dma segments used for tx to IWM_MAX_SCATTER - 2.
  This avoids out-of-bound accesses on the segs array in iwm_tx().

- cleanup attach message

Taken-From: OpenBSD