]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
11 years agoMerge r237411 from head (originally by emast):
gavin [Wed, 27 Jun 2012 21:05:21 +0000 (21:05 +0000)]
Merge r237411 from head (originally by emast):

  Add PCI IDs for Ivy Bridge

Requested by: emaste

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

11 years agoMFC r236823 (pjd):
mm [Wed, 27 Jun 2012 11:59:57 +0000 (11:59 +0000)]
MFC r236823 (pjd):

ds_guid of 0 is special, as it is used by snapshot receive code to
differentiate between an incremental and full stream.
Be sure not to generate guid equal to 0.

Reported by: someone who saw 0 being generated as 64bit random guid

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

11 years agoMFC r237401:
mav [Wed, 27 Jun 2012 11:07:01 +0000 (11:07 +0000)]
MFC r237401:
Make cam_periph_hold() behavior consistent: drop taken reference and
return ENXIO if periph was invalidated while we were waiting for it.

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

11 years agoMFC r237398:
mav [Wed, 27 Jun 2012 11:02:35 +0000 (11:02 +0000)]
MFC r237398:
In camisr() clear CAM_SIM_ON_DONEQ flag after camisr_runqueue() purged SIM
done queue. Clearing it before caused extra SIM queueing in some cases.
It was invisible during normal operation, but during USB device unplug and
respective SIM destruction it could keep pointer on SIM without having
counted reference and as result crash the system by use afer free.

PR: usb/168743

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

11 years agoMFC r237286, r237523:
eadler [Wed, 27 Jun 2012 06:40:59 +0000 (06:40 +0000)]
MFC r237286, r237523:
Don't close an uninitialized descriptor.

PR: bin/167302
Approved by: cperciva (implicit)

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

11 years agoMFC r236214
alc [Wed, 27 Jun 2012 05:38:39 +0000 (05:38 +0000)]
MFC r236214
  Replace all uses of the vm page queues lock by a r/w lock that is private
  to this pmap.c.

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

11 years agoMFC r237339:
delphij [Wed, 27 Jun 2012 00:31:30 +0000 (00:31 +0000)]
MFC r237339:

Polish previous revision: if the fts_* routines have lstat()'ed the
directory entry then use the struct stat from that instead of doing
it again, and skip the rm_overwrite() call if fts_read() indicated
that the entry couldn't be a regular file.

Obtained from: OpenBSD

MFC r237284 (kevlo):

Fix potential symlink race condition in "rm -P" by adding a check
that the file we have opened is the one we expected.  Also open in
non-blocking mode to avoid a potential hang with FIFOs.

Obtained from: NetBSD via OpenBSD

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

11 years agoMFC 237494:
iwasaki [Tue, 26 Jun 2012 15:30:35 +0000 (15:30 +0000)]
MFC 237494:

- Add description about dev.acpi_ibm.0.handlerevents.

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

11 years agoMFC 237493:
iwasaki [Tue, 26 Jun 2012 15:29:38 +0000 (15:29 +0000)]
MFC 237493:

- Add in-driver event handler.

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

11 years agoMFC r237484:
kib [Tue, 26 Jun 2012 10:32:09 +0000 (10:32 +0000)]
MFC r237484:
Correct device id for GPU on some server SandyBridge model.

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

11 years agoMFC r237259 r237260 r237329:
eadler [Tue, 26 Jun 2012 03:05:17 +0000 (03:05 +0000)]
MFC r237259 r237260 r237329:
Allow users with RO privilege to the device to read the RO attributes. [0]
Add __unused macros to appropriate places in order to allow building
with WARNS=6 on base gcc, gcc46, and clang

PR: bin/167302 [0]
Approved by: cperciva (implicit)

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

11 years agoMFC r225808:
wblock [Mon, 25 Jun 2012 23:39:35 +0000 (23:39 +0000)]
MFC r225808:

Fix grammar.

PR: 140457
Submitted by: jeremyhu AT apple.com
Approved by: gjb (mentor)

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

11 years agoMFC r237243:
kib [Mon, 25 Jun 2012 09:41:47 +0000 (09:41 +0000)]
MFC r237243:
Adjust the fix in r236953, by not generating the signal manually, but
performing the return to usermode using full return path.

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

11 years agoMFC r236997:
fabient [Mon, 25 Jun 2012 07:56:23 +0000 (07:56 +0000)]
MFC r236997:
Add ARM callchain support for hwpmc.

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

11 years agoMFC r237295:
fabient [Mon, 25 Jun 2012 07:33:54 +0000 (07:33 +0000)]
MFC r237295:
Fix viawd(4) that was only working as a module.

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

11 years agoMFC r237322:
fabient [Mon, 25 Jun 2012 07:27:31 +0000 (07:27 +0000)]
MFC r237322:
Allow booting XENHVM kernel without Xen hypervisor.

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

11 years agoMFC r237460:
mav [Mon, 25 Jun 2012 07:09:36 +0000 (07:09 +0000)]
MFC r237460:
Return CAM_SEL_TIMEOUT and CAM_DEV_NOT_THERE instead of CAM_TID_INVALID
and CAM_LUN_INVALID for case of missing devices. In removes tons of error
messages from CAM during bus scans.

Reported and tested by: Mike Tancsa <mike@sentex.net>

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

11 years agoMFC r237446:
mav [Mon, 25 Jun 2012 07:06:58 +0000 (07:06 +0000)]
MFC r237446:
Don't print SCSI Queue Full and CAM_REQUEUE_REQ statuses as errors if they
were handled and retried. They are part of normal operation for SCSI TCQ.

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

11 years agoMFC: r237244
rmacklem [Mon, 25 Jun 2012 01:48:18 +0000 (01:48 +0000)]
MFC: r237244
Fix the NFSv4 client for the case where mmap'd files are
written, but not msync'd by a process. A VOP_PUTPAGES()
called when VOP_RECLAIM() happens will usually fail, since
the NFSv4 Open has already been closed by VOP_INACTIVE().
Add a vm_object_page_clean() call to the NFSv4 client's
VOP_INACTIVE(), so that the write happens before the NFSv4
Open is closed. kib@ suggested using vgone() instead and
I will explore this, but this patch fixes things in the
meantime. For some reason, the VOP_PUTPAGES() is still
attaempted in VOP_RECLAIM(), but having this fail doesn't
cause any problems except a "stateid0 in write" being logged.

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

11 years agopartial MFC. Mostly, do not build clang when initializing picobsd
luigi [Sun, 24 Jun 2012 17:02:28 +0000 (17:02 +0000)]
partial MFC. Mostly, do not build clang when initializing picobsd

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

11 years agoMFC: r237200
rmacklem [Sun, 24 Jun 2012 13:39:41 +0000 (13:39 +0000)]
MFC: r237200
Move the nfsrpc_close() call in ncl_reclaim() for the NFSv4 client
to below the vnode_destroy_vobject() call, since that is where
writes are flushed.

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

11 years agoMFC r237225:
mav [Sun, 24 Jun 2012 09:41:27 +0000 (09:41 +0000)]
MFC r237225:
Remove never used CD/DA_FLAG_TAGGED_QUEUING flags.

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

11 years agoMFC r235251:
eadler [Sat, 23 Jun 2012 21:29:53 +0000 (21:29 +0000)]
MFC r235251:
Add Spanish Dvorak keyboard model to syscons.

PR: conf/160235
Approved by: cperciva (implicit)

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

11 years agoMFC: r236829
pfg [Sat, 23 Jun 2012 20:33:29 +0000 (20:33 +0000)]
MFC: r236829

Bring a couple of libstdc++ patches from Apple's llvm-gcc project.

Modified Fri Jul 10 07:44:34 2009 CDT by rafael
backport part of
http://gcc.gnu.org/ml/gcc-cvs/2007-10/msg00118.html

The patch is for libstdc++ and it was GPL2 at the time.

Modified Tue Apr 29 01:20:19 2008 CDT by asl
Backport from mainline (pre-GPLv3).
Fix for sizeof(const void*) > sizeof(unsigned long).

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

11 years agoMake newfs(8) display "super-block backups (for fsck_ffs -b #)" instead
trasz [Sat, 23 Jun 2012 19:46:07 +0000 (19:46 +0000)]
Make newfs(8) display "super-block backups (for fsck_ffs -b #)" instead
of super-block backups (for fsck -b #), since fsck(8) doesn't accept
the "-b" option; only fsck_ffs(8) does.

PR: bin/82720
MFC after: 1 week

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

11 years agoMFC r231992:
eadler [Sat, 23 Jun 2012 19:42:06 +0000 (19:42 +0000)]
MFC r231992:
Remove reference to gsched_as module, which doesn't
actually exist.

Approved by: cperciva (implicit)

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

11 years agoMFC r234846:
trasz [Sat, 23 Jun 2012 19:15:12 +0000 (19:15 +0000)]
MFC r234846:

Improve growfs(8) in a few ways; unfortunately, it's somewhat hard to untangle
them and commit separately.

1. Rewrite the way growfs(8) finds the device and mount point.  This makes
   it possible to use e.g. "growfs /mnt"; it's also used to display more
   helpful messages.

2. Be more user-friendly, using descriptive messages, like this:

   OK to grow filesystem on /dev/md0, mounted on /mnt, from 9.8GB to 20GB? [Yes/No]"

3. Allow to specify the size (-s option) just like with mdconfig(8), i.e. with
   postfixes ("mdconfig -s 10g").4. Reload read-only filesystem after growing.

Reviewed by:    kib, mckusick (earlier version)
Sponsored by:   The FreeBSD Foundation

MFC r235079:

Fix offset calculation to actually rewrite the _last_ block.

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

11 years agoMFC r234189:
trasz [Sat, 23 Jun 2012 19:08:24 +0000 (19:08 +0000)]
MFC r234189:

Style.

MFC r234312:

Remove FSIRAND and FSMAXSWAP ifdefs, removing code unconditionally.

Reviewed by:    kib, mckusick
Sponsored by:   The FreeBSD Foundation

MFC r234314:

Style.

MFC r234420:

Style.

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

11 years agoMFC r234178:
trasz [Sat, 23 Jun 2012 19:03:42 +0000 (19:03 +0000)]
MFC r234178:

Remove block reallocation used to make room for the cylinder group
summary structure.  From now on, when there is no room for it,
we simply allocate new one in a newly added cylinder group.

This patch removes a conditional in updcsloc(), reindents some code
there, and removes unused routines.  I decided to do it this way instead
of disabling reallocation when the filesystem is live and leaving it
as it is otherwise, because this allows for removal of lots of complicated
and hard to test code.  Also, conditionally disabling it would result
in a different layout in filesystems resized online and offline, which
would look somewhat weird.

Reviewed by:            mckusick
No objections from:     kib
Sponsored by:           The FreeBSD Foundation

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

11 years agoMFC r233656:
trasz [Sat, 23 Jun 2012 19:01:42 +0000 (19:01 +0000)]
MFC r233656:

Remove disklabel handling code from growfs.  This should be done
via geom_part(4), and it doesn't belong in growfs anyway.

Reviewed by:    kib, mckusick
Sponsored by:   The FreeBSD Foundation

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

11 years agoMFC r232548:
trasz [Sat, 23 Jun 2012 18:58:02 +0000 (18:58 +0000)]
MFC r232548:

Make growfs(8) mostly style compliant.  No functional changes,
verified with MD5.

MFC r232858:

After r232548, clang complains about the apparent '=-' operator (a
left-over from ancient C times, and a frequent typo) in growfs.c:

sbin/growfs/growfs.c:1550:8: error: use of unary operator that may be intended as compound assignment (-=) [-Werror]
        blkno =- 1;
              ^~

Use 'blkno = -1' instead, to silence the error.

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

11 years agoMFC r230289 by ed@:
trasz [Sat, 23 Jun 2012 18:54:24 +0000 (18:54 +0000)]
MFC r230289 by ed@:

Allow growfs to be built with GCC 4.7 and -Werror.

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

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

11 years agoMFC r227081 by ed@:
trasz [Sat, 23 Jun 2012 18:51:33 +0000 (18:51 +0000)]
MFC r227081 by ed@:

Add missing static keywords for global variables to tools in sbin/.

These tools declare global variables without using the static keyword,
even though their use is limited to a single C-file, or without placing
an extern declaration of them in the proper header file.

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

11 years agoMFC: r231620, r237098
marius [Sat, 23 Jun 2012 18:43:11 +0000 (18:43 +0000)]
MFC: r231620, r237098

Enable TLS support for ARM toolchain

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

11 years agoMFC: r231616, r232497, r234337
marius [Sat, 23 Jun 2012 18:39:35 +0000 (18:39 +0000)]
MFC: r231616, r232497, r234337

Add __aeabi_read_tp function required for thread-local storage.

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

11 years agoMFC r234036:
trasz [Sat, 23 Jun 2012 18:26:23 +0000 (18:26 +0000)]
MFC r234036:

Fix panic in ffs_reload(), which may happen when read-only filesystem
gets resized and then reloaded.

MFC r234537:

Fix use-after-free introduced in r234036.

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

11 years agoMFC r235138: Add -a and -A option to the usage.
ume [Sat, 23 Jun 2012 17:59:32 +0000 (17:59 +0000)]
MFC r235138: Add -a and -A option to the usage.

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

11 years agoMFC r237196:
davide [Sat, 23 Jun 2012 17:46:42 +0000 (17:46 +0000)]
MFC r237196:

Disable hwpmc(4) support for Intel Xeon Sandy Bridge (Model 0x2D).
Due to some differences in MSRs between Xeon Sandy Bridge and Core Sandy
Bridge (Model 0x2A), wrmsr() may generate in a GP# fault exception and so a
panic of the machine.

Approved by: gnn (mentor)

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

11 years agoMFC r237195:
davide [Sat, 23 Jun 2012 17:39:40 +0000 (17:39 +0000)]
MFC r237195:

The variable 'error' in sys_poll() is initialized in declaration to value
zero but in any case is overwritten by successive copyin(), making the
previous initialization useless. Remove this.
As an added bonus this fixes a style(9) bug.

Approved by: gnn (mentor)

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

11 years agoMFC r237336:
mav [Sat, 23 Jun 2012 07:48:00 +0000 (07:48 +0000)]
MFC r237336:
Remove unused error variables in cdclose() and daclose().

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

11 years agoMFC r237335:
mav [Sat, 23 Jun 2012 07:45:14 +0000 (07:45 +0000)]
MFC r237335:
Check status of cam_periph_hold() inside cdclose().  If cd device was
invalidated while open, cam_periph_hold() will return error and won't
get the reference.  Following reference release will crash the system.

Sponsored by: iXsystems, Inc.

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

11 years agoMFC r237348:
delphij [Sat, 23 Jun 2012 00:37:32 +0000 (00:37 +0000)]
MFC r237348:

Currently the code uses gzFile * for a zlib file descriptor, which
is not correct.  The code works by accident because gzFile is
currently defined as void *, and internally it would be casted from
or to its real type.

A newer version of zlib will instead define it as a pointer to a
specific type pointer (namely, struct gzFile_s *).  This therefore
would cause stricter checks and compiler would catch this type
mismatch.

This change does not cause any changes to the resulting binary,
as validated with md5(1).

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

11 years agoMFC r237119:
mm [Fri, 22 Jun 2012 20:38:00 +0000 (20:38 +0000)]
MFC r237119:

Do not remount ZFS dataset if changing canmount property to "on" and
dataset is already mounted.

PR: 167905
Submitted by: Bryan Drewery <bryan@shatow.net>

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

11 years agoMFC: 234424
gnn [Fri, 22 Jun 2012 19:19:58 +0000 (19:19 +0000)]
MFC: 234424

Set SIGCANCEL to SIGTHR as part of some cleanup of DTrace code.

Reviewed by: davidxu@

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

11 years agoMFC 230063
gnn [Fri, 22 Jun 2012 14:58:40 +0000 (14:58 +0000)]
MFC 230063
Clean up a switch statement for uncore events on Westmere processors.

Submitted by: Davide Italiano
Reviewed by: gnn

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

11 years agoMFC r237253:
eadler [Fri, 22 Jun 2012 05:48:53 +0000 (05:48 +0000)]
MFC r237253:
Remove variables which are initialized but never used thereafter reported by gcc46 warning

Approved by: cperciva (implicit)

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

11 years agoMFC r237256:
eadler [Fri, 22 Jun 2012 05:46:49 +0000 (05:46 +0000)]
MFC r237256:
Remove variables which are initialized but never used thereafter reported by gcc46 warning

Approved by: cperciva (implicit)

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

11 years agoMFC r237255:
eadler [Fri, 22 Jun 2012 05:44:38 +0000 (05:44 +0000)]
MFC r237255:
Remove variables which are initialized but never used thereafter reported by gcc46 warning

Approved by: cperciva (implicit)

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

11 years agoMFC r237254:
eadler [Fri, 22 Jun 2012 05:42:05 +0000 (05:42 +0000)]
MFC r237254:
Remove variables which are initialized but never used thereafter reported by gcc46 warning

PR: bin/163847
Approved by: cperciva (implicit)

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

11 years agoMFC r237257:
eadler [Fri, 22 Jun 2012 05:40:14 +0000 (05:40 +0000)]
MFC r237257:
Remove variables which are initialized but never used thereafter reported by gcc46 warning

PR: bin/163847
Approved by: cperciva (implicit)

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

11 years agoMFC r236376:
eadler [Fri, 22 Jun 2012 05:36:50 +0000 (05:36 +0000)]
MFC r236376:
Add characters mapping for codepages used in Germany.

PR: bin/163847
Approved by: cperciva (implicit)

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

11 years agoMFC r237258:
eadler [Fri, 22 Jun 2012 05:23:39 +0000 (05:23 +0000)]
MFC r237258:
Remove variables which are initialized but never used thereafter reported by gcc46 warning

Approved by: cperciva (implicit)

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

11 years agoMFC r237197:
iwasaki [Thu, 21 Jun 2012 16:48:56 +0000 (16:48 +0000)]
MFC r237197:

- Resotre LCD brightness level on resuming.

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

11 years agoMFC: r231619
marius [Thu, 21 Jun 2012 13:53:28 +0000 (13:53 +0000)]
MFC: r231619

Add thread-local storage support for arm:

- Switch to Variant I TCB layout
- Use function from rtld for TCB allocation/deallocation

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

11 years agoMFC: r233106, r233107
marius [Thu, 21 Jun 2012 13:51:50 +0000 (13:51 +0000)]
MFC: r233106, r233107

Fix TLS for statically linked binaries.

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

11 years agoMFC: r232582 (partial)
marius [Thu, 21 Jun 2012 13:39:56 +0000 (13:39 +0000)]
MFC: r232582 (partial)

- Switch ARM to TLS Variant I.
- Fix TLS allocation  for Variant I: both rtld and libc allocators
  assume that tls_static_space includes space for TLS structure.
  So increment calculated static size by the size of it.

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

11 years agoMFC: r231618, r233231 (partial)
marius [Thu, 21 Jun 2012 13:01:00 +0000 (13:01 +0000)]
MFC: r231618, r233231 (partial)

Add thread-local storage support for ARM to rtld-elf

Reviewed by:    cognet
Obtained from:  NetBSD

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

11 years agoMFC r237057:
ae [Thu, 21 Jun 2012 12:47:21 +0000 (12:47 +0000)]
MFC r237057:
  Always reconstruct partition entries in the PMBR when Boot Camp is
  disabled. This helps to easily recover from situations when PMBR is
  damaged and contains no entries.

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

11 years agoMFC: r231617
marius [Thu, 21 Jun 2012 12:10:08 +0000 (12:10 +0000)]
MFC: r231617

Add ARM relocations types used for thread-local storage

Reviewed by: cognet

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

11 years agoMFC: r235348, r236191, r236497
marius [Thu, 21 Jun 2012 11:23:38 +0000 (11:23 +0000)]
MFC: r235348, r236191, r236497

Add glue/support for the SAM9XE512-based Ethernut 5 boards. Currently,
all integrated and on-board peripherals except NAND Flash (missing NAND
framework/integration) are working.

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

11 years agoMFC: r236496
marius [Thu, 21 Jun 2012 11:16:05 +0000 (11:16 +0000)]
MFC: r236496

- Loop up to 3 seconds when waiting for a device to get ready. [1]
- Make the device description match the driver name.
- Identify the chip variant based on the JEDEC and use that information
  to use the proper values for page count, offset and size instead of
  hardcoding a AT45DB642x with 2^N byte page support disabled.
- Take advantage of bioq_takefirst().
- Given that CONTINUOUS_ARRAY_READ_HF (0x0b) command isn't even mentioned
  in Atmel's DataFlash Application Note, as suggested by the previous
  comment may not work on all all devices and actually doesn't properly
  on at least AT45DB321D (JEDEC 0x1f2701), rewrite at45d_task() to use
  CONTINUOUS_ARRAY_READ (0xe8) for reading instead. This rewrite is laid
  out in a way allowing to easily add support for BIO_DELETE later on.
- Add support for reads and writes not starting on a page boundary.
- Verify the flash content after writing.
- Let at45d_task() gracefully handle errors on SPI transfers and the
  device not becoming ready afterwards again. [1]
- Use DEVMETHOD_END. [1]
- Use NULL instead of 0 for pointers. [1]

Additional testing by: Ian Lepore

Submitted by: Ian Lepore [1]

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

11 years agoMFC: r237239
marius [Thu, 21 Jun 2012 11:10:49 +0000 (11:10 +0000)]
MFC: r237239

Revert the part of r236495 (MFC'ed to stable/9 in r237095) that
introduced checking of SPI_SR_TXEMPTY for TX transfer completion as
for reasons unknown this occasionally causes SPI_SR_RXBUFF and
SPI_SR_ENDRX to not rise.
In any case, once the RX part of the transfer is done it's obvious
that the preceding TX part had finished and checking of SPI_SR_TXEMPTY
was introduced to rule out a possible cause for the data corruption
mentioned in r236495 but which didn't turn out to be the problem
anyway.

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

11 years agoMFC: r230242, r237102, r237236
marius [Thu, 21 Jun 2012 11:06:29 +0000 (11:06 +0000)]
MFC: r230242, r237102, r237236

- Add support for the FT2232 based egnite Turtelizer 2 JTAG/RS232 Adapter.
  This includes adding support for skipping FTDI interfaces used for JTAG
  leaving them for userland and just attaching to the RS232 half, similarly
  to how the corresponding Linux drivers handles these kind of adapters.
  While at it, sort uftdi_devs and return BUS_PROBE_SPECIFIC (because
  uftdi_probe() alters the instance variables for better or worse as do
  other probe routines of USB drivers) instead of 0.
- Remove duplicated entries for BeagleBone.
- Use DEVMETHOD_END.
- Use NULL instead of 0 for pointers.
- Remove some stray lines.

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

11 years agoMFC r236952:
mav [Thu, 21 Jun 2012 10:28:59 +0000 (10:28 +0000)]
MFC r236952:
 - Limit r214102 workaround to only x86. On arm it causes more problems
then solves because of cache coherency issues. This fixes periodic error
messages on console and command timeouts.
 - Patch SATA PHY configuration for 65nm SoCs to improve SNR same as
Linux does.

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

11 years agoMFC: r237235
marius [Thu, 21 Jun 2012 09:57:29 +0000 (09:57 +0000)]
MFC: r237235

Document the hw.ahci.force tunable here, too, as it's also used by
ataahci(4) and atanvidia(4).

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

11 years agoMFC: r237234
marius [Thu, 21 Jun 2012 09:48:13 +0000 (09:48 +0000)]
MFC: r237234

Avoid hard sentence break.

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

11 years agoMFC r237061:
kib [Thu, 21 Jun 2012 08:35:47 +0000 (08:35 +0000)]
MFC r237061:
Make sure that fstab fd is not leaked on exec.

PR: kern/169023

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

11 years agoMFC of 236937
mckusick [Thu, 21 Jun 2012 04:02:07 +0000 (04:02 +0000)]
MFC of 236937

In softdep_setup_inomapdep() we may have to allocate both inodedep
and bmsafemap dependency structures in inodedep_lookup() and
bmsafemap_lookup() respectively. The setup of these structures must
be done while holding the soft-dependency mutex. If the inodedep is
allocated first, it may be freed in the I/O completion callback when
the mutex is released to allocate the bmsafemap. If the bmsafemap is
allocated first, it may be freed in the I/O completion callback when
the mutex is released to allocate the inodedep.

To resolve this problem, bmsafemap_lookup has had a parameter added
that allows a pre-malloc'ed bmsafemap to be passed in so that it does
not need to release the mutex to create a new bmsafemap. The
softdep_setup_inomapdep() routine pre-malloc's a bmsafemap dependency
before acquiring the mutex and starting to build the inodedep with a
call to inodedep_lookup(). The subsequent call to bmsafemap_lookup()
is passed this pre-allocated bmsafemap entry so that it need not
release the mutex if it needs to create a new one.

Reported by: Peter Holm
Tested by:   Peter Holm

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

11 years agoMFC of 236825
mckusick [Thu, 21 Jun 2012 03:58:10 +0000 (03:58 +0000)]
MFC of 236825

When synchronously syncing a device (MNT_WAIT), wait for buffers
to become available. Otherwise we may excessively spin and fail
with ``fsync: giving up on dirty''.

Reviewed by: kib
Tested by:   Peter Holm

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

11 years agoMFC r236860,r237035: find(1): Extend and move description of -d option to
jilles [Wed, 20 Jun 2012 22:21:02 +0000 (22:21 +0000)]
MFC r236860,r237035: find(1): Extend and move description of -d option to
-depth primary.

The nullary -depth primary is standard and the -d option provides little
advantage.

Commit r236860 originally by issyl0.

PR: docs/168885

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

11 years agoMFC r236246
rnoland [Wed, 20 Jun 2012 21:34:03 +0000 (21:34 +0000)]
MFC r236246

Add device ids for the Winbond 83627DHG-P chip and set the registers to
trigger the keyboard reset line on timeout.

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

11 years agoMFC r236245
rnoland [Wed, 20 Jun 2012 21:32:54 +0000 (21:32 +0000)]
MFC r236245

Fix a typo in wbwd so that CRF5 is actually written to the data register
rather than the index register.

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

11 years agoMFC r236814:
mav [Wed, 20 Jun 2012 16:51:14 +0000 (16:51 +0000)]
MFC r236814:
One more major cam_periph_error() rewrite to improve error handling and
reporting. It includes:
 - removing of error messages controlled by bootverbose, replacing them
with more universal and informative debugging on CAM_DEBUG_INFO level,
that is now built into the kernel by default;
 - more close following to the arguments submitted by caller, such as
SF_PRINT_ALWAYS, SF_QUIET_IR and SF_NO_PRINT; consumer knows better which
errors are usual/expected at this point and which are really informative;
 - adding two new flags SF_NO_RECOVERY and SF_NO_RETRY to allow caller
specify how much assistance it needs at this point; previously consumers
controlled that by not calling cam_periph_error() at all, but that made
behavior inconsistent and debugging complicated;
 - tuning debug messages and taken actions order to make debugging output
more readable and cause-effect relationships visible;
 - making camperiphdone() (common device recovery completion handler) to
also use cam_periph_error() in most cases, instead of own dumb code;
 - removing manual sense fetching code from cam_periph_error(); I was told
by number of people that it is SIM obligation to fetch sense data, so this
code is useless and only significantly complicates recovery logic;
 - making ada, da and pass driver to use cam_periph_error() with new limited
recovery options to handle error recovery and debugging in common way;
as one of results, CAM_REQUEUE_REQ and other retrying statuses are now
working fine with pass driver, that caused many problems before.
 - reverting r186891 by raj@ to avoid burning few seconds in tight DELAY()
loops on device probe, while device simply loads media; I think that problem
may already be fixed in other way, and even if it is not, solution must be
different.

Sponsored by:   iXsystems, Inc.

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

11 years agoMFC r236713:
mav [Wed, 20 Jun 2012 14:43:40 +0000 (14:43 +0000)]
MFC r236713:
Add CAM_DEBUG_INFO debug messages for periph created/invalidated/destroyed
and for asyncs sent.

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

11 years agoMFC r236712:
mav [Wed, 20 Jun 2012 14:36:09 +0000 (14:36 +0000)]
MFC r236712:
To make CAM debugging easier, compile in some debug flags (CAM_DEBUG_INFO,
CAM_DEBUG_CDB, CAM_DEBUG_PERIPH and CAM_DEBUG_PROBE) by default.
List of these flags can be modified with CAM_DEBUG_COMPILE kernel option.
CAMDEBUG kernel option still enables all possible debug, if not overriden.

Additional 50KB of kernel size is a good price for the ability to debug
problems without rebuilding the kernel. In case where size is important,
debugging can be compiled out by setting CAM_DEBUG_COMPILE option to 0.

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

11 years agoMFC r236689 (by ken):
mav [Wed, 20 Jun 2012 14:27:55 +0000 (14:27 +0000)]
MFC r236689 (by ken):
Fix a memory leak in the kernel case in scsi_command_string().

Submitted by:   Kashyap Desai <Kashyap.Desai@lsi.com>

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

11 years agoMFC r236604, r236639:
mav [Wed, 20 Jun 2012 14:19:55 +0000 (14:19 +0000)]
MFC r236604, r236639:
Do not reinvent a wheel and let default error handler do its job.

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

11 years agoMFC r236555:
mav [Wed, 20 Jun 2012 14:14:27 +0000 (14:14 +0000)]
MFC r236555:
Add -p argument for `camcontrol debug` to allow enabling CAM_DEBUG_PROBE
added at r208911.

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

11 years agoMFC r236819
melifaro [Wed, 20 Jun 2012 14:13:07 +0000 (14:13 +0000)]
MFC r236819

Validate IPv4 network mask being passed to ipfw kernel interface.
Incorrect mask can possibly be one of the reasons for kern/127209 existance.

Approved by:        ae(mentor)

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

11 years agoMFC r236602, r236613:
mav [Wed, 20 Jun 2012 13:59:25 +0000 (13:59 +0000)]
MFC r236602, r236613:
Tune and add some missing CAM_DEBUG() points for better consistency.

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

11 years agoMFC r236605:
mav [Wed, 20 Jun 2012 13:41:20 +0000 (13:41 +0000)]
MFC r236605:
Replace #ifdef CAMDEBUG + if + panic() with single KASSERT().

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

11 years agoMFC: r232051
brueffer [Wed, 20 Jun 2012 09:38:35 +0000 (09:38 +0000)]
MFC: r232051

Catch up with r195837 (2.5 years ago) which renamed net_add_domain() to domain_add().

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

11 years agoMFC r236999:
eadler [Wed, 20 Jun 2012 06:58:17 +0000 (06:58 +0000)]
MFC r236999:
Include a warning when using the example code as it may not
work in unusual situations.
Also slightly optimize the command.

Approved by: cperciva (implicit)

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

11 years agoMFC r237160:
kib [Tue, 19 Jun 2012 10:07:50 +0000 (10:07 +0000)]
MFC r237160:
More style.

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

11 years agoMFC r237159:
kib [Tue, 19 Jun 2012 10:06:34 +0000 (10:06 +0000)]
MFC r237159:
Fix reading of netgroup(5) file which contains more then one netgroup.

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

11 years agoMFC r236976:
kib [Tue, 19 Jun 2012 10:04:36 +0000 (10:04 +0000)]
MFC r236976:
For incompleted block allocations or frees, the inode block count usage
must be recalculated. The blk_check pass of suj checker explicitely marks
inodes which owned such blocks as needing block count adjustment. But
ino_adjblks() is only called by cg_trunc pass, which is performed before
blk_check. As result, the block use count for such inodes is left wrong.
This causes full fsck run after journaled run to still find inconsistencies
like 'INCORRECT BLOCK COUNT I=14557 (328 should be 0)' in phase 1.

Fix this issue by running additional adj_blk pass after blk_check, which
updates the field.

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

11 years agoMFC r236944:
hselasky [Tue, 19 Jun 2012 06:46:54 +0000 (06:46 +0000)]
MFC r236944:
LibUSB v1.0 API compliance and bugfixes.

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

11 years agoMFC r235873, r235967:
wblock [Tue, 19 Jun 2012 02:54:54 +0000 (02:54 +0000)]
MFC r235873, r235967:

Fixes to man8 groff mandoc style, usage mistakes, or typos.

PR: 168016
Submitted by: Nobuyuki Koganemaru
Approved by: gjb (mentor)

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

11 years agoMFC: r235948
jkim [Mon, 18 Jun 2012 17:23:24 +0000 (17:23 +0000)]
MFC: r235948

Catch up with realpath(3) changes (r236400) and unbreak acpidump(8).

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

11 years agoMerge 231266 from head:
glebius [Mon, 18 Jun 2012 10:56:29 +0000 (10:56 +0000)]
Merge 231266 from head:
  Add support for RICOH R5CE823 card reader, that can be found in
  some Lenovo laptops.

  The conroller needs a quirk to lower its frequency, and after
  that it operates normally.

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

11 years agoMFC 236352:
eadler [Mon, 18 Jun 2012 05:01:57 +0000 (05:01 +0000)]
MFC 236352:
Bump date for content missed in r236290

Approved by: cperciva (implicit)

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

11 years agoMFC r233648:
eadler [Mon, 18 Jun 2012 04:55:07 +0000 (04:55 +0000)]
MFC r233648:
Remove trailing whitespace per mdoc lint warning

Approved by: cperciva (implicit)

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

11 years agoMFC of 237135
mjacob [Sun, 17 Jun 2012 21:30:24 +0000 (21:30 +0000)]
MFC of 237135

If debug values were set, the default from tval floated
down and triggered an attempt to set multiple virtual
ports whether you wanted them or not.

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

11 years agoMFC of r236427
mjacob [Sun, 17 Jun 2012 21:28:11 +0000 (21:28 +0000)]
MFC of r236427

Clean up and complete the incomplete deferred enable code.
Make the default role NONE if target mode is selected. This
allows ctl(8) to switch to/from target mode via knob settings.
If we default to role 'none', this causes a reset of the
24XX f/w which then causes initiators to wake up and notice
when we come online.

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

11 years agoImprove the functionality of the PORTS_MODULES knob by adding
dougb [Sun, 17 Jun 2012 21:06:36 +0000 (21:06 +0000)]
Improve the functionality of the PORTS_MODULES knob by adding
LOCALBASE/bin and sbin to PATH, which allows dependencies to be found;
adding SRC_BASE and OSVERSION to match the new kernel, and putting the
related builds under MAKEOBJDIRPREFIX so that they only need to be built
once per kernel.

In addition to the PR this includes ideas/contributions from crees
and matthew.

PR: ports/161452
Submitted by: Garrett Cooper <yanegomi@gmail.com>

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

11 years agoMFC r237131:
kib [Sun, 17 Jun 2012 19:16:31 +0000 (19:16 +0000)]
MFC r237131:
Use right size when freeing unneeded GTT mapping.

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

11 years agoMFC: r237107
marius [Sun, 17 Jun 2012 11:16:14 +0000 (11:16 +0000)]
MFC: r237107

- As a baind-aid, disable ATAPI DMA when using ATA_CAM for these controllers
  as well as it causes the kernel to hang during boot.
  Reported and tested by: Kevin Oberman
- Use NULL instead of 0 for a pointer.

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

11 years agoMFC: r230179
marius [Sun, 17 Jun 2012 09:50:56 +0000 (09:50 +0000)]
MFC: r230179

BeagleBone uses an FTDI chip with
an altered Product ID.

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

11 years agoMFC: r237101
marius [Sun, 17 Jun 2012 09:42:56 +0000 (09:42 +0000)]
MFC: r237101

Fix a braino in r236469 (MFC'ed to stable/9 in r236468); the number of
DMA tags required for handling MAXPHYS should be based on PAGE_SIZE rather
than SYM_CONF_DMA_BOUNDARY.
While at it, reuse the SYM_CONF_MAX_SG macro for specifying the maximum
number of DMA tags so sym(4) itself doesn't size memory beyond what's
required for handling MAXPHYS.

PR: 168928

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

11 years agoMFC r236848:
kib [Sun, 17 Jun 2012 07:14:58 +0000 (07:14 +0000)]
MFC r236848:
Use the previous stack entry protection and max protection to correctly
propagate the stack execution permissions when stack is grown down.

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