]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agoMove pci/ncr to dev/ncr.
Rui Paulo [Tue, 23 Sep 2014 05:37:17 +0000 (05:37 +0000)]
Move pci/ncr to dev/ncr.

9 years agoWe should have an isync after switching MSR[SF] in bootstrap.
Nathan Whitehorn [Tue, 23 Sep 2014 04:13:21 +0000 (04:13 +0000)]
We should have an isync after switching MSR[SF] in bootstrap.

Submitted by: Mark Millard
MFC after: 3 days

9 years agoStage one of multipass suspend/resume
Justin Hibbits [Tue, 23 Sep 2014 02:56:40 +0000 (02:56 +0000)]
Stage one of multipass suspend/resume

Summary:
Add the beginnings of multipass suspend/resume, by introducing
BUS_SUSPEND_CHILD/BUS_RESUME_CHILD, and move the PCI driver to this.

Reviewers: jhb

Reviewed By: jhb

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

9 years agoCorrect display of bhyve SMBIOS UUIDs with dmidecode by bumping the version.
Peter Grehan [Tue, 23 Sep 2014 01:17:22 +0000 (01:17 +0000)]
Correct display of bhyve SMBIOS UUIDs with dmidecode by bumping the version.

The mixed little/big-endianness of SMBIOS UUIDs was clarified in v2.6
of the SMBIOS spec. dmidecode uses the reported version of SMBIOS to
determine the layout and what to byte-swap.

bhyve's SMBIOS reported as 2.4 though it implemented the 2.6-style of
memory layout. This resulted in dmidecode reporting a different
UUID than one passed in via the -U option.

Fix by exporting a version of 2.6.

Reviewed by: tychon
Reported by: julian
MFC after: 1 day

9 years agoRemove an incorrect close(2) call that was added in r271413.
Mark Johnston [Mon, 22 Sep 2014 21:09:30 +0000 (21:09 +0000)]
Remove an incorrect close(2) call that was added in r271413.

Reported by: Coverity
CID: 1238923
X-MFC-With: r271413

9 years agoRemove some variables that are no longer used as of r271413.
Mark Johnston [Mon, 22 Sep 2014 21:02:38 +0000 (21:02 +0000)]
Remove some variables that are no longer used as of r271413.

Reported by: Coverity
CID: 1238924
X-MFC-With: r271413

9 years agoSwitch from timeout(9) to callout(9). In addition, do not teardown the
John Baldwin [Mon, 22 Sep 2014 20:38:01 +0000 (20:38 +0000)]
Switch from timeout(9) to callout(9).  In addition, do not teardown the
IRQ handler while resetting the controller and add some missing teardown
actions in detach.

Reviewed by: delphij

9 years agoReflect the chanages in sleepqueue.h and subr_sleepqueue.c
Li-Wen Hsu [Mon, 22 Sep 2014 19:14:27 +0000 (19:14 +0000)]
Reflect the chanages in sleepqueue.h and subr_sleepqueue.c

- Priority argument is introduced to sleepq_*wait* in r177085
- sleepq_calc_signal_retval is removed from implementation
- sleepq_catch_signals is internal now

Differential Revision: https://reviews.freebsd.org/D794
Reviewed by: jhb
Approved by: jhb

9 years agoUPDATING: linux-c6 support notes, and how to fall back to linux-f10.
Sean Bruno [Mon, 22 Sep 2014 19:07:27 +0000 (19:07 +0000)]
UPDATING:  linux-c6 support notes, and how to fall back to linux-f10.

PR: 187786
MFC after: 2 days
Relnotes: yes

9 years agoFix build for kernels without COMPAT_FREEBSD32.
John Baldwin [Mon, 22 Sep 2014 17:32:27 +0000 (17:32 +0000)]
Fix build for kernels without COMPAT_FREEBSD32.

9 years agoBump minimum linux compat version to support Centos6 ports updates for linux.
Sean Bruno [Mon, 22 Sep 2014 17:26:07 +0000 (17:26 +0000)]
Bump minimum linux compat version to support Centos6 ports updates for linux.

Update linux compat minimum revision to match linux-c6 now in ports.  This
is a candidate for 10.1 R as it matches the current state of supported
linux compat packages in the ports tree.

PR: 187786
Reviewed by: xmj
MFC after: 2 days
Relnotes: yes

9 years agoRename the tests to something more meaningful. I spent way too long
Marcel Moolenaar [Mon, 22 Sep 2014 16:52:09 +0000 (16:52 +0000)]
Rename the tests to something more meaningful. I spent way too long
trying to get the test name right, failed, gave up and used a sequence
number instead. When I realized it wasn't because of the number of
underscores in the name that I really started to think. I didn't have
braces around the variable names ...

Thus: test_1 is now called apm_1x1_512_qcow, which gives you all you
need to run mkimg by hand.

Dumb-ass: marcel

9 years agoCheck for NULL before de-refencing; in particular sel is assigned to NULL,
Cy Schubert [Mon, 22 Sep 2014 16:45:28 +0000 (16:45 +0000)]
Check for NULL before de-refencing; in particular sel is assigned to NULL,
in the default case, and then couple of lines down we do sel->

Approved by: glebius (mentor)
Obtained from: NetBSD CVS repo (r1.5)

9 years agoDon't update the baseline file when the result of the test is identical
Marcel Moolenaar [Mon, 22 Sep 2014 16:37:37 +0000 (16:37 +0000)]
Don't update the baseline file when the result of the test is identical
to the baseline. Since we don't run gzip with the -n option, the output
of gzip varies for identical result files if and when they are created
at different time. Ouch...

Rather than add -n and commit a 600K+ diff for the changes to all the .uu
files, it's less of a churn to uudecode and gunzip the baseline file and
compare that to the new result file to determine if the baseline file
needs to be updated.

This way, "atf-sh mkimg.sh rebase" can be run as many times as people like
and a subsequent "svn status" will not show unnecessary diffs.

9 years ago#552 destination port not zero after parsing nat rule
Cy Schubert [Mon, 22 Sep 2014 16:35:48 +0000 (16:35 +0000)]
#552 destination port not zero after parsing nat rule

Approved by: glebius (mentor)
Obtained from: netbsd CVS repo (r1.4), ipfilter CVS repo (r1.38)

9 years ago3561691 gethost never returns an ipv6 address
Cy Schubert [Mon, 22 Sep 2014 16:21:25 +0000 (16:21 +0000)]
3561691 gethost never returns an ipv6 address

Approved by: glebius (mentor)
Obtained from: ipfilter CVS repo (r1.34), netbsd CVS repo (r1.4)

9 years agoAdd a new fo_fill_kinfo fileops method to add type-specific information to
John Baldwin [Mon, 22 Sep 2014 16:20:47 +0000 (16:20 +0000)]
Add a new fo_fill_kinfo fileops method to add type-specific information to
struct kinfo_file.
- Move the various fill_*_info() methods out of kern_descrip.c and into the
  various file type implementations.
- Rework the support for kinfo_ofile to generate a suitable kinfo_file object
  for each file and then convert that to a kinfo_ofile structure rather than
  keeping a second, different set of code that directly manipulates
  type-specific file information.
- Remove the shm_path() and ksem_info() layering violations.

Differential Revision: https://reviews.freebsd.org/D775
Reviewed by: kib, glebius (earlier version)

9 years agoImprovements to asmc(4):
Rui Paulo [Mon, 22 Sep 2014 16:20:38 +0000 (16:20 +0000)]
Improvements to asmc(4):

1. changed the code so that 2**16 keys are supported
2. changed the number of possible fans in a system from 2 to 6
3. added write support for some fan sysctls
4. added a new sysctl which shows the ID of the fan
5. added four more apple models with their temperature keys
6. changed the maxnumber of temperature keys from 36 to 80
7. replaced several fixed buf sizes to sizeof buf

Obtained from: Denis Ahrens denis at h3q.com
MFC after: 4 weeks

9 years ago#551 ipf.conf address structure not properly zero filled
Cy Schubert [Mon, 22 Sep 2014 16:13:38 +0000 (16:13 +0000)]
#551 ipf.conf address structure not properly zero filled

Approved by: glebius (mentor)
Obtained from: ipfilter CVS repo (r1.37), netbsd CVS repo (r1.3)

9 years ago#536 ipnat can try to print rule as dstlist incorrectly
Cy Schubert [Mon, 22 Sep 2014 16:09:18 +0000 (16:09 +0000)]
#536 ipnat can try to print rule as dstlist incorrectly

Approved by: glebius (mentor)
Obtained from: ipfilter CVS repo (r1.14), netbsd CVS repo (r1.3)

9 years ago#553 gethost needs to zero entire IP address structure
Cy Schubert [Mon, 22 Sep 2014 16:06:37 +0000 (16:06 +0000)]
#553 gethost needs to zero entire IP address structure

Approved by: glebius (mentor)
Obtained from: ipfilter CVS repo (r1.11)

9 years agoipv6 address for test.hosts.dots in wrong byte order.
Cy Schubert [Mon, 22 Sep 2014 16:03:29 +0000 (16:03 +0000)]
ipv6 address for test.hosts.dots in wrong byte order.

Approved by: glebius (mentor)
Obtained from: ipfilter CVS repo (r1.11), netbsd CVS repo (r1.5)

9 years agoDon't echo '# $FreeBSD$' as the first line into the .uu file. Keyword
Marcel Moolenaar [Mon, 22 Sep 2014 15:27:23 +0000 (15:27 +0000)]
Don't echo '# $FreeBSD$' as the first line into the .uu file.  Keyword
substitution applies to this file, including the echo command. Avoid
the match (and substitution) by breaking the string up into 3 parts.

9 years agoUpdate the unit tests to include the QCOW (version 1) format.
Marcel Moolenaar [Mon, 22 Sep 2014 15:08:58 +0000 (15:08 +0000)]
Update the unit tests to include the QCOW (version 1) format.
This is a good safety net for when V2 is added.

9 years agoAdd support for QCOW version 1. Version 2 is partially implemented.
Marcel Moolenaar [Mon, 22 Sep 2014 15:05:28 +0000 (15:05 +0000)]
Add support for QCOW version 1. Version 2 is partially implemented.
And because of that, it's entirely disabled for now. Both versions
are similar enough that a single header definition works for both
of them. The only "diverting" side-effect is that the union of the
two is larger than the official V1 header.

What this means for our V1 support is that we can't put the L1 table
adjacent to the V1 header (i.e. at offset 0x30 in the file), unless
we revert to hackery and klugery. Let's not. Instead, we align the L1
table at the cluster boundary. This is in line with the V2 layout and
perfectly ok for V1 anyway (ok -- as far as I've seen so far).
Due to the alignment, our V1 image seems to be 1 cluster larger than
the V1 image created by qemu-img (on average).

Compression of the clusters is not supported at this time.

MFC after: 2 months

9 years agoConvert from timeout(9) to callout(9).
John Baldwin [Mon, 22 Sep 2014 14:27:26 +0000 (14:27 +0000)]
Convert from timeout(9) to callout(9).

9 years agoAdd missing mlinks for section 9.
Edward Tomasz Napierala [Mon, 22 Sep 2014 13:04:49 +0000 (13:04 +0000)]
Add missing mlinks for section 9.

MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation

9 years agoPretend that we support BYTCHK=1 in WRITE AND VERIFY command.
Alexander Motin [Mon, 22 Sep 2014 12:40:43 +0000 (12:40 +0000)]
Pretend that we support BYTCHK=1 in WRITE AND VERIFY command.

Technically that is not true, but since we don't implement VERIFY there
at all, doing only WRITE part, this is a minor sin.

9 years agoThe new naming scheme for keymap files for use with vt(4) introduced a
Stefan Eßer [Mon, 22 Sep 2014 11:54:13 +0000 (11:54 +0000)]
The new naming scheme for keymap files for use with vt(4) introduced a
collision for "no" as a country code with "NO" meaning "do not load any
keymap" (which also has been the default value in etc/defaults/rc.conf
for a long time).

The result of this collision is, that "kbdcontrol -l no" will load the
Norwegian keymap, while "keymap=no" in rc.conf was interpreted as the
lower case spelling of "NO" meaning "no keyboard" (and "no.kbd" was not
loaded).

Fix this by matching only the upper-case spelling "NO" in rc.d/syscons
when deciding whether to load a keymap file.

This will lead to "no.kbd" being loaded, if the until now valid (but
non-default) spelling "no" was used in an individual rc.conf file to mean
"no keyboard". But all alternatives I could think of introduce a larger
violation of POLA ...

Reported by:    Gyrd Thane Lange (gyrd-se at thanelange.no)
MFC after: 3 days

9 years agoFix read overrun handling, broken by using wrong variable.
Alexander Motin [Mon, 22 Sep 2014 11:35:06 +0000 (11:35 +0000)]
Fix read overrun handling, broken by using wrong variable.

MFC after: 3 days

9 years agoDeny ANCHOR flag set without UNMAP flag set in WRITE SAME commands.
Alexander Motin [Mon, 22 Sep 2014 10:46:06 +0000 (10:46 +0000)]
Deny ANCHOR flag set without UNMAP flag set in WRITE SAME commands.

9 years agoSome XHCI hardware requires dropping the endpoint context before
Hans Petter Selasky [Mon, 22 Sep 2014 10:21:42 +0000 (10:21 +0000)]
Some XHCI hardware requires dropping the endpoint context before
adding it again.

MFC after: 3 days
Submitted by: Kohji Okuno <okuno.kohji@jp.panasonic.com>

9 years agoDon't try to continue aborted commands if status was not set.
Alexander Motin [Mon, 22 Sep 2014 10:05:36 +0000 (10:05 +0000)]
Don't try to continue aborted commands if status was not set.

9 years agoRegister /usr/tests/lib/libproc to fix build.
Julio Merino [Mon, 22 Sep 2014 09:54:48 +0000 (09:54 +0000)]
Register /usr/tests/lib/libproc to fix build.

Missed in r271937, reviewed in D710.

9 years agoFix UNMAP stuck if the last block descriptor in the list is empty.
Alexander Motin [Mon, 22 Sep 2014 09:22:58 +0000 (09:22 +0000)]
Fix UNMAP stuck if the last block descriptor in the list is empty.

MFC after: 3 days

9 years agoImprove transmit sending offload, TSO, algorithm in general.
Hans Petter Selasky [Mon, 22 Sep 2014 08:27:27 +0000 (08:27 +0000)]
Improve transmit sending offload, TSO, algorithm in general.

The current TSO limitation feature only takes the total number of
bytes in an mbuf chain into account and does not limit by the number
of mbufs in a chain. Some kinds of hardware is limited by two
factors. One is the fragment length and the second is the fragment
count. Both of these limits need to be taken into account when doing
TSO. Else some kinds of hardware might have to drop completely valid
mbuf chains because they cannot loaded into the given hardware's DMA
engine. The new way of doing TSO limitation has been made backwards
compatible as input from other FreeBSD developers and will use
defaults for values not set.

Reviewed by: adrian, rmacklem
Sponsored by: Mellanox Technologies
MFC after: 1 week

9 years agoSimplify legacy reservation handling. Drop it on I_T nexus loss.
Alexander Motin [Mon, 22 Sep 2014 07:59:25 +0000 (07:59 +0000)]
Simplify legacy reservation handling.  Drop it on I_T nexus loss.

9 years agosvn revisions r269964 and r269963 seemed to have impaired small memory
Sean Bruno [Mon, 22 Sep 2014 05:07:22 +0000 (05:07 +0000)]
svn revisions r269964 and r269963 seemed to have impaired small memory
footprint systems(32M/64M) and didn't leave enough free memory to load modules
when it was setting up page tables that for sizes that are never used on
these smallish boards.

Set kmem_zmax to PAGE_SIZE on these smaller systems (< 128M) to keep this
from happening. Verified on mips32 h/w.

PR:             193465
Submitted by:   delphij
Reviewed by:    adrian

9 years agoDon't report unsupported FUA_NV bit set in READ/WRITE commands as error.
Alexander Motin [Mon, 22 Sep 2014 01:17:48 +0000 (01:17 +0000)]
Don't report unsupported FUA_NV bit set in READ/WRITE commands as error.

While this bit is obsolete in SBC-3, SBC-2 allowed to silently ignore it.

9 years agoReport proper errors codes for unsupported SERVICE ACTION values.
Alexander Motin [Mon, 22 Sep 2014 01:04:27 +0000 (01:04 +0000)]
Report proper errors codes for unsupported SERVICE ACTION values.

9 years agoPolish INQUIRY command fields validation.
Alexander Motin [Mon, 22 Sep 2014 00:40:20 +0000 (00:40 +0000)]
Polish INQUIRY command fields validation.

9 years agoIgnore a test program which doesn't compile at the moment. It will be
Mark Johnston [Sun, 21 Sep 2014 21:31:16 +0000 (21:31 +0000)]
Ignore a test program which doesn't compile at the moment. It will be
addresed properly when integrating the DTrace tests with Kyua.

9 years agoAdd some ATF tests for libproc.
Mark Johnston [Sun, 21 Sep 2014 21:25:41 +0000 (21:25 +0000)]
Add some ATF tests for libproc.

Differential Revision: D710
Reviewed by: jmmv, ngie, rpaulo

9 years agosh(1): Clarify that assignments before commands do not affect expansions.
Jilles Tjoelker [Sun, 21 Sep 2014 20:34:54 +0000 (20:34 +0000)]
sh(1): Clarify that assignments before commands do not affect expansions.

PR: 193759
MFC after: 1 week

9 years agoOutput boot code warning when zpool upgrade -a is used to add features.
Steven Hartland [Sun, 21 Sep 2014 19:31:19 +0000 (19:31 +0000)]
Output boot code warning when zpool upgrade -a is used to add features.

In the case where new features where enabled by a zpool upgrade -a the
boot code warning wasn't output.

Submitted by: Jan Kokemueller
MFC after: 3 days

9 years agoAdd a few missing llvm/clang patches, update the other ones to be able
Dimitry Andric [Sun, 21 Sep 2014 15:37:39 +0000 (15:37 +0000)]
Add a few missing llvm/clang patches, update the other ones to be able
to apply with the same patch options onto a fresh upstream llvm/clang
3.4.1 checkout, and use approximately the same header tempate for them.

MFC after: 3 days

9 years agoAllow SUBPAGE CODE field in MODE SENSE commands.
Alexander Motin [Sun, 21 Sep 2014 14:39:31 +0000 (14:39 +0000)]
Allow SUBPAGE CODE field in MODE SENSE commands.

9 years agoTurns out -1 is a perfectly valid error number, ERESTART. Remove useless
Edward Tomasz Napierala [Sun, 21 Sep 2014 10:34:15 +0000 (10:34 +0000)]
Turns out -1 is a perfectly valid error number, ERESTART.  Remove useless
code written under assumption that it wasn't.

Sponsored by: The FreeBSD Foundation

9 years agoMention read_ahead tunables/sysctls.
Alexander Motin [Sun, 21 Sep 2014 10:05:27 +0000 (10:05 +0000)]
Mention read_ahead tunables/sysctls.

MFC after: 1 month

9 years agoUpdate and clarify comments. Remove the useless counter for impossible, but
Konstantin Belousov [Sun, 21 Sep 2014 09:06:50 +0000 (09:06 +0000)]
Update and clarify comments.  Remove the useless counter for impossible, but
seen in wild situation (on buggy hypervisors).

In collaboration with: bde
MFC after: 1 week

9 years agoFix build.
Hiroki Sato [Sun, 21 Sep 2014 07:16:51 +0000 (07:16 +0000)]
Fix build.

9 years agoFix a typo.
Hiroki Sato [Sun, 21 Sep 2014 05:03:04 +0000 (05:03 +0000)]
Fix a typo.

9 years agoAdd a change missing in r271916.
Hiroki Sato [Sun, 21 Sep 2014 04:38:50 +0000 (04:38 +0000)]
Add a change missing in r271916.

9 years agoFix a bug which could make routed(8) daemon exit by sending a special RIP
Hiroki Sato [Sun, 21 Sep 2014 04:00:28 +0000 (04:00 +0000)]
Fix a bug which could make routed(8) daemon exit by sending a special RIP
query from a remote machine, and disable accepting it by default.  This
requests a routed(8) daemon to dump routing information base for debugging
purpose.  An -i flag to enable it has been added.

9 years ago- Virtualize interface cloner for gre(4). This fixes a panic when destroying
Hiroki Sato [Sun, 21 Sep 2014 03:56:06 +0000 (03:56 +0000)]
- Virtualize interface cloner for gre(4).  This fixes a panic when destroying
  a vnet jail which has a gre(4) interface.

- Make net.link.gre.max_nesting vnet-local.

9 years agoVirtualize interface cloner for gif(4). This fixes a panic when destroying
Hiroki Sato [Sun, 21 Sep 2014 03:55:04 +0000 (03:55 +0000)]
Virtualize interface cloner for gif(4).  This fixes a panic when destroying
a vnet jail which has a gif(4) interface.

9 years agoMake net.add_addr_allfibs vnet-local.
Hiroki Sato [Sun, 21 Sep 2014 03:48:20 +0000 (03:48 +0000)]
Make net.add_addr_allfibs vnet-local.

9 years agoHide LRO code under #ifdef INET/INET6 to allow NOIP kernel to compile.
Bjoern A. Zeeb [Sun, 21 Sep 2014 00:05:44 +0000 (00:05 +0000)]
Hide LRO code under #ifdef INET/INET6 to allow NOIP kernel to compile.

While the code comments indicate that LRO is currently only supported
for IPv4/TCP, we'll still compile it in for IPv6.

MFC after: 3 days

9 years agoAdd unit tests for mkimg(1):
Marcel Moolenaar [Sat, 20 Sep 2014 21:02:54 +0000 (21:02 +0000)]
Add unit tests for mkimg(1):

9 years agoFix a problem that reply packets are not received when -i T option is set
Hiroki Sato [Sat, 20 Sep 2014 19:54:19 +0000 (19:54 +0000)]
Fix a problem that reply packets are not received when -i T option is set
and (T < RTT).

- Use select(2) for timeout instead of interval timer. Remove poll(2) support.
- Use sigaction(2) instead of signal(3).
- Exit in SIGINT handler when two signals are received and doing reverse DNS
  lookup as ping(8) does.
- Remove redundant variables used for getaddrinfo(3).

PR: 151023

9 years agoRevert changes in r269180. It could cause -c N option to enter an
Hiroki Sato [Sat, 20 Sep 2014 18:48:50 +0000 (18:48 +0000)]
Revert changes in r269180.  It could cause -c N option to enter an
infinite loop if no reply packet is received.

PR: 151023

9 years agoUse callout(9) instead of timeout(9).
John Baldwin [Sat, 20 Sep 2014 16:43:14 +0000 (16:43 +0000)]
Use callout(9) instead of timeout(9).

Reviewed by: emax

9 years agoAdd a man page for the cgem(4) driver.
Ian Lepore [Sat, 20 Sep 2014 15:45:29 +0000 (15:45 +0000)]
Add a man page for the cgem(4) driver.

Submitted by: Thomas Skibo <ThomasSkibo@sbcglobal.net>
Reviewed by: wkoszek@, Yonghyeon PYUN <pyunyh@gmail.com>

9 years agoMake the ARM MPCore Timer driver work with published standard FDT bindings.
Ian Lepore [Sat, 20 Sep 2014 14:49:21 +0000 (14:49 +0000)]
Make the ARM MPCore Timer driver work with published standard FDT bindings.

We've always considered the mpcore timers to be a single monolithic device
and we defined our own fdt binding for it with our own compat string.  The
published bindings treat the timers as two separate devices, a global
timer and a "timer-watchdog" device for the per-cpu private timers.  Thus
our binding has two tuples in the regs property, one set of registers for
the global timer and one for the private timers.  The published bindings
have two separate devices, each with a single set of registers.  (Note that
we don't use the optional watchdog feature of the hardware.)

These changes add the compat strings for the published bindings.  If our
own compat string appears, we expect to get two sets of memory resources.
For the published bindings, there's only one set of memory resources, and
only the private timers have an associated interrupt.

The other major change is that there can no longer be a single global var
for the softc pointer because now there may be multiple devices at
runtime.  Since the global timer is used only as a timecounter and the
private timers only as eventtimers, and there will only be one of each,
those are now the pointers which are global, and the priv fields of those
structures backlink to the device softc.

9 years agoFix typo in comment.
Ganbold Tsagaankhuu [Sat, 20 Sep 2014 09:18:58 +0000 (09:18 +0000)]
Fix typo in comment.
Disable AHB clock gate for ehci0.

Approved by: stas (mentor)

9 years agoProperly hide calls to ARP under #ifdef INET to allow IPv6-only
Bjoern A. Zeeb [Sat, 20 Sep 2014 08:34:56 +0000 (08:34 +0000)]
Properly hide calls to ARP under #ifdef INET to allow IPv6-only
kernels to compile.

MFC atfer: 3 days

9 years agoMake gcc happy by initialising the variable only set in a couple of
Bjoern A. Zeeb [Sat, 20 Sep 2014 08:18:48 +0000 (08:18 +0000)]
Make gcc happy by initialising the variable only set in a couple of
case statements without a default.

MFC after: 2 days
X-MFC with: r271871

9 years agoDon't install /etc/rc.d/ftp-proxy unless MK_PF == yes
Enji Cooper [Sat, 20 Sep 2014 06:34:34 +0000 (06:34 +0000)]
Don't install /etc/rc.d/ftp-proxy unless MK_PF == yes

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division

9 years agoDon't install /etc/rc.d/rwho unless MK_RCMDS == yes
Enji Cooper [Sat, 20 Sep 2014 06:05:24 +0000 (06:05 +0000)]
Don't install /etc/rc.d/rwho unless MK_RCMDS == yes

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division

9 years agoSort the optional rc.d scripts by their knobs
Enji Cooper [Sat, 20 Sep 2014 05:49:15 +0000 (05:49 +0000)]
Sort the optional rc.d scripts by their knobs

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

9 years agoAdd some more KTR events to help debugging.
Neel Natu [Sat, 20 Sep 2014 05:13:03 +0000 (05:13 +0000)]
Add some more KTR events to help debugging.

9 years agoMSR_KGSBASE is no longer saved and restored from the guest MSR save area. This
Neel Natu [Sat, 20 Sep 2014 05:12:34 +0000 (05:12 +0000)]
MSR_KGSBASE is no longer saved and restored from the guest MSR save area. This
behavior was changed in r271888 so update the comment block to reflect this.

MSR_KGSBASE is accessible from the guest without triggering a VM-exit. The
permission bitmap for MSR_KGSBASE is modified by vmx_msr_guest_init() so get
rid of redundant code in vmx_vminit().

9 years agoPopulate the device info string with _PXM (proximity domain) information.
Adrian Chadd [Sat, 20 Sep 2014 04:31:12 +0000 (04:31 +0000)]
Populate the device info string with _PXM (proximity domain) information.

This is primarily useful for debugging right now - it'll show up in
devinfo.

Reviewed by: jhb

9 years agoRestructure the MSR handling so it is entirely handled by processor-specific
Neel Natu [Sat, 20 Sep 2014 02:35:21 +0000 (02:35 +0000)]
Restructure the MSR handling so it is entirely handled by processor-specific
code. There are only a handful of MSRs common between the two so there isn't
too much duplicate functionality.

The VT-x code has the following types of MSRs:

- MSRs that are unconditionally saved/restored on every guest/host context
  switch (e.g., MSR_GSBASE).

- MSRs that are restored to guest values on entry to vmx_run() and saved
  before returning. This is an optimization for MSRs that are not used in
  host kernel context (e.g., MSR_KGSBASE).

- MSRs that are emulated and every access by the guest causes a trap into
  the hypervisor (e.g., MSR_IA32_MISC_ENABLE).

Reviewed by: grehan

9 years agoFix up the EDMA RX setup path to correctly initialise and reset the RX FIFO.
Adrian Chadd [Sat, 20 Sep 2014 01:22:17 +0000 (01:22 +0000)]
Fix up the EDMA RX setup path to correctly initialise and reset the RX FIFO.

The original code was .. well, slightly more than incorrect.

It showed up as stalled RX queues if the NIC needed to be frequently
reinitialised (eg during scans.)

This is inspired by work done by Matt Dillon over at the DragonflyBSD
project.

So:

* track when EDMA RX has been stopped and when the MAC has been reset;
* re-initialise the ring only after a reset;
* track whether RX has been stopped/started - just for debugging now;
* don't bother with the RX EOL stuff for EDMA - we don't need the
  interrupt at all.  We also don't need to disable/enable the interrupt
  or start DMA - once new frames are pushed into the ring via the
  normal RX path, it'll just restart RX DMA on its own.

Tested:

* AR9380, STA mode
* AR9380, AP mode
* AR9485, STA mode
* AR9462, STA mode

9 years agoQuieten the AR9300 HAL attach a little - the setupXTxDesc method
Adrian Chadd [Sat, 20 Sep 2014 01:18:36 +0000 (01:18 +0000)]
Quieten the AR9300 HAL attach a little - the setupXTxDesc method
is only called during attach now.

The EDMA TX path never calls this - only the legacy TX path does.

9 years agoQuieten the AR9300 HAL probe a bit.
Adrian Chadd [Sat, 20 Sep 2014 01:17:02 +0000 (01:17 +0000)]
Quieten the AR9300 HAL probe a bit.

9 years agoDon't double-call the ar9300 stub function method.
Adrian Chadd [Sat, 20 Sep 2014 01:16:41 +0000 (01:16 +0000)]
Don't double-call the ar9300 stub function method.

9 years agoExplain how to load the malo(4) firmware on boot.
Gavin Atkinson [Sat, 20 Sep 2014 00:19:45 +0000 (00:19 +0000)]
Explain how to load the malo(4) firmware on boot.

PR: 193653
Submitted by: Juan Ramón Molina Menor
MFC after: 3 days

9 years agoStyle (9) fixes, spaces to tabs.
Steven Hartland [Fri, 19 Sep 2014 23:38:44 +0000 (23:38 +0000)]
Style (9) fixes, spaces to tabs.

Fix style issues noticed when I went to MFC r257820

MFC after: 2 days
X-MFC-With: r257820
Sponsored by: Multiplay

9 years agoFix partition alignment and image rounding when any of -P (block size),
Marcel Moolenaar [Fri, 19 Sep 2014 23:16:02 +0000 (23:16 +0000)]
Fix partition alignment and image rounding when any of -P (block size),
-T (track size) or -H (number of heads) is given:
o   scheme_metadata() always rounded to the block size.  This is not
    always valid (e.g. vtoc8 that must have partitions start at cylinder
    boundaries).
o   The bsd and vtoc8 schemes "resized" the image to make it match the
    geometry, but since the geometry is an approximation and the size
    of the image computed from cylinders * heads * sectors is always
    smaller than the original image size, the partition information ran
    out of bounds.

The fix is to have scheme_metadata() simply pass it's arguments to the
per-scheme metadata callback, so that schemes not only know where the
metadata is to go, but also what the current block address is. It's now
up to the per-scheme callback to reserve room for metadata and to make
sure alignment and rounding is applied.

The BSD scheme now has the most elaborate alignment and rounding. Just
to make the point: partitions are aligned on block boundaries, but the
image is rounded to the next cyclinder boundary.

vtoc8 now properly has all partitions aligned (and rounded) to the
cyclinder boundary.

Obtained from: Juniper Networks, Inc.
MFC after: 3 days

9 years agoawk: Use random(3) instead of rand(3)
Pedro F. Giffuni [Fri, 19 Sep 2014 18:24:02 +0000 (18:24 +0000)]
awk: Use random(3) instead of rand(3)

While none of them is considered even near to cryptographic
level, random(3) is a better random generator than rand(3).

Use random(3) for awk as is done in other systems.

Thanks to Chenguang Li for discussing this in the lists
and submitting the patch upstream.

PR: 193147
MFC after: 5 weeks

9 years agounistd: drop argument names from setpgrp(3) prototype.
Pedro F. Giffuni [Fri, 19 Sep 2014 18:13:56 +0000 (18:13 +0000)]
unistd: drop argument names from setpgrp(3) prototype.

They are useless and don't match the style of the header.
While here adjust the comment with tabs.

Suggested by: kevinlo

9 years agoWhen populating the dvd/packages/ directory, create
Glen Barber [Fri, 19 Sep 2014 17:23:44 +0000 (17:23 +0000)]
When populating the dvd/packages/ directory, create
a symlink to All/pkg-*.txz in the Latest/ directory.

This allows 'pkg bootstrap' to work out-of-box if
the REPOS_DIR environment is properly set.

Tested on: stable/10@r271848
MFC after: 3 days
X-MFC-10.1: yes
Sponsored by: The FreeBSD Foundation

9 years agoReference the test case "packs" to fix warnings
Craig Rodrigues [Fri, 19 Sep 2014 17:18:27 +0000 (17:18 +0000)]
Reference the test case "packs" to fix warnings

Put the various atf_tc_pack_t variables generated by ATF_TC to use in
the macros_h_test.c file so that we prevent some build warnings (and
thus some build errors) with clang and -Wunused.

Obtained from:  atf (git 70126d013db25c72539803f19f7e00baddacdf51)

9 years agoAdd new USB IDs.
Hans Petter Selasky [Fri, 19 Sep 2014 16:06:54 +0000 (16:06 +0000)]
Add new USB IDs.

PR: 193775
MFC after: 1 week

9 years agoFix static kernel build with options ZFS
Steven Hartland [Fri, 19 Sep 2014 13:55:28 +0000 (13:55 +0000)]
Fix static kernel build with options ZFS

This was broken by r271802.

MFC after: 1 week
X-MFC-With: r271802
Sponsored by: Multiplay

9 years agovt(4): Remove superfluous word in comment
Jean-Sébastien Pédron [Fri, 19 Sep 2014 12:38:43 +0000 (12:38 +0000)]
vt(4): Remove superfluous word in comment

Submitted by: brueffer@
MFC after: 3 days
MFC with: 271871

9 years agovt(4): Rewrite history scrolling
Jean-Sébastien Pédron [Fri, 19 Sep 2014 12:20:43 +0000 (12:20 +0000)]
vt(4): Rewrite history scrolling

It's now possible to scroll up the 500 hard-coded lines of history, not
just a fraction of them. For instance, one can reach the top of the boot
process.

Sometimes, when scrolling or when changing the screen size (by changing
the font or loading a KMS driver for instance), one could see the
history cycling (old content appeared below latest lines). This is
fixed.

Now, when the resolution changes are more lines can be shown, the
displayed area is adjusted so that, if the screen was filled with
content before, it's filled with content after as well: more history
is visible, instead of having blank lines below the previously visible
content.

MFC after: 3 days

9 years ago- Provide igb_get_counter() to return counters that are not collected,
Gleb Smirnoff [Fri, 19 Sep 2014 11:49:41 +0000 (11:49 +0000)]
- Provide igb_get_counter() to return counters that are not collected,
  but taken from hardware.
- Mechanically convert to if_inc_counter() the rest of counters.

9 years agoFix inverted expression to report block size in mode page block descriptor.
Alexander Motin [Fri, 19 Sep 2014 11:15:30 +0000 (11:15 +0000)]
Fix inverted expression to report block size in mode page block descriptor.

9 years agovt(4): Remove vt_buf->vb_dirtymask
Jean-Sébastien Pédron [Fri, 19 Sep 2014 11:02:44 +0000 (11:02 +0000)]
vt(4): Remove vt_buf->vb_dirtymask

This structure and the associated functions were unused since the
implementation of vd_bitblt_text_t callbacks.

MFC after: 3 days

9 years agoMechanically convert to if_inc_counter().
Gleb Smirnoff [Fri, 19 Sep 2014 10:39:58 +0000 (10:39 +0000)]
Mechanically convert to if_inc_counter().

9 years agoMechanically convert to if_inc_counter().
Gleb Smirnoff [Fri, 19 Sep 2014 10:35:56 +0000 (10:35 +0000)]
Mechanically convert to if_inc_counter().

9 years agoMechanically convert to if_inc_counter().
Gleb Smirnoff [Fri, 19 Sep 2014 10:33:23 +0000 (10:33 +0000)]
Mechanically convert to if_inc_counter().

9 years agoMove rl(4) to dev/rl.
Gleb Smirnoff [Fri, 19 Sep 2014 10:32:20 +0000 (10:32 +0000)]
Move rl(4) to dev/rl.

9 years agoMechanically convert to if_inc_counter().
Gleb Smirnoff [Fri, 19 Sep 2014 10:19:51 +0000 (10:19 +0000)]
Mechanically convert to if_inc_counter().

9 years agoMechanically convert to if_inc_counter().
Gleb Smirnoff [Fri, 19 Sep 2014 10:18:14 +0000 (10:18 +0000)]
Mechanically convert to if_inc_counter().

9 years agoMechanically convert to if_inc_counter().
Gleb Smirnoff [Fri, 19 Sep 2014 09:20:55 +0000 (09:20 +0000)]
Mechanically convert to if_inc_counter().

9 years agoMechanically convert to if_inc_counter().
Gleb Smirnoff [Fri, 19 Sep 2014 09:20:34 +0000 (09:20 +0000)]
Mechanically convert to if_inc_counter().