]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
13 years agoMFC 204329,210723,210933,214778,215526:
jhb [Tue, 25 Jan 2011 20:44:11 +0000 (20:44 +0000)]
MFC 204329,210723,210933,214778,215526:
Sync mfiutil(8) with HEAD:
- Handle malloc() failures more gracefully by error'ing out rather than
  segfaulting.
- Fixed dependencies (make checkdpadd).
- Fix typos and spelling mistakes.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217840 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 211514,214158:
jhb [Tue, 25 Jan 2011 20:33:12 +0000 (20:33 +0000)]
MFC 211514,214158:
- There isn't really a need to hold the ktrace mutex just to read the
  value of p_traceflag that is stored in the kinfo_proc structure.
- When disabling ktracing on a process, free any pending requests that
  may be left.  This fixes a memory leak that can occur when tracing is
  disabled on a process via disabling tracing of a specific file (or if
  an I/O error occurs with the tracefile) if the process's next system
  call is exit().  The trace disabling code clears p_traceflag, so exit1()
  doesn't do any KTRACE-related cleanup leading to the leak.  I chose to
  make the free'ing of pending records synchronous rather than patching
  exit1().
- Move KTRACE-specific logic out of kern_(exec|exit|fork).c and into
  kern_ktrace.c instead.  Make ktrace_mtx private to kern_ktrace.c as a
  result.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217838 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 214144:
jhb [Tue, 25 Jan 2011 19:44:42 +0000 (19:44 +0000)]
MFC 214144:
- Make 'vm_refcnt' volatile so that compilers won't be tempted to treat
  its value as a loop invariant.  Currently this is a no-op because
  'atomic_cmpset_int()' clobbers all memory on current architectures.
- Use atomic_fetchadd_int() instead of an atomic_cmpset_int() loop to drop
  a reference in vmspace_free().

git-svn-id: svn://svn.freebsd.org/base/stable/8@217835 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217727
thompsa [Tue, 25 Jan 2011 19:27:05 +0000 (19:27 +0000)]
MFC r217727

 Revert the ndis part of r212122, windrv_stub.c already adds a MODULE_VERSION
 and this breaks loading miniport drivers from loader.conf

git-svn-id: svn://svn.freebsd.org/base/stable/8@217834 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217564:
kib [Tue, 25 Jan 2011 10:20:36 +0000 (10:20 +0000)]
MFC r217564:
Make the length of the LDT a loader tunable, machdep.max_ldt_segment,
and export it with read-only sysctl. Remove unused defines.

MFC r217604:
Use CTLFLAG_RDTUN for read-only sysctl that exports tunable.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217818 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217563:
kib [Tue, 25 Jan 2011 10:17:37 +0000 (10:17 +0000)]
MFC r217563:
Use malloc(9) instead of kmem_alloc(9) for temporal copy of the
user-supplied descriptor array.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217817 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217561:
kib [Tue, 25 Jan 2011 10:14:12 +0000 (10:14 +0000)]
MFC r217561:
For architectures not using direct map , and requiring real KVA page for
sf buf allocation, use wakeup() instead of wakeup_one() to notify sf
buffer waiters about free buffer.

sf_buf_alloc() calls msleep(PCATCH) when SFB_CATCH flag was given,
and for simultaneous wakeup and signal delivery, msleep() returns
EINTR/ERESTART despite the thread was selected for wakeup_one(). As
result, we loose a wakeup, and some other waiter will not be woken up.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217816 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r217587
jkim [Mon, 24 Jan 2011 18:11:37 +0000 (18:11 +0000)]
MFC: r217587

Fix yet another fallout from r208833.  VM86 BIOS call may cause page fault
when FPU is in use.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217798 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 217707 Don't do flow control if parameter is unchanged
jfv [Mon, 24 Jan 2011 18:07:57 +0000 (18:07 +0000)]
MFC 217707 Don't do flow control if parameter is unchanged

git-svn-id: svn://svn.freebsd.org/base/stable/8@217797 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 217706 Add missing case for 82598DA to phy detect
jfv [Mon, 24 Jan 2011 18:05:49 +0000 (18:05 +0000)]
MFC 217706 Add missing case for 82598DA to phy detect

git-svn-id: svn://svn.freebsd.org/base/stable/8@217796 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 217705 - remove bogus TX UNLOCK
jfv [Mon, 24 Jan 2011 18:03:45 +0000 (18:03 +0000)]
MFC 217705 - remove bogus TX UNLOCK

git-svn-id: svn://svn.freebsd.org/base/stable/8@217795 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 217148, 217786:
gjb [Mon, 24 Jan 2011 15:17:10 +0000 (15:17 +0000)]
MFC 217148, 217786:
Document rc.conf.d in rc.conf(5).

PR: 140495
Approved by: keramida (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@217787 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217649:
yongari [Sun, 23 Jan 2011 02:15:50 +0000 (02:15 +0000)]
MFC r217649:
  Correct wrong definition of PM timer mask and adjust L1/PM timer
  value. While I'm here enable all clocks before initializing
  controller. This change should fix lockup issue seen on AR8152
  v1.1 PCIe Fast Ethernet controller.

  PR: kern/154076

git-svn-id: svn://svn.freebsd.org/base/stable/8@217740 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217583:
kib [Sat, 22 Jan 2011 11:29:13 +0000 (11:29 +0000)]
MFC r217583:
Add missed ().

git-svn-id: svn://svn.freebsd.org/base/stable/8@217716 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217463:
kib [Sat, 22 Jan 2011 11:27:10 +0000 (11:27 +0000)]
MFC r217463:
For consistency, use kernel_object instead of &kernel_object_store
when initializing the object mutex. Do the same for kmem_object.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217715 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC rev 217593:
jfv [Sat, 22 Jan 2011 01:48:12 +0000 (01:48 +0000)]
MFC rev 217593:

Critical fix for panic on 82598
Phy detection now dynamic
Flow Director improvement
Critical fix for buf sz (jumbos)
Release RX lock to fix LOR

git-svn-id: svn://svn.freebsd.org/base/stable/8@217713 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC rev 217127 - correct a couple SYSCTL variables
jfv [Sat, 22 Jan 2011 01:43:07 +0000 (01:43 +0000)]
MFC rev 217127 - correct a couple SYSCTL variables

git-svn-id: svn://svn.freebsd.org/base/stable/8@217712 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC rev 217591
jfv [Sat, 22 Jan 2011 01:37:53 +0000 (01:37 +0000)]
MFC rev 217591

git-svn-id: svn://svn.freebsd.org/base/stable/8@217711 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC rev 217295
jfv [Sat, 22 Jan 2011 01:34:08 +0000 (01:34 +0000)]
MFC rev 217295

git-svn-id: svn://svn.freebsd.org/base/stable/8@217710 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r217424
jkim [Fri, 21 Jan 2011 18:31:57 +0000 (18:31 +0000)]
MFC: r217424

Remove redundant, bogus, and even harmful uses of setting TS bit in CR0.
It is done from fpstate_drop() when it is really necessary.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217700 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217698: unifdef-2.5.6
fanf [Fri, 21 Jan 2011 18:18:55 +0000 (18:18 +0000)]
MFC r217698: unifdef-2.5.6

git-svn-id: svn://svn.freebsd.org/base/stable/8@217699 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216667:
trasz [Fri, 21 Jan 2011 17:53:40 +0000 (17:53 +0000)]
MFC r216667:

The 'kern.corefile="whatever"' syntax won't work with sysctl.conf; remove
the quotes to not mislead people.

MFC r216668:

Fix date, broken in r216667.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217697 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r217535
rmacklem [Fri, 21 Jan 2011 01:24:00 +0000 (01:24 +0000)]
MFC: r217535
Fix the experimental NFSv4 server so that it uses VOP_ACCESSX()
to check for VREAD_ACL instead of VOP_ACCESS().

git-svn-id: svn://svn.freebsd.org/base/stable/8@217679 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r217432
rmacklem [Fri, 21 Jan 2011 01:12:22 +0000 (01:12 +0000)]
MFC: r217432
Modify the experimental NFSv4 server so that it posts a SIGUSR2
signal to the master nfsd daemon whenever the stable restart
file has been modified. This will allow the master nfsd daemon
to maintain an up to date backup copy of the file. This is
enabled via the nfssvc() syscall, so that older nfsd daemons
will not be signaled.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217678 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r217417
marius [Fri, 21 Jan 2011 00:53:32 +0000 (00:53 +0000)]
MFC: r217417

- Even after masking the media with IFM_GMASK the result may have bits
  besides the duplex ones set so just comparing it with IFM_FDX may lead
  to false negatives.
- Just let the default case handle all unsupported media types.
- In pnphy_status() don't unnecessarily read a register twice.
- Remove unnused macros.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217676 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r217414
marius [Fri, 21 Jan 2011 00:50:34 +0000 (00:50 +0000)]
MFC: r217414

- Don't announce PAUSE support for half-duplex when MIIF_FORCEPAUSE is
  set.
- Let mii_phy_auto() also announce PAUSE support for 10baseT-FDX.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217674 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r217413
marius [Fri, 21 Jan 2011 00:48:04 +0000 (00:48 +0000)]
MFC: r217413

- Even after masking the media with IFM_GMASK the result may have bits
  besides the duplex ones set so just comparing it with IFM_FDX may lead
  to false negatives.
- Simplify ciphy_service() to only set the manual configuration bits
  once after we have figured them all out. This also means we no longer
  unnecessarily update the hardware along the road.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217672 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r217412
marius [Fri, 21 Jan 2011 00:40:25 +0000 (00:40 +0000)]
MFC: r217412

- Masking IFM_GMASK when also masking IFM_FDX is redundant and just
  complicates the code.
- Don't let atphy_setmedia() announce PAUSE support for half-duplex when
  MIIF_FORCEPAUSE is set.
- Simplify e1000phy_service() and ip1000phy_service() to only set the
  manual configuration bits once after we have figured them all out. For
  ip1000phy_service() this also means we no longer unnecessarily update
  the hardware along the road.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217670 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217548:
yongari [Fri, 21 Jan 2011 00:33:10 +0000 (00:33 +0000)]
MFC r217548:
  Rework RX filter programming by providing separate handler for
  DP8381[56] and SiS 900/7016 controllers.  After r212119, sis(4) no
  longer reinitializes controller if ALLMULTI/PROMISC was changed.
  However, RX filter handling code assumed some bits of the RX filter
  is programmed by driver initialization. This caused ALLMULTI/PROMISC
  configuration is ignored under certain conditions.
  Fix that issue by reprogramming all bits of RX filter register.
  While I'm here follow recommended RX filter programming steps
  recommended by National DP8381[56] data sheet(RX filter should be
  is disabled before programming).

  Reported by: Paul Schenkeveld < freebsd () psconsult dot nl >
  Tested by: Paul Schenkeveld < freebsd () psconsult dot nl >

git-svn-id: svn://svn.freebsd.org/base/stable/8@217668 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217511:
bschmidt [Thu, 20 Jan 2011 18:41:46 +0000 (18:41 +0000)]
MFC r217511:
Pull ieee80211_ratectl_node_init() calls from drivers into net80211.
This fixes hostap mode for at least ral(4) and run(4), because there is
no sufficient call into drivers which could be used initialize the node
related ratectl variables.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217650 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217040:
nwhitehorn [Thu, 20 Jan 2011 15:06:42 +0000 (15:06 +0000)]
MFC r217040:

Add an entry to the gpart XML to determine if the geom has pending changes
that need to be committed (or undone).

git-svn-id: svn://svn.freebsd.org/base/stable/8@217640 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r203135
thompsa [Wed, 19 Jan 2011 22:29:19 +0000 (22:29 +0000)]
MFC r203135

Hook run(4) to the build.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217615 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r203134,r207990,r217289
thompsa [Wed, 19 Jan 2011 22:25:07 +0000 (22:25 +0000)]
MFC r203134,r207990,r217289

Add manpages for run(4) and runfw(4).

git-svn-id: svn://svn.freebsd.org/base/stable/8@217614 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217481 and r217606 from /head
keramida [Wed, 19 Jan 2011 21:49:21 +0000 (21:49 +0000)]
MFC r217481 and r217606 from /head

r217481...
  Fix the mount example of xfs(5) filesystems by including the read-only
  option.  We only support ro mounts for xfs, so it’s nice if the examples
  we show in the manpage are easy to copy/paste.

  PR:           docs/149106
  Submitted by: amdmi3

r217606...
  Bump .Dd date of manpage for r217481

git-svn-id: svn://svn.freebsd.org/base/stable/8@217608 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r199985 from /head
keramida [Wed, 19 Jan 2011 21:34:42 +0000 (21:34 +0000)]
MFC r199985 from /head

Describe what setpgid(2) does when pgid=0.  The text has been
copied from NetBSD’s manpage, and it also matches the behavior
described by the Open Group’s online copy of setpgid.2 at
http://www.opengroup.org/onlinepubs/009695399/functions/setpgid.html

Obtained from:        NetBSD
Submitted by:         Petros Barbayiannis <petrosbarbayiannis@yahoo.gr>

git-svn-id: svn://svn.freebsd.org/base/stable/8@217603 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r205978 from /head
keramida [Wed, 19 Jan 2011 21:28:00 +0000 (21:28 +0000)]
MFC r205978 from /head

Document DEBUG_FLAGS in a more visible place, in the build(7) manpage

Noticed by:     Alexander Best <alexbestms.at.wwu.de>
Reviewed by:    jhb

git-svn-id: svn://svn.freebsd.org/base/stable/8@217601 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217064 - sort & fix includes, remove -include from CFLAGS of acct tests
keramida [Wed, 19 Jan 2011 21:09:39 +0000 (21:09 +0000)]
MFC r217064 - sort & fix includes, remove -include from CFLAGS of acct tests

- Sort the includes of pack.c, moving sys/*.h files near the top.
- Add a couple of missing #include lines, and remove the need for
  custom -include options in the CFLAGS of the test Makefile.
- Remove the ad-hoc ’all’ target, but keep its ’regress’ bits for
  testing.
- Convert the ad-hoc ’clean’ target to proper CLEANFILES stuff,
  so that the normal bsd.prog.mk machinery can clean up.
- Use ‘make -V .OBJDIR’ to detect the place where ’pack’ lives,
  so that regress.t works both with and without ’make obj’.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217599 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoFix buildworld on pre-8.2.
fjoe [Wed, 19 Jan 2011 09:59:54 +0000 (09:59 +0000)]
Fix buildworld on pre-8.2.

PR: 153947

git-svn-id: svn://svn.freebsd.org/base/stable/8@217576 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217305:
ae [Wed, 19 Jan 2011 05:13:40 +0000 (05:13 +0000)]
MFC r217305:
  Sector size can not be greater than MAXPHYS. Since GRAID3 calculates
  sector size from user-specified block size, report to user about
  big blocksize.

  PR: kern/147851

git-svn-id: svn://svn.freebsd.org/base/stable/8@217572 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217303:
ae [Wed, 19 Jan 2011 05:08:32 +0000 (05:08 +0000)]
MFC r217303:
  Sector size can not be greater than MAXPHYS.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217571 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r204707 by scottl
imp [Wed, 19 Jan 2011 03:59:30 +0000 (03:59 +0000)]
MFC r204707 by scottl

Ignore the result of the chflags operation to allow it to continue
when doing an installation over NFS.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217569 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r217176
rmacklem [Wed, 19 Jan 2011 01:26:49 +0000 (01:26 +0000)]
MFC: r217176
Modify readdirplus in the experimental NFS server in a
manner analogous to r216633 for the regular server. This
change busies the file system so that VFS_VGET() is
guaranteed to be using the correct mount point even
during a forced dismount attempt. Since nfsd_fhtovp() is
not called immediately before readdirplus, the patch is
actually a clone of pjd@'s nfs_serv.c.4.patch instead of
the one committed in r216633.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217567 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoFix mismerge. The missing _cxgb=cxgb assignment was causing cxgb to
imp [Tue, 18 Jan 2011 20:26:40 +0000 (20:26 +0000)]
Fix mismerge.  The missing _cxgb=cxgb assignment was causing cxgb to
not be built at all, rather than causing it to not be built on just
arm and mips.

# The merge info looks correct, so this looks like a direct commit.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217553 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC unifdef-2.5
fanf [Tue, 18 Jan 2011 19:31:38 +0000 (19:31 +0000)]
MFC unifdef-2.5

git-svn-id: svn://svn.freebsd.org/base/stable/8@217551 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r205682:
jh [Tue, 18 Jan 2011 16:49:51 +0000 (16:49 +0000)]
MFC r205682:

Support only LOOKUP operation for "/" in relookup() because lookup()
can't succeed for CREATE, DELETE and RENAME.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217544 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r217464, r217468, r217475
marius [Tue, 18 Jan 2011 11:51:48 +0000 (11:51 +0000)]
MFC: r217464, r217468, r217475

Add a manual page for rgephy(4) and reference it as appropriate. The
motivation for having rgephy.4 is to document the special media option
added in r217415 (MFC'ed to stable/8 in r217502).

git-svn-id: svn://svn.freebsd.org/base/stable/8@217533 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216952:
kib [Tue, 18 Jan 2011 10:42:13 +0000 (10:42 +0000)]
MFC r216952:
Mark some devices as eternal.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217532 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217262:
ae [Tue, 18 Jan 2011 06:24:52 +0000 (06:24 +0000)]
MFC r217262:
  Round GNOP provider's mediasize to its sectorsize. This prevents KASSERT
  in g_io_request when geom classes doing tasting.

  PR: kern/147852

MFC r217263:
  Remove redundant check.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217530 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r217242
rmacklem [Tue, 18 Jan 2011 01:20:15 +0000 (01:20 +0000)]
MFC: r217242
Fix a bug in the client side krpc where it was, sometimes
erroneously, assumed that 4 bytes of data were in the first
mbuf of a list by replacing the bcopy() with m_copydata().
Also, replace the uses of m_pullup(), which can fail for
reasons other than not enough data, with m_copydata().
For the cases where it isn't known that there is enough
data in the mbuf list, check first via m_len and m_length().
This is believed to fix a problem reported by dpd at dpdtech.com
and george+freebsd at m5p.com.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217527 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r217066
rmacklem [Tue, 18 Jan 2011 01:07:09 +0000 (01:07 +0000)]
MFC: r217066
Delete the NFS_STARTWRITE() and NFS_ENDWRITE() macros that
obscured vn_start_write() and vn_finished_write() for the
old OpenBSD port, since most uses have been replaced by the
correct calls.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217526 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r217063
rmacklem [Tue, 18 Jan 2011 00:53:55 +0000 (00:53 +0000)]
MFC: r217063
Since the VFS_LOCK_GIANT() code in the experimental NFS
server is broken and the major file systems are now all
mpsafe, modify the server so that it will only export
mpsafe file systems. This was discussed on freebsd-fs@
and removes a fair bit of crufty code.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217525 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216835:
bschmidt [Mon, 17 Jan 2011 20:22:03 +0000 (20:22 +0000)]
MFC r216835:
The mwl's HAL manages an array of MWL_MBSS_MAX VAPs where the first 8 are
supposed to be APs and the later 24 are pre-configured as STAs. A wrong
condition during initialization is responsible for not configuring the last
8 array members. This is results in being able to create more than 8,
possible uninitialized, AP-VAPs.

Submitted by: Erik Fonnesbeck <efonnes at gmail.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@217513 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217118:
bschmidt [Mon, 17 Jan 2011 20:19:35 +0000 (20:19 +0000)]
MFC r217118:
Don't try to free an unassigned pointer.

Submitted by: Paul B Mahol <onemda at gmail.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@217512 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217245:
mav [Mon, 17 Jan 2011 17:23:59 +0000 (17:23 +0000)]
MFC r217245:
Add IDs for HighPoint RocketRAID 64x controllers.

These controllers consist of two Marvell 88SE9128 6Gbps SATA chips and
PLX PCIe bridge. As result, they seem to be agree to work with ahci(4)
as usual HBAs. The only noticed issue is that RAID BIOS disables all
drive caches during boot, though `camcontrol cmd ...` is able to fix that.

Those who wants RAID functionality can still use closed proprietary driver
from HighPoint site.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217504 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r217415
marius [Mon, 17 Jan 2011 15:12:29 +0000 (15:12 +0000)]
MFC: r217415

- Allow IFM_FLAG0 to be set indicating that auto-negotiation with manual
  configuration, which is used to work around issues with certain setups
  (see r161237) by default, should not be triggered as it may in turn
  cause harm in some edge cases.
- Even after masking the media with IFM_GMASK the result may have bits
  besides the duplex ones set so just comparing it with IFM_FDX may lead
  to false negatives.
- Announce PAUSE support also for manually selected 1000BASE-T, but for
  all manually selected media types only in full-duplex mode. Announce
  asymmetric PAUSE support only for manually selected 1000BASE-T.
- Simplify setting the manual configuration bits to only once after we
  have figured them all out. This also means we no longer unnecessarily
  update the hardware along the road.
- Remove a stale comment.

Reviewed by: yongari (plus additional testing)

git-svn-id: svn://svn.freebsd.org/base/stable/8@217502 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209059 (originally committed by jhb):
lstewart [Mon, 17 Jan 2011 05:45:55 +0000 (05:45 +0000)]
MFC r209059 (originally committed by jhb):

Update several places that iterate over CPUs to use CPU_FOREACH().

git-svn-id: svn://svn.freebsd.org/base/stable/8@217500 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r217023
rmacklem [Mon, 17 Jan 2011 01:49:47 +0000 (01:49 +0000)]
MFC: r217023
Modify the experimental NFS server so that it calls
vn_start_write() with a non-NULL vp. That way it will
find the correct mount point mp and use that mp for the
subsequent vn_finished_write() call. Also, it should fail
without crashing if the mount point is being forced dismounted
because vn_start_write() will set the mp NULL via VOP_GETWRITEMOUNT().

git-svn-id: svn://svn.freebsd.org/base/stable/8@217497 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r217017
rmacklem [Mon, 17 Jan 2011 01:37:39 +0000 (01:37 +0000)]
MFC: r217017
Fix the experimental NFS server to use vfs_busyfs() instead
of vfs_getvfs() so that the mount point is busied for the
VFS_FHTOVP() call. This is analagous to r185432 for the
regular NFS server.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217496 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r216931
rmacklem [Mon, 17 Jan 2011 01:26:13 +0000 (01:26 +0000)]
MFC: r216931
Fix the nlm so that it no longer depends on the regular
nfs client and, as such, can be loaded for the experimental
nfs client without the regular client.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217495 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r216898
rmacklem [Mon, 17 Jan 2011 01:11:06 +0000 (01:11 +0000)]
MFC: r216898
Fix the experimental NFS server so that it doesn't leak
a reference count on the directory when creating device
special files.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217494 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r216897
rmacklem [Mon, 17 Jan 2011 00:59:04 +0000 (00:59 +0000)]
MFC: r216897
Modify the experimental NFSv4 server so that the lookup
ops return a locked vnode. This ensures that the associated mount
point will always be valid for the code that follows the operation.
Also add a couple of additional checks
for non-error to the other functions that create file objects.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217493 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r215547,r216763,r216819,r216871,r217172: sh testcases.
jilles [Sun, 16 Jan 2011 23:41:40 +0000 (23:41 +0000)]
MFC r215547,r216763,r216819,r216871,r217172: sh testcases.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217489 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216806: sh: Properly restore exception handler in fc.
jilles [Sun, 16 Jan 2011 22:10:18 +0000 (22:10 +0000)]
MFC r216806: sh: Properly restore exception handler in fc.

If SIGINT arrived at exactly the right moment (unlikely), an exception
handler in a no longer active stack frame would be called.

Because the old handler was not used in the normal path, clang thought it
was a dead value and if an exception happened it would longjmp() to garbage.
This caused builtins/fc1.0 to fail if histedit.c was compiled with clang.
(Note: not tested on stable/8 with clang.)

git-svn-id: svn://svn.freebsd.org/base/stable/8@217485 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r216894
rmacklem [Sun, 16 Jan 2011 14:37:48 +0000 (14:37 +0000)]
MFC: r216894
Delete some cruft from the experimental NFS server that was
only used by the OpenBSD port for its pseudo-fs.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217476 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r216893
rmacklem [Sun, 16 Jan 2011 14:15:46 +0000 (14:15 +0000)]
MFC: r216893
Add checks for VI_DOOMED and vn_lock() failures to the
experimental NFS server, to handle the case where an
exported file system is forced dismounted while an RPC
is in progress. Further commits will fix the cases where
a mount point is used when the associated vnode isn't locked.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217474 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217383:
kib [Sun, 16 Jan 2011 10:41:47 +0000 (10:41 +0000)]
MFC r217383:
The (%esp & 0xf) == 0 should be true before the call instruction is
executed, for the properly aligned stack.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217470 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMerge r204499, r204515 from head to stable/8:
rwatson [Sat, 15 Jan 2011 19:49:08 +0000 (19:49 +0000)]
Merge r204499, r204515 from head to stable/8:

  Teach netstat -Q to work with -N and -M by adding libkvm versions of data
  query routines.  This code is necessarily more fragile in the presence of
  kernel changes than querying the kernel via sysctl (the default), but
  useful when investigating crashes or live kernel state via firewire.

  Sponsored by:   Juniper Networks

  Prefer vocabulary of 'Current' and 'Limit' to 'Value' and 'Maximum' in
  netstat -Q.

  Sponsored by:   Juniper Networks

git-svn-id: svn://svn.freebsd.org/base/stable/8@217458 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMerge r204497, r204499 from head to stable/8:
rwatson [Sat, 15 Jan 2011 19:46:36 +0000 (19:46 +0000)]
Merge r204497, r204499 from head to stable/8:

  Changes to support crashdump analysis of netisr:

  - Rename the netisr protocol registration array, 'np' to 'netisr_proto',
    in order to reduce the chances of symbol name collisions.  It remains
    statically defined, but it will be looked up by netstat(1).

  - Move certain internal structure definitions from netisr.c to
    netisr_internal.h so that netstat(1) can find them.  They remain
    private, and should not be used for any other purpose (for example,
    they should not be used by kernel modules, which must instead use the
    public interfaces in netisr.h).

  - Store a kernel-compiled version of NETISR_MAXPROT in the global variable
    netisr_maxprot, and export via a sysctl, so that it is available for use
    by netstat(1).  This is especially important for crashdump
    interpretation, where the size of the workstream structure is determined
    by the maximum number of protocols compiled into the kernel.

  Sponsored by:   Juniper Networks

  Whitespace tweak.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217457 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMerge from head to stable/8:
rwatson [Sat, 15 Jan 2011 19:36:47 +0000 (19:36 +0000)]
Merge from head to stable/8:

  Refine netisr.c comments a bit.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217456 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMerge r203913 from head to stable/8 (original change by pjd):
rwatson [Sat, 15 Jan 2011 19:27:22 +0000 (19:27 +0000)]
Merge r203913 from head to stable/8 (original change by pjd):

  Mark various sysctls also as tunables.

  Reviewed by:    rwatson

git-svn-id: svn://svn.freebsd.org/base/stable/8@217455 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMerge r204494, r204511 from head to stable/8:
rwatson [Sat, 15 Jan 2011 19:23:14 +0000 (19:23 +0000)]
Merge r204494, r204511 from head to stable/8:

  A first cut at teaching libkvm how to deal with dynamic per-CPU storage
  (DPCPU):

  A new API, kvm_dpcpu_setcpu(3), selects the active CPU for the purposes
  of DPCPU.  Calls to kvm_nlist(3) will automatically translate DPCPU
  symbols and return a pointer to the current CPU's version of the data.
  Consumers needing to read the same symbol on several CPUs will invoke a
  series of setcpu/nlist calls, one per CPU of interest.

  This addition makes it possible for tools like netstat(1) to query the
  values of DPCPU variables during crashdump analysis, and is based on
  similar code handling virtualized global variables.

  Sponsored by:   Juniper Networks, Inc.

  Not all programs including kvm.h include the necessary headers to use
  u_int, so prefer unsigned int.

  Pointed out by: bz, kib, Mr Tinderbox

git-svn-id: svn://svn.freebsd.org/base/stable/8@217454 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMerge r204303 from head to stable/8:
rwatson [Sat, 15 Jan 2011 19:05:06 +0000 (19:05 +0000)]
Merge r204303 from head to stable/8:

  Fix edge cases in several KASSERTs: use <= rather than < when testing that
  counters have not gone about MAXCPU or NETISR_MAXPROT.  These problems
  caused panics on UP kernels with INVARIANTS when using sysctl -a, but
  would also have caused problems for 32-core boxes or if the netisr
  protocol vector was fully populated.

  Reported by:    nwhitehorn, Neel Natu <neelnatu@gmail.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@217450 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMerge r204208 from head to stable/8:
rwatson [Sat, 15 Jan 2011 19:02:08 +0000 (19:02 +0000)]
Merge r204208 from head to stable/8:

  Fix constant assignment for netisr protocol information sysctl.

  Spotted by:     bz

git-svn-id: svn://svn.freebsd.org/base/stable/8@217449 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMerge mergeinfo only for r204207 from head to stable/8; the edit itself
rwatson [Sat, 15 Jan 2011 19:00:22 +0000 (19:00 +0000)]
Merge mergeinfo only for r204207 from head to stable/8; the edit itself
was apparently merged as part of a separate change:

  Update date on netstat(1) for -Q.

  Suggested by:   bz

git-svn-id: svn://svn.freebsd.org/base/stable/8@217448 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMerge r204206 from head to stable/8:
rwatson [Sat, 15 Jan 2011 18:56:51 +0000 (18:56 +0000)]
Merge r204206 from head to stable/8:

  Cross-reference netstat(1) from netisr(9) since you can now use it to
  monitor netisr status.

  Sponsored by:   Juniper Networks

git-svn-id: svn://svn.freebsd.org/base/stable/8@217447 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMerge r204202 from head to stable/8:
rwatson [Sat, 15 Jan 2011 18:51:45 +0000 (18:51 +0000)]
Merge r204202 from head to stable/8:

  Teach netstat(1) to print out netisr statistics when given the -Q argument.
  Currently supports only reporting on live systems via sysctl, kmem support
  needs to be edded.

  Sponsored by:   Juniper Networks

git-svn-id: svn://svn.freebsd.org/base/stable/8@217446 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMerge r204199 from head to stable/8:
rwatson [Sat, 15 Jan 2011 18:41:42 +0000 (18:41 +0000)]
Merge r204199 from head to stable/8:

  Export netisr configuration and statistics to userspace via sysctl(9).

  Sponsored by:   Juniper Networks

git-svn-id: svn://svn.freebsd.org/base/stable/8@217445 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217150:
kib [Sat, 15 Jan 2011 09:25:19 +0000 (09:25 +0000)]
MFC r217150:
Collect code to translate between vm_prot_t and p_flags into helper
functions.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217442 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217144:
kib [Sat, 15 Jan 2011 08:37:33 +0000 (08:37 +0000)]
MFC r217144:
Fix some style(9) issues.
Do not use strlcpy() where simple assignment is enough.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217441 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217143:
kib [Sat, 15 Jan 2011 08:35:41 +0000 (08:35 +0000)]
MFC r217143:
Fix struct FILE * leak on error (in disabled by default hesiod support code).

PR:   153756

git-svn-id: svn://svn.freebsd.org/base/stable/8@217440 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217307,r217308,r217312:
pjd [Sat, 15 Jan 2011 08:18:58 +0000 (08:18 +0000)]
MFC r217307,r217308,r217312:

r217307:

Install default signal handlers before masking signals we want to handle.
It is possible that the parent process ignores some of them and sigtimedwait()
will never see them, eventhough they are masked.

The most common situation for this to happen is boot process where init(8)
ignores SIGHUP before starting to execute /etc/rc. This in turn caused
hastd(8) to ignore SIGHUP.

Reported by: trasz
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com

r217308:

Add a note that when custom signal handler is installed for a signal,
signal action is restored to default in child after fork(2).
In this case there is no need to do anything with dummy SIGCHLD handler,
because after fork(2) it will be automatically reverted to SIG_IGN.

Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com

r217312:

execve(2), not fork(2) resets signal handler to the default value (if it isn't
ignored). Correct comment talking about that.

Pointed out by: kib

git-svn-id: svn://svn.freebsd.org/base/stable/8@217439 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r216875
rmacklem [Sat, 15 Jan 2011 01:03:26 +0000 (01:03 +0000)]
MFC: r216875
Add support for shared vnode locks for the Read operation
in the experimental NFSv4 server.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217437 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217296:
yongari [Sat, 15 Jan 2011 00:32:15 +0000 (00:32 +0000)]
MFC r217296:
  For re(4) controllers that uses new jumbo frame scheme(RTL8168C/D/E),
  limit maximum RX buffer size to RE_RX_DESC_BUFLEN instead of
  blindly configuring it to 16KB. Due to lack of documentation, re(4)
  didn't allow jumbo frame on these controllers. However it seems
  controller is confused with jumbo frame such that it can DMA the
  received frame to wrong address instead of splitting it into
  multiple RX buffers. Of course, this caused panic.

  Since re(4) does not support jumbo frames on these controllers,
  make controller drop frame that is longer than RE_RX_DESC_BUFLEN
  sized frame. Fortunately RTL810x controllers, which do not support
  jumbo frame, have no such issues but this change also limited
  maximum RX buffer size allowed to RTL810x controllers. Allowing
  16KB RX buffer for controllers that have no such capability is
  meaningless.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217435 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216131:
yongari [Fri, 14 Jan 2011 22:58:08 +0000 (22:58 +0000)]
MFC r216131:
  Document loader tunable hw.re.prefer_iomap.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217430 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216284:
yongari [Fri, 14 Jan 2011 22:36:33 +0000 (22:36 +0000)]
MFC r216284:
  r184610 changed the way how TX frames are handled on AX88178 and
  AX88772 controllers. ASIX added a new feature for AX88178/AX88772
  controllers which allows combining multiple TX frames into a single
  big frame. This was to overcome one of USB limitation where it
  can't generate more than 8k interrupts/sec which in turn means USB
  ethernet controllers can not send more than 8k packets per second.
  Using ASIX's feature greatly enhanced TX performance(more than 3~4
  times) compared to 7.x driver. However it seems r184610 removed
  boundary checking for buffered frames which in turn caused
  instability issues under certain conditions. In addition, using
  ASIX's feature triggered another issue which made USB controller
  hang under certain conditions. Restarting ethernet controller
  didn't help under this hang condition and unplugging and replugging
  the controller was the only solution. I believe there is a silicon
  bug in TX frame combining feature on AX88178/AX88772 controllers.

  To address these issues, reintroduce the boundary checking for both
  AX88178 and AX88772 after copying a frame to USB buffer and do not
  use ASIX's multiple frame combining feature. Instead, use USB
  controller's multi-frame transmit capability to enhance TX
  performance as suggested by Hans[1].
  This should fix a long standing axe(4) instability issues reported
  on AX88772 and AX88178 controllers. While I'm here remove
  unnecessary TX frame length check since upper stack always
  guarantee the size of a frame to be less than MCLBYTES.

  Special thanks to Derrick Brashear who tried numerous patches
  during last 4 months and waited real fix with patience. Without
  this enthusiastic support, patience and H/W donation I couldn't fix
  it since I was not able to trigger the issue on my box.

  Suggested by: hselasky [1]
  Tested by: Derrick Brashear (shadow <> gmail dot com>
  H/W donated by: Derrick Brashear (shadow <> gmail dot com>
  PR: usb/140883

git-svn-id: svn://svn.freebsd.org/base/stable/8@217429 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r215969:
yongari [Fri, 14 Jan 2011 22:33:12 +0000 (22:33 +0000)]
MFC r215969:
  Add initial AX88772A support.

  H/W donated by: Derrick Brashear (shadow <> gmail dot com)

git-svn-id: svn://svn.freebsd.org/base/stable/8@217428 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r215968:
yongari [Fri, 14 Jan 2011 22:31:26 +0000 (22:31 +0000)]
MFC r215968:
  Introduce new macro AXE_IS_178_FAMILY and AXE_IS_772. Include
  AX88772A and AX88772B for future extension. While here add TX
  buffer size for 178 family controllers.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217427 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r215960,215962-215964,215966:
yongari [Fri, 14 Jan 2011 22:29:45 +0000 (22:29 +0000)]
MFC r215960,215962-215964,215966:
r215960:
  Apply GPIO configuration for all CICADA PHYs.
  While I'm here show selected phymode to ease of debugging.

r215962:
  Move axe_reset() to axe_init().

r215963:
  Do not reinitialize controller if it's already running.

r215964:
  Make sure to change to currently selected media.

r215966:
  Do full controller initialization in axe_reset() for controllers
  that require special configuration from EEPROM. This will put
  controllers into known sane state.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217426 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r217013
marius [Fri, 14 Jan 2011 20:43:21 +0000 (20:43 +0000)]
MFC: r217013

Teach ifconfig(8) the handy shared option shortcut aliases the NetBSD
counterpart also takes, i.e. "fdx" for "full-duplex", "flow" for
"flowcontrol", "hdx" for "half-duplex" as well as "loop" and "loopback"
for "hw-loopback".

git-svn-id: svn://svn.freebsd.org/base/stable/8@217422 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r217010
marius [Fri, 14 Jan 2011 20:30:17 +0000 (20:30 +0000)]
MFC: r217010

Fix whitespace.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217421 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r217009
marius [Fri, 14 Jan 2011 20:28:11 +0000 (20:28 +0000)]
MFC: r217009

Remove a redundant variable assignment found with the clang static analyzer.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217418 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoDon't use amdc1e on XEN && !XEN_PRIVILEGED. The Xen hypervisor
cperciva [Fri, 14 Jan 2011 16:30:22 +0000 (16:30 +0000)]
Don't use amdc1e on XEN && !XEN_PRIVILEGED.  The Xen hypervisor
gets justifiably annoyed when a guest OS tries to halt the CPU.
This fixes a panic when booting FreeBSD/XEN on recent AMD CPUs.

This is not an MFC; the problem was (accidentally?) fixed in HEAD
four months ago via SVN r212541.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217408 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217203:
bz [Fri, 14 Jan 2011 14:20:54 +0000 (14:20 +0000)]
MFC r217203:

  MfP4 CH=185246 [1]:

    Add FEATURE() to announce optional VIMAGE.

  [1] for the moment put it in vnet.c.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217403 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217135:
bz [Fri, 14 Jan 2011 13:34:56 +0000 (13:34 +0000)]
MFC r217135:

  Clarify when we switch from keepidle to keepinvtl intervals if sending
  TCP keepalive probes is enabled.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217401 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r214748:
jh [Fri, 14 Jan 2011 11:12:56 +0000 (11:12 +0000)]
MFC r214748:

Extend the g_eventlock mutex coverage in one_event() to include setting
of the EV_DONE flag and use the mutex to protect against losing wakeups
in g_waitfor_event().

git-svn-id: svn://svn.freebsd.org/base/stable/8@217392 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216995,217043:
lstewart [Fri, 14 Jan 2011 00:57:13 +0000 (00:57 +0000)]
MFC r216995,217043:

Add a man page for the Object Specific Data (OSD) KPI.

Although not directly related the FreeBSD Foundation funded "Five New TCP
Congestion Control Algorithms for FreeBSD" project, the understanding and
inspiration required to write this documentation was significantly bolstered by
the Foundation's support.

Reviewed by: pjd

git-svn-id: svn://svn.freebsd.org/base/stable/8@217386 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217208 - regression/date: unset all LC_xxx vars and set LANG/LC_ALL
keramida [Thu, 13 Jan 2011 11:23:42 +0000 (11:23 +0000)]
MFC r217208 - regression/date: unset all LC_xxx vars and set LANG/LC_ALL

When running with a custom locale setup, it's easy to confuse the
date regression tests and cause them to fail, e.g. when LANG='C'
but LC_ALL='el_GR.UTF-8'.  Set LC_ALL to 'C', which overrides all
other LC_xxx options, to avoid this sort of problem.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217347 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r215238 (originally by kib):
bz [Thu, 13 Jan 2011 08:19:09 +0000 (08:19 +0000)]
MFC r215238 (originally by kib):

  Use 'z' modifier for size_t printing.

Should have been merged with r215207 by gnn.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217346 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: 215207
gnn [Wed, 12 Jan 2011 20:44:11 +0000 (20:44 +0000)]
MFC: 215207

Add a queue to hold packets while we await an ARP reply.

When a fast machine first brings up some non TCP networking program
it is quite possible that we will drop packets due to the fact that
only one packet can be held per ARP entry.  This leads to packets
being missed when a program starts or restarts if the ARP data is
not currently in the ARP cache.

This code adds a new sysctl, net.link.ether.inet.maxhold, which defines
a system wide maximum number of packets to be held in each ARP entry.
Up to maxhold packets are queued until an ARP reply is received or
the ARP times out.  The default setting is the old value of 1
which has been part of the BSD networking code since time
immemorial.

Expose the time we hold an incomplete ARP entry by adding
the sysctl net.link.ether.inet.wait, which defaults to 20
seconds, the value used when the new ARP code was added..

Reviewed by: bz, rpaulo

git-svn-id: svn://svn.freebsd.org/base/stable/8@217329 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agosvn merge -c215331,215332,215676 svn+ssh://svn.freebsd.org/base/head/sbin/hastd sbin...
pjd [Wed, 12 Jan 2011 14:13:50 +0000 (14:13 +0000)]
svn merge -c215331,215332,215676 svn+ssh://svn.freebsd.org/base/head/sbin/hastd sbin/hastd

MFC r215331,r215332,r215676:

r215676 (by brucec):

Don't generate input() since it's not used.

r215332:

Move timeout.tv_sec initialization outside the loop - sigtimedwait(2) won't
modify it.

Submitted by: Mikolaj Golub <to.my.trociny@gmail.com>

r215331:

1. Exit when we cannot create incoming connection.
2. Improve logging to inform which connection can't be created.

Submitted by: [1] Mikolaj Golub <to.my.trociny@gmail.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@217306 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f