]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agoCross reference cdce(4), ipheth(4) and urndis(4) from each other.
gavin [Thu, 25 Sep 2014 14:22:32 +0000 (14:22 +0000)]
Cross reference cdce(4), ipheth(4) and urndis(4) from each other.

MFC after: 1 week

9 years agoAdd basic man page for ipheth(4).
gavin [Thu, 25 Sep 2014 14:18:34 +0000 (14:18 +0000)]
Add basic man page for ipheth(4).

MFC after: 1 week

9 years agoRemove duplicated header content
emaste [Thu, 25 Sep 2014 13:31:08 +0000 (13:31 +0000)]
Remove duplicated header content

I fail at patch(1).

MFC after: 3 days

9 years agoMove the ARM Samsung s3c2xx0 support files into the samsung directory, to
gavin [Thu, 25 Sep 2014 11:38:26 +0000 (11:38 +0000)]
Move the ARM Samsung s3c2xx0 support files into the samsung directory, to
match other platforms.

Discussed with: andrew

9 years agoDocument the new nvlist_get_parent() function.
pjd [Thu, 25 Sep 2014 10:59:01 +0000 (10:59 +0000)]
Document the new nvlist_get_parent() function.

Submitted by: Mariusz Zaborski

9 years agoProvide vmxnet3_get_counter() to return counters that are not collected,
glebius [Thu, 25 Sep 2014 08:36:11 +0000 (08:36 +0000)]
Provide vmxnet3_get_counter() to return counters that are not collected,
but taken from hardware.

9 years agoddb: allow specifying the exact address of the symtab and strtab
royger [Thu, 25 Sep 2014 08:28:10 +0000 (08:28 +0000)]
ddb: allow specifying the exact address of the symtab and strtab

When the FreeBSD kernel is loaded from Xen the symtab and strtab are
not loaded the same way as the native boot loader. This patch adds
three new global variables to ddb that can be used to specify the
exact position and size of those tables, so they can be directly used
as parameters to db_add_symbol_table. A new helper is introduced, so callers
that used to set ksym_start and ksym_end can use this helper to set the new
variables.

It also adds support for loading them from the Xen PVH port, that was
previously missing those tables.

Sponsored by: Citrix Systems R&D
Reviewed by: kib

ddb/db_main.c:
 - Add three new global variables: ksymtab, kstrtab, ksymtab_size that
   can be used to specify the position and size of the symtab and
   strtab.
 - Use those new variables in db_init in order to call db_add_symbol_table.
 - Move the logic in db_init to db_fetch_symtab in order to set ksymtab,
   kstrtab, ksymtab_size from ksym_start and ksym_end.

ddb/ddb.h:
 - Add prototype for db_fetch_ksymtab.
 - Declate the extern variables ksymtab, kstrtab and ksymtab_size.

x86/xen/pv.c:
 - Add support for finding the symtab and strtab when booted as a Xen
   PVH guest. Since Xen loads the symtab and strtab as NetBSD expects
   to find them we have to adapt and use the same method.

amd64/amd64/machdep.c:
arm/arm/machdep.c:
i386/i386/machdep.c:
mips/mips/machdep.c:
pc98/pc98/machdep.c:
powerpc/aim/machdep.c:
powerpc/booke/machdep.c:
sparc64/sparc64/machdep.c:
 - Use the newly introduced db_fetch_ksymtab in order to set ksymtab,
   kstrtab and ksymtab_size.

9 years ago- Provide bce_get_counter() to return counters that are not collected,
glebius [Thu, 25 Sep 2014 07:22:24 +0000 (07:22 +0000)]
- Provide bce_get_counter() to return counters that are not collected,
  but taken from hardware.
- Mechanically convert to if_inc_counter() the rest of counters.
- While here fix 3 instances of the same bug, when error counter was ++
  in one place and then assigned in other place, losing the increment.
  Achieve that storing soft errors counters in softc.

9 years ago- Provide lmc_get_counter() to return counters that are not collected,
glebius [Thu, 25 Sep 2014 07:00:31 +0000 (07:00 +0000)]
- Provide lmc_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 agoRun through unifdef(1) with slight hand-editing after. It is obvious,
glebius [Thu, 25 Sep 2014 06:47:38 +0000 (06:47 +0000)]
Run through unifdef(1) with slight hand-editing after. It is obvious,
that the driver is not going to be ever improved in terms of hardware
support, it is going to be only maintained as our kernel APIs change.
Carrying all the compatibility with ancient versions of NetBSD, OpenBSD,
Linux and BSDI, as well as obsoleted FreeBSD versions has no reason.

9 years agoWhitespace cleanup.
glebius [Thu, 25 Sep 2014 05:47:33 +0000 (05:47 +0000)]
Whitespace cleanup.

9 years ago- Provide mxge_get_counter() to return counters that are not collected,
glebius [Thu, 25 Sep 2014 05:45:52 +0000 (05:45 +0000)]
- Provide mxge_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 NULL pointer deref in ipfw when using dummynet at layer 2.
sbruno [Thu, 25 Sep 2014 02:26:05 +0000 (02:26 +0000)]
Fix NULL pointer deref in ipfw when using dummynet at layer 2.
Drop packet if pkg->ifp is NULL, which is the case here.

ref. https://github.com/HardenedBSD/hardenedBSD
commit 4eef3881c64f6e3aa38eebbeaf27a947a5d47dd7

PR 193861 --  DUMMYNET LAYER2: kernel panic

in this case a kernel panic occurs. Hence, when we do not get an interface,
we just drop the packet in question.

PR: 193681
Submitted by: David Carlier <david.carlier@hardenedbsd.org>
Obtained from: Hardened BSD
MFC after: 2 weeks
Relnotes: yes

9 years agoAdd baseline files for QCOW2.
marcel [Wed, 24 Sep 2014 22:58:10 +0000 (22:58 +0000)]
Add baseline files for QCOW2.

9 years agoIncrease the memory disk size in the following testcases to avoid mount
ngie [Wed, 24 Sep 2014 22:51:16 +0000 (22:51 +0000)]
Increase the memory disk size in the following testcases to avoid mount
failures, which would cause cascade failures in the rest of the test
run:

link/15.t, open/19.t, mkdir/11.t, mkfifo/11.t, symlink/11.t

Fail quickly in all of the testcases if mdconfig, mount, umount, etc
fails to avoid issues similar to this in the future

Submitted by: Casey Peel <cpeel@isilon.com>
MFC after: 2 weeks
X-MFC with: r272057
Sponsored by: EMC / Isilon Storage Division

9 years agoFinish QCOW version 2 and stop making it conditional.
marcel [Wed, 24 Sep 2014 22:45:03 +0000 (22:45 +0000)]
Finish QCOW version 2 and stop making it conditional.

We have a different ordering for the RC block(s) and L2 tables.
This is expected to be a non-issue, because everything is found
through file offsets in the corresponding RC table and L1 table.
Files that grow organically have RC blocks and L2 tables scattered
all over the place anyway.

The reason for the difference is that mkimg needs to be able to
write to a pipe. We can't seek forward and backward to fill in
the bits in non-sequential order.

9 years agoAdd myself (jch) to calendar.freebsd and committers-src.dot
jch [Wed, 24 Sep 2014 22:31:40 +0000 (22:31 +0000)]
Add myself (jch) to calendar.freebsd and committers-src.dot

Approved by: jhb (mentor)

9 years agoFix the executed testplan count
ngie [Wed, 24 Sep 2014 22:18:21 +0000 (22:18 +0000)]
Fix the executed testplan count

MFC after: 2 weeks
X-MFC with: r272057
Sponsored by: EMC / Isilon Storage Division

9 years agoExpect ELOOP on Darwin/Linux with "O_NOFOLLOW was specified and the target is a
ngie [Wed, 24 Sep 2014 22:14:53 +0000 (22:14 +0000)]
Expect ELOOP on Darwin/Linux with "O_NOFOLLOW was specified and the target is a
symbolic link" case. Assume EMLINK on the rest of the OSes (FreeBSD, Solaris,
etc)

MFC after: 2 weeks
X-MFC with: r272057
Sponsored by: EMC / Isilon Storage Division

9 years agoCatch up with r271119.
np [Wed, 24 Sep 2014 20:12:40 +0000 (20:12 +0000)]
Catch up with r271119.

9 years agoUpdate comment (missed this bit in r272079).
np [Wed, 24 Sep 2014 20:08:43 +0000 (20:08 +0000)]
Update comment (missed this bit in r272079).

9 years agocxgbe/tom: Catch up with r271119, syncache_add doesn't need tcbinfo lock.
np [Wed, 24 Sep 2014 20:04:11 +0000 (20:04 +0000)]
cxgbe/tom:  Catch up with r271119, syncache_add doesn't need tcbinfo lock.

9 years agoMerge apr-util 1.5.3 -> 1.5.4. A minor bug fix update.
peter [Wed, 24 Sep 2014 18:38:51 +0000 (18:38 +0000)]
Merge apr-util 1.5.3 -> 1.5.4.  A minor bug fix update.

9 years agoUpdate the baseline for QCOW version 1. A bug was found that rendered
marcel [Wed, 24 Sep 2014 15:15:14 +0000 (15:15 +0000)]
Update the baseline for QCOW version 1. A bug was found that rendered
the baseline invalid.

9 years agoFix the creation of the L2 cluster table for version 1. The blkofs
marcel [Wed, 24 Sep 2014 15:14:01 +0000 (15:14 +0000)]
Fix the creation of the L2 cluster table for version 1. The blkofs
variable was assigned the image offset in bytes and not in blocks
(i.e. sectors). This had image_data() return FALSE, which meant that
we didn't assign a cluster when we needed and also meant that we
didn't write parts of the L2 table when we should have. The result
being that the actual data clusters were written at the wrong offset.

Improve support for QCOW version 2. We're having the right layout
and even know how many refcnt blocks we need. All we need to do is
populate the refcnt blocks for every cluster we write and allocate
a cluster when we need a new refcnt block. The allocation part is
tricky in that it'll interleave with the assignment of clusters to
L2 tables and data. Since version 2 is not quite done, keep it
compiled out for now.

9 years agoFix ticks wrap issue of lowmem test in vm_pageout_scan
smh [Wed, 24 Sep 2014 14:35:08 +0000 (14:35 +0000)]
Fix ticks wrap issue of lowmem test in vm_pageout_scan

Reviewed by: jhb (D818)
MFC after: 3 days
Sponsored by: Multiplay

9 years agoExpand the libthr(3) manpage to document knobs accepted by libthr.so
kib [Wed, 24 Sep 2014 12:41:39 +0000 (12:41 +0000)]
Expand the libthr(3) manpage to document knobs accepted by libthr.so
and explain some internal working of the library, neccessary to
understand the knobs effects.

Reviewed by: bjk, pluknet
Sponsored by: The FreeBSD Foundation
MFC after: 3 weeks

9 years agoSwitch the defaults to not split the RLIMIT_STACK-sized initial thread
kib [Wed, 24 Sep 2014 12:39:12 +0000 (12:39 +0000)]
Switch the defaults to not split the RLIMIT_STACK-sized initial thread
stack into the stacks of the created threads.  Add knob
LIBPTHREAD_SPLITSTACK_MAIN to restore the older behaviour.

Sponsored by: The FreeBSD Foundation
MFC after: 3 weeks

9 years ago- Provide wi_get_counter() to return counters that are not collected,
glebius [Wed, 24 Sep 2014 12:19:00 +0000 (12:19 +0000)]
- Provide wi_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 ago- Provide txp_get_counter() to return counters that are not collected,
glebius [Wed, 24 Sep 2014 11:58:23 +0000 (11:58 +0000)]
- Provide txp_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 agoMechanically convert to if_inc_counter().
glebius [Wed, 24 Sep 2014 11:33:43 +0000 (11:33 +0000)]
Mechanically convert to if_inc_counter().

9 years ago- Provide vte_get_counter() to return counters that are not collected,
glebius [Wed, 24 Sep 2014 11:31:46 +0000 (11:31 +0000)]
- Provide vte_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 ago- Provide igb_get_counter() to return counters that are not collected,
glebius [Wed, 24 Sep 2014 11:23:55 +0000 (11:23 +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 agoUpdate code to use new network counter API.
hselasky [Wed, 24 Sep 2014 08:28:34 +0000 (08:28 +0000)]
Update code to use new network counter API.
Fix some minor compile warnings while at it.

Sponsored by: Mellanox Technologies
Suggested by: glebius@
MFC after: 1 week

9 years agoRemake Linux' SOUND_MIXER_INFO IOCTL as a wrapper around new FreeBSD's one.
mav [Wed, 24 Sep 2014 08:18:11 +0000 (08:18 +0000)]
Remake Linux' SOUND_MIXER_INFO IOCTL as a wrapper around new FreeBSD's one.

Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>
MFC after: 3 days

9 years agoImport pjdfstest from ^/vendor/pjdfstest/abf03c3a47745d4521b0e4aa141317553ca48f91
ngie [Wed, 24 Sep 2014 07:00:35 +0000 (07:00 +0000)]
Import pjdfstest from ^/vendor/pjdfstest/abf03c3a47745d4521b0e4aa141317553ca48f91

- Remove tools/regression/pjdfstest
- Add upgrade directions for contrib/pjdfstest
- Add a note to UPDATING for the move (the reachover Makefiles are coming
  soon)

Functional differences:
- ftruncate testcases are added from upstream (github)

Non-functional differences:
- The copyright for the project has been updated to 2012
- pjd's contact information has been updated

Discussed with: -testing, jmmv, pjd
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division

9 years agoFix a typo in the upgrade directions
ngie [Wed, 24 Sep 2014 06:50:14 +0000 (06:50 +0000)]
Fix a typo in the upgrade directions

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

9 years agoImprove bsd.progs.mk compatibility with bsd.prog.mk
ngie [Wed, 24 Sep 2014 04:45:35 +0000 (04:45 +0000)]
Improve bsd.progs.mk compatibility with bsd.prog.mk

1. Do not install FILES/SCRIPTS multiple times if PROGS is specified; this is
   already handled via bsd.prog.mk when it's called recursively (PR: 191055,
   191955).
2. Some variables, like BINDIR and PROGNAME, default to a value if unset
   whereas others get appended to, like CFLAGS. Add support for the former case
   (PR: 191056)
3. Make "checkdpadd" and "clean" available targets for recursive execution.

Reviewed by: marcel, sjg
Phabric: D822
PR: 191055, 191056, 191955
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoClean the generated baseline files by adding them to CLEANFILES.
marcel [Wed, 24 Sep 2014 04:17:29 +0000 (04:17 +0000)]
Clean the generated baseline files by adding them to CLEANFILES.

9 years agoHave distrib-dirs, distribution, hier, hierarchy, redistribute, and reinstall
ngie [Wed, 24 Sep 2014 04:06:54 +0000 (04:06 +0000)]
Have distrib-dirs, distribution, hier, hierarchy, redistribute, and reinstall
depend on the .MAKE special target

This will allow users to do something like the following to print out the
results of the running the simulated make target with bmake, like some of the
other top-level make targets in Makefile.inc1:

  % make -f Makefile.inc1 -n distribution TARGET=i386 TARGET_ARCH=i386

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

9 years agoipfilter bug #558 add in some missing frag table function comments.
cy [Wed, 24 Sep 2014 01:21:31 +0000 (01:21 +0000)]
ipfilter bug #558 add in some missing frag table function comments.

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

9 years agocxgbe(4): Verify that the addresses in if_multiaddrs really are multicast
np [Tue, 23 Sep 2014 22:57:11 +0000 (22:57 +0000)]
cxgbe(4):  Verify that the addresses in if_multiaddrs really are multicast
addresses.  (The chip doesn't really care, it's just that it needs to be
told explicitly if unicast DMACs are checked for "hits" in the hash that
is used after the TCAM entries are all used up).

9 years agoDelete mentions to removed manpages
rodrigc [Tue, 23 Sep 2014 22:29:03 +0000 (22:29 +0000)]
Delete mentions to removed manpages

Obtained from:  atf (git 23c570d6f393c76dff041360bb5f7779900c7191)

9 years agoThe ATF source code is now hosted on GitHub.
rodrigc [Tue, 23 Sep 2014 22:20:19 +0000 (22:20 +0000)]
The ATF source code is now hosted on GitHub.

9 years agoConstify a parameter of name2oid. No functional change.
delphij [Tue, 23 Sep 2014 22:15:00 +0000 (22:15 +0000)]
Constify a parameter of name2oid.  No functional change.

MFC after: 2 months

9 years agoDon't install /etc/rc.d/keyserv unless MK_OPENSSL == yes
ngie [Tue, 23 Sep 2014 22:07:08 +0000 (22:07 +0000)]
Don't install /etc/rc.d/keyserv unless MK_OPENSSL == yes

Sponsored by: EMC / Isilon Storage Division

9 years agoWhen reporting some major UNIT ATTENTION condition, like POWER ON OCCURRED
mav [Tue, 23 Sep 2014 20:35:48 +0000 (20:35 +0000)]
When reporting some major UNIT ATTENTION condition, like POWER ON OCCURRED
or I_T NEXUS LOSS, clear all minor UAs for the LUN, redundant in this case.

All SAM specifications tell that target MAY do it, but libiscsi initiator
seems require it to be done, terminating connection with error if some more
UAs happen to be reported during iSCSI connection.

MFC after: 3 days

9 years agoNote KBI breakage with DEBUG_LOCKS.
bdrewery [Tue, 23 Sep 2014 19:24:13 +0000 (19:24 +0000)]
Note KBI breakage with DEBUG_LOCKS.

It specifically modifies struct lock, which many other structures embed.

Noted by: kib
MFC after: 3 days
X-MFC-with: r272032

9 years agoFix thinko that, with two map entries like shown below, in that order,
trasz [Tue, 23 Sep 2014 19:12:06 +0000 (19:12 +0000)]
Fix thinko that, with two map entries like shown below, in that order,
made automountd(8) mix them up: trying to access the second one would
trigger mount for the first one.

foo             host:/foo
foobar          host:/foobar

PR: 193584
MFC after: 3 days
Sponsored by: The FreeBSD Foundation

9 years agovm_map_pmap_enter() and pmap_enter_object() are currently not aware of
kib [Tue, 23 Sep 2014 18:54:23 +0000 (18:54 +0000)]
vm_map_pmap_enter() and pmap_enter_object() are currently not aware of
the wired attribute of the mapping.  As result, some pmap
implementations clear the wired state of the page table entries, which
breaks invariants and allows the entries to be lost.  Avoid calling
vm_map_pmap_enter() for the MADV_WILLNEED on the wired entry, the
pages must be already mapped.

Noted and reviewed by: alc
Sponsored by: The FreeBSD Foundation
MFC after: 3 days

9 years agoRemove settings for pkg_* scripts which are no longer present.
markj [Tue, 23 Sep 2014 18:38:06 +0000 (18:38 +0000)]
Remove settings for pkg_* scripts which are no longer present.

MFC after: 1 week

9 years agoBuild plockstat if WITH_PLOCKSTAT is defined.
rpaulo [Tue, 23 Sep 2014 18:22:40 +0000 (18:22 +0000)]
Build plockstat if WITH_PLOCKSTAT is defined.

9 years agoFix ASCQ for "Logical unit not ready, manual intervention required" error.
mav [Tue, 23 Sep 2014 17:30:00 +0000 (17:30 +0000)]
Fix ASCQ for "Logical unit not ready, manual intervention required" error.

9 years agoDEBUG_LOCKS no longer modifies 'struct vnode', nor does fstat(1) use it.
bdrewery [Tue, 23 Sep 2014 17:04:21 +0000 (17:04 +0000)]
DEBUG_LOCKS no longer modifies 'struct vnode', nor does fstat(1) use it.
fstat(1) now uses libprocstat(9).  There is no userland impact to using this.

MFC after: 3 days

9 years agoMake it more explicitly clear that -t will not change filename.
bdrewery [Tue, 23 Sep 2014 13:58:39 +0000 (13:58 +0000)]
Make it more explicitly clear that -t will not change filename.

MFC after: 3 days

9 years agoHardware driver update from Mellanox Technologies, including:
hselasky [Tue, 23 Sep 2014 12:37:01 +0000 (12:37 +0000)]
Hardware driver update from Mellanox Technologies, including:
 - improved performance
 - better stability
 - new features
 - bugfixes

Supported HCAs:
 - ConnectX-2
 - ConnectX-3
 - ConnectX-3 Pro

Sponsored by: Mellanox Technologies
MFC after: 1 week

9 years agoinstall: re-check failed mkdir for EEXIST
mjg [Tue, 23 Sep 2014 11:41:09 +0000 (11:41 +0000)]
install: re-check failed mkdir for EEXIST

Since the code stats and mkdirs in 2 separate steps, it is possible that
the directory will be created in the meantime by something else (e.g.
concurrent install).[1]

While here alter the code to properly report stat failure, previously it
would always claim it was mkdir which failed.

Noted by: royger [1]
MFC after: 1 week

9 years agoFix thinko that, with two map entries like shown below, in that order,
trasz [Tue, 23 Sep 2014 11:27:43 +0000 (11:27 +0000)]
Fix thinko that, with two map entries like shown below, in that order,
made autofs mix them up: the second one wasn't visible in ls(1) output,
and trying to access it would trigger mount for the first one.

foobar host:/foobar
foo host:/foo

MFC after: 3 days
Sponsored by: The FreeBSD Foundation

9 years agoGiven we are restricting ixl(4) to 64bit platforms now backout the change
bz [Tue, 23 Sep 2014 08:39:08 +0000 (08:39 +0000)]
Given we are restricting ixl(4) to 64bit platforms now backout the change
r270820 to common (shared) Intel code no longer needed.

MFC after: 3 days

9 years agoAs per [1] Intel only supports this driver on 64bit platforms.
bz [Tue, 23 Sep 2014 08:33:03 +0000 (08:33 +0000)]
As per [1] Intel only supports this driver on 64bit platforms.
For now restrict it to amd64.  Other architectures might be
re-added later once tested.

Remove the drivers from the global NOTES and files files and move
them to the amd64 specifics.
Remove the drivers from the i386 modules build and only leave the
amd64 version.

Rather than depending on "inet" depend on "pci" and make sure that
ixl(4) and ixlv(4) can be compiled independently [2].  This also
allows the drivers to build properly on IPv4-only or IPv6-only
kernels.

PR: 193824 [2]
Reviewed by: eric.joyner intel.com
MFC after: 3 days

References:
[1] http://lists.freebsd.org/pipermail/svn-src-all/2014-August/090470.html

9 years agoRemove "pci" from CSCOPEDIRS.
rpaulo [Tue, 23 Sep 2014 06:32:19 +0000 (06:32 +0000)]
Remove "pci" from CSCOPEDIRS.

9 years agoRemove the empty sys/pci directory.
rpaulo [Tue, 23 Sep 2014 06:31:46 +0000 (06:31 +0000)]
Remove the empty sys/pci directory.

9 years agoMove all the power management (SMBus) drivers to their own directory,
rpaulo [Tue, 23 Sep 2014 06:31:15 +0000 (06:31 +0000)]
Move all the power management (SMBus) drivers to their own directory,
away from sys/pci.

9 years agoMove amdsmb and nfsmb from dev/pci to their own device directory.
rpaulo [Tue, 23 Sep 2014 05:54:18 +0000 (05:54 +0000)]
Move amdsmb and nfsmb from dev/pci to their own device directory.

9 years agoMove pci/ncr to dev/ncr.
rpaulo [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.
nwhitehorn [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
jhibbits [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.
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.
markj [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.
markj [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
jhb [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
lwhsu [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.
sbruno [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.
jhb [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.
sbruno [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 [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 [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 [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 [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 [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
jhb [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):
rpaulo [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 [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 [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 [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 [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 [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 [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 [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).
jhb [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.
trasz [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.
mav [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
se [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.
mav [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.
mav [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
hselasky [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.
mav [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.
jmmv [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.
mav [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.
hselasky [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