]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
12 years agoChange the hwmp debugging to use %6D rather than ether_sprintf().
Adrian Chadd [Sat, 21 Jan 2012 00:38:18 +0000 (00:38 +0000)]
Change the hwmp debugging to use %6D rather than ether_sprintf().

This allows for multiple MAC addresses to be printed on the same
debugging line.  ether_sprintf() uses a static char buffer and
thus isn't very useful here.

Submitted by: Monthadar Al Jaberi <monthadar@gmail.com>

12 years agoUse separate buffer for global path to avoid overflow of path buffer.
Martin Matuska [Sat, 21 Jan 2012 00:06:21 +0000 (00:06 +0000)]
Use separate buffer for global path to avoid overflow of path buffer.

Reviewed by: jamie@
MFC after: 3 weeks

12 years agoWe use port_index field of struct octusb_qh to reference USB state
Oleksandr Tymoshenko [Fri, 20 Jan 2012 23:37:04 +0000 (23:37 +0000)]
We use port_index field of struct octusb_qh to reference USB state
of root HUB. Although it is initialized with port index of the
device's parent hub, which is worng. So track the USB tree up to
root HUB  and initialize this filed ptroprly

Rename port_index to root_port_index in order to reflect its
real semantics.

12 years agoAdd one more copyright line accidentially removed in r228103
Martin Matuska [Fri, 20 Jan 2012 22:56:57 +0000 (22:56 +0000)]
Add one more copyright line accidentially removed in r228103

MFC after: 3 days

12 years agoWhen creating the jails /dev/log symlink, do it by full path to avoid
Brooks Davis [Fri, 20 Jan 2012 22:55:19 +0000 (22:55 +0000)]
When creating the jails /dev/log symlink, do it by full path to avoid
creating stray "log" symlinks if the mount fails.  That apparently
happens in some ezjail configs.

PR: conf/143084
Submitted by: Dirk Engling <erdgeist at erdgeist.org>
Reviewed by: simon
MFC after: 2 weeks

12 years agoAdd accidentially removed copyright lines in r228103
Martin Matuska [Fri, 20 Jan 2012 22:55:16 +0000 (22:55 +0000)]
Add accidentially removed copyright lines in r228103

Reported by: pjd
MFC after: 3 days

12 years agoReplace GPLd headers from the Maestro3 driver with BSD licensed
Pedro F. Giffuni [Fri, 20 Jan 2012 22:37:10 +0000 (22:37 +0000)]
Replace GPLd headers from the Maestro3 driver with BSD licensed
versions derived from /usr/ports/audio/oss.

The particular headers used were taken from the
attic/drv/oss_allegro directory and are mostly identical
to the previous files.

The Maestro3 driver is now free from the GPL.

NOTE: due to lack of testers this driver is being
considered for deprecation and removal.

PR: kern/153920
Approved by: jhb (mentor)
MFC after: 2 weeks

12 years agoThis commit adds profiling support for powerpc64. Now we can do application
Andreas Tobler [Fri, 20 Jan 2012 22:34:19 +0000 (22:34 +0000)]
This commit adds profiling support for powerpc64. Now we can do application
profiling and kernel profiling. To enable kernel profiling one has to build
kgmon(8). I will enable the build once I managed to build and test powerpc
(32-bit) kernels with profiling support.

- add a powerpc64 PROF_PROLOGUE for _mcount.
- add macros to avoid adding the PROF_PROLOGUE in certain assembly entries.
- apply these macros where needed.
- add size information to the MCOUNT function.

MFC after: 3 weeks, together with r230291

12 years agoPrevent an error resulting from signed/unsigned comparison on systems
Nathan Whitehorn [Fri, 20 Jan 2012 22:24:39 +0000 (22:24 +0000)]
Prevent an error resulting from signed/unsigned comparison on systems
that do not comply with the OF spec.

Submitted by: Anders Gavare
MFC after: 1 week

12 years agoBy default turn off prefetch when listing snapshots.
Pawel Jakub Dawidek [Fri, 20 Jan 2012 22:04:59 +0000 (22:04 +0000)]
By default turn off prefetch when listing snapshots.
In my tests it makes listing snapshots 19% faster with cold cache and
47% faster with warm cache.

MFC after: 1 week

12 years agoRemove another unused token.
Pawel Jakub Dawidek [Fri, 20 Jan 2012 21:49:56 +0000 (21:49 +0000)]
Remove another unused token.

MFC after: 3 days

12 years agoRemove unused token 'port'.
Pawel Jakub Dawidek [Fri, 20 Jan 2012 21:45:24 +0000 (21:45 +0000)]
Remove unused token 'port'.

MFC after: 3 days

12 years agoClose a race in NFS lookup processing that could result in stale name cache
John Baldwin [Fri, 20 Jan 2012 20:02:01 +0000 (20:02 +0000)]
Close a race in NFS lookup processing that could result in stale name cache
entries on one client when a directory was renamed on another client.  The
root cause for the stale entry being trusted is that each per-vnode nfsnode
structure has a single 'n_ctime' timestamp used to validate positive name
cache entries.  However, if there are multiple entries for a single vnode,
they all share a single timestamp.  To fix this, extend the name cache
to allow filesystems to optionally store a timestamp value in each name
cache entry.  The NFS clients now fetch the timestamp associated with
each name cache entry and use that to validate cache hits instead of the
timestamps previously stored in the nfsnode.  Another part of the fix is
that the NFS clients now use timestamps from the post-op attributes of
RPCs when adding name cache entries rather than pulling the timestamps out
of the file's attribute cache.  The latter is subject to races with other
lookups updating the attribute cache concurrently.  Some more details:
- Add a variant of nfsm_postop_attr() to the old NFS client that can return
  a vattr structure with a copy of the post-op attributes.
- Handle lookups of "." as a special case in the NFS clients since the name
  cache does not store name cache entries for ".", so we cannot get a
  useful timestamp.  It didn't really make much sense to recheck the
  attributes on the the directory to validate the namecache hit for "."
  anyway.
- ABI compat shims for the name cache routines are present in this commit
  so that it is safe to MFC.

MFC after: 2 weeks

12 years agoPull in r148240 from upstream llvm trunk:
Dimitry Andric [Fri, 20 Jan 2012 19:18:11 +0000 (19:18 +0000)]
Pull in r148240 from upstream llvm trunk:

  Make sure the non-SSE lowering for fences correctly clobbers EFLAGS.
  PR11768.

In particular, this fixes segfaults during the build of devel/icu on
i386.  The __sync_synchronize() builtin used for implementing icu's
internal barrier could lead to incorrect behaviour.

MFC after: 3 days

12 years agoMap foreign architecture names to FreeBSD naming convention.
Robert Millan [Fri, 20 Jan 2012 18:55:56 +0000 (18:55 +0000)]
Map foreign architecture names to FreeBSD naming convention.

Approved by: kib (mentor)

12 years agoAdd the .opd section, this is helps booting a profiled kernel.
Andreas Tobler [Fri, 20 Jan 2012 18:52:31 +0000 (18:52 +0000)]
Add the .opd section, this is helps booting a profiled kernel.
Adjust the OUTPUT_ARCH and use the builtin ALIGN() to adjust the data segment.

12 years agoDisable GUPROF on archs other than i386/amd64 since the fine details are not
Andreas Tobler [Fri, 20 Jan 2012 18:49:47 +0000 (18:49 +0000)]
Disable GUPROF on archs other than i386/amd64 since the fine details are not
implemented.

12 years ago/etc/netstart: remove invocation of dhclient
Eygene Ryabinkin [Fri, 20 Jan 2012 17:25:15 +0000 (17:25 +0000)]
/etc/netstart: remove invocation of dhclient

dhclient is no longer a real service, it is a helper script
for /etc/rc.d/netif and devd.  Its direct invocation isn't
needed to bring the network up.

Approved by: jhb

12 years agodhclient: don't use syslog for logging non-DHCP interface errors
Eygene Ryabinkin [Fri, 20 Jan 2012 17:19:50 +0000 (17:19 +0000)]
dhclient: don't use syslog for logging non-DHCP interface errors

We should show the error to user, but it doesn't deserve syslog.

Approved by: jhb

12 years agoRemove a superfluous INET6 check (no opt_inet6.h included anyway).
Bjoern A. Zeeb [Fri, 20 Jan 2012 17:18:54 +0000 (17:18 +0000)]
Remove a superfluous INET6 check (no opt_inet6.h included anyway).

MFC after: 3 days

12 years agoConditionalize the __floatunsisf and __floatunsidf functions, added in
David Schultz [Fri, 20 Jan 2012 14:44:21 +0000 (14:44 +0000)]
Conditionalize the __floatunsisf and __floatunsidf functions, added in
NetBSD's rev 1.6 of this file, on !defined(SOFTFLOAT_FOR_GCC).  These
functions are provided by libgcc, so we don't need them.  This should
unbreak mips.

12 years agoFix a problem when using the CBAPI.
Michael Tuexen [Fri, 20 Jan 2012 13:26:11 +0000 (13:26 +0000)]
Fix a problem when using the CBAPI.
While there, remove an old comment which does not apply anymore.

12 years agoDon't print the nmount(2) provided error message if it is empty.
Jaakko Heinonen [Fri, 20 Jan 2012 12:59:12 +0000 (12:59 +0000)]
Don't print the nmount(2) provided error message if it is empty.

12 years agoIf we're booting there is no need to waste time determining if the service
Doug Barton [Fri, 20 Jan 2012 10:31:27 +0000 (10:31 +0000)]
If we're booting there is no need to waste time determining if the service
is running or not.

PR: conf/150752
Submitted by: YIN Xiaofeng <75394094@qq.com>

12 years agoChange mount_fs() to not exit on error. The "failok" mount option
Jaakko Heinonen [Fri, 20 Jan 2012 10:06:28 +0000 (10:06 +0000)]
Change mount_fs() to not exit on error. The "failok" mount option
requires that errors are passed to the caller.

PR: 163668
Reviewed by: Garrett Cooper

12 years ago- Clean up checkpath().
Jaakko Heinonen [Fri, 20 Jan 2012 07:29:29 +0000 (07:29 +0000)]
- Clean up checkpath().
- Remove unneeded sysexits.h include.

No functional change.

Submitted by: bde

12 years agoFix a small nit noted by bde: exp_x should be of type float, not double.
David Schultz [Fri, 20 Jan 2012 07:02:42 +0000 (07:02 +0000)]
Fix a small nit noted by bde: exp_x should be of type float, not double.

12 years agoAdd a change I missed in r230367 (don't inline arm's fenv.h functions).
David Schultz [Fri, 20 Jan 2012 07:01:58 +0000 (07:01 +0000)]
Add a change I missed in r230367 (don't inline arm's fenv.h functions).

12 years agoRemove an errant `#define dprintf printf'. It seems to be leftover
David Schultz [Fri, 20 Jan 2012 06:59:29 +0000 (06:59 +0000)]
Remove an errant `#define dprintf printf'.  It seems to be leftover
debugging code that nothing depends on. (I've had this in my tree for
years without issue.)

12 years agoThese tests check whether the compiler evaluates floating-point
David Schultz [Fri, 20 Jan 2012 06:57:21 +0000 (06:57 +0000)]
These tests check whether the compiler evaluates floating-point
expressions properly.  Some of the tests depend on the compiler
implementing C99's FENV_ACCESS pragma, and only commercial compilers
do; those tests are currently skipped.  If any of the enabled tests
fail, then odds are the libm regression tests will fail also.
This should make it easier to diagnose reported problems on platforms
I don't have.

Currently, gcc passes all the tests that don't depend on FENV_ACCESS
on amd64 and sparc64.  Clang fails a few on amd64 (see clang bug
11406).  Both gcc and clang fare poorly on i386, which has well-known
issues.

12 years agoDon't inline fenv.h functions on arm for now. Inlining makes sense:
David Schultz [Fri, 20 Jan 2012 06:54:30 +0000 (06:54 +0000)]
Don't inline fenv.h functions on arm for now.  Inlining makes sense:
the function bodies require only 2 to 10 instructions.  However, it
leads to application binaries that refer to a private ABI, namely, the
softfloat innards in libc.  This could complicate future changes in
the implementation of the floating-point emulation layer, so it seems
best to have programs refer to the official fe* entry points in libm.

12 years agoAdd parentheses where required. Without them, `sizeof LDBL_MAX'
David Schultz [Fri, 20 Jan 2012 06:51:41 +0000 (06:51 +0000)]
Add parentheses where required.  Without them, `sizeof LDBL_MAX'
is a syntax error and shouldn't be, while `1 FLT_ROUNDS' isn't a
syntax error and should be.  Thanks to bde for the examples.

12 years agoMerge in the latest SoftFloat changes from NetBSD. (NetBSD isn't the
David Schultz [Fri, 20 Jan 2012 06:16:14 +0000 (06:16 +0000)]
Merge in the latest SoftFloat changes from NetBSD.  (NetBSD isn't the
original vendor, but we're using their heavily modified version.)
This brings in functions for long double emulation (both extended and
quad formats), which may be useful for testing, and also for replacing
libc/sparc64/fpu/.

12 years agoFix warning when compiling with gcc46:
Eitan Adler [Fri, 20 Jan 2012 01:39:26 +0000 (01:39 +0000)]
Fix warning when compiling with gcc46:
error: variable 'clnt_stat' set but not used

Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits)
MFC after: 3 days

12 years agoFix warning when compiling with gcc46:
Eitan Adler [Fri, 20 Jan 2012 01:39:16 +0000 (01:39 +0000)]
Fix warning when compiling with gcc46:
error: variable 'flags' set but not used

Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits)
MFC after: 3 days

12 years agoFix warning when compiling with gcc46:
Eitan Adler [Fri, 20 Jan 2012 01:39:08 +0000 (01:39 +0000)]
Fix warning when compiling with gcc46:
error: variable 'a' set but not used

Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits)
MFC after: 3 days

12 years agoFix warning when compiling with gcc46:
Eitan Adler [Fri, 20 Jan 2012 01:39:01 +0000 (01:39 +0000)]
Fix warning when compiling with gcc46:
error: variable 'fd' set but not used

Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits)
MFC after: 3 days

12 years agoFix warning when compiling with gcc46:
Eitan Adler [Fri, 20 Jan 2012 01:38:52 +0000 (01:38 +0000)]
Fix warning when compiling with gcc46:
error: variable 'target' set but not used

Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits)
MFC after: 3 days

12 years agoFix warning when compiling with gcc46:
Eitan Adler [Fri, 20 Jan 2012 01:38:44 +0000 (01:38 +0000)]
Fix warning when compiling with gcc46:
error: variable 'i2c' set but not used

Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits)
MFC after: 3 days

12 years agoFix warning when compiling with gcc46:
Eitan Adler [Fri, 20 Jan 2012 01:38:35 +0000 (01:38 +0000)]
Fix warning when compiling with gcc46:
        error: variable 'parentrecnum' set but not used

Approved by:    dim, cperciva (mentor, blanket for pre-mentorship already-approved commits)
MFC after:      3 days

12 years agoFix a variety of warnings when compiling with gcc46
Eitan Adler [Fri, 20 Jan 2012 01:38:28 +0000 (01:38 +0000)]
Fix a variety of warnings when compiling with gcc46

Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits)
MFC after: 3 days

12 years agoFix warning when compiling with gcc46:
Eitan Adler [Fri, 20 Jan 2012 01:38:21 +0000 (01:38 +0000)]
Fix warning when compiling with gcc46:
        error: variable 'temp' set but not used

Approved by: dim
Approved by: cperciva (mentor, blanket for pre-mentorship already-approved commits)
MFC after: 3 days

12 years agoFix warning when compiling with gcc46:
Eitan Adler [Fri, 20 Jan 2012 01:38:12 +0000 (01:38 +0000)]
Fix warning when compiling with gcc46:
error: variable 'dirp' set but not used
error: variable 'dirplen' set but not used

Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits)
MFC after: 3 days

12 years agoFix warning when compiling with gcc46:
Eitan Adler [Fri, 20 Jan 2012 01:38:05 +0000 (01:38 +0000)]
Fix warning when compiling with gcc46:
error: variable 'now' set but not used

Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits)
MFC after: 3 days

12 years agoFix warning when compiling with gcc46:
Eitan Adler [Fri, 20 Jan 2012 01:37:56 +0000 (01:37 +0000)]
Fix warning when compiling with gcc46:
error: variable 'current_cpu' set but not used

Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits)
MFC after: 3 days

12 years agoFix warning when compiling with gcc46:
Eitan Adler [Fri, 20 Jan 2012 01:37:49 +0000 (01:37 +0000)]
Fix warning when compiling with gcc46:
        error: variable 'len' set but not used

Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits)
MFC after: 3 days

12 years agoFix warning when compiling with gcc46:
Eitan Adler [Fri, 20 Jan 2012 01:37:39 +0000 (01:37 +0000)]
Fix warning when compiling with gcc46:
error: variable 'extra_async_bytes' set but not used

Approved by:    dim, cperciva (mentor, blanket for pre-mentorship already-approved commits)
MFC After: 3 days

12 years agoFix warning when compiling with gcc46:
Eitan Adler [Fri, 20 Jan 2012 01:37:31 +0000 (01:37 +0000)]
Fix warning when compiling with gcc46:
error: variable 'addrs' set but not used

Approved by: dim
Approved by: cperciva (mentor, blanket for pre-mentorship already-approved commits)
MFC After: 3 days

12 years agoFix warning when compiling with gcc46:
Eitan Adler [Fri, 20 Jan 2012 01:37:23 +0000 (01:37 +0000)]
Fix warning when compiling with gcc46:
error: variable 'hostname' set but not used

Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits)
MFC after: 3 days

12 years agoMartin Cracauer reported a problem to freebsd-current@ under the
Rick Macklem [Fri, 20 Jan 2012 00:58:51 +0000 (00:58 +0000)]
Martin Cracauer reported a problem to freebsd-current@ under the
subject "Data corruption over NFS in -current". During investigation
of this, I came across an ugly bogusity in the new NFS client where
it replaced the cr_uid with the one used for the mount. This was
done so that "system operations" like the NFSv4 Renew would be
performed as the user that did the mount. However, if any other
thread shares the credential with the one doing this operation,
it could do an RPC (or just about anything else) as the wrong cr_uid.
This patch fixes the above, by using the mount credentials instead of
the one provided as an argument for this case. It appears
to have fixed Martin's problem.
This patch is needed for NFSv4 mounts and NFSv3 mounts against
some non-FreeBSD servers that do not put post operation attributes
in the NFSv3 Statfs RPC reply.

Tested by: Martin Cracauer (cracauer at cons.org)
Reviewed by: jhb
MFC after: 2 weeks

12 years agoUse shared lock for the executable vnode in the exec path after the
Konstantin Belousov [Thu, 19 Jan 2012 23:03:31 +0000 (23:03 +0000)]
Use shared lock for the executable vnode in the exec path after the
VV_TEXT changes are handled. Assert that vnode is exclusively locked at
the places that modify VV_TEXT.

Discussed with: alc
MFC after: 3 weeks

12 years agoProperly return success once a matching VPD entry is found in
John Baldwin [Thu, 19 Jan 2012 21:38:19 +0000 (21:38 +0000)]
Properly return success once a matching VPD entry is found in
pci_get_vpd_readonly_method().  Previously the loop was always running
to completion and falling through to failing with ENXIO.

PR: kern/164313
Submitted by: Chuck Tuffli  chuck tuffli net
MFC after: 1 week

12 years agoReflect tunable name change made in r230337.
Pyun YongHyeon [Thu, 19 Jan 2012 20:31:29 +0000 (20:31 +0000)]
Reflect tunable name change made in r230337.

12 years agoOops, fix logic error introduced in r230337.
Pyun YongHyeon [Thu, 19 Jan 2012 20:28:58 +0000 (20:28 +0000)]
Oops, fix logic error introduced in r230337.

12 years agoRename dev.bge.%d.msi_disable to dev.bge.%d.msi which matches
Pyun YongHyeon [Thu, 19 Jan 2012 20:21:59 +0000 (20:21 +0000)]
Rename dev.bge.%d.msi_disable to dev.bge.%d.msi which matches
enable/disable and default it to on.

Suggested by: jhb

12 years agoFix a logic error which resulted in putting PHY into sleep when WOL
Pyun YongHyeon [Thu, 19 Jan 2012 20:13:16 +0000 (20:13 +0000)]
Fix a logic error which resulted in putting PHY into sleep when WOL
is active.  If WOL is active driver should not put PHY into sleep.
This change makes WOL work on RTL8168E.

12 years agoQuiet some clang warnings when compiling CTL.
Kenneth D. Merry [Thu, 19 Jan 2012 18:42:03 +0000 (18:42 +0000)]
Quiet some clang warnings when compiling CTL.

ctl_error.c,
ctl_error.h: Take out the ctl_sense_format enumeration, and use
scsi_sense_data_type instead.

Remove ctl_get_sense_format() and switch ctl_build_ua()
over to using scsi_sense_data_type.

ctl_backend_ramdisk.c,
ctl_backend_block.c:
Use C99 structure initializers instead of GNU initializers.

ctl.c: Switch over to using the SCSI sense format enumeration
instead of the CTL-specific enumeration.

Submitted by: dim (partially)
MFC after: 1 month

12 years agoAdd support for new USB device.
Hans Petter Selasky [Thu, 19 Jan 2012 18:03:52 +0000 (18:03 +0000)]
Add support for new USB device.

PR: usb/164275
MFC after: 3 days

12 years agoAdd support for the Em command. This restores a missing 'not' in the
John Baldwin [Thu, 19 Jan 2012 17:29:54 +0000 (17:29 +0000)]
Add support for the Em command.  This restores a missing 'not' in the
description of snd_emu10kx(4).

Reviewed by: simon
MFC after: 1 week

12 years agoPrint controller/codec IDs for unknown chips instead of useless and
Alexander Motin [Thu, 19 Jan 2012 11:18:21 +0000 (11:18 +0000)]
Print controller/codec IDs for unknown chips instead of useless and
frightening "unknown" word. In most cases we don't need to know chips
to properly handle them, but having IDs in logs may simplify debugging.

MFC after: 2 weeks
Sponsored by: iXsystems, Inc.

12 years agoRemove remnants of dev_t.
Ed Schouten [Thu, 19 Jan 2012 09:51:07 +0000 (09:51 +0000)]
Remove remnants of dev_t.

These functions take a `struct cdev *' -- not a dev_t. Inside the
kernel, dev_t has the same use as in userspace, namely to store a device
identifier.

MFC after: 2 weeks

12 years agonetmap-related changes:
Luigi Rizzo [Thu, 19 Jan 2012 09:36:19 +0000 (09:36 +0000)]
netmap-related changes:
1. correct the initialization of RDT when there is an ixgbe_init()
   while a netmap client is active. This code was previously
   in ixgbe_initialize_receive_units() but RDT is overwritten
   shortly afterwards in ixgbe_init_locked()

2. add code (not active yet) to disable CRCSTRIP while in netmap mode.
   From all evidence i could gather, it seems that when the 82599 has to
   write a data block that is not a full cache line, it first reads
   the line (64 bytes) and then writes back the updated version.
   This hurts reception of min-sized frames, which are only 60 bytes
   if the CRC is stripped: i could never get above 11Mpps
   (received from one queue) with CRCSTRIP enabled, whyle 64+4-byte
   packets reach 14.2 Mpps (the theoretical maximum).
   Leaving the CRC in gets us 14.88Mpps for 60+4 byte frames,
   (and penalizes 64+4). The min-size case is important not just because
   it looks good in benchmarks, but also because this is the size
   of pure acks.
   Note we cannot leave CRCSTRIP on by default because it is
   incompatible with some other features (LRO etc.)

12 years agoAdd missing MLINKS to INDEX.5
Kevin Lo [Thu, 19 Jan 2012 02:49:21 +0000 (02:49 +0000)]
Add missing MLINKS to INDEX.5

12 years agoAdd support for Sony Ericsson GC89 EDGE/Wirelles LAN PC Card
Eitan Adler [Thu, 19 Jan 2012 02:47:11 +0000 (02:47 +0000)]
Add support for Sony Ericsson GC89 EDGE/Wirelles LAN PC Card

PR: kern/131933
Submitted by: Alex Keda <admin@lissyara.su>
Approved by: jhb
Approved by: cperciva (mentor, blanket for pre-mentorship already-approved commits)
MFC after: 1 week

12 years agoTwo 192/24/8 playback streams overflow single mandatory output line (SDO)
Alexander Motin [Thu, 19 Jan 2012 01:55:48 +0000 (01:55 +0000)]
Two 192/24/8 playback streams overflow single mandatory output line (SDO)
of HDA bus. Handle that from two directions:
 - Add support for "striping" (using several SDO lines), if supported.
 - Account HDA bus utilization and return error on new stream allocation
attempt if remaining bandwidth is unsifficient.

Most of HDA controllers have one SDO line with 46Mbps output bandwidth.
NVIDIA GF210 has 2 lines - 92Mbps. NVIDIA GF520 has 4 lines - 184Mbps!

MFC after: 2 months
Sponsored by: iXsystems, Inc.

12 years agoWrap changes from svn r212126 inside LOADER_NFS_SUPPORT such that
Sean Bruno [Thu, 19 Jan 2012 01:25:50 +0000 (01:25 +0000)]
Wrap changes from svn r212126 inside LOADER_NFS_SUPPORT such that
using LOADER_TFTP_SUPPORT excludes this code.  Fixes compilation of pxeldr
with -DLOADER_TFTP_SUPPORT

Applicable to stable/9 and stable/8 now.

This appears to not be needed on stable/7 as r212126 has not been MFC'd.

Obtained from: Yahoo! Inc.
MFC after: 2 weeks

12 years agoUpdate .Dd date on this man page.
Sean Bruno [Wed, 18 Jan 2012 22:52:02 +0000 (22:52 +0000)]
Update .Dd date on this man page.

MFC with r230313 and r230316

Caught by: bz
Obtained from: Yahoo! Inc.

12 years agoUpdate man page to show that ciss(4) now support the P420
Sean Bruno [Wed, 18 Jan 2012 21:27:49 +0000 (21:27 +0000)]
Update man page to show that ciss(4) now support the P420

MFC with r230313

Caught by:  brueffer
Obtained from: Yahoo! Inc
MFC after: 2 weeks

12 years agoAdd support for HP P420 to ciss(4)
Sean Bruno [Wed, 18 Jan 2012 19:35:16 +0000 (19:35 +0000)]
Add support for HP P420 to ciss(4)

Tested on upcoming Gen 8 releases of hardware from HP.

MFC to all supported releases.

Obtained from: Yahoo! Inc.
MFC after: 2 weeks

12 years agoImprove HDMI/DisplayPort audio support in snd_hda(4):
Alexander Motin [Wed, 18 Jan 2012 19:12:33 +0000 (19:12 +0000)]
Improve HDMI/DisplayPort audio support in snd_hda(4):

 - Enable and handle unsolicited responses from digital display pins,
reporting connection and EDID-Like Data (ELD) validity status changes.
 - Fetch ELD data, describing connected digital display device audio
capabilities. These data not really used at the moment (user is not
denied to use audio formats not supported by the device), only printed to
verbose logs. But they are useful for debugging. The fact that ELD was
received tells that HDMI link was established and video driver enabled
HDMI audio passthrough. Some old chips may not return ELD, so lack of it
is not necessary a problem.
 - Add some more points to CODEC configuration sequence:
   - For converter widgets, supporting more then two channels (HDMI/DP
     converter widgets support 8), set number of channels to handle.
   - For digital display pins (HDMI/DP) fill audio infoframe, reporting
     connected device about number of channels and speakers allocation.
   - For digital display pins (HDMI/DP) set mapping between channels seen
     by software and channels transferred via HDMI/DisplayPort.
 - Allow more audio formats, not used for analog connections because of
stereo pairs orientation, but easily applicable to HDMI/DisplayPort: 2.1,
3.0, 3.1, 4.1, 5.0, 6.0, 6.1, 7.0. That list may be filtered later using
info from ELD.
 - Disable MSI interrupts for NVIDIA HDA controllers before GT520.

At this point I can successfully play audio over HDMI from NVIDIA GT210
and GT520 cards with nvidia-driver-290.10 driver to Marantz SR4001
receiver in 2.0, 2.1, 3.0, 4.0, 4.1, 5.0 and 5.1 PCM formats at 44, 48,
88 and 96KHz at 16 and 24 bits, same as do AC3/DTS passthrough.
6.0, 6.1, 7.0 and 7.1 PCM formats are not working for me, but I think
it is because of receiver age.

MFC after: 2 months
Sponsored by: iXsystems, Inc.

12 years agoRev 228065 (change bsd.own.mk -> bsd.init.mk) broke pam_unix.so by causing
Peter Wemm [Wed, 18 Jan 2012 18:26:56 +0000 (18:26 +0000)]
Rev 228065 (change bsd.own.mk -> bsd.init.mk) broke pam_unix.so by causing
the LDADD/DPADD to lose the -lpam, and causing openpam_dynamic() to fail
due to "openpam_get_options" being undefined.

This would cause obscure console log messages like:
  openpam_dynamic(): No error: 0
  openpam_load_module(): no pam_unix.so found
and other helpful messages which are no help in diagnosing the problem.

Fortunately this change was not mfc'ed to 9.x, it isn't broken there.

12 years agoWarn if trying to install over an existing partition, which usually fails
Nathan Whitehorn [Wed, 18 Jan 2012 15:59:23 +0000 (15:59 +0000)]
Warn if trying to install over an existing partition, which usually fails
anyway due to libarchive not being able to overwrite schg flags.

PR: bin/164278
MFC after: 4 days

12 years agoUnbreak several mips kernel configs after r230150 and r230152 to make
Bjoern A. Zeeb [Wed, 18 Jan 2012 15:25:34 +0000 (15:25 +0000)]
Unbreak several mips kernel configs after r230150 and r230152 to make
a universe complete successfully again.

12 years agoFix two issues related to the use of SIGINFO in fetch(1) to display
Dag-Erling Smørgrav [Wed, 18 Jan 2012 15:13:21 +0000 (15:13 +0000)]
Fix two issues related to the use of SIGINFO in fetch(1) to display
progress information.  The first is that fetch_read() (used in the HTTP
code but not the FTP code) can enter an infinite loop if it has previously
been interrupted by a signal.  The second is that when it is interrupted,
fetch_read() will discard any data it may have read up to that point.
Luckily, both bugs are extremely timing-sensitive and therefore difficult
to trigger.

PR: bin/153240
Submitted by: Mark <markjdb@gmail.com>
MFC after: 3 weeks

12 years agoComment cosmetics: end more sentences with full stops.
Jens Schweikhardt [Wed, 18 Jan 2012 14:41:26 +0000 (14:41 +0000)]
Comment cosmetics: end more sentences with full stops.

12 years agoSubject: NULLFS: properly destroy node hash
Eygene Ryabinkin [Wed, 18 Jan 2012 11:23:46 +0000 (11:23 +0000)]
Subject: NULLFS: properly destroy node hash

Use hashdestroy() instead of naive free().

Approved by: kib
MFC after: 2 weeks

12 years agoConnect the bktr module(s) to the amd64 build.
Jens Schweikhardt [Wed, 18 Jan 2012 08:56:26 +0000 (08:56 +0000)]
Connect the bktr module(s) to the amd64 build.

MFC after: 7 days

12 years agoFix #ifdef VERBOSE for UTC case
Ed Maste [Wed, 18 Jan 2012 04:37:35 +0000 (04:37 +0000)]
Fix #ifdef VERBOSE for UTC case

Update verbose output to match what actually happens when selecting
the UTC option, and when the -n option is used.

Patch updated slightly for new libdialog.

PR: bin/164042
Submitted by: Devin Teske <dteske vicor com>
MFC after: 2 weeks

12 years agoDon't write /var/db/zoneinfo when zone is not actually changed.
Ed Maste [Wed, 18 Jan 2012 04:12:32 +0000 (04:12 +0000)]
Don't write /var/db/zoneinfo when zone is not actually changed.

If the specified zone file does not exist or the -n flag is specified,
do not update /var/db/zoneinfo.

PR: bin/164039
Submitted by: Devin Teske <dteske vicor com>
MFC after: 1 week

12 years agoSpecify the correct section (4 instead of 9) in the h_ertt man page's title and
Lawrence Stewart [Wed, 18 Jan 2012 03:03:21 +0000 (03:03 +0000)]
Specify the correct section (4 instead of 9) in the h_ertt man page's title and
bump the document date.

MFC after: 3 days

12 years agoAdd missing line continuation \. It did not cause any issue because
Ed Maste [Wed, 18 Jan 2012 02:44:22 +0000 (02:44 +0000)]
Add missing line continuation \.  It did not cause any issue because
the same path is already being included in ../Makefile.inc.

PR: 164192
Submitted by: Devin Teske <dteske vicor com>
MFC after: 2 weeks

12 years agoNOOBJ is long time dead
Kevin Lo [Wed, 18 Jan 2012 02:29:11 +0000 (02:29 +0000)]
NOOBJ is long time dead

Reviewed by: kib

12 years agovfs_object_create() function is obsolete. Use vnode_create_vobject()
Kevin Lo [Wed, 18 Jan 2012 02:27:09 +0000 (02:27 +0000)]
vfs_object_create() function is obsolete. Use vnode_create_vobject()
to create the backing object.

Reviewed by: kib

12 years agoAllow growfs to be built with GCC 4.7 and -Werror.
Ed Schouten [Tue, 17 Jan 2012 22:19:35 +0000 (22:19 +0000)]
Allow growfs to be built with GCC 4.7 and -Werror.

The dp1 variable is only used when FSIRAND is defined. Just place the
variable behind #ifdefs entirely.

12 years agoDocument dev.bge.%d.msi_disable tunable.
Pyun YongHyeon [Tue, 17 Jan 2012 22:17:11 +0000 (22:17 +0000)]
Document dev.bge.%d.msi_disable tunable.

12 years agoRemove unused variables.
Ed Schouten [Tue, 17 Jan 2012 22:17:10 +0000 (22:17 +0000)]
Remove unused variables.

Simply annotate the function parameters with __unused, instead of adding
the ve-variables. This makes the code build with GCC 4.7 and -Werror.

12 years agoIntroduce a tunable that disables use of MSI.
Pyun YongHyeon [Tue, 17 Jan 2012 22:15:33 +0000 (22:15 +0000)]
Introduce a tunable that disables use of MSI.
Non-zero value will use INTx.

12 years agoRemove unneeded dtv variable.
Ed Schouten [Tue, 17 Jan 2012 21:55:20 +0000 (21:55 +0000)]
Remove unneeded dtv variable.

It is only assigned and not used at all. The object files stay identical
when the variables are removed.

Approved by: kib

12 years agoRevert changes in r228790. It prevented the ypserv daemon from working with
Hiroki Sato [Tue, 17 Jan 2012 20:39:33 +0000 (20:39 +0000)]
Revert changes in r228790.  It prevented the ypserv daemon from working with
with multiple socktypes.

12 years agoOnly use the static assertion when __generic is available.
Ed Schouten [Tue, 17 Jan 2012 20:22:10 +0000 (20:22 +0000)]
Only use the static assertion when __generic is available.

Reported by: tijl

12 years agoDon't expose __generic() when not using C++.
Ed Schouten [Tue, 17 Jan 2012 20:21:31 +0000 (20:21 +0000)]
Don't expose __generic() when not using C++.

According to the GCC documentation, the constructs used to implement
<tgmath.h> are only available in C mode. They only cause breakage when
used used with g++.

Reported by: tijl

12 years agoFree allocated jumbo buffers when controller is stopped.
Pyun YongHyeon [Tue, 17 Jan 2012 19:36:53 +0000 (19:36 +0000)]
Free allocated jumbo buffers when controller is stopped.

12 years agoUse a RX DMA tag to free loaded RX DMA maps.
Pyun YongHyeon [Tue, 17 Jan 2012 19:31:03 +0000 (19:31 +0000)]
Use a RX DMA tag to free loaded RX DMA maps.
Previously it used a TX DMA tag.

12 years agoTidy-up.
Adrian Chadd [Tue, 17 Jan 2012 18:20:34 +0000 (18:20 +0000)]
Tidy-up.

12 years agoThe newhook method can be called in ISR context at
Gleb Smirnoff [Tue, 17 Jan 2012 18:10:25 +0000 (18:10 +0000)]
The newhook method can be called in ISR context at
certain circumstances, so better use M_NOWAIT in it.

12 years agoAdd definitions for the FPU extended state header, legacy extended
Konstantin Belousov [Tue, 17 Jan 2012 17:07:13 +0000 (17:07 +0000)]
Add definitions for the FPU extended state header, legacy extended
state and AVX state.

MFC after: 1 week

12 years agoModernize the fpusave structures definitions by using uint*_t types.
Konstantin Belousov [Tue, 17 Jan 2012 16:53:41 +0000 (16:53 +0000)]
Modernize the fpusave structures definitions by using uint*_t types.

MFC after: 1 week

12 years agoExplain why it is safe to unlock the vnode.
Alan Cox [Tue, 17 Jan 2012 16:20:50 +0000 (16:20 +0000)]
Explain why it is safe to unlock the vnode.

Requested by: kib

12 years agoFix clang atomic to use for atomic_is_lock_free().
David Chisnall [Tue, 17 Jan 2012 15:20:41 +0000 (15:20 +0000)]
Fix clang atomic to use for atomic_is_lock_free().

Reviewed by: ed
Approved by: dim (mentor)

12 years agoAllocate our mbuf with m_get2().
Gleb Smirnoff [Tue, 17 Jan 2012 12:14:26 +0000 (12:14 +0000)]
Allocate our mbuf with m_get2().