]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
8 years agoMFV r287817: 6220 memleak in l2arc on debug build
Andriy Gapon [Mon, 21 Sep 2015 12:23:01 +0000 (12:23 +0000)]
MFV r287817: 6220 memleak in l2arc on debug build

https://github.com/illumos/illumos-gate/commit/c546f36aa898d913ff77674fb5ff97f15b2e08b4
https://www.illumos.org/issues/6220
  5408 introduced a memleak in l2arc, namely the member b_thawed gets leaked when
  an arc_hdr is realloced from full to l2only.

Reviewed by: Saso Kiselkov <saso.kiselkov@nexenta.com>
Reviewed by: Simon Klinkert <simon.klinkert@gmail.com>
Reviewed by: George Wilson <george@delphix.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Author: Arne Jansen <sensille@gmx.net>

8 years agoUnify nd6 state switching by using newly-created nd6_llinfo_setstate()
Alexander V. Chernikov [Mon, 21 Sep 2015 11:19:53 +0000 (11:19 +0000)]
Unify nd6 state switching by using newly-created nd6_llinfo_setstate()
  function. The change is mostly mechanical with the following exception:
Last piece of nd6_resolve_slow() was refactored: ND6_LLINFO_PERMANENT
  condition was removed as always-true, explicit ND6_LLINFO_NOSTATE ->
  ND6_LLINFO_INCOMPLETE state transition was removed as duplicate.

Reviewed by: ae
Sponsored by: Yandex LLC

8 years agoMake cltd ignore HA ports.
Alexander Motin [Mon, 21 Sep 2015 10:27:30 +0000 (10:27 +0000)]
Make cltd ignore HA ports.

8 years agoAdd "stale" timer back to nd6_cache_lladdr().
Alexander V. Chernikov [Mon, 21 Sep 2015 10:24:34 +0000 (10:24 +0000)]
Add "stale" timer back to nd6_cache_lladdr().
Setting timer was accidentally removed in r276844 due to misleading
  comment on its meaningless. Add it back to restore proper behaviour.

8 years agoBunch of improvements to ctlstat.
Alexander Motin [Mon, 21 Sep 2015 09:37:49 +0000 (09:37 +0000)]
Bunch of improvements to ctlstat.

Add -p option to allow filtering by ports.
Make -l and -p options work in all modes as filters.
Improve output formatting to better fit columns.

8 years agoDelete /etc/autofs/special_noauto when MK_AUTOFS == no
Enji Cooper [Mon, 21 Sep 2015 03:39:13 +0000 (03:39 +0000)]
Delete /etc/autofs/special_noauto when MK_AUTOFS == no

MFC after: 1 week

8 years agoEnable if_dwc for Allwinner A20 based boards.
Luiz Otavio O Souza [Mon, 21 Sep 2015 03:17:41 +0000 (03:17 +0000)]
Enable if_dwc for Allwinner A20 based boards.

This enables the gigabit ethernet on cubieboard2 and banana pi.

A special thanks to Netgate who gently provided me with a banana pi almost
a year ago.

8 years agoYes, it supports 802.11n.
Adrian Chadd [Mon, 21 Sep 2015 02:33:11 +0000 (02:33 +0000)]
Yes, it supports 802.11n.

8 years agoFlip on 11n by default; update TODO items.
Adrian Chadd [Mon, 21 Sep 2015 02:32:11 +0000 (02:32 +0000)]
Flip on 11n by default; update TODO items.

8 years agoConvert if_rsu to use a deferred transmit task rather than using rsu_start()
Adrian Chadd [Mon, 21 Sep 2015 02:30:22 +0000 (02:30 +0000)]
Convert if_rsu to use a deferred transmit task rather than using rsu_start()
to do it directly.

Ensure that we re-queue starting transmit upon TX completion.

This solves two issues:

* It stops tx stalls - before this, if the transmit path filled the
  mbuf queue then it'd never start another transmit.

* It enforces ordering - this is very required for 802.11n which
  requires frames to be transmitted in the order they're queued.
  Since everything remotely involved in USB has an unlock/thing/relock
  pattern with that mutex, the only way to guarantee TX ordering is
  to 100% defer it into a separate thread.

This now survives an iperf test and gets a reliable 30mbit/sec.

8 years agoDrain the mbuf queue upon rsu_stop().
Adrian Chadd [Mon, 21 Sep 2015 02:12:01 +0000 (02:12 +0000)]
Drain the mbuf queue upon rsu_stop().

Correctly (I hope!) remove net80211 references before doing so.
Just doing a dumb mbufq drain isn't enough.

If enough traffic occurs and the mbuf queue fills up then transmit
stalls (which I'm not fixing in this commit!) but then the mbuf queue
stays full until the driver is removed.  There's also the net80211
node refcounting leak.

This just ensures that during rsu_stop and detach the mbuf queue
is purged (and references!) so the queue-full situation can be
recovered from.

8 years agoAdd the A20 glue code for if_dwc.
Luiz Otavio O Souza [Mon, 21 Sep 2015 01:51:37 +0000 (01:51 +0000)]
Add the A20 glue code for if_dwc.

This code initializes the GMAC clock and sets the pin mux to rgmii.

It also override the if_dwc defaults to set the alternate descriptor type
and MII clock used on A20.

Tested on cubieboard2 and banana pi.

8 years agoDisable HT40 in if_rsu for now. There's something missing in the HT40
Adrian Chadd [Sun, 20 Sep 2015 22:52:40 +0000 (22:52 +0000)]
Disable HT40 in if_rsu for now.  There's something missing in the HT40
setup pieces and so (at least) transmit doesn't work.

It'll just fall back to being a straight HT20 device and negotiate
HT20 only.

Tested by: Idwer Vollering <vidwer@gmail.com>

8 years agoUse ANSI C prototypes. Eliminates -Wold-style-definition warnings.
Craig Rodrigues [Sun, 20 Sep 2015 21:21:17 +0000 (21:21 +0000)]
Use ANSI C prototypes.  Eliminates -Wold-style-definition warnings.

8 years agoUse ANSI C prototypes. Eliminates -Wold-style-definition warnings.
Craig Rodrigues [Sun, 20 Sep 2015 21:21:01 +0000 (21:21 +0000)]
Use ANSI C prototypes.  Eliminates -Wold-style-definition warnings.

8 years agoEnsure that when a blockable open of fifo returns success, a valid
Konstantin Belousov [Sun, 20 Sep 2015 21:18:33 +0000 (21:18 +0000)]
Ensure that when a blockable open of fifo returns success, a valid
file descriptor opened for complimentary access exists as well.

The implementation of the guarantee is done by counting the
generations of readers and writers opens.  We return success and not
EINTR or ERESTART error, when the sleep for complimentary opening is
interrupted, but the generation was changed during the sleep.

Longer explanation: assume there are two threads, A doing open("fifo",
O_RDONLY) and B doing open("fifo", O_WRONLY), and no other threads
either trying to open the fifo, nor there are any file descriptors
referencing the fifo.  Before the change, it was possible e.g. for for
thread A to return a valid file descriptor, while thread B returned
EINTR if a signal to B was delivered simultaneously with the wakeup
from A.  After the change, in this situation both A::open() and
B::open() succeed and the signal is made "as if" it was noticed
slightly later.  Note that the signal actual delivery is not changed,
it is done by ast on syscall return path, so signal handler is still
executed before first instruction after syscall.

See PR for the code demonstrating the issue.

PR: 203162
Reported by: Victor Stinner victor.stinner@gmail.com
Reviewed by: jilles
Tested by: bapt, pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

8 years agoOutput times as normal microseconds, rather then in bintime format.
Alexander Motin [Sun, 20 Sep 2015 21:06:37 +0000 (21:06 +0000)]
Output times as normal microseconds, rather then in bintime format.

8 years agoUse ANSI C prototypes. Eliminates -Wold-style-definition warnings.
Craig Rodrigues [Sun, 20 Sep 2015 20:55:00 +0000 (20:55 +0000)]
Use ANSI C prototypes.  Eliminates -Wold-style-definition warnings.

8 years agoUse ANSI C prototypes. Eliminates -Wold-style-definition warnings.
Craig Rodrigues [Sun, 20 Sep 2015 20:53:24 +0000 (20:53 +0000)]
Use ANSI C prototypes.  Eliminates -Wold-style-definition warnings.

8 years agoUse ANSI C prototypes. Eliminates -Wold-style-definition warnings.
Craig Rodrigues [Sun, 20 Sep 2015 20:52:13 +0000 (20:52 +0000)]
Use ANSI C prototypes.  Eliminates -Wold-style-definition warnings.

8 years agoUse ANSI C prototypes. Eliminates -Wold-style-definition warnings.
Craig Rodrigues [Sun, 20 Sep 2015 20:51:52 +0000 (20:51 +0000)]
Use ANSI C prototypes.  Eliminates -Wold-style-definition warnings.

8 years agoUse ANSI C prototypes. Eliminates -Wold-style-definition warnings.
Craig Rodrigues [Sun, 20 Sep 2015 20:50:56 +0000 (20:50 +0000)]
Use ANSI C prototypes.  Eliminates -Wold-style-definition warnings.

8 years agoUse ANSI C prototypes. Eliminates -Wold-style-definition warnings.
Craig Rodrigues [Sun, 20 Sep 2015 20:50:18 +0000 (20:50 +0000)]
Use ANSI C prototypes.  Eliminates -Wold-style-definition warnings.

8 years agoUse ANSI C prototypes. Eliminates -Wold-style-definition warnings.
Craig Rodrigues [Sun, 20 Sep 2015 20:28:49 +0000 (20:28 +0000)]
Use ANSI C prototypes.  Eliminates -Wold-style-definition warnings.

8 years agoRemove names from some prototypes
Craig Rodrigues [Sun, 20 Sep 2015 20:27:57 +0000 (20:27 +0000)]
Remove names from some prototypes

8 years agoRemove names from some prototypes
Craig Rodrigues [Sun, 20 Sep 2015 20:26:46 +0000 (20:26 +0000)]
Remove names from some prototypes

8 years agoUse ANSI C prototypes. Eliminates -Wold-style-definition warnings.
Craig Rodrigues [Sun, 20 Sep 2015 20:24:28 +0000 (20:24 +0000)]
Use ANSI C prototypes.  Eliminates -Wold-style-definition warnings.

8 years agoUse ANSI C prototypes. Eliminates -Wold-style-definition warnings.
Craig Rodrigues [Sun, 20 Sep 2015 20:23:16 +0000 (20:23 +0000)]
Use ANSI C prototypes.  Eliminates -Wold-style-definition warnings.

8 years agoRemove names from some prototypes
Craig Rodrigues [Sun, 20 Sep 2015 20:21:49 +0000 (20:21 +0000)]
Remove names from some prototypes

8 years agoRemove names from some prototypes
Craig Rodrigues [Sun, 20 Sep 2015 20:16:34 +0000 (20:16 +0000)]
Remove names from some prototypes

8 years agoRemove names from prototypes
Craig Rodrigues [Sun, 20 Sep 2015 20:15:44 +0000 (20:15 +0000)]
Remove names from prototypes

8 years agoCorrect a non-fatal error in vm_pageout_worker(). vm_pageout_worker()
Alan Cox [Sun, 20 Sep 2015 19:20:03 +0000 (19:20 +0000)]
Correct a non-fatal error in vm_pageout_worker().  vm_pageout_worker()
should not assume that vm_pages_needed will remain set while it sleeps.
Other threads can clear vm_pages_needed by performing a sufficient
number of vm_page_free() calls, e.g., process termination.  The effect
of this error was that vm_pageout_worker() would free and/or launder
pages when, in fact, there was no shortage of free pages.

Rewrite a nearby comment to describe all of the possible cases and not
just the most common case.  The problem being that the comment made
the most common case seem like the only case.

Reviewed by: kib
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

8 years agoFix the build by adding the alternate descriptors and MII clock defines.
Luiz Otavio O Souza [Sun, 20 Sep 2015 14:28:06 +0000 (14:28 +0000)]
Fix the build by adding the alternate descriptors and MII clock defines.

This obviously should be in the last commit.

8 years agoAdd alternate descriptors support for if_dwc.
Luiz Otavio O Souza [Sun, 20 Sep 2015 14:13:29 +0000 (14:13 +0000)]
Add alternate descriptors support for if_dwc.

This also adds a newbus interface that allows a SoC to override the
following settings:

 - if_dwc specific SoC initialization;
 - if_dwc descriptor type;
 - if_dwc MII clock.

This seems to be an old version of the hardware descriptors but it is
still in use in a few SoCs (namely Allwinner A20 and Amlogic at least).

Tested on Cubieboard2 and Banana pi.

Tested for regressions on Altera Cyclone by br@ (old version).

Obtained from: NetBSD

8 years agoRemove unnecessary includes and, while here, sort them.
Luiz Otavio O Souza [Sun, 20 Sep 2015 13:15:09 +0000 (13:15 +0000)]
Remove unnecessary includes and, while here, sort them.

8 years agoMark with DMA flag I/Os waiting for iSCSI write data after R2T.
Alexander Motin [Sun, 20 Sep 2015 11:39:19 +0000 (11:39 +0000)]
Mark with DMA flag I/Os waiting for iSCSI write data after R2T.

Reads and immediate writes are not blocking, so don't bother.

8 years agoRemove couple excess SGLIST I/O flags.
Alexander Motin [Sun, 20 Sep 2015 10:40:30 +0000 (10:40 +0000)]
Remove couple excess SGLIST I/O flags.

Those flags duplicated respective (sg_entries > 0) values.

8 years agoAdd include for declaration of _set_tp(). Eliminates -Wmissing-prototypes warnings.
Craig Rodrigues [Sun, 20 Sep 2015 04:59:01 +0000 (04:59 +0000)]
Add include for declaration of _set_tp().  Eliminates -Wmissing-prototypes warnings.

8 years agoAdd declarations to eliminate -Wmissing-prototypes warnings
Craig Rodrigues [Sun, 20 Sep 2015 04:26:55 +0000 (04:26 +0000)]
Add declarations to eliminate -Wmissing-prototypes warnings

8 years agoUse ANSI C prototypes.
Craig Rodrigues [Sun, 20 Sep 2015 04:23:16 +0000 (04:23 +0000)]
Use ANSI C prototypes.

Eliminates gcc 4.9 warnings.

8 years agoAdd declaration to eliminate -Wmissing-prototypes warning
Craig Rodrigues [Sun, 20 Sep 2015 04:21:44 +0000 (04:21 +0000)]
Add declaration to eliminate -Wmissing-prototypes warning

8 years agoAdd declarations to netdb_private.h to eliminate -Wmissing-prototypes warnings.
Craig Rodrigues [Sun, 20 Sep 2015 04:20:31 +0000 (04:20 +0000)]
Add declarations to netdb_private.h to eliminate -Wmissing-prototypes warnings.

8 years agoAdd declarations to eliminate -Wmissing-prototypes warnings
Craig Rodrigues [Sun, 20 Sep 2015 04:17:53 +0000 (04:17 +0000)]
Add declarations to eliminate -Wmissing-prototypes warnings

8 years agoDefine _NS_PRIVATE to make declarations visible.
Craig Rodrigues [Sun, 20 Sep 2015 04:17:03 +0000 (04:17 +0000)]
Define _NS_PRIVATE to make declarations visible.
This eliminates -Wmissing-prototypes warnings.

8 years agoAdd missing includes to eliminate -Wmissing-prototypes warnings
Craig Rodrigues [Sun, 20 Sep 2015 04:15:37 +0000 (04:15 +0000)]
Add missing includes to eliminate -Wmissing-prototypes warnings

8 years agoAdding missing declarations to eliminate -Wmissing-prototypes warnings
Craig Rodrigues [Sun, 20 Sep 2015 04:06:55 +0000 (04:06 +0000)]
Adding missing declarations to eliminate -Wmissing-prototypes warnings

8 years agoAdd missing include to eliminate -Wmissing-prototypes warning
Craig Rodrigues [Sun, 20 Sep 2015 04:06:04 +0000 (04:06 +0000)]
Add missing include to eliminate -Wmissing-prototypes warning

8 years agoAdd declaration to eliminate -Wmissing-prototypes warning
Craig Rodrigues [Sun, 20 Sep 2015 03:59:27 +0000 (03:59 +0000)]
Add declaration to eliminate -Wmissing-prototypes warning

8 years agoAdd declarations to eliminate -Wmissing-prototypes warnings
Craig Rodrigues [Sun, 20 Sep 2015 03:58:27 +0000 (03:58 +0000)]
Add declarations to eliminate -Wmissing-prototypes warnings

8 years agoAdding missing include to eliminate -Wmissing-prototypes warning
Craig Rodrigues [Sun, 20 Sep 2015 03:56:57 +0000 (03:56 +0000)]
Adding missing include to eliminate -Wmissing-prototypes warning

8 years agoAdd declarations to eliminate -Wmissing-prototypes warnings
Craig Rodrigues [Sun, 20 Sep 2015 03:55:03 +0000 (03:55 +0000)]
Add declarations to eliminate -Wmissing-prototypes warnings

8 years agoAdd declarations to eliminate -Wmissing-prototypes warnings.
Craig Rodrigues [Sun, 20 Sep 2015 03:53:08 +0000 (03:53 +0000)]
Add declarations to eliminate -Wmissing-prototypes warnings.

8 years agoAdd declaration to eliminate -Wmissing-prototypes warning.
Craig Rodrigues [Sun, 20 Sep 2015 03:51:15 +0000 (03:51 +0000)]
Add declaration to eliminate -Wmissing-prototypes warning.

8 years agoAdd missing include to eliminate -Wmissing-prototypes warnings
Craig Rodrigues [Sun, 20 Sep 2015 03:49:08 +0000 (03:49 +0000)]
Add missing include to eliminate -Wmissing-prototypes warnings

8 years agoAdd missing includes to eliminate -Wmissing-prototypes warnings
Craig Rodrigues [Sun, 20 Sep 2015 03:45:57 +0000 (03:45 +0000)]
Add missing includes to eliminate -Wmissing-prototypes warnings

8 years agoUse tabs for indend.
Konstantin Belousov [Sun, 20 Sep 2015 01:35:51 +0000 (01:35 +0000)]
Use tabs for indend.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

8 years agoAdd support for weak symbols to the kernel linkers. It means that
Konstantin Belousov [Sun, 20 Sep 2015 01:27:59 +0000 (01:27 +0000)]
Add support for weak symbols to the kernel linkers.  It means that
linkers no longer raise an error when undefined weak symbols are
found, but relocate as if the symbol value was 0.  Note that we do not
repeat the mistake of userspace dynamic linker of making the symbol
lookup prefer non-weak symbol definition over the weak one, if both
are available.  In fact, kernel linker uses the first definition
found, and ignores duplicates.

Signature of the elf_lookup() and elf_obj_lookup() functions changed
to split result/error code and the symbol address returned.
Otherwise, it is impossible to return zero address as the symbol
value, to MD relocation code.  This explains the mechanical changes in
elf_machdep.c sources.

The powerpc64 R_PPC_JMP_SLOT handler did not checked error from the
lookup() call, the patch leaves the code as is (untested).

Reported by: glebius
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

8 years agoAdd PF_LOCAL support in getaddrinfo(3) and getnameinfo(3):
Hiroki Sato [Sun, 20 Sep 2015 01:09:23 +0000 (01:09 +0000)]
Add PF_LOCAL support in getaddrinfo(3) and getnameinfo(3):

- In a PF_LOCAL address, "hostname" must begins with '/' and "servname"
  is always NULL.  All of ai_flags are ignored.

- PF_UNSPEC matches PF_LOCAL.  EAI_SERVICE is not returned to make
  AF-independent programming easier; "servname" is always ignored
  in PF_LOCAL.  In practice, PF_INET* and PF_LOCAL are
  mutually-exclusive because a hostname which begins with '/' is invalid
  in PF_INET*.  No domain name resolution is performed for a PF_LOCAL address.

Differential Revision: https://reviews.freebsd.org/D3634

8 years ago- Remove unused union p_un.
Hiroki Sato [Sat, 19 Sep 2015 23:48:06 +0000 (23:48 +0000)]
- Remove unused union p_un.

- Use NI_MAXHOST-long buffer for getnameinfo().
  Although INET6_ADDRSTRLEN was designed to hold the longest
  IPv6 address in IPv4-mapped address format a long time ago,
  getnameinfo() can return scope identifier in addition to it.

MFC after: 1 day

8 years ago- Fix a crash on a rpc entry when an IPv6 address is explicitly specified
Hiroki Sato [Sat, 19 Sep 2015 23:27:22 +0000 (23:27 +0000)]
- Fix a crash on a rpc entry when an IPv6 address is explicitly specified
  in -a flag.

- Fix a bug that sockaddr_in was used where sockaddr_in6 should have
  been used.  This was not actually harmful because offsetof(struct
  sockaddr_in, sin_port) is equal to offsetof(struct sockaddr_in6,
  sin6_port).

MFC after: 1 day

8 years agolibc: Consistently call _ioctl() internally, not ioctl().
Jilles Tjoelker [Sat, 19 Sep 2015 20:27:09 +0000 (20:27 +0000)]
libc: Consistently call _ioctl() internally, not ioctl().

8 years ago'sin' is never used after assignment. Looking at the context, it seems
Xin LI [Sat, 19 Sep 2015 20:12:53 +0000 (20:12 +0000)]
'sin' is never used after assignment.  Looking at the context, it seems
that it belongs the commented out section of code so make it part of that
section.

Reported by: clang static analyzer
MFC after: 2 weeks

8 years agoAlways execute REPORT LUNS and REQUEST SENSE commands locally.
Alexander Motin [Sat, 19 Sep 2015 19:30:55 +0000 (19:30 +0000)]
Always execute REPORT LUNS and REQUEST SENSE commands locally.

REPORT LUNS command is more related to target rather then specific LUN.
This node may be primary for LUNs for some reason unknown to another,
and command forwarded to another node won't be able to report them.

REQUEST SENSE is related to LUN, but in our implementation it reports
only UAs and CAs, that are stored locally rather then on primary node.

8 years agoSplit two command flags with different meaning.
Alexander Motin [Sat, 19 Sep 2015 19:11:59 +0000 (19:11 +0000)]
Split two command flags with different meaning.

This is only a cosmetical change.

8 years agoRename some functions and variables inside sesutil(8) to make gcc happy
Allan Jude [Sat, 19 Sep 2015 18:41:24 +0000 (18:41 +0000)]
Rename some functions and variables inside sesutil(8) to make gcc happy

Reported by: bz
Approved by: bapt (implicit)
Sponsored by: ScaleEngine Inc.

8 years agoPack struct ctl_ha_msg_hdr by 8 bytes.
Alexander Motin [Sat, 19 Sep 2015 18:23:06 +0000 (18:23 +0000)]
Pack struct ctl_ha_msg_hdr by 8 bytes.

8 years agoRevert 287914,287762.
Sean Bruno [Sat, 19 Sep 2015 18:22:59 +0000 (18:22 +0000)]
Revert 287914,287762.

Reports of breakage on igb(4) have been narrowed down to 287762 and 287914
is an dependant change.

Submitted by: erj

8 years agoConnect sesutil(1) and numactl(1) for META_MODE.
Bryan Drewery [Sat, 19 Sep 2015 17:47:36 +0000 (17:47 +0000)]
Connect sesutil(1) and numactl(1) for META_MODE.

Sponsored by: EMC / Isilon Storage Division

8 years agoImprove and expand sesutil(8)
Allan Jude [Sat, 19 Sep 2015 16:36:45 +0000 (16:36 +0000)]
Improve and expand sesutil(8)

- Return an error if no matching device is found when the locate command is run
- Enhance the locate command to be able to address drive bays with no disk, or where the SES controller has not made the mapping to the device name
- Added the fault command, similar to locate, but a different SES property. On some of my controllers locate blinks the activity light, others the fault light. The fault command keeps the fault light on constant.
- Improve the usage() output and use it everywhere
- Added the map command, displays all elements connected to each (or the specified) ses(4) controller
- Added the status command, returns the overall status of the ses(4) controller

Reviewed by: wblock (man page, earlier version)
Approved by: bapt (mentor)
MFC after: 3 weeks
Relnotes: yes
Sponsored by: ScaleEngine Inc.
Differential Revision: https://reviews.freebsd.org/D3580

8 years agoRestore man -t for manpages rendered by mandoc
Baptiste Daroussin [Sat, 19 Sep 2015 16:00:50 +0000 (16:00 +0000)]
Restore man -t for manpages rendered by mandoc

Reported by: swills

8 years agoFix memory corruption when >128K transferred through HA link.
Alexander Motin [Sat, 19 Sep 2015 13:12:09 +0000 (13:12 +0000)]
Fix memory corruption when >128K transferred through HA link.

While there, do some cleaning.

8 years agoCleanup nd6_cache_lladdr(). No functional changes.
Alexander V. Chernikov [Sat, 19 Sep 2015 11:50:02 +0000 (11:50 +0000)]
Cleanup nd6_cache_lladdr(). No functional changes.

* Since new extries are now allocated explicitly, fill in
  all the necessary fields for lle _before_ attaching it to the table.
* Remove ND6_LLINFO_INCOMPLETE check which was unused even in
  first KAME merge (r53541).
* After that, the only new state that function can set, was
  ND6_LLINFO_STALE. Given everything above, simplify logic besides
  do_update and is_newentry.
* Fix nd_resolve() comment.

8 years agoReplace afterinstall: hack with FILES mechanism.
Bryan Drewery [Sat, 19 Sep 2015 03:53:37 +0000 (03:53 +0000)]
Replace afterinstall: hack with FILES mechanism.

Sponsored by: EMC / Isilon Storage Division

8 years agoReplace afterinstall: hack from r54681 with 'make delete-old' functionality.
Bryan Drewery [Sat, 19 Sep 2015 03:51:19 +0000 (03:51 +0000)]
Replace afterinstall: hack from r54681 with 'make delete-old' functionality.

Sponsored by: EMC / Isilon Storage Division

8 years agoReplace afterinstall: hack from r111083 with 'make delete-old' functionality.
Bryan Drewery [Sat, 19 Sep 2015 03:46:10 +0000 (03:46 +0000)]
Replace afterinstall: hack from r111083 with 'make delete-old' functionality.

Sponsored by: EMC / Isilon Storage Division

8 years agoReplace beforeinstall: handling with FILES.
Bryan Drewery [Fri, 18 Sep 2015 23:49:32 +0000 (23:49 +0000)]
Replace beforeinstall: handling with FILES.

This actually fixes some cases to respect LIBRARIES_ONLY.

Sponsored by: EMC / Isilon Storage Division

8 years agoRemove redundant beforeinstall.
Bryan Drewery [Fri, 18 Sep 2015 23:34:47 +0000 (23:34 +0000)]
Remove redundant beforeinstall.

8 years agoFix LIBRARIES_ONLY
Bryan Drewery [Fri, 18 Sep 2015 23:25:43 +0000 (23:25 +0000)]
Fix LIBRARIES_ONLY

It was erroring: make: don't know how to make _manpages. Stop

Sponsored by: EMC / Isilon Storage Division
MFC after: 1 week

8 years agoMETA_MODE: No need to fix the link in this case.
Bryan Drewery [Fri, 18 Sep 2015 23:12:38 +0000 (23:12 +0000)]
META_MODE: No need to fix the link in this case.

The exists(${DESTDIR}...) check runs with DESTDIR being blank.  When the
target runs it does have DESTDIR=${STAGE_OBJTOP} via bsd.sys.mk.  This
results in the first execution warning that the symlink is missing.  The
second run does run fine.  However, this chflags is not needed at all
for META_MODE/STAGING since we never had this path being a schg file
while using META_MODE.

Sponsored by: EMC / Isilon Storage Division

8 years agoRemove rm -Rf beforeinstall hack that was needed due to a change that
Bryan Drewery [Fri, 18 Sep 2015 22:55:18 +0000 (22:55 +0000)]
Remove rm -Rf beforeinstall hack that was needed due to a change that
only lasted 3 days in HEAD in 2001 (r88348 - r88459)

Sponsored by: EMC / Isilon Storage Division

8 years agoGarbage collect _SHLIBDIRPREFIX leftovers from r284898.
Bryan Drewery [Fri, 18 Sep 2015 22:28:13 +0000 (22:28 +0000)]
Garbage collect _SHLIBDIRPREFIX leftovers from r284898.

Sponsored by: EMC / Isilon Storage Division

8 years agoRegenerate
Bryan Drewery [Fri, 18 Sep 2015 22:26:25 +0000 (22:26 +0000)]
Regenerate

8 years agoDocument NO_DIRDEPS for META_MODE and give link to full details.
Bryan Drewery [Fri, 18 Sep 2015 22:22:32 +0000 (22:22 +0000)]
Document NO_DIRDEPS for META_MODE and give link to full details.

8 years agoMETA_MODE: Avoid command changing in 2nd build.
Bryan Drewery [Fri, 18 Sep 2015 21:36:29 +0000 (21:36 +0000)]
META_MODE: Avoid command changing in 2nd build.

If the command to be ran changes then a rebuild is caused. Checking
exists(${DESTDIR}...) from make results in this on the 2nd and
possibly subsequent builds due to staging during build.  Avoid this
by always running the existence check in the make sh command.

Sponsored by: EMC / Isilon Storage Division

8 years agoUse FILES for installing the dtrace scripts.
Bryan Drewery [Fri, 18 Sep 2015 21:18:44 +0000 (21:18 +0000)]
Use FILES for installing the dtrace scripts.

The BSD.usr.dist mtree always creates /usr/lib/dtrace so there is no
need to check if it exists.

The FILES mechanism already supports LIBRARIES_ONLY.

Sponsored by: EMC / Isilon Storage Division

8 years agoDon't hide build commands.
Bryan Drewery [Fri, 18 Sep 2015 21:01:52 +0000 (21:01 +0000)]
Don't hide build commands.

8 years agoThere is no HP 300 support in FreeBSD anymore, so remove the obsolete
Xin LI [Fri, 18 Sep 2015 20:28:37 +0000 (20:28 +0000)]
There is no HP 300 support in FreeBSD anymore, so remove the obsolete
BUGS section.

While I'm there also bump Dd date.

MFC after: 2 weeks

8 years agoMark I/Os with DMA flag while moving data through the HA link.
Alexander Motin [Fri, 18 Sep 2015 20:11:10 +0000 (20:11 +0000)]
Mark I/Os with DMA flag while moving data through the HA link.

8 years agoRelax serseq option operation for reads.
Alexander Motin [Fri, 18 Sep 2015 19:43:14 +0000 (19:43 +0000)]
Relax serseq option operation for reads.

Previously, with serseq enabled, next command was unblocked only after
previous completed.  With this change, for read operations, next command
is unblocked as soon as last media read completed.  This is important
for frontends that actually wait for data move completion (like camtgt),
or when data are moved through the HA link, or especially when both.

8 years agoAvoid /usr/obj// from r287899
Bryan Drewery [Fri, 18 Sep 2015 18:57:09 +0000 (18:57 +0000)]
Avoid /usr/obj// from r287899

8 years agoEnsure the ring state is also blanked upon reset, otherwise
Adrian Chadd [Fri, 18 Sep 2015 17:39:31 +0000 (17:39 +0000)]
Ensure the ring state is also blanked upon reset, otherwise
duplicate rx events get handled during reset paths.

Submitted by: Matthew Dillion <dillon@apollo.backplane.com>
Obtained from: DragonflyBSD

8 years agoKernel part of reroot support - a way to change rootfs without reboot.
Edward Tomasz Napierala [Fri, 18 Sep 2015 17:32:22 +0000 (17:32 +0000)]
Kernel part of reroot support - a way to change rootfs without reboot.

Note that the mountlist manipulations are somewhat fragile, and not very
pretty.  The reason for this is to avoid changing vfs_mountroot(), which
is (obviously) rather mission-critical, but not very well documented,
and thus hard to test properly.  It might be possible to rework it to use
its own simple root mount mechanism instead of vfs_mountroot().

Reviewed by: kib@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D2698

8 years agoDo not execute exception handlers with disabled interrupts.
Konstantin Belousov [Fri, 18 Sep 2015 17:09:59 +0000 (17:09 +0000)]
Do not execute exception handlers with disabled interrupts.

We should not call vm_fault(), or send a signal, with interrupts
disabled.  MI kernel code is not prepared for such environment, not to
mention that this increases system latency, since code appears to be
executing as being under spinlock.

The FAR register for data aborts is read before the interrupts are
enabled, to avoid its corruption due to nested exception or context
switch.

Add asserts, similar to the checks done by other architectures, about
not taking page faults in non-sleepable contexts, rather than die with
late and somewhat confusing witness diagnostic.

Reviewed by: andrew
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D3669

8 years agoClear exclusive monitors when handling data aborts, the monitors are
Konstantin Belousov [Fri, 18 Sep 2015 16:52:18 +0000 (16:52 +0000)]
Clear exclusive monitors when handling data aborts, the monitors are
in unknown state per spec.

Reviewed by: andrew (previous version)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D3668

8 years agoDon't read the floating-point registers for now. We will need to enable the
Andrew Turner [Fri, 18 Sep 2015 13:44:15 +0000 (13:44 +0000)]
Don't read the floating-point registers for now. We will need to enable the
VFP around the read of these instructions as they may raise an exception.

Sponsored by: ABT Systems Ltd

8 years agoKill HA link and shutdown the threads on shutdown.
Alexander Motin [Fri, 18 Sep 2015 12:08:00 +0000 (12:08 +0000)]
Kill HA link and shutdown the threads on shutdown.

8 years agoUpdate list of opcodes to 5/26/15.
Alexander Motin [Fri, 18 Sep 2015 10:44:25 +0000 (10:44 +0000)]
Update list of opcodes to 5/26/15.

8 years agoUpdate list of ASC/ASCQ codes from 5/20/12 to 8/12/15.
Alexander Motin [Fri, 18 Sep 2015 10:23:17 +0000 (10:23 +0000)]
Update list of ASC/ASCQ codes from 5/20/12 to 8/12/15.

8 years agoAdd in a temporary (hah!) workaround for net80211 scanning versus NIC
Adrian Chadd [Fri, 18 Sep 2015 07:55:33 +0000 (07:55 +0000)]
Add in a temporary (hah!) workaround for net80211 scanning versus NIC
requirements.

Don't start the opmode and join path until a pending survey is finished.
This seems to reliably fix things.

Ideally I'd just finish off the net80211 pluggable scan stuff and implement
the methods here so if_rsu can just drive the scan machinery.
However, that's a .. later thing.

Whilst here, remove the getbuf debugging; it's okay to run out of transmit
buffers under load; it however isn't okay to not be able to send commands.
I'll fix that later.

8 years agoRefactor out the tx buffer free code into a routine, rsu_freebuf().
Adrian Chadd [Fri, 18 Sep 2015 07:26:34 +0000 (07:26 +0000)]
Refactor out the tx buffer free code into a routine, rsu_freebuf().

This makes it easier to add more transmit buffers, have different buffer
pools for things, etc.