]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoMFC- tracking commit.
markm [Sat, 5 Oct 2013 15:27:08 +0000 (15:27 +0000)]
MFC- tracking commit.

10 years agoRemove obsolete cmd-line options and code associated with
grehan [Fri, 4 Oct 2013 23:29:07 +0000 (23:29 +0000)]
Remove obsolete cmd-line options and code associated with
these.
 The mux-vcpus option may return at some point, given it's utility
in finding bhyve (and FreeBSD) bugs.

Approved by: re@ (blanket)
Discussed with: neel@

10 years agoAdd padding to match the compat32 struct stat32 definition to the real
kib [Fri, 4 Oct 2013 22:05:23 +0000 (22:05 +0000)]
Add padding to match the compat32 struct stat32 definition to the real
struct stat on 32bit architectures.

Debugged and tested by: bsam
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Approved by: re (marius)

10 years agokldxref: Do not depend on the directory order.
jilles [Fri, 4 Oct 2013 21:25:55 +0000 (21:25 +0000)]
kldxref: Do not depend on the directory order.

Sort the filenames to get a consistent result between machines of the same
architecture.

Also, sort FTS_D entries after other entries so kldxref -R works properly in
the uncommon case that a directory contains both subdirectories and modules.
Previously, this may have happened to work, depending on the order of files
in the directory.

PR: bin/182098
Submitted by: Derek Schrock (original version)
Tested by: Derek Schrock
Approved by: re (delphij)
MFC after: 1 week

10 years agoDon't leak memory when removing an unconnected session, and remove useless
trasz [Fri, 4 Oct 2013 19:31:41 +0000 (19:31 +0000)]
Don't leak memory when removing an unconnected session, and remove useless
UMA_ZONE_NOFREE that caused another leak when unloading the module.

Approved by: re (glebius)
Sponsored by: FreeBSD Foundation

10 years agoHook up the AHCI and blockif code to the build.
grehan [Fri, 4 Oct 2013 18:44:47 +0000 (18:44 +0000)]
Hook up the AHCI and blockif code to the build.

Approved by: re@ (blanket)

10 years agoImport Zhixiang Yu's GSoC'13 AHCI emulation:
grehan [Fri, 4 Oct 2013 18:31:38 +0000 (18:31 +0000)]
Import Zhixiang Yu's GSoC'13 AHCI emulation:
   https://wiki.freebsd.org/SummerOfCode2013/bhyveAHCI

This provides ICH8 SATA disk and ATAPI ports, selectable
via the bhyve slot command-line parameter:

SATA
  -s <slot>,ahci-hd,<image-file>

ATAPI
  -s <slot>,ahci-cd,<image-file>

Slight modifications by: grehan@
Approved by: re@ (blanket)
Obtained from: FreeBSD GSoC'13

10 years agoDisable use of compiler atomic builtins. For APR, this is limited to
nwhitehorn [Fri, 4 Oct 2013 18:27:02 +0000 (18:27 +0000)]
Disable use of compiler atomic builtins. For APR, this is limited to
architectures where they are known not to work. For SVN itself, use
the least common denominator and disable them across the board. This
allows svnlite to build and run on all FreeBSD architectures.

Approved by: re (gjb)

10 years agoadd aesni module to i386 and amd64 NOTES...
jmg [Fri, 4 Oct 2013 17:21:01 +0000 (17:21 +0000)]
add aesni module to i386 and amd64 NOTES...

Approved by: re (gjb)

10 years agoBlock-layer backend interface for bhyve block-io device emulations.
grehan [Fri, 4 Oct 2013 16:52:03 +0000 (16:52 +0000)]
Block-layer backend interface for bhyve block-io device emulations.

Approved by: re@ (blanket)

10 years agomdoc: remove EOL whitespace.
joel [Fri, 4 Oct 2013 16:44:24 +0000 (16:44 +0000)]
mdoc: remove EOL whitespace.

Approved by: re (blanket)

10 years agoRemove useless check - ki_loginclass is an array; can't be NULL.
trasz [Fri, 4 Oct 2013 16:08:44 +0000 (16:08 +0000)]
Remove useless check - ki_loginclass is an array; can't be NULL.

CID: 1006559
Approved by: re (kib)
MFC after: 2 weeks
Sponsored by: FreeBSD Foundation

10 years agoFix make depend.
uqs [Fri, 4 Oct 2013 11:55:20 +0000 (11:55 +0000)]
Fix make depend.

Approved by: re (glebius)

10 years agoFixes for the Netlogic XLP on-chip RSA block driver
jchandra [Fri, 4 Oct 2013 11:11:51 +0000 (11:11 +0000)]
Fixes for the Netlogic XLP on-chip RSA block driver

The changes are to:
* Use contigmalloc/contigfree which handling microcode buffer
* Use a different buffer to send microcode to each engine
* Swap microcode in little-endian compilation
* Fix freeback message queue id field
* Simplify xlp_get_rsa_opsize() to remove unnecessary checks
* Fix NULL check after use in xlp_free_cmd_params()
* Do better error handling when the hardware returns error
* Fix error codes in few cases

Submitted by: Vekatesh J. V. <venkatesh.vivekanandan@broadcom.com>
Approved by: re (hrs)

10 years agoStyle fixes for the Netlogic XLP RSA driver
jchandra [Fri, 4 Oct 2013 10:01:20 +0000 (10:01 +0000)]
Style fixes for the Netlogic XLP RSA driver

Updates to the Netlogic XLP on-chp RSA block driver. The changes are
to follow style(9) guidelines, to improve readability and to remove
unnecessary initialization.

No changes to logic have been introduced by this commit.

Submitted by: Venkatesh J. V. <venkatesh.vivekanandan@broadcom.com>
Approved by: re (hrs)

10 years agoMFC - tracking commit.
markm [Fri, 4 Oct 2013 07:00:59 +0000 (07:00 +0000)]
MFC - tracking commit.

10 years agoSnapshot. This passes the build test, but has not yet been finished or debugged.
markm [Fri, 4 Oct 2013 06:55:06 +0000 (06:55 +0000)]
Snapshot. This passes the build test, but has not yet been finished or debugged.

Contains:

* Refactor the hardware RNG CPU instruction sources to feed into
the software mixer. This is unfinished. The actual harvesting needs
to be sorted out. Modified by me (see below).

* Remove 'frac' parameter from random_harvest(). This was never
used and adds extra code for no good reason.

* Remove device write entropy harvesting. This provided a weak
attack vector, was not very good at bootstrapping the device. To
follow will be a replacement explicit reseed knob.

* Separate out all the RANDOM_PURE sources into separate harvest
entities. This adds some secuity in the case where more than one
is present.

* Review all the code and fix anything obviously messy or inconsistent.
Address som review concerns while I'm here, like rename the pseudo-rng
to 'dummy'.

Submitted by: Arthur Mesh <arthurmesh@gmail.com> (the first item)

10 years agoDo not attempt to do AF-specific configurations on a interface when
hrs [Fri, 4 Oct 2013 04:15:18 +0000 (04:15 +0000)]
Do not attempt to do AF-specific configurations on a interface when
noafif() is true.  The following warning message was displayed when
pflog0 interface existed, for example:

 ifconfig: ioctl(SIOCGIFINFO_IN6): Protocol family not supported

Reported by: bz
Approved by: re (gjb)

10 years agoAdd epair(4) support in $cloned_interfaces. One should be specified
hrs [Fri, 4 Oct 2013 02:44:04 +0000 (02:44 +0000)]
Add epair(4) support in $cloned_interfaces.  One should be specified
as "epair0" in $cloned_interfaces and "epair0[ab]" in the others in
rc.conf like the following:

 cloned_interfaces="epair0"
 ifconfig_epair0a="inet 192.168.1.1/24"
 ifconfig_epair0b="inet 192.168.2.1/24"

/etc/rc.d/netif now accepts both "netif start epair0" and "netif start
epair0a".

Approved by: re (kib)

10 years agoFix clearing MAC stats registers. Previously it cleared every
yongari [Fri, 4 Oct 2013 02:21:39 +0000 (02:21 +0000)]
Fix clearing MAC stats registers. Previously it cleared every
fourth register.

Submitted by: Paul A. Patience <paul-a.patience@polymtl.ca>
Approved by: re (gjb)

10 years agoChange len checks for fstypelen and fspathlen to be against absolute len
sbruno [Thu, 3 Oct 2013 22:52:03 +0000 (22:52 +0000)]
Change len checks for fstypelen and fspathlen to be against absolute len
not strlen as they are *not* strings.

Discovered by GSOC student, Mike Ma <mikemandarine@gmail.com> during his
fuse.glusterfs port to FreeBSD.

Final patch from mckusick@

Submitted by: mckusick@
Approved by: re (hrs)
MFC after: 2 weeks

10 years agoPull in r189644 from upstream llvm trunk:
dim [Thu, 3 Oct 2013 20:38:57 +0000 (20:38 +0000)]
Pull in r189644 from upstream llvm trunk:

  Add ms_abi and sysv_abi attribute handling.

  Based on a patch by Benno Rice!

This will help to develop EFI support.

Approved by: re (kib)
Verified by: benno
MFC after: 1 week

10 years agoPull in r186338 from upstream llvm trunk:
dim [Thu, 3 Oct 2013 17:50:14 +0000 (17:50 +0000)]
Pull in r186338 from upstream llvm trunk:

  Remove invalid assert in DAGTypeLegalizer::RemapValue

  There is a comment at the top of DAGTypeLegalizer::PerformExpensiveChecks
  which, in part, says:

   // Note that these invariants may not hold momentarily when processing a node:
   // the node being processed may be put in a map before being marked Processed.

  Unfortunately, this assert would be valid only if the above-mentioned invariant
  held unconditionally. This was causing llc to assert when, in fact,
  everything was fine.

  Thanks to Richard Sandiford for investigating this issue!

  Fixes PR16562.

This fixes assertions which could occur in the multimedia/ffmpeg1 and
multimedia/ffmpeg2 ports.

Approved by: re (hrs)
Reported by: Matthias Apitz <guru@unixarea.de>
MFC after: 3 days

10 years agoMFC - tracking commit
markm [Thu, 3 Oct 2013 17:30:55 +0000 (17:30 +0000)]
MFC - tracking commit

10 years agoDo not install bluetooth rc(8) scripts if MK_BLUETOOTH = no.
gjb [Thu, 3 Oct 2013 15:19:16 +0000 (15:19 +0000)]
Do not install bluetooth rc(8) scripts if MK_BLUETOOTH = no.

Approved by: re (glebius)
MFC after: 3 days
Sponsored by: The FreeBSD Foundation

10 years agoRefresh the tips for the new pkg system.
glebius [Thu, 3 Oct 2013 11:51:15 +0000 (11:51 +0000)]
Refresh the tips for the new pkg system.

Reviewed by: bapt
Approved by: re (hrs)

10 years agoAppend the Git branch to the version string.
rpaulo [Thu, 3 Oct 2013 01:53:17 +0000 (01:53 +0000)]
Append the Git branch to the version string.

Approved by: re (gjb)

10 years agoFix up typos from r255963 in mtree Makefile. BSD.debug.dist should be
mdf [Thu, 3 Oct 2013 01:18:06 +0000 (01:18 +0000)]
Fix up typos from r255963 in mtree Makefile.  BSD.debug.dist should be
iterated if present, and remove a stray .endif.

Approved by: re (gjb)

10 years agoMeinberg clocks support was inadvertently removed during the last vendor
roberto [Wed, 2 Oct 2013 21:47:25 +0000 (21:47 +0000)]
Meinberg clocks support was inadvertently removed during the last vendor
import.  Add it back.

PR: bin/182545
Submitted by: Joerg Pulz <Joerg.Pulz@frm2.tum.de>
Approved by: re (delphij)
MFC after: 1 week

10 years agoClear knlist before destroying it in tap(4) and tun(4). This fixes later
glebius [Wed, 2 Oct 2013 20:44:36 +0000 (20:44 +0000)]
Clear knlist before destroying it in tap(4) and tun(4). This fixes later
crash, when a kqueue descriptor tries to dereference appropriate knotes.

Approved by: re (kib)

10 years agoImplement GET_STACK_USAGE() on PowerPC. This implementation is identical
nwhitehorn [Wed, 2 Oct 2013 20:40:21 +0000 (20:40 +0000)]
Implement GET_STACK_USAGE() on PowerPC. This implementation is identical
to that on x86 and sparc64.

Approved by: re (kib)

10 years agoMFC - tracking update.
markm [Wed, 2 Oct 2013 18:12:18 +0000 (18:12 +0000)]
MFC - tracking update.

10 years agoMFC - tracking update.
markm [Wed, 2 Oct 2013 18:07:43 +0000 (18:07 +0000)]
MFC - tracking update.

10 years agoAdd a separate translator for headers passed to the TCP probes in the
markj [Wed, 2 Oct 2013 17:14:12 +0000 (17:14 +0000)]
Add a separate translator for headers passed to the TCP probes in the
input path. These probes get some of the fields in host order, whereas the
output probes get them in network order, so a single translator isn't
enough. This workaround ensures that the problem is essentially invisble
to users: none of the probe arguments or their fields have changed.

Approved by: re (hrs)

10 years agoset ROOTDEVNAME to ada0 with no paritions. This makes it much more functional
sbruno [Wed, 2 Oct 2013 14:43:17 +0000 (14:43 +0000)]
set ROOTDEVNAME to ada0 with no paritions.  This makes it much more functional
with makefs and other tools for testing and ports building

Approved by:    re (gjb)
MFC after:      2 weeks

10 years agoOnly build the POWER hypervisor UART driver if device uart is included in
nwhitehorn [Wed, 2 Oct 2013 13:33:10 +0000 (13:33 +0000)]
Only build the POWER hypervisor UART driver if device uart is included in
the kernel config.

Approved by: re (gjb)

10 years agoWhen helping the bufdaemon from the buffer allocation context, there
kib [Wed, 2 Oct 2013 06:00:34 +0000 (06:00 +0000)]
When helping the bufdaemon from the buffer allocation context, there
is no sense to walk the whole dirty buffer queue.  We are only
interested in, and can operate on, the buffers owned by the current
vnode [1].  Instead of calling generic queue flush routine, do
VOP_FSYNC() if possible.

Holding the dirty buffer queue lock in the bufdaemon, without dropping
it, can cause starvation of buffer writes from other threads. This is
esp. easy to reproduce on the big memory machines, where large files
are written, causing almost all dirty buffers accumulating in several
big files, which vnodes are locked by writers. Bufdaemon cannot flush
any buffer, but is iterating over the whole dirty queue
continuously. Since dirty queue mutex is not dropped, bufdone() in
g_up thread is starved, usually deadlocking the machine [2]. Mitigate
this by dropping the queue lock after the vnode is locked, allowing
other queue lock contenders to make a progress.

Discussed with: Jeff [1]
Reported by: pho [2]
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Approved by: re (hrs)

10 years agoAdd FreeBSD 9.2-RELEASE to the BSD Family Tree
gjb [Wed, 2 Oct 2013 04:40:46 +0000 (04:40 +0000)]
Add FreeBSD 9.2-RELEASE to the BSD Family Tree

Approved by: re (hrs)
Sponsored by: The FreeBSD Foundation

10 years agoPopulate .rld_map on MIPS for debuggers
emaste [Wed, 2 Oct 2013 02:32:58 +0000 (02:32 +0000)]
Populate .rld_map on MIPS for debuggers

On MIPS the .dynamic section is read-only, so the pointer to rtld
information for debuggers cannot be stored there (in DT_DEBUG).
Instead, a special section .rld_map is used.

Sponsored by: DARPA, AFRL
Approved by: re (delphij)

10 years agoUse correct size for MIPS .rld_map section
emaste [Wed, 2 Oct 2013 00:50:27 +0000 (00:50 +0000)]
Use correct size for MIPS .rld_map section

On MIPS .dynamic is read-only and so a special section .rld_map is used
to store the pointer to the rtld information for debuggers.  This
section had a hard coded size of 4 bytes which is not correct for
mips64.  (Note that FreeBSD's rtld does not yet populate .rld_map.)

Sponsored by:   DARPA, AFRL
Approved by: re (delphij)

10 years agoRevert-and-redo r255955: the sort -r should be added to delete-old-dirs.
delphij [Tue, 1 Oct 2013 22:53:27 +0000 (22:53 +0000)]
Revert-and-redo r255955: the sort -r should be added to delete-old-dirs.

Approved by: re (gjb)

10 years agoaccept(2): Update portability note for accept4().
jilles [Tue, 1 Oct 2013 21:17:18 +0000 (21:17 +0000)]
accept(2): Update portability note for accept4().

The accept(2) man page warns that O_NONBLOCK and other properties on the
new socket may vary across implementations. However, this issue only
applies to accept() and not to accept4(). On the other hand, accept4()
is not commonly available yet.

Reported by: pluknet
Reviewed by: bjk
Approved by: re (kib)

10 years agoWhen printing the vnode information from ddb, print the lengths of the
kib [Tue, 1 Oct 2013 20:18:33 +0000 (20:18 +0000)]
When printing the vnode information from ddb, print the lengths of the
dirty and clean buffer queues.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Approved by: re (gjb)

10 years agoPull in r191711 from upstream llvm trunk:
dim [Tue, 1 Oct 2013 19:14:24 +0000 (19:14 +0000)]
Pull in r191711 from upstream llvm trunk:

  The X86FixupLEAs pass for Intel Atom must not call
  convertToThreeAddress on ADD16rr opcodes, if src1 != src, since that
  would cause convertToThreeAddress to try to create a virtual register.
  This is not permitted after register allocation, which is when the
  X86FixupLEAs pass runs.

  This patch fixes PR16785.

Pull in r191715 from upstream llvm trunk:

  Forgot to add a break statement.

This should enable building the x11-toolskits/libXaw port with
CPUTYPE=atom.

Approved by: re (gjb)
Reported by: Kenta Suzumoto <kentas@hush.com>
MFC after: 3 days

10 years agoSweep man pages replacing ad -> ada.
pluknet [Tue, 1 Oct 2013 18:41:53 +0000 (18:41 +0000)]
Sweep man pages replacing ad -> ada.

Approved by: re (blackend)
MFC after: 1 week
X-MFC note: stable/9 only

10 years agoAlso remove GNU ar and ranlib man pages
emaste [Tue, 1 Oct 2013 17:51:04 +0000 (17:51 +0000)]
Also remove GNU ar and ranlib man pages

This was missed in r255974.

Approved by: re (implicit)

10 years agoRegen.
emaste [Tue, 1 Oct 2013 17:46:04 +0000 (17:46 +0000)]
Regen.

Approved by: re (implicit)

10 years agoRemove long-unused GNU ar and ranlib
emaste [Tue, 1 Oct 2013 17:40:56 +0000 (17:40 +0000)]
Remove long-unused GNU ar and ranlib

The libarchive-based replacements have been used since 2009; the GNU
ones were kept to support source upgrades from FreeBSD 6.

Approved by: re@ (delphij)

10 years agoFixed kernel crash when running devinfo
alfred [Tue, 1 Oct 2013 15:43:23 +0000 (15:43 +0000)]
Fixed kernel crash when running devinfo

When calling to ib_uverbs_cleanup_ucontext, there is a call to
mutex_lock of xrcd_table_mutex, which was not initialized.
Added missing initialization for xrcd_table_mutex.

Submitted by: Orit Moskovich (oritm mellanox.com)

Approved by: re

10 years agoEnable ib_dev.mmap function
alfred [Tue, 1 Oct 2013 15:42:38 +0000 (15:42 +0000)]
Enable ib_dev.mmap function

Removed the ifdef linux from this function.
Added stub function for contiguous pages to avoid compilation
errors.

Submitted by: Orit Moskovich (oritm mellanox.com)
Approved by: re

10 years agoFix some typos that were causing probe argument types to show up as unknown.
markj [Tue, 1 Oct 2013 15:40:27 +0000 (15:40 +0000)]
Fix some typos that were causing probe argument types to show up as unknown.

Reviewed by: rwatson (mac provider)
Approved by: re (glebius)
MFC after: 1 week

10 years agoFixed 'Couldn't Create QP' issue when running rc_pingpong, uc_pingpong,
alfred [Tue, 1 Oct 2013 15:38:29 +0000 (15:38 +0000)]
Fixed 'Couldn't Create QP' issue when running rc_pingpong, uc_pingpong,
srq_pingpong IBverbs

Removed refrences using 'ifdef __linux__' to qpg functions and
related fields in struct
ib_qp_init_attr.

Submitted by: Orit Moskovich (oritm mellanox.com)

Approved by: re

10 years agoFixed kernel crash when removing IPOIB_CM option from configuration file
alfred [Tue, 1 Oct 2013 15:36:51 +0000 (15:36 +0000)]
Fixed kernel crash when removing IPOIB_CM option from configuration file

Changed module init from module_init() to module_init_order() with
SI_ORDER_MIDDLE flag
Submitted by: Orit Moskovich (oritm mellanox.com)
Approved by: re

10 years agoFix mis-merge of upstream fix.
alfred [Tue, 1 Oct 2013 15:33:00 +0000 (15:33 +0000)]
Fix mis-merge of upstream fix.

We would accidentally make the string one byte too short.

Submitted by: Orit Moskovich (oritm mellanox.com)

Approved by: re

10 years ago- Enable unmapped buffers on Exynos5 again, because
br [Tue, 1 Oct 2013 12:01:20 +0000 (12:01 +0000)]
- Enable unmapped buffers on Exynos5 again, because
  board now able to see all the 2GB ram it has
- Also unbreak gcc build

Approved by: cognet (mentor)
Approved by: re (marius)

10 years agoHave makeman always use the mk files from the source tree it's operating
des [Tue, 1 Oct 2013 07:22:04 +0000 (07:22 +0000)]
Have makeman always use the mk files from the source tree it's operating
on rather than those from the installed system.

Approved by: re (delphij)

10 years agoOdds and ends left over from BIND and unnoticed because they didn't
des [Tue, 1 Oct 2013 07:19:23 +0000 (07:19 +0000)]
Odds and ends left over from BIND and unnoticed because they didn't
affect 'make universe'.

Approved by: re (gjb)

10 years agoAdd missing mergeinfo associated with r255852.
dteske [Mon, 30 Sep 2013 21:26:03 +0000 (21:26 +0000)]
Add missing mergeinfo associated with r255852.

Approved by: re (gjb)

10 years agoSet proper permissions on the generated osreldate.h file; a file readable
ian [Mon, 30 Sep 2013 21:01:04 +0000 (21:01 +0000)]
Set proper permissions on the generated osreldate.h file; a file readable
only by root can cause install problems, especially over nfs.

Submitted by: jilles@
Approved by: re (gjb)

10 years agoUpdate the Dutch calendar entries:
rene [Mon, 30 Sep 2013 20:49:10 +0000 (20:49 +0000)]
Update the Dutch calendar entries:
- prince Johan Friso passed away in 2013
- correct status of queen Maxima and crown princess Catharina-Amalia
- language fixes

Approved by: remko (mentor)
Approved by: re (gjb)
MFC after: 3 days

10 years agoReverse directories order when doing 'make delete-old-dir'. This
delphij [Mon, 30 Sep 2013 20:33:56 +0000 (20:33 +0000)]
Reverse directories order when doing 'make delete-old-dir'.  This
ensures subdirectories gets removed before their parents when doing
make delete-old.

Approved by: re (gjb)
MFC after: 2 weeks

10 years agoNote the removal of BIND, where to find it, and how to use
des [Mon, 30 Sep 2013 18:06:43 +0000 (18:06 +0000)]
Note the removal of BIND, where to find it, and how to use
local_unbound instead.

Approved by: re (gjb)

10 years agoRemove /usr/include/lwres
des [Mon, 30 Sep 2013 18:00:54 +0000 (18:00 +0000)]
Remove /usr/include/lwres

Approved by: re (gjb)

10 years agoRegenerate.
des [Mon, 30 Sep 2013 17:40:39 +0000 (17:40 +0000)]
Regenerate.

Approved by: re (gjb)

10 years agoRemove BIND.
des [Mon, 30 Sep 2013 17:23:45 +0000 (17:23 +0000)]
Remove BIND.

Approved by: re (gjb)

10 years agoUpdate ddb(9) to show how to print 64-bit values with "examine".
rwatson [Mon, 30 Sep 2013 09:21:17 +0000 (09:21 +0000)]
Update ddb(9) to show how to print 64-bit values with "examine".

MFC after: 3 days
Approved by: re (gjb)

10 years agoAdd the newest NetBSD releases.
eadler [Sun, 29 Sep 2013 23:38:53 +0000 (23:38 +0000)]
Add the newest NetBSD releases.

Approved by: re (gjb)

10 years agoMake the mac_policy_rm lock recursable, which allows reentrance into
kib [Sun, 29 Sep 2013 20:21:34 +0000 (20:21 +0000)]
Make the mac_policy_rm lock recursable, which allows reentrance into
the mac framework.  It is needed when priv_check_cred(9) is called from
the mac callback, e.g. in the mac_portacl(4).

Reported by: az
Reviewed by: rwatson
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Approved by: re (gjb)

10 years agoUse MK_SSP=no after including bsd.own.mk to disable SSP instead of user-knob
bdrewery [Sun, 29 Sep 2013 20:20:17 +0000 (20:20 +0000)]
Use MK_SSP=no after including bsd.own.mk to disable SSP instead of user-knob
WITH[OUT]_SSP to avoid hitting an error if user has WITH_SSP in their
make.conf. Ports now use this knob.

  make[7]: "/usr/src/share/mk/bsd.own.mk" line 466: WITH_SSP and
  WITHOUT_SSP can't both be set.

This is similar to previous cleanup done in r188895

Approved by: bapt
Reviewed by: jlh (earlier version)
Approved by: re (marius)
MFC after: 1 week

10 years agoChanges to CAM or busdma have caused SIMs to be sent 0-length CCBs on
nwhitehorn [Sun, 29 Sep 2013 20:10:22 +0000 (20:10 +0000)]
Changes to CAM or busdma have caused SIMs to be sent 0-length CCBs on
occasion. This resulted in zero mapped segments, triggering an assert in
the PS3 CDROM driver. Allow no DMA for 0-length transfers.

Approved by: re (glebius)
MFC after: 1 week

10 years agoFor vunref(), try to upgrade the vnode lock if the function was called
kib [Sun, 29 Sep 2013 18:07:14 +0000 (18:07 +0000)]
For vunref(), try to upgrade the vnode lock if the function was called
with the vnode shared-locked.  If upgrade succeeded, the inactivation
can be done immediately, instead of being postponed.

Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Approved by: re (glebius)

10 years agoReimplement r255797 using LK_TRYUPGRADE.
kib [Sun, 29 Sep 2013 18:04:57 +0000 (18:04 +0000)]
Reimplement r255797 using LK_TRYUPGRADE.

The  r255797 was:
Increase the chance of the buffer write from the bufdaemon helper
context to succeed.  If the locked vnode which owns the buffer to be
written is shared locked, try the non-blocking upgrade of the lock to
exclusive.

PR: kern/178997
Reported and tested by: Klaus Weber <fbsd-bugs-2013-1@unix-admin.de>
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Approved by: re (glebius)

10 years agoAdd LK_TRYUPGRADE operation for lockmgr(9), which attempts to
kib [Sun, 29 Sep 2013 18:02:23 +0000 (18:02 +0000)]
Add LK_TRYUPGRADE operation for lockmgr(9), which attempts to
atomically upgrade shared lock to exclusive.  On failure, error is
returned and lock is not dropped in the process.

Tested by:      pho (previous version)
No objections from:     attilio
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Approved by: re (glebius)

10 years agoFix ixp425 boot2 with ARM EABI:
andrew [Sun, 29 Sep 2013 15:19:34 +0000 (15:19 +0000)]
Fix ixp425 boot2 with ARM EABI:
 - libkern is missing __aeabi_llsl, implement this by calling __ashldi3.
 - Because of how the asm entry macros are defined the boot2 code
   requires the unwind symbols to exist, include them in boot2.

Approved by: re (marius)

10 years agoYet more BIND files that weren't listed in OptionalObsoleteFiles.
des [Sun, 29 Sep 2013 14:06:19 +0000 (14:06 +0000)]
Yet more BIND files that weren't listed in OptionalObsoleteFiles.

Approved by: re (blanket)

10 years agoImplement GET_STACK_USAGE.
marius [Sun, 29 Sep 2013 13:09:25 +0000 (13:09 +0000)]
Implement GET_STACK_USAGE.
Discussed with: mav

Approved by: re (kib)
MFC after: 1 week

10 years agoDEBUG_FLAGS -g is default for GENERIC and its presence interferes with
philip [Sun, 29 Sep 2013 13:05:22 +0000 (13:05 +0000)]
DEBUG_FLAGS -g is default for GENERIC and its presence interferes with
disabling the sfxge.ko.symbols build for embedded systems.

Approved by: re (marius)
MFC after: 3 days

10 years agoAdd pagemask debugging output in "show tlb" in the debugger.
adrian [Sun, 29 Sep 2013 10:14:16 +0000 (10:14 +0000)]
Add pagemask debugging output in "show tlb" in the debugger.

Approved by: re (marius)
Obtained from: bsdimp

10 years agoUpdate head/ to -ALPHA4.
gjb [Sun, 29 Sep 2013 01:05:00 +0000 (01:05 +0000)]
Update head/ to -ALPHA4.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

10 years agoUpdate OFED to Linux 3.7 and update Mellanox drivers.
alfred [Sun, 29 Sep 2013 00:35:03 +0000 (00:35 +0000)]
Update OFED to Linux 3.7 and update Mellanox drivers.

Update the OFED Infiniband core to the version supplied in Linux
version 3.7.

The update to OFED is nearly all additional defines and functions
with the exception of the addition of additional parameters to
ib_register_device() and the reg_user_mr callback.

In addition the ibcore (Infiniband core) and ipoib (IP over Infiniband)
have both been made into completely loadable modules to facilitate
testing of the OFED stack in FreeBSD.

Finally the Mellanox Infiniband drivers are now updated to the
latest version shipping with Linux 3.7.

Submitted by: Mellanox FreeBSD driver team:
                Oded Shanoon (odeds mellanox.com),
                Meny Yossefi (menyy mellanox.com),
                Orit Moskovich (oritm mellanox.com)

Approved by: re

10 years agoFix a bug in ld, where indirect symbols are not handled properly during
dim [Sat, 28 Sep 2013 23:03:40 +0000 (23:03 +0000)]
Fix a bug in ld, where indirect symbols are not handled properly during
linking of a shared library, leading to corrupt indexes in the dynamic
symbol table.  This should fix the multimedia/ffmpegthumbnailer port.

Approved by: re (kib)
Reported by: swills
MFC after: 2 weeks

10 years agoAllow the path to the system source directory to be passed in to
ian [Sat, 28 Sep 2013 16:39:46 +0000 (16:39 +0000)]
Allow the path to the system source directory to be passed in to
newvers.sh.  Pass it in from include/Makefile.  If it isn't passed in,
fall back to the old logic of using dirname $0.

Using dirname $0 does not yield the path to the script if it was
sourced in from another script in another directory; you end up with
the parent script's path.  That was causing newvers.sh to look one
level below the FreeBSD src/ directory when building osreldate.h and it
may find something like a git or svn repo there that has nothing to do
with FreeBSD.

PR: 174422
Approved by: re ()
MFC after: 2 weeks

10 years agoPrevent the set -e from mk-osreldate.sh from propagating into newvers.sh.
nwhitehorn [Sat, 28 Sep 2013 16:25:20 +0000 (16:25 +0000)]
Prevent the set -e from mk-osreldate.sh from propagating into newvers.sh.
This would cause detection of old versions of SVN to cause fatal errors
instead of being caught and handled, which would make the build fail if
the tree had been checked out with an older version of SVN (e.g. 1.6).

Discussed with: gjb
Approved by: re (marius)

10 years agoUse the correct EtherType for logging IPv6 packets.
philip [Sat, 28 Sep 2013 15:49:36 +0000 (15:49 +0000)]
Use the correct EtherType for logging IPv6 packets.

Reviewed by: melifaro
Approved by: re (kib, glebius)
MFC after: 3 days

10 years agoAdd driver for the PAPR VSCSI virtual SCSI controller. This lets FreeBSD
nwhitehorn [Sat, 28 Sep 2013 15:46:03 +0000 (15:46 +0000)]
Add driver for the PAPR VSCSI virtual SCSI controller. This lets FreeBSD
install directly into standard POWER LPARs, as found for example in
QEMU. The core of this device is the SCSI RDMA protocol as also found in
Infiniband. The SRP portions of the driver will be factored out and placed
/sys/cam in the future to allow them to be used for IB storage. Thanks to
Scott Long for a great deal of implementation help.

Reviewed by: scottl
Approved by: re (kib)

10 years ago Fix a fallout from r241610. One enc interface must be created on startup.
glebius [Sat, 28 Sep 2013 14:14:23 +0000 (14:14 +0000)]
  Fix a fallout from r241610. One enc interface must be created on startup.

Pointy hat to: glebius
Reported by: gavin
Approved by: re (gjb)

10 years agoRemove ftp5.se.f.o, as per request to -hubs@
gavin [Sat, 28 Sep 2013 13:58:21 +0000 (13:58 +0000)]
Remove ftp5.se.f.o, as per request to -hubs@

Approved by: re (glebius)
MFC after: 3 days

10 years agoFix make depend, apply a bit of style.
uqs [Sat, 28 Sep 2013 07:04:03 +0000 (07:04 +0000)]
Fix make depend, apply a bit of style.

Approved by: re (marius)
Reviewed by: grehan

10 years agoFix powerpc/161045. ams_poll() needs to return that any data is available, not
jhibbits [Sat, 28 Sep 2013 02:13:59 +0000 (02:13 +0000)]
Fix powerpc/161045.  ams_poll() needs to return that any data is available, not
just a new packet.

PR: powerpc/161045
Approved by: re(marius)
MFC after: 1 week

10 years agoFix Fx syntax.
sjg [Fri, 27 Sep 2013 17:42:23 +0000 (17:42 +0000)]
Fix Fx syntax.

PR: 182269
Approved by: re@

10 years agoMake sure the CCB xflags field is initialized to zero so that
nwhitehorn [Fri, 27 Sep 2013 16:02:40 +0000 (16:02 +0000)]
Make sure the CCB xflags field is initialized to zero so that
CAM_EXTLUN_VALID is not erroneously set. Also add an XPORT_SRP
identifier to the known SCSI transports for the SCSI RDMA protocol, as
used, for example with Infiniband storage.

Reviewed by: scottl
Approved by: re (marius)

10 years agoRemove duplicate entry for the host(1) man page.
des [Fri, 27 Sep 2013 15:22:08 +0000 (15:22 +0000)]
Remove duplicate entry for the host(1) man page.

Approved by: re (blanket)

10 years agosys/x86/xen/hvm.c:
gibbs [Fri, 27 Sep 2013 15:17:28 +0000 (15:17 +0000)]
sys/x86/xen/hvm.c:
Set cpu_ops correctly for Xen hypervisors lacking the
vector callback feature.

Set preliminary Xen cpu_ops settings during early HVM
initialization.  The old location raced with the startup
of APs.

Submitted by: Roger Pau MonnĂ©
Reviewed by: gibbs
Approved by: re (blanket Xen)

10 years agoReturn 0 for a rdmsr of MSR_IA32_PLATFORM_ID. This
grehan [Fri, 27 Sep 2013 14:55:59 +0000 (14:55 +0000)]
Return 0 for a rdmsr of MSR_IA32_PLATFORM_ID. This
is enough to get Ubuntu 12.0.4/13.0.4 to boot.

Approved by: re@ (blanket)

10 years agoRework handling of ofw_quiesce(), making it the responsibility of the
nwhitehorn [Fri, 27 Sep 2013 13:12:47 +0000 (13:12 +0000)]
Rework handling of ofw_quiesce(), making it the responsibility of the
platform modules. Whether to call this function or not is highly machine
dependent: on some systems, it is required, while on others it breaks
everything. Platform modules are in a better position to figure this
out. This is required for POWER hypervisor SCSI to work correctly. There
are no functional changes on Powermac systems.

Approved by: re (kib)

10 years agoMake sure that ref and changed bits propagate back to the VM layer
nwhitehorn [Fri, 27 Sep 2013 13:11:20 +0000 (13:11 +0000)]
Make sure that ref and changed bits propagate back to the VM layer
whenever pages are unmapped. The old code had several races that could
allow these to become stale.

Approved by: re (kib)

10 years ago- Remove the is (Iceland) mirror per mail from the admins.
brd [Fri, 27 Sep 2013 11:25:37 +0000 (11:25 +0000)]
- Remove the is (Iceland) mirror per mail from the admins.

Approved by: re
With hat: clusteradm@

10 years agoAllow Open Firmware syscons to attach to devices without an "address"
nwhitehorn [Thu, 26 Sep 2013 22:47:02 +0000 (22:47 +0000)]
Allow Open Firmware syscons to attach to devices without an "address"
property such as those found on some real and emulated IBM systems. The
approach, which is taken from Linux, is to scan through the PCI bars
until we find one large enough to contain the linear framebuffer and
which is ideally prefetchable if no "address" property can be found.
This makes the graphical console work with the pSeries target in QEMU.

Approved by: re (delphij)

10 years agoAs idling the CPU no longer causes hangs on QEMU, reenable the pSeries
nwhitehorn [Thu, 26 Sep 2013 21:18:46 +0000 (21:18 +0000)]
As idling the CPU no longer causes hangs on QEMU, reenable the pSeries
cpu_idle() routine.

Approved by: re (delphij)

10 years agoFix bug where UART unit number was not set properly, which prevented
nwhitehorn [Thu, 26 Sep 2013 18:01:32 +0000 (18:01 +0000)]
Fix bug where UART unit number was not set properly, which prevented
operation on systems with multiple serial ports. Also turn on
interrupts for the UART device, which were disabled due to a
now-fixed bug in QEMU.

Approved by: re (gjb)