]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
14 years agoMFC r204195:
mav [Mon, 1 Mar 2010 19:16:34 +0000 (19:16 +0000)]
MFC r204195:
Improve output for controllers that doesn't report SATA speed.

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

14 years agoMFC of 204397: fix problems with fast posting handles
mjacob [Mon, 1 Mar 2010 17:36:45 +0000 (17:36 +0000)]
MFC of 204397: fix problems with fast posting handles

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

14 years agoMFC r204356:
mav [Mon, 1 Mar 2010 11:33:09 +0000 (11:33 +0000)]
MFC r204356:
Store path for rescan to the right place. This should fix panic on boot,
introduced by r203108.

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

14 years agoMFC r204197:
nwhitehorn [Mon, 1 Mar 2010 00:38:20 +0000 (00:38 +0000)]
MFC r204197:

Allow user programs to execute mfpvr instructions. Linux allows this, and
some math-related software like GMP expects to be able to use it to pick
a target appropriately.

Reported by: Jakob van Santen <vansanten at wisc dot edu>

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

14 years agoMFC r204129:
nwhitehorn [Mon, 1 Mar 2010 00:35:30 +0000 (00:35 +0000)]
MFC r204129:

Enable NETIF_OPEN_CLOSE_ONCE on PowerPC OFW. This fixes netbooting on
PowerPC Book-S hardware, which had been broken for a very long time.

Submitted by: Andreas Tobler

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

14 years agoMFC r203360
joerg [Sun, 28 Feb 2010 22:25:39 +0000 (22:25 +0000)]
MFC r203360

  GPIB overhaul, part #2: make the tnt4882 driver work with the newer
  TNT5004 IC.  This involved a major rewrite of a number of things, as
  this chip no longer supports the NAT7210 legacy mode but requires the
  host to use the (more modern) FIFO mode.

  In theory, this also ought to work on the older TNT4882C chip.  I'll
  probably add this as optional support (perhaps by a device.hints flag)
  later on.  By now, FIFO mode is *only* activates iff a TNT5004 chip
  has been detected (where the old code didn't work at all), while
  everything else is supposed to use the old code.

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

14 years agoMFC r203546: acpi_cpu: prefer _OSC over _PDC
avg [Sun, 28 Feb 2010 21:43:47 +0000 (21:43 +0000)]
MFC r203546: acpi_cpu: prefer _OSC over _PDC

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

14 years agoMFC r203430: acpi_cpu: correct capabilities arguments for Processor _OSC
avg [Sun, 28 Feb 2010 21:30:46 +0000 (21:30 +0000)]
MFC r203430: acpi_cpu: correct capabilities arguments for Processor _OSC

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

14 years agoMFC r203061: KASSERT contract of return value of interrupt filter
avg [Sun, 28 Feb 2010 21:28:24 +0000 (21:28 +0000)]
MFC r203061: KASSERT contract of return value of interrupt filter

X-MFCto7 after: 1 week

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

14 years agoMFC r203665:
jh [Sun, 28 Feb 2010 14:04:20 +0000 (14:04 +0000)]
MFC r203665:

Make sure that FTS_COMFOLLOW is not set when the -P option is in effect.
Otherwise the -i option will show the inode number of the referenced file
for symbolic links given on the command line. Similarly, the file color
was printed according to the link target in colorized output.

PR: bin/102394

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

14 years agoMerge r204166 from head:
gavin [Sun, 28 Feb 2010 11:14:29 +0000 (11:14 +0000)]
Merge r204166 from head:

  Document the interaction between /etc/devfs.conf and
  /etc/defaults/devfs.conf

PR: docs/117308
Submitted by: Mel <mel.xyzzy rachie.is-a-geek.net> (partially)

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

14 years agoMFC of 204384: Fix misallocation error in target mode
mjacob [Sun, 28 Feb 2010 06:07:53 +0000 (06:07 +0000)]
MFC of 204384: Fix misallocation error in target mode

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

14 years agoMFC rev 204182:
marcel [Sun, 28 Feb 2010 01:25:12 +0000 (01:25 +0000)]
MFC rev 204182:
Remove pm_active from struct pmap as it serves no purpose.

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

14 years agoMFC r203490: Introduce '[ipaddr]:path' notation.
ume [Sat, 27 Feb 2010 18:27:32 +0000 (18:27 +0000)]
MFC r203490: Introduce '[ipaddr]:path' notation.
Since the existing implementation searches ':' backward, a path which
includes ':' could not be mounted.  You can now mount such path by
enclosing an IP address by '[]'.
Though we should change to search ':' forward, it will break
'ipv6addr:path' which is currently working.  So, it still searches ':'
backward, at least for now.

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

14 years agoMFC r203433:
ume [Sat, 27 Feb 2010 18:19:13 +0000 (18:19 +0000)]
MFC r203433:

Add rc.d script for the rtsold(8) daemon.

The rtsol(8) handles just one RA then exit.  So, the OtherConfig flag
may not be handled well by rtsol(8) in the environment where there are
multiple RA servers on the segment.  In such case, rtsold(8) will be
your friend.

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

14 years agoMFC r203827:
kib [Sat, 27 Feb 2010 16:51:23 +0000 (16:51 +0000)]
MFC r203827:
- Add idempotency guards so the structures can be used in other utilities.
- Update bpb structs with reserved fields.
- In direntry struct join deName with deExtension. Although a
  fix was attempted in the past, these fields were being overflowed,
  Now this is consistent with the spec, and we can now share the
  WinChksum code with NetBSD.

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

14 years agoMFC r204106:
emaste [Sat, 27 Feb 2010 03:47:22 +0000 (03:47 +0000)]
MFC r204106:

  Avoid corrupting the list or queue if _REMOVE is invoked with a
  reference to the head.

PR: kern/119307

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

14 years agoMFC of 203763, 203764, 203768, 203769, 203770, 203782, and 203784.
mckusick [Fri, 26 Feb 2010 21:49:11 +0000 (21:49 +0000)]
MFC of 203763, 203764, 203768, 203769, 203770, 203782, and 203784.

These fixes correct a problem in the file system that treats large
inode numbers as negative rather than unsigned. For a default
(16K block) file system, this bug began to show up at a file system
size above about 16Tb.

These fixes also update newfs to ensure that it will never create a
filesystem with more than 2^32 inodes.

They also update libufs, tunefs, and growfs so that they properly
handle inode numbers as unsigned.

Reported by: Scott Burns, John Kilburg, and Bruce Evans
Followup by: Jeff Roberson
PR:          133980

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

14 years agoMFC r203695, r203751
rpaulo [Fri, 26 Feb 2010 20:25:30 +0000 (20:25 +0000)]
MFC r203695, r203751
  Fix spelling mistake and compile error.

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

14 years agoMFC r203683:
rpaulo [Fri, 26 Feb 2010 18:46:16 +0000 (18:46 +0000)]
MFC r203683:
 Add multicast key search support. This fixes corrupted mcast packets
 when we have more than one hostap vap.

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

14 years agoMFC 203052:
delphij [Fri, 26 Feb 2010 00:54:47 +0000 (00:54 +0000)]
MFC 203052:

Add interface description capability as inspired by OpenBSD.  Thanks for
rwatson@, jhb@, brooks@ and others for feedback to the old implementation!

Sponsored by: iXsystems, Inc.

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

14 years agoMFC: r204105
jkim [Fri, 26 Feb 2010 00:11:17 +0000 (00:11 +0000)]
MFC: r204105

Return partially filled buffer for non-blocking read(2)
in non-immediate mode.

PR: kern/143855
Submitted by: Guy Harris (guy at alum dot mit dot edu)

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

14 years agoMFC r204009
raj [Thu, 25 Feb 2010 13:28:05 +0000 (13:28 +0000)]
MFC r204009

Assorted fixes for mge(4).

- Use proper map for the busdma sync on mge descriptor.
- Remove unnecesary busdma sync.
- Eliminate redundant locking in mge_reinit_rx() (just assert).
- Kill unused variable.

Submitted by: Grzegorz Bernacki
Obtained from: Semihalf

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

14 years agoMFC r204205:
kib [Thu, 25 Feb 2010 10:40:52 +0000 (10:40 +0000)]
MFC r204205:
Remove write-only variable.

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

14 years agoMFC r202964:
delphij [Thu, 25 Feb 2010 00:46:51 +0000 (00:46 +0000)]
MFC r202964:

On FreeBSD, time_t is 64-bit for all platforms except i386 and powerpc,
where the type is 32-bit.  ZFS can handle 64-bit timestamp internally
but zfs_setattr() would check if the time value can fit, we change the
checking macros to match 64-bit timestamp if the platform supports it.

This change has some downsides like, while you can import zfs on 32-bit
platforms, the timestamp would overflow if they are out of the range.

This fixes the Y2.038K issue on platforms using 64-bit timestamps.

Reviewed by: pjd

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

14 years agoMFC r202143,202163,202341,202342,204278
brooks [Wed, 24 Feb 2010 22:16:16 +0000 (22:16 +0000)]
MFC r202143,202163,202341,202342,204278

  Replace the static NGROUPS=NGROUPS_MAX+1=1024 with a dynamic
  kern.ngroups+1.  kern.ngroups can range from NGROUPS_MAX=1023 to
  somewhere in the neighborhood of INT_MAX/4 one a system with sufficent
  RAM and memory bandwidth.  Given that the Windows group limit is
  1024, this range should be sufficient for most applications

r202342:
  Only allocate the space we need before calling kern_getgroups instead
  of allocating what ever the user asks for up to "ngroups_max + 1".  On
  systems with large values of kern.ngroups this will be more efficient.

  The now redundant check that the array is large enough in
  kern_getgroups() is deliberate to allow this change to be merged to
  stable/8 without breaking potential third party consumers of the API.

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

14 years agoMFC 204090:
jhb [Wed, 24 Feb 2010 21:29:18 +0000 (21:29 +0000)]
MFC 204090:
Fix mptutil's method for locating disk devices attached to a specific
mpt(4) controller.  Previously, the code assumed that multiple match
patterns provided to an XPT_DEV_MATCH request were ANDed together.
Instead, they are ORed.  Instead, to match peripherals for a specific bus,
one query needs to be performed to lookup the path ID of the bus.  A second
query can then be performed matching peripherals attached to that path.
This approach also makes the code a bit cleaner as the returned match
results do not mix buses and perphierals.

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

14 years agoMFC 204086:
jhb [Wed, 24 Feb 2010 21:20:25 +0000 (21:20 +0000)]
MFC 204086:
- Don't emit a warning in 'show adapter' if the IOC2 or IOC6 pages are not
  present.  mpt(4) controllers that do not support RAID do not have an IOC6
  page, for example.
- Correct a check for a missing page error in a debug function.

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

14 years agoMFC r203924:
raj [Wed, 24 Feb 2010 20:20:02 +0000 (20:20 +0000)]
MFC r203924:

Call the proper linkup routine in PowerPC Book-E machdep.

Submitted by: attilio

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

14 years agoMFC r202945:
jh [Wed, 24 Feb 2010 15:27:31 +0000 (15:27 +0000)]
MFC r202945:

Fixes for ls(1) long format (-l) output:

- Allow -h option to work if the listing contains at least one device
  file.
- Align major and minor device numbers correctly to the size field.

PR: bin/125678

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

14 years agoMFC r201684.
pjd [Tue, 23 Feb 2010 16:46:34 +0000 (16:46 +0000)]
MFC r201684.

Teach the (gpt)zfsboot and zfsloader raidz code to use its buffers
more efficiently.

Before this patch, in the worst case memory use would increase
exponentially on the number of drives in the raidz vdev.

Submitted by: Matt Reimer <mattjreimer@gmail.com>
Sponsored by: VPOP Technologies, Inc.
Silence from: dfr

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

14 years agoMFC r202812:
emaste [Tue, 23 Feb 2010 01:00:15 +0000 (01:00 +0000)]
MFC r202812:

  Add H55 ID from Mike Tancsa, with minor rewording from avg@.

PR: kern/143068
Submitted by: Mike Tancsa (Sentex)

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

14 years agoMFC r203728:
delphij [Tue, 23 Feb 2010 00:40:02 +0000 (00:40 +0000)]
MFC r203728:

 - Return EAFNOSUPPORT instead of EINVAL for unsupported address family,
   this matches the Linux behavior.
 - Check if we have sufficient space allocated for socket structure, which
   fixes a buffer overflow when wrong length is being passed into the
   emulation layer. [1]

PR: kern/138860
Submitted by: Mateusz Guzik <mjguzik gmail com>
Reported by: Alexander Best [1]

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

14 years agoMFC r203533:
delphij [Mon, 22 Feb 2010 22:27:26 +0000 (22:27 +0000)]
MFC r203533:

Remove two files that are not needed by FreeBSD.

Approved by:  pjd

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

14 years ago- Factor out the code shared between NFS client and server into its own
marius [Mon, 22 Feb 2010 21:45:20 +0000 (21:45 +0000)]
- Factor out the code shared between NFS client and server into its own
  module so it's not present twice.
- Move nfs_realign() from the NFS client to the shared NFS code and
  remove the NFS server version in order to reduce code duplication.
  The shared version now uses a second parameter how, which is passed
  on to m_get(9) and m_getcl(9) as the server used M_WAIT while the
  client requires M_DONTWAIT, and replaces the the previously unused
  parameter hsiz.
- Change nfs_realign() to use nfsm_aligned() so as with other NFS code
  the alignment check isn't actually performed on platforms without
  strict alignment requirements for performance reasons because as the
  comment suggests unaligned data only occasionally occurs with TCP.
- Change fha_extract_info() to use nfs_realign() with M_DONTWAIT rather
  than M_WAIT because it's called with the RPC sp_lock held.

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

14 years agoMFC r203673:
bschmidt [Mon, 22 Feb 2010 17:10:47 +0000 (17:10 +0000)]
MFC r203673:
Ensure that tkip_mixing_phase1() is called after a rekeying event when
using plain s/w crypto.

PR: bin/142547
Approved by: rpaulo (mentor)

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

14 years agoMFC: r203919: Show when an ARP entry expires (now that this info
ru [Mon, 22 Feb 2010 16:00:55 +0000 (16:00 +0000)]
MFC: r203919: Show when an ARP entry expires (now that this info
cannot be obtained with netstat(1)).

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

14 years agoMFC: r204008: realloc() with a proper amount of memory.
ru [Mon, 22 Feb 2010 15:58:10 +0000 (15:58 +0000)]
MFC: r204008: realloc() with a proper amount of memory.

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

14 years agoMFC r203551:
jh [Sun, 21 Feb 2010 13:17:35 +0000 (13:17 +0000)]
MFC r203551:

- Cast intptr_t, pid_t and time_t values to intmax_t and use %jd with
  printf.
- Cast the system call return value to long and use %ld in a printf in
  ktrsysret().

PR: bin/123774

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

14 years agoMerge r200413 and r202755 from head to stable/8:
antoine [Sun, 21 Feb 2010 11:22:01 +0000 (11:22 +0000)]
Merge r200413 and r202755 from head to stable/8:
reduces white space diff between head and stable/8

Suggested by: ru@

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

14 years agoMFC r203866:
kib [Sun, 21 Feb 2010 11:13:15 +0000 (11:13 +0000)]
MFC r203866:
Invalid filesystem might cause the bp to be never read.

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

14 years agoMFC r203085
alc [Sun, 21 Feb 2010 04:10:25 +0000 (04:10 +0000)]
MFC r203085
  Optimize pmap_demote_pde() by using the new KPTmap to access a kernel
  page table page instead of creating a temporary mapping to it.

  Set the PG_G bit on the page table entries that implement the KPTmap.

  Locore initializes the unused portions of the NKPT kernel page table
  pages that it allocates to zero.  So, pmap_bootstrap() needn't zero
  the page table entries referenced by CMAP1 and CMAP3.

  Simplify pmap_set_pg().

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

14 years agoMFC rev 203883:
marcel [Sat, 20 Feb 2010 22:43:12 +0000 (22:43 +0000)]
MFC rev 203883:
o   Eliminate IA64_PHYS_TO_RR6 by calling bus_space_map() or pmap_mapdev().
o   Implement bus_space_map() in terms of pmap_mapdev().
o   Have ia64_pib hold the uncached virtual address of the PIB.

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

14 years agoMFC r203157, r203816:
jh [Sat, 20 Feb 2010 13:35:05 +0000 (13:35 +0000)]
MFC r203157, r203816:

Handle short reads when the -P option is used and remove some dead code.

PR: bin/121502

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

14 years agoMFC from head to stable/8:
antoine [Sat, 20 Feb 2010 12:48:44 +0000 (12:48 +0000)]
MFC from head to stable/8:
r202896:
  Unbreak world:
  - WITHOUT_OPENSSH (and WITH_KERBEROS)
  - WITHOUT_KERBEROS and WITH_GSSAPI

  PR: 137483
  Submitted by: bf
r203016 by ru@:
  Regen the list of prebuild libraries using tools/make_libdeps.sh.

Reviewed by: ru@

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

14 years agoMFC r203826:
kib [Sat, 20 Feb 2010 11:58:19 +0000 (11:58 +0000)]
MFC r203826:
Use M_ZERO instead of calling bzero().
Fix function name in the comment.

MFC r203828:
Fix function name in the comment in the second location too.

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

14 years agoMFC r203822:
kib [Sat, 20 Feb 2010 11:54:18 +0000 (11:54 +0000)]
MFC r203822:
Remove unused macros.

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

14 years agoMFC r203818:
kib [Sat, 20 Feb 2010 11:50:50 +0000 (11:50 +0000)]
MFC r203818:
Clear the bp pointer when buffer is already brelse()d.

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

14 years agoMFC r200291, r203529:
mav [Fri, 19 Feb 2010 18:15:45 +0000 (18:15 +0000)]
MFC r200291, r203529:
Increase Max Read Request Size for PCIe chips from 512 to 1024 bytes.
It gives those beasts additional 10% of write bandwidth.
Use new helper functions to do it.

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

14 years agoMFC r203528:
mav [Fri, 19 Feb 2010 18:07:51 +0000 (18:07 +0000)]
MFC r203528:
Add pci_get|set_max_read_req() helper functions to control maximum PCIe
read request size.

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

14 years agoMark r203870 as merged. It was accidentally committed before.
mav [Fri, 19 Feb 2010 18:01:32 +0000 (18:01 +0000)]
Mark r203870 as merged. It was accidentally committed before.

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

14 years agoMFC r203873:
mav [Fri, 19 Feb 2010 17:54:03 +0000 (17:54 +0000)]
MFC r203873:
With FBS enabled, we have no idea what command caused timeout.
Implement same logic as in siis(4) - wait for other commands
complete or timeout and then give some more time.

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

14 years agoMFC r203931:
mav [Fri, 19 Feb 2010 17:45:47 +0000 (17:45 +0000)]
MFC r203931:
Make CD driver a bit more robust and predictable to unreported errors.

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

14 years agoMFC: r203849
rmacklem [Fri, 19 Feb 2010 16:36:08 +0000 (16:36 +0000)]
MFC: r203849
Change the default value for vfs.newnfs.enable_locallocks to 0 for
the experimental NFS server, since local locking is known to be
broken and the patch to fix it is still a work in progress.

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

14 years agoMFC: r203918: Unbreak makefiles by removing mentions of DEFAULT_THREAD_LIB.
ru [Thu, 18 Feb 2010 16:52:49 +0000 (16:52 +0000)]
MFC: r203918: Unbreak makefiles by removing mentions of DEFAULT_THREAD_LIB.

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

14 years agoMFC: r203848
rmacklem [Thu, 18 Feb 2010 16:23:13 +0000 (16:23 +0000)]
MFC: r203848
This fixes the experimental NFS server so that it won't crash in the
caching code for IPv6 by fixing a typo that used the incorrect variable.
It also fixes the indentation of the statement above it.

Reported by: simon AT comsys.ntu-kpi.kiev.ua

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

14 years agoMFC r203685:
brucec [Thu, 18 Feb 2010 11:07:36 +0000 (11:07 +0000)]
MFC r203685:

Document the usfs driver and the NO_SYSCTL_DESCR option, and update the comment
for umass.
Don't include the sysctl description variables in aic7xxx when NO_SYSCTL_DESCR
is used.

Approved by: rrs (mentor)

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

14 years agoMFC r203679:
brucec [Thu, 18 Feb 2010 11:03:35 +0000 (11:03 +0000)]
MFC r203679:

Remove the usb2_input_kbd directive that was missed during the renaming of the
drivers in the usb2 stack.

Approved by: rrs (mentor)

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

14 years agoMFC r203678:
brucec [Thu, 18 Feb 2010 10:59:32 +0000 (10:59 +0000)]
MFC r203678:

Rename usb2_ structures and variables to usb_.

Approved by: rrs (mentor)

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

14 years agoMFC r203323:
brucec [Thu, 18 Feb 2010 10:55:42 +0000 (10:55 +0000)]
MFC r203323:

Remove extra semicolon.

Approved by: rrs (mentor)

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

14 years agoMFC r203322:
brucec [Thu, 18 Feb 2010 10:51:31 +0000 (10:51 +0000)]
MFC r203322:

Fix typo of ENOTCONN.
Add missing RETURN VALUES section in sctp_opt_info(3).

Approved by: rrs (mentor)

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

14 years agoMFC r203690:
brucec [Thu, 18 Feb 2010 10:48:37 +0000 (10:48 +0000)]
MFC r203690:

Xorg isn't treated as a distribution, so /usr/X11R6/lib shouldn't be
configured when running ldconfig.

PR: bin/138945
Approved by: rrs (mentor)

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

14 years agoMFC r203688:
brucec [Thu, 18 Feb 2010 10:46:25 +0000 (10:46 +0000)]
MFC r203688:

Initialize the execfile argument to NULL instead of _PATH_DEVNULL. This allows
the -M option to be used without specifying -N.

PR: bin/138146
Approved by: rrs (mentor)

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

14 years agoMFC r203681:
brucec [Thu, 18 Feb 2010 10:39:53 +0000 (10:39 +0000)]
MFC r203681:

Fix typo and remove extra spaces.

Approved by: rrs (mentor)

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

14 years agoAdd the long missing "destroy" option [mfc of 203505]
mjacob [Thu, 18 Feb 2010 01:15:58 +0000 (01:15 +0000)]
Add the long missing "destroy" option [mfc of 203505]

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

14 years agoMFC r203441:
kib [Wed, 17 Feb 2010 09:09:12 +0000 (09:09 +0000)]
MFC r203441:
Placate new binutils, by using 16-bit %ax instead of 32-bit %eax as an
argument for fnstsw. Explicitely specify sizes for the XMM control and
status word and X87 control and status words.

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

14 years agoMFC r203875:
kib [Wed, 17 Feb 2010 09:03:38 +0000 (09:03 +0000)]
MFC r203875:
Do not leak process lock when current thread is not allowed to see target.

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

14 years agoMerge 203689 from head:
gavin [Tue, 16 Feb 2010 22:23:33 +0000 (22:23 +0000)]
Merge 203689 from head:

  Install the padlock(4) man page on amd64 as well as i386, to match the
  platforms where the driver itself is compiled and installed.

PR: docs/130895
Reported by: George Hartzell <hartzell alerce.com>

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

14 years agoMerge r202461 from head:
gavin [Tue, 16 Feb 2010 22:19:55 +0000 (22:19 +0000)]
Merge r202461 from head:

  Implement an "-x" option to cp(1), for compatibility with Linux and
  feature parity with du(1) and similar:  When set, cp(1) will not traverse
  mount points.

PR: bin/88056
Initial patch by: Graham J Lee   leeg teaching.physics.ox.ac.uk

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

14 years agoMFC: r203676
emax [Tue, 16 Feb 2010 19:00:47 +0000 (19:00 +0000)]
MFC: r203676

Introduce new rc.conf variable firewall_coscripts. It can be used to
specify list of executables and/or rc scripts that should be executed
after firewall starts/stops.

Submitted by: Yuri Kurenkov <y dot kurenkov at init dot ru>
Reviewed by: rhodes, rc@

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

14 years agoMFC r203408:
delphij [Tue, 16 Feb 2010 06:34:44 +0000 (06:34 +0000)]
MFC r203408:

Prevent NULL deference by checking return value of
gctl_get_asciiparam.

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

14 years agoMFC r203124:
mav [Mon, 15 Feb 2010 16:41:30 +0000 (16:41 +0000)]
MFC r203124:
Note added FIS-based switching support.

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

14 years agoMFC r203637:
raj [Mon, 15 Feb 2010 15:00:40 +0000 (15:00 +0000)]
MFC r203637:

Improve checking whether an ARM VA has a valid mapping before performing cache
sync.

VIPT/PIPT caches need valid VA-PA mapping in PTE for a cache operation to
succeed (unlike VIVT). Prior to this fix pmap was using l2pte_valid() for that
check, but this is not sufficient as the function merely checks if a PTE
exists (there can be existing but _invalid_ entries in the table).

A new pmap_has_valid_mapping() routine is introduced to do this job right by
checking proper PTE flags.

Among other potential problems this cures coherency issues with L2 caches on
MV-78100.

Submitted by: Grzegorz Bernacki, Piotr Ziecik
Reviewed, tested by: marcel
Obtained from: Semihalf

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

14 years agoMFC: r202969: Actualize.
ru [Mon, 15 Feb 2010 11:29:27 +0000 (11:29 +0000)]
MFC: r202969: Actualize.

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

14 years agoMFC r203426:
mav [Sun, 14 Feb 2010 20:00:21 +0000 (20:00 +0000)]
MFC r203426:
Disable PHY of unconnected ports when interface power management enabled.
It allows to save a bit more power (about 0.5W on 2 unused ports of ICH8M).

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

14 years agoMFC r203165:
mav [Sun, 14 Feb 2010 19:59:06 +0000 (19:59 +0000)]
MFC r203165:
Reset port on disconnect event, to abort any running requests.

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

14 years agoMFC r203123:
mav [Sun, 14 Feb 2010 19:57:54 +0000 (19:57 +0000)]
MFC r203123:
Add FIS-based switching support. If controller supports FBS, it allows
several devices beyond Port Multiplier to work simultaneously, substantially
increasing performance.

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

14 years agoMFC r203449:
mav [Sun, 14 Feb 2010 19:56:42 +0000 (19:56 +0000)]
MFC r203449:
Implement poll method for atapicam.
It is not perfect, but better then nothing.

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

14 years agoMFC r203347:
mav [Sun, 14 Feb 2010 19:55:41 +0000 (19:55 +0000)]
MFC r203347:
NetCell is a PCI hardware RAID without cable and mode setting.

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

14 years agoMFC r203525:
mav [Sun, 14 Feb 2010 19:54:16 +0000 (19:54 +0000)]
MFC r203525:
Report SATA300 chips also as SATA.

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

14 years agoMFC r203445:
mav [Sun, 14 Feb 2010 19:53:09 +0000 (19:53 +0000)]
MFC r203445:
Report to CAM unit number of underlying ataX bus device, instead of this
atapicamX. It is more apropriate and useful together with "ata" name.

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

14 years agoMFC r203499:
mav [Sun, 14 Feb 2010 19:51:39 +0000 (19:51 +0000)]
MFC r203499:
On probe error, if restart requested, skip any retries and recovery.
Just restart probe from the beginning immediately.

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

14 years agoMFC r203421:
mav [Sun, 14 Feb 2010 19:50:33 +0000 (19:50 +0000)]
MFC r203421:
Add Power Up In Stand-by feature support. Device with PUIS enabled
require explicit command to do initial spin-up. Mark that command
with CAM_HIGH_POWER flag, to allow CAM manage staggered spin-up.

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

14 years agoMFC r203386:
mav [Sun, 14 Feb 2010 19:48:53 +0000 (19:48 +0000)]
MFC r203386:
Change the way in which fake async events generated. Do not use
taskqueue for lock decoupling, as it causes unwanted races.

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

14 years agoMFC r203385:
mav [Sun, 14 Feb 2010 19:46:54 +0000 (19:46 +0000)]
MFC r203385:
- Use separate buffer for identify data fetching. We can't use main buffer
here if device already running, as data need to be formatted before use.
- Remove some saved_ccb variables. They are unused now.

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

14 years agoMFC r203376, r203384:
mav [Sun, 14 Feb 2010 19:44:48 +0000 (19:44 +0000)]
MFC r203376, r203384:
- Give ATA/SATA SIMs info about ATAPI packet size, supported by device.
- Make ATA XPT to reject longer SCSI CDBs then supported by device, or
any SCSI CDBs, if device doesn't support ATAPI.

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

14 years agoMFC r203108:
mav [Sun, 14 Feb 2010 19:38:27 +0000 (19:38 +0000)]
MFC r203108:
Large set of CAM improvements:
- Unify bus reset/probe sequence. Whenever bus attached at boot or later,
CAM will automatically reset and scan it. It allows to remove duplicate
code from many drivers.
- Any bus, attached before CAM completed it's boot-time initialization,
will equally join to the process, delaying boot if needed.
- New kern.cam.boot_delay loader tunable should help controllers that
are still unable to register their buses in time (such as slow USB/
PCCard/ CardBus devices), by adding one more event to wait on boot.
- To allow synchronization between different CAM levels, concept of
requests priorities was extended. Priorities now split between several
"run levels". Device can be freezed at specified level, allowing higher
priority requests to pass. For example, no payload requests allowed,
until PMP driver enable port. ATA XPT negotiate transfer parameters,
periph driver configure caching and so on.
- Frozen requests are no more counted by request allocation scheduler.
It fixes deadlocks, when frozen low priority payload requests occupying
slots, required by higher levels to manage theit execution.
- Two last changes were holding proper ATA reinitialization and error
recovery implementation. Now it is done: SATA controllers and Port
Multipliers now implement automatic hot-plug and should correctly
recover from timeouts and bus resets.
- Improve SCSI error recovery for devices on buses without automatic sense
reporting, such as ATAPI or USB. For example, it allows CAM to wait, while
CD drive loads disk, instead of immediately return error status.
- Decapitalize diagnostic messages and make them more readable and sensible.
- Teach PMP driver to limit maximum speed on fan-out ports.
- Make boot wait for PMP scan completes, and make rescan more reliable.
- Fix pass driver, to return CCB to user level in case of error.
- Increase number of retries in cd driver, as device may return several UAs.

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

14 years agoMFC r203030:
mav [Sun, 14 Feb 2010 19:28:45 +0000 (19:28 +0000)]
MFC r203030:
Add support for SATA part of Marvell 88SE912x controllers to ahci(4).
Limit early revisions from 6Gb/s to 3Gb/s by default, or they negotiate
only 1.5Gb/s, when 3Gb/s devices connected.

Add dummy driver for PATA part of these controllers, preventing generic
driver attach them. It causes system freeze when SATA controller used after
PATA was touched.

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

14 years agoMFC r202699:
mav [Sun, 14 Feb 2010 19:23:05 +0000 (19:23 +0000)]
MFC r202699:
Make ata_getrev() an optional method by implementing ata_null_getrev().
This fixes a bogus '???' boot message on Cambria boards with a CompactFlash
card.

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

14 years agoMFp4:
mav [Sun, 14 Feb 2010 12:24:12 +0000 (12:24 +0000)]
MFp4:
After last running command completed, give commands in timeout state
second time.

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

14 years agoMFC r203524:
mav [Sun, 14 Feb 2010 12:04:25 +0000 (12:04 +0000)]
MFC r203524:
When hacking INQUIRY result, make sure that it is right INQUIRY and there
is enough of result to hack.

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

14 years agoMFC r203489:
mav [Sun, 14 Feb 2010 12:03:04 +0000 (12:03 +0000)]
MFC r203489:
Return CAM_RELEASE_SIMQ flag only when it is needed, when SIM really
was frozen before and should be released.

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

14 years agoMFC r203484:
mav [Sun, 14 Feb 2010 12:00:23 +0000 (12:00 +0000)]
MFC r203484:
Do not release device, when changing number of openings.

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

14 years agoMFC r202150, r202170:
mav [Sun, 14 Feb 2010 11:53:51 +0000 (11:53 +0000)]
MFC r202150, r202170:
Make OSS_GETVERSION ioctl really work. It has 'M' group, not 'P',
as different nearby ones, and was grabbed by MIXER_xxx() handler.

While there, replace '(cmd & MIXER_xxx(0)) == MIXER_xxx(0)' expressions
with more correct '(cmd & ~0xff) == MIXER_xxx(0)'. Use of bit operations
to compare numeric fields doesn't looks sane.

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

14 years agoMerge r203310,203547,203717 from head:
gavin [Sun, 14 Feb 2010 09:48:53 +0000 (09:48 +0000)]
Merge r203310,203547,203717 from head:

  Implement the "-i" option to sysctl(8), to ignore failures while
  retrieving individual OIDs.  This allows the same list of OIDs to be
  passed to sysctl(8) across different systems where particular OIDs may
  not exist, and still get as much information as possible from them.

PR: bin/123644
Submitted by: dhw

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

14 years agoMerge r203620,203621 from head:
gavin [Sun, 14 Feb 2010 09:40:58 +0000 (09:40 +0000)]
Merge r203620,203621 from head:

  Document support for the D-Link DFE520-TX card (supported with the vr(4)
  driver)

PR: kern/135989
Submitted by: "Rashid N. Achilov"  citycat4 ngs.ru

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

14 years agoMerge r203636 from head:
gavin [Sun, 14 Feb 2010 09:37:13 +0000 (09:37 +0000)]
Merge r203636 from head:

  Correct arguments to free_unr(), "item" was missing.

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

14 years agoMerge r200530 from head:
gavin [Sun, 14 Feb 2010 09:34:27 +0000 (09:34 +0000)]
Merge r200530 from head:

  Don't panic on failure to attach if we fail before or during the
  if_alloc() of ifp.

  This fixes the panic reported in the PRs, but not the attach failure.

PR: kern/139079, kern/143874
Tested by: Steven Noonan <steven uplinklabs.net>
Reviewed by: thompsa

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

14 years agoMFC: r203303
rmacklem [Sun, 14 Feb 2010 00:43:42 +0000 (00:43 +0000)]
MFC: r203303
Patch the experimental NFS client so that there is a timeout
for negative name cache entries in a manner analogous to
r202767 for the regular NFS client. Also, make the code in
nfs_lookup() compatible with that of the regular client
and replace the sysctl variable that enabled negative name
caching with the mount point option.

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

14 years agoMerge r201920 to stable/8:
antoine [Sat, 13 Feb 2010 17:48:52 +0000 (17:48 +0000)]
Merge r201920 to stable/8:
 libusb20 was renamed libusb several months ago.

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