]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
12 years agoMFC r223334:
bz [Fri, 10 Feb 2012 06:12:48 +0000 (06:12 +0000)]
MFC r223334:

 Leave an extra comment about flowtable and IPv6 support rectifying a
 previous comment (r206024 in stable/8) to not forget things here in the
 future as well and merge the changes without conflicts.

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

12 years agoMFC r223259:
bz [Fri, 10 Feb 2012 06:06:25 +0000 (06:06 +0000)]
MFC r223259:

 Correct a typo in the function name.

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

12 years agoMFC r224202:
bz [Fri, 10 Feb 2012 06:02:21 +0000 (06:02 +0000)]
MFC r224202:

 Constantly print the command name and if set include the thread
 name in per-thread mode.

 Discussed with: jhb
 Obtained from:  Ed Maste at Sandvine Incorporated
 Sponsored by:   Sandvine Incorporated

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

12 years agoMFC r231111, r231331:
eadler [Fri, 10 Feb 2012 04:10:13 +0000 (04:10 +0000)]
MFC r231111, r231331:
 ports(7) currently makes no mention of LOCALBASE: fix that

PR: 159551
Approved by: gjb

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

12 years agoMFC: r230605
rmacklem [Fri, 10 Feb 2012 04:01:17 +0000 (04:01 +0000)]
MFC: r230605
A problem with respect to data read through the buffer cache for both
NFS clients was reported to freebsd-fs@ under the subject "NFS
corruption in recent HEAD" on Nov. 26, 2011. This problem occurred when
a TCP mounted root fs was changed to using UDP. I believe that this
problem was caused by the change in mnt_stat.f_iosize that occurred
because rsize was decreased to the maximum supported by UDP. This
patch fixes the problem by using v_bufobj.bo_bsize instead of f_iosize,
since the latter is set to f_iosize when the vnode is allocated, but
does not change for a given vnode when f_iosize changes.

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

12 years agoMFC r230510:
bz [Fri, 10 Feb 2012 00:51:32 +0000 (00:51 +0000)]
MFC r230510:

 Replace random ARIN direct assignment legacy IPs with proper RFC 5735
 TEST-NET1 block for use in documentation and example code addresses.

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

12 years agoMFC r230506:
bz [Fri, 10 Feb 2012 00:24:41 +0000 (00:24 +0000)]
MFC r230506:

 Plug a possible ifa_ref leak in case of premature return from in6_purgeaddr().

 Reviewed by: rwatson

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

12 years agoMFC r228344:
eadler [Fri, 10 Feb 2012 00:09:21 +0000 (00:09 +0000)]
MFC r228344:
 - Add support for Support SEAGATE DAT Scopion 130

PR: kern/141934
Approved by: cperciva

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

12 years agoMFC r230494:
bz [Fri, 10 Feb 2012 00:01:50 +0000 (00:01 +0000)]
MFC r230494:

 Remove unnecessary line break.

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

12 years agoMFC r230387:
bz [Thu, 9 Feb 2012 22:54:07 +0000 (22:54 +0000)]
MFC r230387:

 Remove a superfluous INET6 check (no opt_inet6.h included anyway).

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

12 years agoMFC r229546:
bz [Thu, 9 Feb 2012 21:33:36 +0000 (21:33 +0000)]
MFC r229546:

 Convert an #ifdef DIAGNOSTIC if/panic to a KASSERT.

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

12 years agoMFC r229795:
bz [Thu, 9 Feb 2012 20:57:36 +0000 (20:57 +0000)]
MFC r229795:

 Correct comment for the IPv6 case to say "traffic class" not "TOS"
 as pointed out back in 2009.

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

12 years agoMFC r229276:
bz [Thu, 9 Feb 2012 20:54:14 +0000 (20:54 +0000)]
MFC r229276:

 Remove an uneeded inpcb forward declaration and align the function
 declaration following to match the style in the rest of the file.

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

12 years agoMFH r226119: Mention tdsignal(9)
bapt [Thu, 9 Feb 2012 16:57:34 +0000 (16:57 +0000)]
MFH r226119: Mention tdsignal(9)

Approved by: des (mentor)

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

12 years agoMFH r226166: Document some not-so-recently added trace points
bapt [Thu, 9 Feb 2012 16:55:50 +0000 (16:55 +0000)]
MFH r226166: Document some not-so-recently added trace points

Approved by: des (mentor)

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

12 years agoMFH r226506: Look for /boot/config in addition to /boot.config
bapt [Thu, 9 Feb 2012 16:54:06 +0000 (16:54 +0000)]
MFH r226506: Look for /boot/config in addition to /boot.config

Approved by: des (mentor)

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

12 years agoMFC r229127:
bz [Thu, 9 Feb 2012 16:12:12 +0000 (16:12 +0000)]
MFC r229127:

 Remove a declaration to a non-existent function.

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

12 years agoMFH r226345, r226464, r226879:
bapt [Thu, 9 Feb 2012 14:16:40 +0000 (14:16 +0000)]
MFH r226345, r226464, r226879:
Make dhclient use a pid file. Modify the rc script accordingly, fix some bugs

Approved by: des (mentor)

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

12 years agoMFH r227531: Add netcat (nc) to /rescue.
bapt [Thu, 9 Feb 2012 13:23:44 +0000 (13:23 +0000)]
MFH r227531: Add netcat (nc) to /rescue.

Approved by: des (mentor)

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

12 years agoMFH r226504: Make ktrace(1) build cleanly at WARNS level 6
bapt [Thu, 9 Feb 2012 09:24:52 +0000 (09:24 +0000)]
MFH r226504: Make ktrace(1) build cleanly at WARNS level 6

Approved by: des (mentor)

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

12 years agoMFC r224011:
bz [Thu, 9 Feb 2012 09:23:37 +0000 (09:23 +0000)]
MFC r224011:

 Fix indentation.

 Obtained from: Ed Maste at Sandvine Incorporated
 Sponsored by: Sandvine Incorporated

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

12 years agoMFH r226502,r226503: factor out the common code and fix two display bugs
bapt [Thu, 9 Feb 2012 09:20:50 +0000 (09:20 +0000)]
MFH r226502,r226503: factor out the common code and fix two display bugs

Approved by: des (mentor)

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

12 years agoMFC r223739:
bz [Thu, 9 Feb 2012 08:41:56 +0000 (08:41 +0000)]
MFC r223739:

 Remove extra white space to comply with style for the rest of the struct.

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

12 years agoMFC r223667:
bz [Thu, 9 Feb 2012 07:52:45 +0000 (07:52 +0000)]
MFC r223667:

 In case ntp cannot resolve a hostname on startup it will queue the entry
 for resolving by a child process that, upon success, will add the entry
 to the config of the running running parent process.

 Unfortunately there are a couple of bugs with this, fixed in various
 later versions of upstream in potentially different ways due to other
 code changes:

 1) Upon server [-46] <FQDN> the [-46] are used as FQDN for later resolving
    which does not work.  Make sure we always pass the name (or IP there).

 2) The intermediate file to carry the information to the child process
    does not know about -4/-6 restrictions, so that a dual-stacked host
    could resolve to an IPv6 address but that might be unreachable (see
    r223626) leading to no working synchronization ignoring a IPv4 record.
    Thus alter the intermediate format to also pass the address family
    (AF_UNSPEC (default), AF_INET or AF_INET6) to the child process
    depending on -4 or -6.

 3) Make the child process to parse the new intermediate file format and
    save the address family for getaddrinfo() hints flags.

 4) Change child to always reload resolv.conf calling res_init() before
    trying to resolve names.  This will pick up resolv.conf changes or
    new resolv.confs should they have not existed or been empty or
    unusable on ntp startup.  This fix is more conditional in upstream
    versions but given FreeBSD has res_init there is no need for the
    configure logic as well.

 Approved by: roberto
 Sponsored by: Sandvine Incorporated

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

12 years agoMFC r230921:
mav [Thu, 9 Feb 2012 07:45:02 +0000 (07:45 +0000)]
MFC r230921:
Insert ordered command every 1/4 of the current command timeout, not 1/4
of the default one.

Without this change setting kern.cam.ada.default_timeout to 1 instead of 30
allowed me to trigger several false positive command timeouts under heavy
ZFS load on a SiI3132 siis(4) controller with 5 HDDs on a port multiplier.

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

12 years agoMFC r230912:
mav [Thu, 9 Feb 2012 07:40:13 +0000 (07:40 +0000)]
MFC r230912:
Make CAM ATA honor old hw.ata.ata_dma and hw.ata.atapi_dma tunables.

Even having more specific hint.ata.X.mode controls, global ones are
still could be useful from some points, including compatibility.

PR:             kern/164651

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

12 years agoMRC r223626:
bz [Thu, 9 Feb 2012 07:27:59 +0000 (07:27 +0000)]
MRC r223626:

 Compare port numbers correctly.  They are stored by SRCPORT()
 in host byte order, so we need to compare them as such.
 Properly compare IPv6 addresses as well.

 This allows the, by default, 8 badaddrs slots per address
 family to work correctly and only print sendto() errors once.

 The change is no longer applicable to any latest upstream versions.

 Approved by: roberto
 Sponsored by: Sandvine Incorporated

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

12 years agoMFH r230307: fix SIGINFO-related data corruption bug
bapt [Thu, 9 Feb 2012 06:50:43 +0000 (06:50 +0000)]
MFH r230307: fix SIGINFO-related data corruption bug

Approved by: des (mentor)

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

12 years agoMerge from head to stable/8:
scf [Thu, 9 Feb 2012 01:18:23 +0000 (01:18 +0000)]
Merge from head to stable/8:

r230656:
msdos was renamed to msdosfs in 2001 by r77577.

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

12 years agoGiven that sun4u uses sparc64/sparc64/ofw_machdep.c, use the sparc64
marius [Wed, 8 Feb 2012 23:57:03 +0000 (23:57 +0000)]
Given that sun4u uses sparc64/sparc64/ofw_machdep.c, use the sparc64
<machine/ofw_machdep.h> here also. This isn't exactly a clean approach
though as ofw_machdep.h also includes some prototypes for functions
that aren't actually shared between both architectures but just happen
to have the same interface. Given that the sun4v support actually is
dead and this is just to allow things to continue to compile it should
be okay though.

This is a direct commit to stable/8.

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

12 years agoMerge from r230889:
marius [Wed, 8 Feb 2012 23:47:22 +0000 (23:47 +0000)]
Merge from r230889:

Mark cpu_{halt,reset}() and hv_mach_{exit,sir}() as __dead2 as appropriate.

This is a direct commit to stable/8.

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

12 years agoMerge from head to stable/8:
scf [Wed, 8 Feb 2012 23:13:21 +0000 (23:13 +0000)]
Merge from head to stable/8:

r230655:
Since April 2, 2006, Indiana has observed DST.

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

12 years agoMFC r227285:
hselasky [Wed, 8 Feb 2012 22:29:41 +0000 (22:29 +0000)]
MFC r227285:
Add support for new USB modem protocol.

PR: usb/159919

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

12 years agoMFC r229317:
hselasky [Wed, 8 Feb 2012 22:27:07 +0000 (22:27 +0000)]
MFC r229317:
Fix support for suspend and resume.

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

12 years agoMFC r223359:
bz [Wed, 8 Feb 2012 19:31:32 +0000 (19:31 +0000)]
MFC r223359:

 Garbage collect never used global, sysctl, externs.

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

12 years agoMFC r228641:
bz [Wed, 8 Feb 2012 18:51:20 +0000 (18:51 +0000)]
MFC r228641:

 Allow toggling of IFCAP_VLAN_HWCSUM for hardware that supports checksum
 offloading on vlans and document the new option.

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

12 years agoRemove sun4v from universe targets.
bz [Wed, 8 Feb 2012 18:21:48 +0000 (18:21 +0000)]
Remove sun4v from universe targets.

Approved by: re

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

12 years agoMFC r222845:
bz [Wed, 8 Feb 2012 17:54:02 +0000 (17:54 +0000)]
MFC r222845:

 Correct comments and debug logging in ipsec to better match reality.

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

12 years agoMFC r225428:
bz [Wed, 8 Feb 2012 17:03:12 +0000 (17:03 +0000)]
MFC r225428:

 Shorten a variable access some using a cached value rather than
 casting the input argument again, making the code more readable.

 Reviewed by: jhb

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

12 years agoMFC r225036:
bz [Wed, 8 Feb 2012 16:44:54 +0000 (16:44 +0000)]
MFC r225036:

 Hide IPv6 next header parsing warnings under the verbose sysctl
 so people can possibly disable it when their consoles are flooded,
 or enabled it for debugging.

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

12 years agoMFC r225033:
bz [Wed, 8 Feb 2012 16:24:56 +0000 (16:24 +0000)]
MFC r225033:

 If we detect an IPv6 fragment header and it is not the first fragment,
 then terminate the loop as we will not find any further headers and
 for short fragments this could otherwise lead to a pullup error
 discarding the fragment.

 Submitted by: Matthew Luckie (mjl luckie.org.nz)
PR: kern/145733

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

12 years agoMFC r225032,225034:
bz [Wed, 8 Feb 2012 16:03:05 +0000 (16:03 +0000)]
MFC r225032,225034:

 ipfw internally checks for offset == 0 to determine whether the
 packet is a/the first fragment or not.  For IPv6 we have added the
 "more fragments" flag as well to be able to determine on whether
 there will be more as we do not have the fragment header avaialble
 for logging, while for IPv4 this information can be derived directly
 from the IPv4 header.  This allowed fragmented packets to bypass
 normal rules as proper masking was not done when checking offset.
 Split variables to not need masking for IPv6 to avoid further errors.

 After r225032 fix logging in a similar way masking the the IPv6
 more fragments flag off so that offset == 0 checks work properly.

 Submitted by: Matthew Luckie (mjl luckie.org.nz)
PR: kern/145733

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

12 years agoMFC r225030:
bz [Wed, 8 Feb 2012 15:37:34 +0000 (15:37 +0000)]
MFC r225030:

 While not explicitly allowed by RFC 2460, in case there is no
 translation technology involved (and that section is suggested to
 be removed by Errata 2843), single packet fragments do not harm.

 There is another errata and further drafts under discussion to clarify
 on these kinds of packets.
 Meanwhile add a sysctl to allow disabling this behaviour again.
 We will treat single packet fragment (a fragment header added
 when not needed) as if there was no fragment header.

 Submitted by: Matthew Luckie (mjl luckie.org.nz) (original version)
PR: kern/145733

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

12 years agoMFC r230553:
kib [Wed, 8 Feb 2012 15:19:49 +0000 (15:19 +0000)]
MFC r230553:
When doing vflush(WRITECLOSE), clean vnode pages.

Unmounts do vfs_msync() before calling VFS_UNMOUNT(), but there is
still a race allowing a process to dirty pages after msync
finished. Remounts rw->ro just left dirty pages in system.

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

12 years agoMFC 230877:
mav [Wed, 8 Feb 2012 07:31:55 +0000 (07:31 +0000)]
MFC 230877:
Fix NULL dereference panic on attempt to turn off (on system shutdown)
disconnected swap device.

This is quick and imperfect solution, as swap device will still be opened
and GEOM will not be able to destroy it. Proper solution would be to
automatically turn off and close disconnected swap device, but with existing
code it will cause panic if there is at least one page on device, even if
it is unimportant page of the user-level process. It needs some work.

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

12 years agoMFC r231177:
marcel [Wed, 8 Feb 2012 04:47:06 +0000 (04:47 +0000)]
MFC r231177:
Rev. 228360 moved the call to cpu_set_upcall() to happen before
td_proc gets initialized in td (=newtd). Use td0 instead.

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

12 years agoMFC r225643,225644:
delphij [Tue, 7 Feb 2012 22:31:16 +0000 (22:31 +0000)]
MFC r225643,225644:

Change the example of using smbfs in fstab to a password-less one,
which is less likely to block a remote system from boot.

Submitted by: Garrett Cooper <yanegomi@gmail.com>
PR: doc/160775

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

12 years agoMFC 229465: Use correct locking when traversing interface address list.
jhb [Tue, 7 Feb 2012 22:13:54 +0000 (22:13 +0000)]
MFC 229465: Use correct locking when traversing interface address list.

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

12 years agoMFC r226274,r226416:
delphij [Tue, 7 Feb 2012 22:13:33 +0000 (22:13 +0000)]
MFC r226274,r226416:

Fix the error message when setgid() failed.

PR: bin/161509
Submitted by: Jeremy Huddleston <jeremyhu apple com>

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

12 years agoMFC r227454:
delphij [Tue, 7 Feb 2012 21:56:58 +0000 (21:56 +0000)]
MFC r227454:

Use __packed to prevent alignment from taking place, which otherwise may
change the on-disk format in an incompatible way. Without this change,
msdosfs created on FreeBSD/arm would not be mountable.

PR: bin/162486
Submitted by: Ian Lepore <freebsd damnhippie dyndns org>
Reported by: Mattia Rossi <mrossi at swin.edu.au>

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

12 years agoMFC 229614:
jhb [Tue, 7 Feb 2012 19:56:22 +0000 (19:56 +0000)]
MFC 229614:
Add new variants of the IF_ADDR_*LOCK*() macros used for protecting
interface address lists that distinguish read locks from write locks.
To preserve the KPI, the previous operations are mapped to the write
lock macros.  The lock is still kept as a mutex for now.

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

12 years agoHoist mergeinfo for modules/sound/driver/* up to sys/.
jhb [Tue, 7 Feb 2012 19:45:15 +0000 (19:45 +0000)]
Hoist mergeinfo for modules/sound/driver/* up to sys/.

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

12 years agoMFC 229598:
jhb [Tue, 7 Feb 2012 19:41:21 +0000 (19:41 +0000)]
MFC 229598:
Remove use of explicit bus space tags and handles and use methods that
operate on resource objects instead.

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

12 years agoMFC 228962:
jhb [Tue, 7 Feb 2012 19:23:31 +0000 (19:23 +0000)]
MFC 228962:
Use curthread rather than PCPU_GET(curthread).  'curthread' uses
special-case optimizations on several platforms and is preferred.

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

12 years agoRegen.
jhb [Tue, 7 Feb 2012 19:13:47 +0000 (19:13 +0000)]
Regen.

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

12 years agoMFC 228957:
jhb [Tue, 7 Feb 2012 19:12:21 +0000 (19:12 +0000)]
MFC 228957:
Implement linux_fadvise64() and linux_fadvise64_64() using
kern_posix_fadvise().

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

12 years agoMFC r230514:
mm [Tue, 7 Feb 2012 17:57:59 +0000 (17:57 +0000)]
MFC r230514:
Merge illumos revisions 13572, 13573, 13574:

Rev. 13572:
disk sync write perf regression when slog is used post oi_148 [1]

Rev. 13573:
crash during reguid causes stale config [2]
allow and unallow missing from zpool history since removal of pyzfs [5]

Rev. 13574:
leaking a vdev when removing an l2cache device [3]
memory leak when adding a file-based l2arc device [4]
leak in ZFS from metaslab_group_create and zfs_ereport_checksum [6]

References:
https://www.illumos.org/issues/1909 [1]
https://www.illumos.org/issues/1949 [2]
https://www.illumos.org/issues/1951 [3]
https://www.illumos.org/issues/1952 [4]
https://www.illumos.org/issues/1953 [5]
https://www.illumos.org/issues/1954 [6]

Obtained from: illumos (issues #1909, #1949, #1951, #1952, #1953, #1954)

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

12 years agoMFC r230495:
mm [Tue, 7 Feb 2012 17:47:04 +0000 (17:47 +0000)]
MFC r230495:
Try resolving jail path with realpath(3).

jail(8) does a chdir(2) to the given path argument. Kernel evaluates the
jail path from the new cwd and not from the original cwd, which leads to
undesired behavior if given a relative path.

Reviewed by: jamie

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

12 years agoMFC r226441 and r226443
cognet [Tue, 7 Feb 2012 15:50:14 +0000 (15:50 +0000)]
MFC r226441 and r226443
r226441:
Explicitely set ARM_RAS_START and ARM_RAS_END once the cacheline or the
page has been allocated, or we could end up using random values, and bad things
 could happen.

 PR: arm/161492
 Submitted by: Ian Lepore <freebsd AT damnhippie dot dyndns DOT org>

r226443:
Fix 2 bugs :

- A race condition could happen if two threads were using RAS at the same time
  as the code didn't reset RAS_END, the RAS code could believe we were not in
  a RAS, when we were in fact.
- Using signed value logic to compare addresses wasn't such a good idea.
  Many thanks to Ian to investigate on these issues.

  Pointy hat to:  cognet
  PR: arm/161498
  Submitted by: Ian Lepore <freebsd At damnhippie DOT dyndns dot org

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

12 years agoMFC r230978:
kib [Tue, 7 Feb 2012 09:40:22 +0000 (09:40 +0000)]
MFC r230978:
Be as explicit as possible when describing relation between the -m mask
argument and slices. Adjust example for the same reason.

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

12 years agoMFC r222974:
np [Tue, 7 Feb 2012 07:56:00 +0000 (07:56 +0000)]
MFC r222974:
Add "context" subcommand to fetch and display SGE context.

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

12 years agoMFC r227893 and r228119:
emaste [Tue, 7 Feb 2012 04:06:21 +0000 (04:06 +0000)]
MFC r227893 and r228119:

  Avoid double free creating a new RAID with invalid command line
  arguments.

  In build_volume(), check if arrays is allocated before traversing its
  items.  While parsing the arrays input, it's possible that we reach the
  error path before initializing the 'arrays' pointer, which in turn leads
  to a NULL deference.

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

12 years agoMFC r226697 and r226708:
emaste [Tue, 7 Feb 2012 03:37:29 +0000 (03:37 +0000)]
MFC r226697 and r226708:

  Avoid printing // for packages that install to /

  I have some packages that install to / (for whatever reason).  Right now we
  print entries of the form //path/to/file when listing files (pkg_info -L,
  pkg_info -g etc.)  This change avoids printing the redundant / .

  Staticify elide_root() for now to fix build.

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

12 years agoMFC r219708:
emaste [Tue, 7 Feb 2012 03:15:12 +0000 (03:15 +0000)]
MFC r219708:

  Reemove uptime validity check that hasn't been necessary since r151417
  switched to clock_gettime.  vmstat will now not exit with an error
  if run on a system with 10 years of uptime.

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

12 years agoMFC r228825:
np [Tue, 7 Feb 2012 02:21:46 +0000 (02:21 +0000)]
MFC r228825:
Fix return value of function.

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

12 years agoMFC r228491, r228561, r228594.
np [Tue, 7 Feb 2012 01:26:29 +0000 (01:26 +0000)]
MFC r228491, r228561, r228594.

r228491:
Do not clobber the ingress queue's congestion setting.

r228561:
Many updates to cxgbe(4)

- Device configuration via plain text config file.  Also able to operate
  when not attached to the chip as the master driver.

- Generic "work request" queue that serves as the base for both ctrl and
  ofld tx queues.

- Generic interrupt handler routine that can process any event on any
  kind of ingress queue (via a dispatch table).

- A couple of new driver ioctls.  cxgbetool can now install a firmware
  to the card ("loadfw" command) and can read the card's memory
  ("memdump" and "tcb" commands).

- Lots of assorted information within dev.t4nex.X.misc.*  This is
  primarily for debugging and won't show up in sysctl -a.

- Code to manage the L2 tables on the chip.

- Updates to cxgbe(4) man page to go with the tunables that have changed.

- Updates to the shared code in common/

- Updates to the driver-firmware interface (now at fw 1.4.16.0)

r228594:
Catch up with new driver ioctls in cxgbe.

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

12 years agoMFC r222900 and r224768
np [Mon, 6 Feb 2012 21:23:12 +0000 (21:23 +0000)]
MFC r222900 and r224768

r222900:
cxgbetool: a tool for the cxgbe(4) driver.

r224768:
Move cxgbtool from usr.sbin to tools/tools.

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

12 years agoMFC r229714
np [Mon, 6 Feb 2012 18:47:07 +0000 (18:47 +0000)]
MFC r229714

Always release the inp lock before returning from tcp_detach.

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

12 years agoMFC r229692:
jh [Mon, 6 Feb 2012 17:28:55 +0000 (17:28 +0000)]
MFC r229692:

Check the return value of sbuf_finish() in pfs_readlink() and return
ENAMETOOLONG if the buffer overflowed.

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

12 years agoMFC r230212:
dumbbell [Mon, 6 Feb 2012 13:36:49 +0000 (13:36 +0000)]
MFC r230212:
sh: Fix execution of multiple statements in a trap when evalskip is set

Before this fix, only the first statement of the trap was executed if
evalskip was set. This is for example the case when:
    o  "-e" is set for this shell
    o  a trap is set on EXIT
    o  a function returns 1 and causes the script to abort

Reviewed by: jilles
Sponsored by: Yakaz (http://www.yakaz.com)

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

12 years agoMFC: r230787
brueffer [Mon, 6 Feb 2012 13:26:12 +0000 (13:26 +0000)]
MFC: r230787

Manpages for the buf_ring and drbr interfaces.

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

12 years agoMFC r230211:
dumbbell [Mon, 6 Feb 2012 13:17:57 +0000 (13:17 +0000)]
MFC r230211:
sh: Test EXIT trap with multiple statements in it

Reviewed by: jilles

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

12 years agoMFC r230785:
kib [Mon, 6 Feb 2012 10:35:21 +0000 (10:35 +0000)]
MFC r230785:
A debugger which requested PT_FOLLOW_FORK should get the notification
about new child not only when doing PT_TO_SCX, but also for PT_CONTINUE.
If TDB_FORK flag is set, always issue a stop, the same as is done for
TDB_EXEC.

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

12 years agoMFC: r230897
pfg [Sun, 5 Feb 2012 20:18:53 +0000 (20:18 +0000)]
MFC: r230897

Use new OSS-based BSD-licensed header for cs sound driver.

The cs driver requires a table with firmware values. An
alternative firmware is available in a similar Open Sound
System driver. This is actually a partial revert of
Revision 77504.

The csa driver is now free of the GPL.

Tested by: joel
Approved by: jhb (mentor)

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

12 years agoMFC r230325
sbruno [Sun, 5 Feb 2012 19:38:22 +0000 (19:38 +0000)]
MFC r230325

Wrap changes from svn r212126 inside LOADER_NFS_SUPPORT

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

12 years agoMFC r230313, r230316, r230323, r230588
sbruno [Sun, 5 Feb 2012 19:10:48 +0000 (19:10 +0000)]
MFC r230313, r230316, r230323, r230588

Support new raid controllers

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

12 years agoMFC r229699, r229744, r229778, r229944, r229945, r229946, r230092, r230395,
trociny [Sun, 5 Feb 2012 15:54:32 +0000 (15:54 +0000)]
MFC r229699, r229744, r229778, r229944, r229945, r229946, r230092, r230395,
  r230396, r230436, r230457, r230515, r230976:

r229699 (pjd):

Constify argument.

r229744 (pjd):

fork(2) returns -1 on failure, not some random negative number.

r229778 (uqs):

Spelling fixes for sbin/

r229944 (pjd):

Don't touch pidfiles when running in foreground. Before that change we
would create an empty pidfile on start and check if it changed on SIGHUP.

r229945 (pjd):

For functions that return -1 on failure check exactly for -1 and not for
any negative number.

r229946 (pjd):

- Fix a bug where pidfile was removed in SIGHUP when it hasn't changed in
  configuration file.
- Log the fact that pidfile has changed.

r230092 (pjd):

Style cleanups.

r230395 (pjd):

Remove unused token 'port'.

r230396 (pjd):

Remove another unused token.

r230436 (pjd):

Fix minor memory leak.

r230457 (pjd):

Free memory that won't be used in child.

r230515 (pjd):

- Fix documentation to note that /etc/hast.conf is the default configuration
  file for hastd(8) and hastctl(8) and not hast.conf.
- In copyright statement correct that this file is documentation, not software.
- Bump date.

r230976 (pjd):

Fix typo in comment.

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

12 years agoMFC r230611:
mav [Sat, 4 Feb 2012 15:43:16 +0000 (15:43 +0000)]
MFC r230611:
Return proper error message if recording device is not specified.

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

12 years agoMFC: r228740
pfg [Fri, 3 Feb 2012 23:35:39 +0000 (23:35 +0000)]
MFC: r228740

Many style fixes.
Remove C99 initializers: they don't help in this case.
Set errno to 0 before strtoll() (from NetBSD).

PR: 151850
Suggested by: bde
Approved by: jhb (Mentor)

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

12 years agoMFC r229753:
dim [Fri, 3 Feb 2012 23:08:58 +0000 (23:08 +0000)]
MFC r229753:

In sys/contrib/rdma/ib_addr.h, bump MAX_ADDR_LEN to 20 bytes (the same
value used in sys/ofed/include/linux/netdevice.h), so there will be no
buffer overruns in the rest of the inline functions in this file.

Reviewed by: kmacy

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

12 years agoMFC: r229981, r230898
pfg [Fri, 3 Feb 2012 23:00:28 +0000 (23:00 +0000)]
MFC:  r229981, r230898

Replace a GPL'd header in the emu10kx snd driver code.

This uses the emuxkireg.h already used in the emu10k1
snd driver. Special thanks go to Alexander Motin as
he was able to find some errors and reverse engineer
some wrong values in the emuxkireg header.

While here also merge some cleanups to the module Makefile.

PR: 153901
Obtained from: NetBSD
Approved by: core (mentor implicit)

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

12 years agoMFC: r229430, r229980
pfg [Fri, 3 Feb 2012 22:13:36 +0000 (22:13 +0000)]
MFC:  r229430, r229980

Replace a GPL'd header in the emu10k1 snd driver code.

This brings in the emuxkireg.h from NetBSD (dev/pci) which
is used for the same purpose but is smaller. The emu10k1
is now free from the GPL.

While here also merge some cleanups to the module Makefile.

PR: 153901
Obtained from: NetBSD
Approved by: core (mentor implicit)

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

12 years agoMFC: r228780
pfg [Fri, 3 Feb 2012 21:30:31 +0000 (21:30 +0000)]
MFC: r228780

Update libstdc++ with small changes up to the latest rev. (135556)
from the gcc 4.2 branch.
The libraries in the gcc-4_2-branch remained under the LGPLv2.

Reviewed by: mm
Approved by: jhb (mentor)

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

12 years agoMFC: r228756
pfg [Fri, 3 Feb 2012 21:26:25 +0000 (21:26 +0000)]
MFC: r228756

Clean an inconsistency with -ffinite-math-only.
Backported from the gcc-4_3-branch, revision (118001)
under the GPLv2.
This issue was also fixed in Apple's gcc.

PR: 157025
Reviewed by: mm
Approved by: jhb (mentor)

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

12 years agoMFC did not get the new files...
jfv [Fri, 3 Feb 2012 05:00:43 +0000 (05:00 +0000)]
MFC did not get the new files...

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

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

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

12 years agoMFC of the latest ixgbe driver.
jfv [Fri, 3 Feb 2012 01:36:02 +0000 (01:36 +0000)]
MFC of the latest ixgbe driver.

Revisions included:
209602,209603,209607,209609,209622,215911,
215913,215914,215924,217129,217556,222588,
222592,225405,229767,230329,230775,230790

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

12 years agoMFC 230592:
ken [Thu, 2 Feb 2012 19:03:29 +0000 (19:03 +0000)]
MFC 230592:

Bring in the LSI-supported version of the mps(4) driver.

This involves significant changes to the mps(4) driver, but is not a
complete rewrite.

Some of the changes in this version of the driver:
 - Integrated RAID (IR) support.
 - Support for WarpDrive controllers.
 - Support for SCSI protection information (EEDP).
 - Support for TLR (Transport Level Retries), needed for tape drives.
 - Improved error recovery code.
 - ioctl interface compatible with LSI utilities.

mps.4: Update the mps(4) driver man page somewhat for the driver
changes.  The list of supported hardware still needs to be
updated to reflect the full list of supported cards.

conf/files: Add the new driver files.

mps/mpi/*: Updated version of the MPI header files, with a BSD style
copyright.

mps/*: See above for a description of the new driver features.

modules/mps/Makefile:
Add the new mps(4) driver files.

Submitted by: Kashyap Desai <Kashyap.Desai@lsi.com>
Sponsored by: LSI, Spectra Logic
Reviewed by: ken

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

12 years agoMFC r230783:
kib [Thu, 2 Feb 2012 06:39:33 +0000 (06:39 +0000)]
MFC r230783:
Add definition for PT_GNU_RELRO.

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

12 years agoMFC: r230664
marius [Wed, 1 Feb 2012 21:28:16 +0000 (21:28 +0000)]
MFC: r230664

As it turns out r227960 (MFC'ed to stable/8 in r228145) may still be
insufficient with PREEMPTION so try harder to get the CDMA sync
interrupt delivered and also in a more efficient way:
- wrap the whole process of sending and receiving the CDMA sync
  interrupt in a critical section so we don't get preempted,
- send the CDMA sync interrupt to the CPU that is actually waiting
  for it to happen so we don't take a detour via another CPU,
- instead of waiting for up to 15 seconds for the interrupt to
  trigger try the whole process for up to 15 times using a one
  second timeout (the code was also changed to just ignore belated
  interrupts of a previous tries should they appear).

According to testing done by Peter Jeremy with the debugging also
added as part of this commit the first two changes apparently are
sufficient to now properly get the CDMA sync interrupts delivered
at the first try though.

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

12 years agoMFC: r230662
marius [Wed, 1 Feb 2012 21:24:06 +0000 (21:24 +0000)]
MFC: r230662

Fully disable interrupts while we fiddle with the FP context in the
VIS-based block copy/zero implementations. While with 4BSD it's
sufficient to just disable the tick interrupts, with ULE+PREEMPTION
it's otherwise also possible that these are preempted via IPIs.

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

12 years agoMFC: r230633, r230634
marius [Wed, 1 Feb 2012 21:19:54 +0000 (21:19 +0000)]
MFC: r230633, r230634

Now that we have a working OF_printf() since r230631 and a OF_panic()
helper since r230632 (MFC'ed to stable/8 in r230885 and r230887
respectively), use these for output and panicing during the early
cycles and move cninit() until after the static per-CPU data has
been set up. This solves a couple of issue regarding the non-
availability of the static per-CPU data:
- panic() not working and only making things worse when called,
- having to supply a special DELAY() implementation to the low-level
  console drivers,
- curthread accesses of mutex(9) usage in low-level console drivers
  that aren't conditional due to compiler optimizations (basically,
  this is the problem described in r227537 but in this case for
  keyboards attached via uart(4)). [1]

PR: 164123 [1]

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

12 years agoMFC: r230628
marius [Wed, 1 Feb 2012 21:15:27 +0000 (21:15 +0000)]
MFC: r230628

Mark cpu_{halt,reset}() as __dead2 as appropriate.

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

12 years agoMFC: r230632
marius [Wed, 1 Feb 2012 21:14:07 +0000 (21:14 +0000)]
MFC: r230632

- Now that we have a working OF_printf() since r230631 (MFC'ed to stable/8
  in r230885), use it for implementing a simple OF_panic() that may be used
  during the early cycles when panic() isn't available, yet.
- Mark cpu_{exit,shutdown}() as __dead2 as appropriate.

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

12 years agoMFC: r230631
marius [Wed, 1 Feb 2012 21:11:09 +0000 (21:11 +0000)]
MFC: r230631

Implement OF_printf() using kvprintf() directly, avoiding to use a
buffer and allowing to handle newlines properly.

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

12 years agoMFC: r230630
marius [Wed, 1 Feb 2012 21:10:00 +0000 (21:10 +0000)]
MFC: r230630

For machines where the kernel address space is unrestricted increase
VM_KMEM_SIZE_SCALE to 2, awaiting more insight from alc@. As it turns
out, the VM apparently has problems with machines that have large holes
in the physical address space, causing the kmem_suballoc() call in
kmeminit() to fail with a VM_KMEM_SIZE_SCALE of 1. Using a value of 2
allows these, namely Blade 1500 with 2GB of RAM, to boot.

PR: 164227

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

12 years agoMFC: r230627
marius [Wed, 1 Feb 2012 21:08:35 +0000 (21:08 +0000)]
MFC: r230627

Using ATA_CAM along with ATAPI DMA causes data corruption with ALI_NEW
and CMD controllers for reasons unknown so disable it.

PR: 164226

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

12 years agoMFC r228820, r228851:
mav [Wed, 1 Feb 2012 18:05:54 +0000 (18:05 +0000)]
MFC r228820, r228851:
Merge to da driver quirks hinting 4K physical sector sizes for SATA disks
connected via SAS or USB. Unluckily I've found that SAS (mps) and USB-SATA
I have translate models in different ways, requiring twice more quirks.
Unluckily for Hitachi, their model names are trimmed on SAS, making
impossible to identify 4K sector drives that way.

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

12 years agoRevert r230854 as the change does not apply to stable/8.
emaste [Wed, 1 Feb 2012 01:36:46 +0000 (01:36 +0000)]
Revert r230854 as the change does not apply to stable/8.

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

12 years agoMFC r230293:
emaste [Wed, 1 Feb 2012 01:28:35 +0000 (01:28 +0000)]
MFC r230293:

  Add missing line continuation \.  It did not cause any issue because
  the same path is already being included in ../Makefile.inc.

  PR:           164192
  Submitted by: Devin Teske <dteske vicor com>

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