]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
13 years agoFix build when NEW_PCIB is not defined.
jhb [Sat, 16 Jul 2011 14:05:34 +0000 (14:05 +0000)]
Fix build when NEW_PCIB is not defined.

Submitted by: gcooper (partially)
Pointy hat to: jhb

13 years agoFix for VirtualBox 4.x and other virtual machines that fail
hselasky [Sat, 16 Jul 2011 12:50:30 +0000 (12:50 +0000)]
Fix for VirtualBox 4.x and other virtual machines that fail
to generate a port reset change event.

MFC after: 1 weeks

13 years agobmake and other updates necessary for the BIND 9.8.x upgrade.
dougb [Sat, 16 Jul 2011 11:20:54 +0000 (11:20 +0000)]
bmake and other updates necessary for the BIND 9.8.x upgrade.

This includes a structural change regarding atomic ops. Previously they
were enabled on all platforms unless we had knowledge that they did not
work. However both work performed by marius@ on sparc64 and the fact that
the 9.8.x branch is fussier in this area has demonstrated that this is
not a safe approach. So I've modified a patch provided by marius to
enable them for i386, amd64, and ia64 only.

13 years agoUpgrade to version 9.8.0-P4
dougb [Sat, 16 Jul 2011 11:12:09 +0000 (11:12 +0000)]
Upgrade to version 9.8.0-P4

This version has many new features, see /usr/share/doc/bind9/README
for details.

13 years agoVendor import of BIND 9.8.0-P4
dougb [Sat, 16 Jul 2011 10:49:33 +0000 (10:49 +0000)]
Vendor import of BIND 9.8.0-P4

13 years agoUpdate for BIND 9.8.x
dougb [Sat, 16 Jul 2011 10:41:09 +0000 (10:41 +0000)]
Update for BIND 9.8.x

13 years agoAdd DEXITCODE plumbing to NFS.
zack [Sat, 16 Jul 2011 08:51:09 +0000 (08:51 +0000)]
Add DEXITCODE plumbing to NFS.

Isilon has the concept of an in-memory exit-code ring that saves the last exit
code of a function and allows for stack tracing. This is very helpful when
debugging tough issues.

This patch is essentially a no-op for BSD at this point, until we upstream
the dexitcode logic itself. The patch adds DEXITCODE calls to every NFS
function that returns an errno error code. A number of code paths were also
reorganized to have single exit paths, to reduce code duplication.

Submitted by:   David Kwan <dkwan@isilon.com>
Reviewed by:    rmacklem
Approved by:    zml (mentor)
MFC after:      2 weeks

13 years ago- Add two missing functions to the LibUSB v0.1 API.
hselasky [Sat, 16 Jul 2011 08:29:12 +0000 (08:29 +0000)]
- Add two missing functions to the LibUSB v0.1 API.
- Clamp the string length to 255 bytes when getting
  the interface description.
- Clamp data request length to 65535 bytes when doing
  control requests.

MFC after: 3 days

13 years agoAdd a small comment about unloading the kgsappi module.
zack [Sat, 16 Jul 2011 08:05:49 +0000 (08:05 +0000)]
Add a small comment about unloading the kgsappi module.

Reviewed by:    rmacklem
Approved by:    zml (mentor)
MFC after:      2 weeks

13 years agoSimple find/replace of VOP_ISLOCKED -> NFSVOPISLOCKED. This is done so that NFSVOPISL...
zack [Sat, 16 Jul 2011 08:05:41 +0000 (08:05 +0000)]
Simple find/replace of VOP_ISLOCKED -> NFSVOPISLOCKED. This is done so that NFSVOPISLOCKED can be modified later to add enhanced logging and assertions.

Reviewed by:    rmacklem
Approved by:    zml (mentor)
MFC after:      2 weeks

13 years agoSimple find/replace of VOP_UNLOCK -> NFSVOPUNLOCK. This is done so that NFSVOPUNLOCK...
zack [Sat, 16 Jul 2011 08:05:36 +0000 (08:05 +0000)]
Simple find/replace of VOP_UNLOCK -> NFSVOPUNLOCK. This is done so that NFSVOPUNLOCK can be modified later to add enhanced logging and assertions.

Reviewed by:    rmacklem
Approved by:    zml (mentor)
MFC after:      2 weeks

13 years agoSimple find/replace of vn_lock -> NFSVOPLOCK. This is done so that NFSVOPLOCK can...
zack [Sat, 16 Jul 2011 08:05:31 +0000 (08:05 +0000)]
Simple find/replace of vn_lock -> NFSVOPLOCK. This is done so that NFSVOPLOCK can be modified later to add enhanced logging and assertions.

Reviewed by:    rmacklem
Approved by:    zml (mentor)
MFC after:      2 weeks

13 years agoRemove unnecessary thread pointer from VOPLOCK macros and current users.
zack [Sat, 16 Jul 2011 08:05:26 +0000 (08:05 +0000)]
Remove unnecessary thread pointer from VOPLOCK macros and current users.

Reviewed by:    rmacklem
Approved by:    zml (mentor)
MFC after:      2 weeks

13 years agoChange loadattr and fillattr to ask the file system for the pathconf variable.
zack [Sat, 16 Jul 2011 08:05:21 +0000 (08:05 +0000)]
Change loadattr and fillattr to ask the file system for the pathconf variable.

Small modification where VOP_PATHCONF was being called directly.

Reviewed by:    rmacklem
Approved by:    zml (mentor)
MFC after:      2 weeks

13 years agoMove nfsvno_pathconf to be accessible to sys/fs/nfs; no functionality change.
zack [Sat, 16 Jul 2011 08:05:17 +0000 (08:05 +0000)]
Move nfsvno_pathconf to be accessible to sys/fs/nfs; no functionality change.

Reviewed by:    rmacklem
Approved by:    zml (mentor)
MFC after:      2 weeks

13 years agoSmall acl patch to return the aclerror that comes back from nfsrv_dissectacl(). This...
zack [Sat, 16 Jul 2011 08:04:57 +0000 (08:04 +0000)]
Small acl patch to return the aclerror that comes back from nfsrv_dissectacl(). This fixes a problem where ATTRNOTSUPP was being returned instead of BADOWNER.

Reviewed by:    rmacklem
Approved by:    zml (mentor)
MFC after:      2 weeks

13 years agoHandle the MK_BIND_XML option more intelligently
dougb [Sat, 16 Jul 2011 07:12:02 +0000 (07:12 +0000)]
Handle the MK_BIND_XML option more intelligently

13 years agoMinor typo fix, s/config.in/configure.in/
dougb [Sat, 16 Jul 2011 01:49:38 +0000 (01:49 +0000)]
Minor typo fix, s/config.in/configure.in/

13 years agoThe i8259 controller is initialized incorrectly on MALTA. It writes
adrian [Sat, 16 Jul 2011 00:30:23 +0000 (00:30 +0000)]
The i8259 controller is initialized incorrectly on MALTA.  It writes
mask bits to control register and control bits to mask register.

The former causes ICW1_RESET|ICW1_LTIM combination to be written to
control register, which on QEMU results in "level sensitive irq not
supported" error.

Submitted by: Robert Millan <rmh@debian.org>

13 years agoAdd myself to committers-ports.dot
zi [Fri, 15 Jul 2011 21:37:13 +0000 (21:37 +0000)]
Add myself to committers-ports.dot

Approved by: wxs@ (mentor)

13 years agoRespect the BIOS/firmware's notion of acceptable address ranges for PCI
jhb [Fri, 15 Jul 2011 21:08:58 +0000 (21:08 +0000)]
Respect the BIOS/firmware's notion of acceptable address ranges for PCI
resource allocation on x86 platforms:
- Add a new helper API that Host-PCI bridge drivers can use to restrict
  resource allocation requests to a set of address ranges for different
  resource types.
- For the ACPI Host-PCI bridge driver, use Producer address range resources
  in _CRS to enumerate valid address ranges for a given Host-PCI bridge.
  This can be disabled by including "hostres" in the debug.acpi.disabled
  tunable.
- For the MPTable Host-PCI bridge driver, use entries in the extended
  MPTable to determine the valid address ranges for a given Host-PCI
  bridge.  This required adding code to parse extended table entries.

Similar to the new PCI-PCI bridge driver, these changes are only enabled
if the NEW_PCIB kernel option is enabled (which is enabled by default on
amd64 and i386).

Approved by: re (kib)

13 years agoSort snd_* entries alphabetically.
joel [Fri, 15 Jul 2011 19:02:44 +0000 (19:02 +0000)]
Sort snd_* entries alphabetically.

13 years agoAuto-generated system call code with cap_new(), cap_getrights().
jonathan [Fri, 15 Jul 2011 18:33:12 +0000 (18:33 +0000)]
Auto-generated system call code with cap_new(), cap_getrights().

Approved by: mentor (rwatson), re (Capsicum blanket)
Sponsored by: Google Inc

13 years agoAdd cap_new() and cap_getrights() system calls.
jonathan [Fri, 15 Jul 2011 18:26:19 +0000 (18:26 +0000)]
Add cap_new() and cap_getrights() system calls.

Implement two previously-reserved Capsicum system calls:
- cap_new() creates a capability to wrap an existing file descriptor
- cap_getrights() queries the rights mask of a capability.

Approved by: mentor (rwatson), re (Capsicum blanket)
Sponsored by: Google Inc

13 years agoDelete duplicate tags entry I introduced in -r223901.
mckusick [Fri, 15 Jul 2011 17:27:26 +0000 (17:27 +0000)]
Delete duplicate tags entry I introduced in -r223901.

Submitted-by: John Baldwin

13 years agoRevert 130163 and let top use KERN_PROC_PROC when individual threads are
jhb [Fri, 15 Jul 2011 17:23:45 +0000 (17:23 +0000)]
Revert 130163 and let top use KERN_PROC_PROC when individual threads are
not displayed.  The KERN_PROC_PROC sysctl was fixed in 188764.

13 years agoAdd an FFS specific mount option to allow a filesystem checker
mckusick [Fri, 15 Jul 2011 16:20:33 +0000 (16:20 +0000)]
Add an FFS specific mount option to allow a filesystem checker
(typically fsck_ffs) to register that it wishes to use FFS specific
sysctl's to update the filesystem. This ensures that two checkers
cannot run on a given filesystem at the same time and that no other
process accidentally or maliciously uses the filesystem updating
sysctls inappropriately. This functionality is needed by the
journaling soft-updates recovery code.

13 years agoRemove an extra '.It' from axe(4).
gjb [Fri, 15 Jul 2011 15:56:23 +0000 (15:56 +0000)]
Remove an extra '.It' from axe(4).

Reported by: manlint

13 years agoBreak out the pass 5 inode and block map updating into a separate function
mckusick [Fri, 15 Jul 2011 15:43:40 +0000 (15:43 +0000)]
Break out the pass 5 inode and block map updating into a separate function
so that the function can be used by the journaling soft updates recovery.

13 years agoFix logical_cpus_mask retrieving by using, correctly, cpuset_t.
attilio [Fri, 15 Jul 2011 11:46:54 +0000 (11:46 +0000)]
Fix logical_cpus_mask retrieving by using, correctly, cpuset_t.
This fix also a bug where pmccontrol uses a 32 static type rather than
old cpumask_t.

Reported and reviewed by: avg

13 years agopmcstat, pmccontrol: catch up with removal of machdep.hlt_cpus sysctl
avg [Fri, 15 Jul 2011 11:30:41 +0000 (11:30 +0000)]
pmcstat, pmccontrol: catch up with removal of machdep.hlt_cpus sysctl

Reported by: Pan Tsu <inyaoo@gmail.com>
Reviewed by: attilio
No objections: gnn

13 years agoAdd implementation for capabilities.
jonathan [Fri, 15 Jul 2011 09:37:14 +0000 (09:37 +0000)]
Add implementation for capabilities.

Code to actually implement Capsicum capabilities, including fileops and
kern_capwrap(), which creates a capability to wrap an existing file
descriptor.

We also modify kern_close() and closef() to handle capabilities.

Finally, remove cap_filelist from struct capability, since we don't
actually need it.

Approved by: mentor (rwatson), re (Capsicum blanket)
Sponsored by: Google Inc

13 years agoDo not call platform_gpio_init() early. It doesn't work because we do
marcel [Fri, 15 Jul 2011 02:29:10 +0000 (02:29 +0000)]
Do not call platform_gpio_init() early. It doesn't work because we do
not have enough information to reliably setup GPIO pins. Do it when
we attach the gpio driver. This prevents hangs and the need to fake
up a softc.

13 years agoSet preload_addr_relocate accordingly so that preloaded modules and
marcel [Fri, 15 Jul 2011 02:16:13 +0000 (02:16 +0000)]
Set preload_addr_relocate accordingly so that preloaded modules and
images are properly relocated.

13 years agoIn pmap_protect(), don't call vm_page_dirty() if the page is unmanaged.
marcel [Fri, 15 Jul 2011 02:11:26 +0000 (02:11 +0000)]
In pmap_protect(), don't call vm_page_dirty() if the page is unmanaged.

13 years agoRemove "-n" from echo
kevlo [Fri, 15 Jul 2011 01:59:08 +0000 (01:59 +0000)]
Remove "-n" from echo

Reviewed by: dougb

13 years agoRemove note that claims pthread_set_name_np is for debugging only.
emaste [Fri, 15 Jul 2011 01:50:40 +0000 (01:50 +0000)]
Remove note that claims pthread_set_name_np is for debugging only.

As Garrett points out,
  It is no more a debugging interface than setproctitle(3), and has not
  been since the name started getting stuffed into the kernel.  This
  statement may have made sense when the name was only visible in thread
  state dumps and the debugger.
PR: threads/158815
Submitted by: wollman@

13 years agoImprove portability #defines for compiling aicasm on other systems.
emaste [Fri, 15 Jul 2011 00:36:47 +0000 (00:36 +0000)]
Improve portability #defines for compiling aicasm on other systems.

Submitted by: Robert Millan  rmh debian.org
Obtained from: Debian GNU/kFreeBSD

13 years agoAdd a missing check for the global ath_hal_debug.
adrian [Thu, 14 Jul 2011 23:30:30 +0000 (23:30 +0000)]
Add a missing check for the global ath_hal_debug.

This was removed accidentally when the per HAL instance
code was added, and not reverted when I added back the
global debug variable (for early chip setup debugging.)

13 years agoClear the filter memory area before using it. Leaving it uninitialized may
mp [Thu, 14 Jul 2011 21:06:22 +0000 (21:06 +0000)]
Clear the filter memory area before using it. Leaving it uninitialized may
leak previous kernel stack contents through a malicioius BPF filter.

PR: kern/158880
Submitted by: Guy Harris
Obtained from: OpenBSD
MFC after: 1 week

13 years agoPrefer uint64_t over u_int64_t.
jkim [Thu, 14 Jul 2011 21:02:15 +0000 (21:02 +0000)]
Prefer uint64_t over u_int64_t.

13 years agoIf TSC stops ticking in C3, disable deep sleep when the user forcefully
jkim [Thu, 14 Jul 2011 21:00:26 +0000 (21:00 +0000)]
If TSC stops ticking in C3, disable deep sleep when the user forcefully
select TSC as timecounter hardware.

Tested by: Fabian Keil (freebsd-listen at fabiankeil dot de)

13 years agoSupport controllers whose option ROM is disabled in the BIOS by kicking
jhb [Thu, 14 Jul 2011 20:20:33 +0000 (20:20 +0000)]
Support controllers whose option ROM is disabled in the BIOS by kicking
the firmware so that it boots.

PR: kern/154978
Submitted by: Andrew Boyer  aboyer of averesystems com
Obtained from: LSI
MFC after: 1 week

13 years agoWhen using -A option (unmount all mounted filesystems), do not attempt
mckusick [Thu, 14 Jul 2011 20:17:05 +0000 (20:17 +0000)]
When using -A option (unmount all mounted filesystems), do not attempt
to unmount /dev as it will always fail.

13 years agoUse MFI_STAT_* constants for cmd_status field values rather than magic
jhb [Thu, 14 Jul 2011 20:11:27 +0000 (20:11 +0000)]
Use MFI_STAT_* constants for cmd_status field values rather than magic
numbers in a few places.

PR: bin/145960
Submitted by: gcooper
MFC after: 1 week

13 years agoRename resource names to match these in login.conf.
trasz [Thu, 14 Jul 2011 19:18:17 +0000 (19:18 +0000)]
Rename resource names to match these in login.conf.

13 years agoIn ng_attach_cntl() first allocate things that may fail, and then
glebius [Thu, 14 Jul 2011 18:38:10 +0000 (18:38 +0000)]
In ng_attach_cntl() first allocate things that may fail, and then
do the rest of initialization. This simplifies code and fixes
a double free in failure scenario.

Reviewed by: bz

13 years agoConsistently check mount flag (MNTK_SUJ) rather than superblock
mckusick [Thu, 14 Jul 2011 18:06:13 +0000 (18:06 +0000)]
Consistently check mount flag (MNTK_SUJ) rather than superblock
flag (FS_SUJ) when determining whether to do journaling-based
operations. The mount flag is set only when journaling is active
while the superblock flag is set to indicate that journaling is to
be used. For example, when the filesystem is mounted read-only, the
journaling may be present (FS_SUJ) but not active (MNTK_SUJ).
Inappropriate checking of the FS_SUJ flag was causing some
journaling actions to be attempted at inappropriate times.

13 years agoUse _PATH_DEV and make the format more consistent with GEOM_LABEL.
delphij [Thu, 14 Jul 2011 17:43:23 +0000 (17:43 +0000)]
Use _PATH_DEV and make the format more consistent with GEOM_LABEL.

Submitted by: ivoras

13 years agoRestore USB MIDI transmit buffer size to 1Kbyte.
hselasky [Thu, 14 Jul 2011 17:43:18 +0000 (17:43 +0000)]
Restore USB MIDI transmit buffer size to 1Kbyte.

MFC after: 1 week

13 years agoDocument AX88772B and AX88760. AX88760 is treated as AX88772A in
yongari [Thu, 14 Jul 2011 17:34:59 +0000 (17:34 +0000)]
Document AX88772B and AX88760. AX88760 is treated as AX88772A in
driver.
Mention all ASIX USB controllers that are supported by axe(4).
Reword media types and explicly mention AX88178 is the only
controller that supports gigabit link.
While I'm here use shorten model instead of showing all controller
model numbers.

13 years agoAdd initial support for AX88772B USB Fast Ethernet. AX88772B
yongari [Thu, 14 Jul 2011 17:19:00 +0000 (17:19 +0000)]
Add initial support for AX88772B USB Fast Ethernet. AX88772B
supports IPv4/IPv6 checksum offloading and VLAN tag insertion/
stripping as well as WOL.  Because uether does not provide a way
to announce driver specific offload capabilities to upper stack,
checksum offloading support needs more work and will be done in
future.
Special thanks to ASIX for donating sample hardware.

H/W donated by: ASIX Electronics
Reviewed by: hselasky

13 years agoEnable PREEMPTION for PowerPC/AIM generic kernels. The last known PREEMPTION
nwhitehorn [Thu, 14 Jul 2011 15:35:43 +0000 (15:35 +0000)]
Enable PREEMPTION for PowerPC/AIM generic kernels. The last known PREEMPTION
bug on PowerPC was resolved by r223485, and it appears to run stably at this
point.

13 years agoRemove semaphore map entry count "semmap" field and its tuning
bz [Thu, 14 Jul 2011 14:18:14 +0000 (14:18 +0000)]
Remove semaphore map entry count "semmap" field and its tuning
option that is highly recommended to be adjusted in too much
documentation while doing nothing in FreeBSD since r2729 (rev 1.1).

ipcs(1) needs to be recompiled as it is accessing _KERNEL private
variables.

Reviewed by: jhb (before comment change on linux code)
Sponsored by: Sandvine Incorporated

13 years agoUpdate dialog to 1.1-20110707.
nwhitehorn [Thu, 14 Jul 2011 14:01:36 +0000 (14:01 +0000)]
Update dialog to 1.1-20110707.

13 years agoImport dialog 1.1-20110707. This adds support for several features (e.g.
nwhitehorn [Thu, 14 Jul 2011 13:57:13 +0000 (13:57 +0000)]
Import dialog 1.1-20110707. This adds support for several features (e.g.
--hline) found in the old FreeBSD dialog.

13 years agoFix indentation.
bz [Thu, 14 Jul 2011 13:47:42 +0000 (13:47 +0000)]
Fix indentation.

Obtained from: Ed Maste at Sandvine Incorporated
Sponsored by: Sandvine Incorporated
MFC after: 3 days

13 years agoUnbreak no-INET kernels after r223839 adding the needed #ifdef INET.
bz [Thu, 14 Jul 2011 13:44:48 +0000 (13:44 +0000)]
Unbreak no-INET kernels after r223839 adding the needed #ifdef INET.

MFC after: 4 weeks

13 years agoInclude device rt in RT305X config.
ray [Thu, 14 Jul 2011 11:53:23 +0000 (11:53 +0000)]
Include device rt in RT305X config.

Approved by: adrian (mentor)

13 years agoRevert it back. Too many changes for one commit.
ray [Thu, 14 Jul 2011 11:09:37 +0000 (11:09 +0000)]
Revert it back. Too many changes for one commit.

Approved by: adrian (mentor)

13 years agoInclude device rt in RT305X config and little cleanup.
ray [Thu, 14 Jul 2011 10:05:28 +0000 (10:05 +0000)]
Include device rt in RT305X config and little cleanup.

Approved by: adrian (mentor)

13 years agoAdd a -l option to show file system's corresponding /dev/ufsid path.
delphij [Thu, 14 Jul 2011 08:06:03 +0000 (08:06 +0000)]
Add a -l option to show file system's corresponding /dev/ufsid path.
This is useful for scripts that converts existing system's fstab to
use their /dev/ufsid devices.

MFC after: 2 weeks

13 years agoUse calloc() instead of an explicit memset.
delphij [Thu, 14 Jul 2011 07:35:28 +0000 (07:35 +0000)]
Use calloc() instead of an explicit memset.

MFC after: 2 weeks

13 years agoAdd a new option, -N to disable the default and recommended syslogd(8)
delphij [Thu, 14 Jul 2011 07:33:53 +0000 (07:33 +0000)]
Add a new option, -N to disable the default and recommended syslogd(8)
behavior, which binds to the well known UDP port.

This option implies -s.

MFC after: 2 months

13 years agoUse prototype. While I'm there, add a pair of parenthesis to mark an if
delphij [Thu, 14 Jul 2011 07:28:49 +0000 (07:28 +0000)]
Use prototype.  While I'm there, add a pair of parenthesis to mark an if
statment's border.

MFC after: 1 month

13 years agoMore Japan regulatory domain fixes:
adrian [Thu, 14 Jul 2011 05:49:35 +0000 (05:49 +0000)]
More Japan regulatory domain fixes:

* Add HT40 entries for the two new Japan bands
* Fix a channel separation bug in one of the new bands I introduced
  in a previous commit.

13 years agoJapan regulatory domain update #1 - sync with CRDA entries.
adrian [Thu, 14 Jul 2011 05:19:28 +0000 (05:19 +0000)]
Japan regulatory domain update #1 - sync with CRDA entries.

Specifics:

* add 4920MHz-4980MHz for 11a and 11n/HT20
* add 5040MHz-5080MHz for 11a and 11n/HT20
* add 5500MHz-5700MHz for 11a and 11n/HT20 (DFS needed)
* add 5500MHz-5680MHz for 11n/HT40 (DFS needed)

TODO:

* add correct HT40 bands for 4920-4980 and 5040-5080

For the curious:

There's been many revisions to the Japan regulatory rules.
Apparently, the requirements require old cards certified on a previous
version of the rules to obey the older rules, not the newer rules.

The regdomain.xml outlines the -current- restrictions.

The card driver (eg the ath_hal regulatory domain code) may include
previous revisions of the Japan rules.

The ath_hal regdomain code populates the initial channel list based on
what the EEPROM indicates is possible. The regdomain.xml database imposes
further restrictions on this.

So regdomain.xml only needs to have the -current- rules. If the card
was certified on an earlier set of JP rules, it may only support a subset
of those channels - these are calculated at device attach and this
restricted list is kicked to net80211. regdomain.xml operates on -this-
list of channels.

And thus, the correct regulatory behaviour for Japan is handled with only
one regdomain.xml Japan database entry.

(phew.)

Obtained from: Linux wireless-regdb

13 years agoRemove trailing whitespace in the shutdown(8) manual.
gjb [Thu, 14 Jul 2011 03:08:10 +0000 (03:08 +0000)]
Remove trailing whitespace in the shutdown(8) manual.

MFC after:  1 week

13 years agoImprovements to the shutdown(8) manual.
gjb [Thu, 14 Jul 2011 02:41:45 +0000 (02:41 +0000)]
Improvements to the shutdown(8) manual.

PR: 158807
Submitted by: arundel
MFC after: 1 week

13 years agoFix for dump after shutdown with USB keyboard plugged in. It appears that the
hselasky [Wed, 13 Jul 2011 21:07:50 +0000 (21:07 +0000)]
Fix for dump after shutdown with USB keyboard plugged in. It appears that the
system timer is stopped during shutdown and that the pause() statement in ukbd
causes infinite hang in this regard. The fix is to use mi_switch() instead of
pause() to do the required task switch to ensure that the required USB processes
get executed.

Reported by: Mike_Karels@mcafee.com
MFC after: 1 week

13 years agoWhile fixing the looping of a thread while devfs vnode is reclaimed,
kib [Wed, 13 Jul 2011 21:07:41 +0000 (21:07 +0000)]
While fixing the looping of a thread while devfs vnode is reclaimed,
r179247 introduced a possibility of devfs_allocv() returning spurious
ENOENT. If the vnode is selected by vnlru daemon for reclamation, then
devfs_allocv() can get ENOENT from vget() due to devfs_close() dropping
vnode lock around the call to cdevsw d_close method.

Use LK_RETRY in the vget() call, and do some part of the devfs_reclaim()
work in devfs_allocv(), clearing vp->v_data and de->de_vnode. Retry the
allocation of the vnode, now with de->de_vnode == NULL.

The check vp->v_data == NULL at the start of devfs_close() cannot be
affected by the change, since vnode lock must be held while VI_DOOMED
is set, and only dropped after the check.

Reported and tested by: Kohji Okuno <okuno.kohji jp panasonic com>
Reviewed by: attilio
MFC after: 3 weeks

13 years ago- Expand the scope of the lock in the interrupt routine to close races with
marius [Wed, 13 Jul 2011 18:52:11 +0000 (18:52 +0000)]
- Expand the scope of the lock in the interrupt routine to close races with
  checking IFF_DRV_RUNNING and simplify the code. This also involves holding
  the driver lock in the rx_ch callout.
- Just use ifp instead of sc->sc_ifp.

Submitted by: jhb (mostly)

13 years ago- For SAS but neither FC nor SPI controllers default to using MSI (still
marius [Wed, 13 Jul 2011 18:48:51 +0000 (18:48 +0000)]
- For SAS but neither FC nor SPI controllers default to using MSI (still
  allowing their use to be disabled via device hints though). This matches
  what the corresponding Linux driver provided by LSI does. Tested with
  SAS1064.
- There's no need to keep track of the RIDs used.
- Don't allocate MSI/MSI-X as RF_SHAREABLE.
- Remove a comment which no longer applies since r209599.
- Assign NULL rather than 0 to pointers.

MFC after: 1 month

13 years agoPCIB_ALLOC_MSIX() may already fail on the first pass, f.e. when the PCI-PCI
marius [Wed, 13 Jul 2011 18:35:47 +0000 (18:35 +0000)]
PCIB_ALLOC_MSIX() may already fail on the first pass, f.e. when the PCI-PCI
bridge is blacklisted. In that case just return from pci_alloc_msix_method(),
otherwise we continue without a single MSI-X resource, causing subsequent
attempts to use the seemingly available resource to fail or when booting
verbose a NULL-pointer dereference of rle->start when trying to print the
IRQ in pci_alloc_msix_method().

Reviewed by: jhb
MFC after: 1 week

13 years agoRemove extra empty lines.
marius [Wed, 13 Jul 2011 14:10:28 +0000 (14:10 +0000)]
Remove extra empty lines.

13 years agoRun newaliases at the end of the install process.
nwhitehorn [Wed, 13 Jul 2011 13:25:12 +0000 (13:25 +0000)]
Run newaliases at the end of the install process.

Submitted by: kevlo

13 years agoWhen exiting with error because of an invalid command line argument
trociny [Wed, 13 Jul 2011 05:56:51 +0000 (05:56 +0000)]
When exiting with error because of an invalid command line argument
use errx(3), not err(3), and the exit code from sysexits(3).

Approved by: pjd (mentor)

13 years agoFix indentation.
trociny [Wed, 13 Jul 2011 05:32:55 +0000 (05:32 +0000)]
Fix indentation.

Approved by: pjd (mentor)

13 years agor222389 introduced a case where the NFSv4 client could
rmacklem [Wed, 13 Jul 2011 00:48:36 +0000 (00:48 +0000)]
r222389 introduced a case where the NFSv4 client could
loop in nfscl_getcl() when a forced dismount is in progress,
because nfsv4_lock() will return 0 without sleeping when
MNTK_UNMOUNTF is set.
This patch fixes it so it won't loop calling nfsv4_lock()
for this case.

MFC after: 2 weeks

13 years agoDocument RFTSIGZMB. Fix spelling of SIGCHLD. Note that signals are
kib [Tue, 12 Jul 2011 20:38:42 +0000 (20:38 +0000)]
Document RFTSIGZMB. Fix spelling of SIGCHLD. Note that signals are
delivered, not returned.

MFC after: 1 week

13 years agoImplement an RFTSIGZMB flag to rfork(2) to specify a signal that is
kib [Tue, 12 Jul 2011 20:37:18 +0000 (20:37 +0000)]
Implement an RFTSIGZMB flag to rfork(2) to specify a signal that is
delivered to parent when the child exists.

Submitted by: Petr Salinger <Petr.Salinger seznam cz> (Debian/kFreeBSD)
MFC after: 1 week
X-MFC-note: bump __FreeBSD_version

13 years agoDon't check for SOCK_DGRAM anymore. Also remove multicast
tuexen [Tue, 12 Jul 2011 20:14:03 +0000 (20:14 +0000)]
Don't check for SOCK_DGRAM anymore. Also remove multicast
related code which is not necessary anymore.

13 years agoMention myself in the AUTHORS section.
pluknet [Tue, 12 Jul 2011 19:48:21 +0000 (19:48 +0000)]
Mention myself in the AUTHORS section.

Requested by: stas

13 years agoThe socket API only specifies SCTP for SOCK_SEQPACKET and
tuexen [Tue, 12 Jul 2011 19:29:29 +0000 (19:29 +0000)]
The socket API only specifies SCTP for SOCK_SEQPACKET and
SOCK_STREAM, but not SOCK_DGRAM. So don't register it for
SOCK_DGRAM.
While there, fix some indentation.

13 years agoRemove NULL assignments which are redundant for static timecounters.
marius [Tue, 12 Jul 2011 18:10:56 +0000 (18:10 +0000)]
Remove NULL assignments which are redundant for static timecounters.

Submitted by: jkim

13 years ago- Remove redundant timecounter masking from counter_get_timecount().
marius [Tue, 12 Jul 2011 18:02:37 +0000 (18:02 +0000)]
- Remove redundant timecounter masking from counter_get_timecount().
- Zero the timecounter when allocation so we don't need to initialize unused
  members and remove a now redundant NULL assignment.

Submitted by: jkim

13 years ago- Current testing shows that (ab)using the JBC performance counter in bus
marius [Tue, 12 Jul 2011 17:56:42 +0000 (17:56 +0000)]
- Current testing shows that (ab)using the JBC performance counter in bus
  cycle mode as timecounter just works fine. My best guess is that a firmware
  update has fixed this, check at run-time whether it advances and use a
  positive quality if it does. The latter will cause this timecounter to be
  used instead of the tick counter based one, which just sucks for SMP.
- Remove a redundant NULL assignment from the timecounter initialization.

13 years ago- Add a missing shift in schizo_get_timecount(). This happened to be non-fatal
marius [Tue, 12 Jul 2011 17:55:34 +0000 (17:55 +0000)]
- Add a missing shift in schizo_get_timecount(). This happened to be non-fatal
  as STX_CTRL_PERF_CNT_CNT0_SHIFT actually is zero, if we were using the
  second counter in the upper 32 bits this would be required though as the MI
  timecounter code doesn't support 64-bit counters/counter registers.
- Remove a redundant NULL assignment from the timecounter initialization.

13 years agoUpdate mxge(4) firmware to the latest version available from
gallatin [Tue, 12 Jul 2011 15:07:17 +0000 (15:07 +0000)]
Update mxge(4) firmware to the latest version available from
Myricom (1.4.53a).

MFC after: 7 days
Sponored by: Myricom, Inc.

13 years agoFix media reporting for dual port CX4 myri10ge NICs
gallatin [Tue, 12 Jul 2011 14:43:49 +0000 (14:43 +0000)]
Fix media reporting for dual port CX4 myri10ge NICs

MFC after: 7 days
Sponsored by: Myricom, Inc.

13 years agoSort Xr's by number then by name
ivoras [Tue, 12 Jul 2011 14:18:54 +0000 (14:18 +0000)]
Sort Xr's by number then by name

Nitpicked by: niclas zeising at gmail.com :)

13 years agoTry and fix the exports.5 man page so that it clarifies how
rmacklem [Tue, 12 Jul 2011 14:04:36 +0000 (14:04 +0000)]
Try and fix the exports.5 man page so that it clarifies how
NFSv4 exports are handled. Improved by informal review comments from
mckusick, kudak at mit.edu and bde.
This is a content change.

MFC after: 2 weeks

13 years agoProvide a simple manual page for libprocstat(3).
pluknet [Tue, 12 Jul 2011 13:46:13 +0000 (13:46 +0000)]
Provide a simple manual page for libprocstat(3).

Reviewed by: jilles, gjb

13 years agoProperly align the end of a candidate back region based on the window's
jhb [Tue, 12 Jul 2011 13:28:39 +0000 (13:28 +0000)]
Properly align the end of a candidate back region based on the window's
granularity when growing a PCI-PCI window up.

Tested by: dougb
MFC after: 3 days

13 years agoPartially merge r223648, r223648 and r223949 from gem(4):
marius [Tue, 12 Jul 2011 13:22:17 +0000 (13:22 +0000)]
Partially merge r223648, r223648 and r223949 from gem(4):
- Consistently use the newly introduced sc_mac_rxcfg throughout the driver
  instead of reading the old content of CAS_MAC_RX_CONF.
- Increment if_iqdrops instead of if_ierrors in case of RX buffer allocation
  failure.
- According to the Cassini datasheet the RX MAC should also be disabled in
  cas_setladrf() before changing its configuration.
- Add error messages to gem_disable_{r,t}x() and take advantage of these
  throughout the driver instead of duplicating their functionality all over
  the place.

13 years agoCorrect r223648; as gem_init_locked() was calling gem_setladrf(), which
marius [Tue, 12 Jul 2011 13:06:44 +0000 (13:06 +0000)]
Correct r223648; as gem_init_locked() was calling gem_setladrf(), which
sets GEM_MAC_RX_CONFIG based on sc_mac_rxcfg which in turn is initialized
to zero, before reading the supposedly default configuration we were
effectively not basing sc_mac_rxcfg and thus GEM_MAC_RX_CONFIG on the
default configuration. Solve this by calling gem_setladrf() after reading
in the default configuration of GEM_MAC_RX_CONFIG. This also avoids the
need to distinguish whether gem_setladrf() should enable the RX MAC again
and should be slightly more correct as we're now doing all of the RX MAC
configuration in the intended step.

13 years agoTruncate link addresses like it is done for any
tuexen [Tue, 12 Jul 2011 11:47:08 +0000 (11:47 +0000)]
Truncate link addresses like it is done for any
other address type.

MFC after: 4 weeks

13 years agoUse NULL instead of 0 for third argument of sigaction(2).
ae [Tue, 12 Jul 2011 10:07:07 +0000 (10:07 +0000)]
Use NULL instead of 0 for third argument of sigaction(2).

Pointed by: kib
MFC after: 2 weeks

13 years agoAdd SIGINFO handler.
ae [Tue, 12 Jul 2011 09:03:38 +0000 (09:03 +0000)]
Add SIGINFO handler.

Reviewed by: kib
Obtained from: NetBSD (partly)
MFC after: 2 weeks

13 years agoAccording to the OpenSolaris source the PCI latency and the cache line size
marius [Tue, 12 Jul 2011 08:20:15 +0000 (08:20 +0000)]
According to the OpenSolaris source the PCI latency and the cache line size
should be set for Sun ERI.
Tested by: yongari