svn commit: r212562 - in stable/8/sys: kern sys

2010-09-13 Thread Matthew D Fleming
Author: mdf Date: Mon Sep 13 17:18:49 2010 New Revision: 212562 URL: http://svn.freebsd.org/changeset/base/212562 Log: MFC r209053: Add INVARIANTS checking that numfreebufs values are sane. Also add a per-buf flag to catch if a buf is double-counted in the free count. This code was use

svn commit: r212563 - in stable/7/sys: kern sys

2010-09-13 Thread Matthew D Fleming
Author: mdf Date: Mon Sep 13 17:23:18 2010 New Revision: 212563 URL: http://svn.freebsd.org/changeset/base/212563 Log: MFC r209053: Add INVARIANTS checking that numfreebufs values are sane. Also add a per-buf flag to catch if a buf is double-counted in the free count. This code was use

svn commit: r212572 - in head/sys: dev/cxgb kern sys vm

2010-09-13 Thread Matthew D Fleming
Author: mdf Date: Mon Sep 13 18:48:23 2010 New Revision: 212572 URL: http://svn.freebsd.org/changeset/base/212572 Log: Revert r212370, as it causes a LOR on powerpc. powerpc does a few unexpected things in copyout(9) and so wiring the user buffer is not sufficient to perform a copyout(9) wh

svn commit: r212664 - in stable/7/sys: kern sys

2010-09-15 Thread Matthew D Fleming
Author: mdf Date: Wed Sep 15 15:33:51 2010 New Revision: 212664 URL: http://svn.freebsd.org/changeset/base/212664 Log: Revert r212563, which was a MFC of r209053, as it introduced an unlocked read/modify/write of b_vflags. The unlocked access is fixed in CURRENT and stable/8 by r211213 and

svn commit: r212666 - stable/8/sys/kern

2010-09-15 Thread Matthew D Fleming
Author: mdf Date: Wed Sep 15 15:53:05 2010 New Revision: 212666 URL: http://svn.freebsd.org/changeset/base/212666 Log: MFC r212115: Fix a bug with sched_affinity() where it checks td_pinned of another thread in a racy manner, which can lead to attempting to migrate a thread that is pinn

svn commit: r212667 - stable/7/sys/kern

2010-09-15 Thread Matthew D Fleming
Author: mdf Date: Wed Sep 15 15:55:58 2010 New Revision: 212667 URL: http://svn.freebsd.org/changeset/base/212667 Log: MFC r212115: Fix a bug with sched_affinity() where it checks td_pinned of another thread in a racy manner, which can lead to attempting to migrate a thread that is pinn

svn commit: r212747 - stable/8/sys/kern

2010-09-16 Thread Matthew D Fleming
Author: mdf Date: Thu Sep 16 15:42:11 2010 New Revision: 212747 URL: http://svn.freebsd.org/changeset/base/212747 Log: MFC r212153: Fix UP build. Modified: stable/8/sys/kern/sched_ule.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed)

svn commit: r212748 - stable/7/sys/kern

2010-09-16 Thread Matthew D Fleming
Author: mdf Date: Thu Sep 16 15:42:56 2010 New Revision: 212748 URL: http://svn.freebsd.org/changeset/base/212748 Log: MFC r212153: Fix UP build. Modified: stable/7/sys/kern/sched_ule.c Directory Properties: stable/7/sys/ (props changed) stable/7/sys/cddl/contrib/opensolaris/ (props c

svn commit: r212750 - in head/sys: dev/cxgb kern sys vm

2010-09-16 Thread Matthew D Fleming
Author: mdf Date: Thu Sep 16 16:13:12 2010 New Revision: 212750 URL: http://svn.freebsd.org/changeset/base/212750 Log: Re-add r212370 now that the LOR in powerpc64 has been resolved: Add a drain function for struct sysctl_req, and use it for a variety of handlers, some of which had to do

svn commit: r212926 - head/sys/cam/scsi

2010-09-20 Thread Matthew D Fleming
Author: mdf Date: Mon Sep 20 19:42:14 2010 New Revision: 212926 URL: http://svn.freebsd.org/changeset/base/212926 Log: Use destroy_dev_sched(9) instead of destroy_dev(9) in passcleanup() as it is indirectly a d_close method. Prompted by: kib Reviewed by: mav MFC after:2 weeks M

svn commit: r212931 - head/sys/vm

2010-09-20 Thread Matthew D Fleming
Author: mdf Date: Mon Sep 20 20:41:59 2010 New Revision: 212931 URL: http://svn.freebsd.org/changeset/base/212931 Log: Replace an XXX comment with the appropriate code. Submitted by: alc Modified: head/sys/vm/vm_kern.c Modified: head/sys/vm/vm_kern.c

svn commit: r213588 - stable/8/sys/cam/scsi

2010-10-08 Thread Matthew D Fleming
Author: mdf Date: Fri Oct 8 18:06:15 2010 New Revision: 213588 URL: http://svn.freebsd.org/changeset/base/213588 Log: MFC r212926: Use destroy_dev_sched(9) instead of destroy_dev(9) in passcleanup() as it is indirectly a d_close method. Modified: stable/8/sys/cam/scsi/scsi_pass.c Dire

svn commit: r213589 - stable/7/sys/cam/scsi

2010-10-08 Thread Matthew D Fleming
Author: mdf Date: Fri Oct 8 18:06:30 2010 New Revision: 213589 URL: http://svn.freebsd.org/changeset/base/213589 Log: MFC r212926: Use destroy_dev_sched(9) instead of destroy_dev(9) in passcleanup() as it is indirectly a d_close method. Modified: stable/7/sys/cam/scsi/scsi_pass.c Dire

svn commit: r213702 - head/sys/dev/mps

2010-10-11 Thread Matthew D Fleming
Author: mdf Date: Mon Oct 11 21:26:24 2010 New Revision: 213702 URL: http://svn.freebsd.org/changeset/base/213702 Log: Fix up the COMPAT_FREEBSD32 ioctl logic for mps(4). Reviewed by: ken Modified: head/sys/dev/mps/mps_ioctl.h head/sys/dev/mps/mps_user.c Modified: head/sys/dev/mps/mp

svn commit: r213704 - head/sys/dev/mps

2010-10-11 Thread Matthew D Fleming
Author: mdf Date: Mon Oct 11 21:38:31 2010 New Revision: 213704 URL: http://svn.freebsd.org/changeset/base/213704 Log: Fix a memory leak and locking inconsistency in mps(4) ioctl handling. Check copyin(9) for error and sanity check the length before copyin. Reviewed by: ken Modified:

svn commit: r213707 - head/sys/dev/mps

2010-10-11 Thread Matthew D Fleming
Author: mdf Date: Mon Oct 11 22:44:05 2010 New Revision: 213707 URL: http://svn.freebsd.org/changeset/base/213707 Log: Add function prototypes for static functions. Requested by: ken Modified: head/sys/dev/mps/mps_user.c Modified: head/sys/dev/mps/mps_user.c

svn commit: r213708 - head/sys/dev/mps

2010-10-11 Thread Matthew D Fleming
Author: mdf Date: Mon Oct 11 22:44:15 2010 New Revision: 213708 URL: http://svn.freebsd.org/changeset/base/213708 Log: Re-work the internal user ioctl command table, and support the FW_UPLOAD command. Reviewed by: ken (previous version) Modified: head/sys/dev/mps/mps_user.c Modified:

svn commit: r213739 - in head: share/man/man9 sys/kern sys/sys

2010-10-12 Thread Matthew D Fleming
Author: mdf Date: Tue Oct 12 18:36:03 2010 New Revision: 213739 URL: http://svn.freebsd.org/changeset/base/213739 Log: Re-expose and briefly document taskqueue_run(9). The function is used in at least one 3rd party driver. Requested by: jhb Modified: head/share/man/man9/taskqueue.9

svn commit: r213743 - head/sys/dev/mps

2010-10-12 Thread Matthew D Fleming
Author: mdf Date: Tue Oct 12 19:24:29 2010 New Revision: 213743 URL: http://svn.freebsd.org/changeset/base/213743 Log: Always set cm_complete_data before calling mps_config_complete(). Reviewed by: ken Modified: head/sys/dev/mps/mps.c Modified: head/sys/dev/mps/mps.c ==

svn commit: r213813 - in head: share/man/man9 sys/kern sys/sys

2010-10-13 Thread Matthew D Fleming
Author: mdf Date: Wed Oct 13 22:59:04 2010 New Revision: 213813 URL: http://svn.freebsd.org/changeset/base/213813 Log: Use a safer mechanism for determining if a task is currently running, that does not rely on the lifetime of pointers being the same. This also restores the task KBI. Su

svn commit: r213839 - head/sys/dev/mps

2010-10-14 Thread Matthew D Fleming
Author: mdf Date: Thu Oct 14 16:44:05 2010 New Revision: 213839 URL: http://svn.freebsd.org/changeset/base/213839 Log: Re-work the internals of adding items to the driver's scatter-gather list. Use the new internals to simplify adding transaction context elements, and in future diffs, more

svn commit: r213840 - head/sys/dev/mps

2010-10-14 Thread Matthew D Fleming
Author: mdf Date: Thu Oct 14 16:44:44 2010 New Revision: 213840 URL: http://svn.freebsd.org/changeset/base/213840 Log: Support firmware download. Modified: head/sys/dev/mps/mps_user.c Modified: head/sys/dev/mps/mps_user.c ==

svn commit: r213882 - head/sys/dev/mps

2010-10-14 Thread Matthew D Fleming
Author: mdf Date: Thu Oct 14 23:26:08 2010 New Revision: 213882 URL: http://svn.freebsd.org/changeset/base/213882 Log: Fixes to mps_user_command(): - fix the leak of command struct on error - simplify the cleanup logic - EINPROGRESS is not a fatal error - buggy comment and error mess

svn commit: r213898 - in head/sys: dev/mps modules/mps

2010-10-15 Thread Matthew D Fleming
Author: mdf Date: Fri Oct 15 15:24:59 2010 New Revision: 213898 URL: http://svn.freebsd.org/changeset/base/213898 Log: Currently only opt_compat.h is included by the mps(4) driver. Also enable /dev/mps0, which was missing from my previous patches enabling f/w upload and download. opt_co

svn commit: r214062 - in head: share/man/man9 sys/vm

2010-10-19 Thread Matthew D Fleming
Author: mdf Date: Tue Oct 19 16:06:00 2010 New Revision: 214062 URL: http://svn.freebsd.org/changeset/base/214062 Log: uma_zfree(zone, NULL) should do nothing, to match free(9). Noticed by: Ron Steinke MFC after:3 days Modified: head/share/man/man9/zone.9 head/sys/vm/uma_core.

svn commit: r214206 - in stable/8: share/man/man9 sys/vm

2010-10-22 Thread Matthew D Fleming
Author: mdf Date: Fri Oct 22 16:00:00 2010 New Revision: 214206 URL: http://svn.freebsd.org/changeset/base/214206 Log: MFC r214062: uma_zfree(zone, NULL) should do nothing, to match free(9). Noticed by: Ron Steinke Modified: stable/8/share/man/man9/zone.9 stable/8/sys/vm/uma_co

svn commit: r214207 - in stable/7: share/man/man9 sys/vm

2010-10-22 Thread Matthew D Fleming
Author: mdf Date: Fri Oct 22 16:00:45 2010 New Revision: 214207 URL: http://svn.freebsd.org/changeset/base/214207 Log: MFC r214062: uma_zfree(zone, NULL) should do nothing, to match free(9). Noticed by: Ron Steinke Modified: stable/7/share/man/man9/zone.9 stable/7/sys/vm/uma_co

svn commit: r228440 - head/sys/dev/ixgbe

2011-12-12 Thread Matthew D Fleming
Author: mdf Date: Mon Dec 12 18:27:28 2011 New Revision: 228440 URL: http://svn.freebsd.org/changeset/base/228440 Log: Consistently use types in ixgbe driver code: - {ixgbe,ixv}_header_split is passed to TUNABLE_INT, so delcare it int, not bool. - {ixgbe,ixv}_tx_ctx_setup() returns

svn commit: r228441 - head/sys/dev/e1000

2011-12-12 Thread Matthew D Fleming
Author: mdf Date: Mon Dec 12 18:27:34 2011 New Revision: 228441 URL: http://svn.freebsd.org/changeset/base/228441 Log: Consistently use types in e1000 driver code: - Two struct members eee_disable are used in a function that expects an int *, so declare them int, not bool. - igb_tx

svn commit: r228442 - head/sys/cam/scsi

2011-12-12 Thread Matthew D Fleming
Author: mdf Date: Mon Dec 12 18:43:18 2011 New Revision: 228442 URL: http://svn.freebsd.org/changeset/base/228442 Log: Do not use the sometimes-reserved work 'bool' for a variable name. MFC after:2 weeks Sponsored by: Isilon Systems, LLC Modified: head/sys/cam/scsi/scsi_xpt.c Modi

svn commit: r228443 - in head/sys: dev/cxgbe dev/drm dev/speaker dev/tws dev/vxge ofed/include/linux

2011-12-12 Thread Matthew D Fleming
Author: mdf Date: Mon Dec 12 18:43:24 2011 New Revision: 228443 URL: http://svn.freebsd.org/changeset/base/228443 Log: Do not define bool/true/false if the symbols already exist. MFC after:2 weeks Sponsored by: Isilon Systems, LLC Modified: head/sys/dev/cxgbe/osdep.h head/sys/dev

svn commit: r228444 - in head: include sys/sys

2011-12-12 Thread Matthew D Fleming
Author: mdf Date: Mon Dec 12 18:44:17 2011 New Revision: 228444 URL: http://svn.freebsd.org/changeset/base/228444 Log: - Define true and false in sys/types.h for _KERNEL consumers, and typedef bool. Due to macro expansion it seemed better to use a typedef for kernel consumers (specif

svn commit: r229043 - stable/9/sys/cam/scsi

2011-12-30 Thread Matthew D Fleming
Author: mdf Date: Fri Dec 30 22:42:22 2011 New Revision: 229043 URL: http://svn.freebsd.org/changeset/base/229043 Log: MFC r228442: Do not use the sometimes-reserved word 'bool' for a variable name. Modified: stable/9/sys/cam/scsi/scsi_xpt.c Directory Properties: stable/9/sys/ (props

svn commit: r229065 - stable/8/sys/cam/scsi

2011-12-30 Thread Matthew D Fleming
Author: mdf Date: Sat Dec 31 03:02:59 2011 New Revision: 229065 URL: http://svn.freebsd.org/changeset/base/229065 Log: MFC r228442: Do not use the sometimes-reserved word 'bool' for a variable name. Modified: stable/8/sys/cam/scsi/scsi_xpt.c Directory Properties: stable/8/sys/ (props

svn commit: r229132 - stable/7/sys/cam

2011-12-31 Thread Matthew D Fleming
Author: mdf Date: Sat Dec 31 18:41:29 2011 New Revision: 229132 URL: http://svn.freebsd.org/changeset/base/229132 Log: MFC r228442: Do not use the sometimes-reserved word 'bool' for a variable name. This is a direct commit since the file name has changed. Modified: stable/7/sys/cam/cam

svn commit: r229145 - stable/9/sys/dev/e1000

2011-12-31 Thread Matthew D Fleming
Author: mdf Date: Sat Dec 31 19:50:55 2011 New Revision: 229145 URL: http://svn.freebsd.org/changeset/base/229145 Log: MFC r228441: Consistently use types in e1000 driver code: - Two struct members eee_disable are used in a function that expects an int *, so declare them int, not

svn commit: r229147 - stable/8/sys/dev/e1000

2011-12-31 Thread Matthew D Fleming
Author: mdf Date: Sat Dec 31 19:55:19 2011 New Revision: 229147 URL: http://svn.freebsd.org/changeset/base/229147 Log: MFC r228441: Consistently use types in e1000 driver code: - Two struct members eee_disable are used in a function that expects an int *, so declare them int, not

svn commit: r229150 - stable/7/sys/dev/e1000

2011-12-31 Thread Matthew D Fleming
Author: mdf Date: Sat Dec 31 20:01:09 2011 New Revision: 229150 URL: http://svn.freebsd.org/changeset/base/229150 Log: MFC r228441: Consistently use types in e1000 driver code: - Two struct members eee_disable are used in a function that expects an int *, so declare them int, not

svn commit: r229153 - stable/9/sys/dev/ixgbe

2011-12-31 Thread Matthew D Fleming
Author: mdf Date: Sat Dec 31 20:12:26 2011 New Revision: 229153 URL: http://svn.freebsd.org/changeset/base/229153 Log: MFC r228440: Consistently use types in ixgbe driver code: - {ixgbe,ixv}_header_split is passed to TUNABLE_INT, so delcare it int, not bool. - {ixgbe,ixv}_tx_c

svn commit: r229154 - stable/8/sys/dev/ixgbe

2011-12-31 Thread Matthew D Fleming
Author: mdf Date: Sat Dec 31 20:15:46 2011 New Revision: 229154 URL: http://svn.freebsd.org/changeset/base/229154 Log: MFC r228440: Consistently use types in ixgbe driver code: - {ixgbe,ixv}_header_split is passed to TUNABLE_INT, so delcare it int, not bool. - {ixgbe,ixv}_tx_c

svn commit: r229155 - stable/7/sys/dev/ixgbe

2011-12-31 Thread Matthew D Fleming
Author: mdf Date: Sat Dec 31 20:26:05 2011 New Revision: 229155 URL: http://svn.freebsd.org/changeset/base/229155 Log: MFC r228440: Consistently use types in ixgbe driver code: - ixgbe_tso_setup() returns a bool, so declare it bool, not boolean_t. - ixgbe_txeof() returns a bool, so

svn commit: r229157 - in stable/9/sys: dev/cxgbe dev/drm dev/speaker dev/tws dev/vxge ofed/include/linux

2011-12-31 Thread Matthew D Fleming
Author: mdf Date: Sat Dec 31 20:42:34 2011 New Revision: 229157 URL: http://svn.freebsd.org/changeset/base/229157 Log: MFC r228443: Do not define bool/true/false if the symbols already exist. Modified: stable/9/sys/dev/cxgbe/osdep.h stable/9/sys/dev/drm/i915_drv.h stable/9/sys/dev/sp

svn commit: r229158 - in stable/8/sys/dev: cxgbe drm speaker tws

2011-12-31 Thread Matthew D Fleming
Author: mdf Date: Sat Dec 31 20:46:35 2011 New Revision: 229158 URL: http://svn.freebsd.org/changeset/base/229158 Log: MFC r228443: Do not define bool/true/false if the symbols already exist. Note that the ofed and dev/vxge parts of r228443 are not in stable/8. Modified: stable/8/sy

svn commit: r229285 - in stable/9: include sys/sys

2012-01-02 Thread Matthew D Fleming
Author: mdf Date: Mon Jan 2 16:14:52 2012 New Revision: 229285 URL: http://svn.freebsd.org/changeset/base/229285 Log: MFC r228444: - Define true and false in sys/types.h for _KERNEL consumers, and typedef bool. Due to macro expansion it seemed better to use a typedef for kernel

svn commit: r215011 - in head: share/man/man9 sys/kern sys/sys

2010-11-08 Thread Matthew D Fleming
Author: mdf Date: Mon Nov 8 20:56:31 2010 New Revision: 215011 URL: http://svn.freebsd.org/changeset/base/215011 Log: Add a taskqueue_cancel(9) to cancel a pending task without waiting for it to run as taskqueue_drain(9) does. Requested by: hselasky Original code:jeff Reviewe

svn commit: r215013 - head/sys/kern

2010-11-08 Thread Matthew D Fleming
Author: mdf Date: Mon Nov 8 20:57:08 2010 New Revision: 215013 URL: http://svn.freebsd.org/changeset/base/215013 Log: Whitespace and other aspects of style(9). No functional changes. MFC after: 3 days Modified: head/sys/kern/link_elf.c Modified: head/sys/kern/link_elf.c =

svn commit: r215190 - stable/8/sys/kern

2010-11-12 Thread Matthew D Fleming
Author: mdf Date: Fri Nov 12 18:09:06 2010 New Revision: 215190 URL: http://svn.freebsd.org/changeset/base/215190 Log: MFC r213813. This is a direct commit because the diff is against several non-MFC'd changes. Use a safer mechanism for determining if a task is currently running, that

svn commit: r215191 - stable/7/sys/kern

2010-11-12 Thread Matthew D Fleming
Author: mdf Date: Fri Nov 12 18:10:27 2010 New Revision: 215191 URL: http://svn.freebsd.org/changeset/base/215191 Log: MFC r213813. This is a direct commit because the diff is against several non-MFC'd changes. Use a safer mechanism for determining if a task is currently running, that

svn commit: r216058 - head/sys/kern

2010-11-29 Thread Matthew D Fleming
Author: mdf Date: Mon Nov 29 18:17:53 2010 New Revision: 216058 URL: http://svn.freebsd.org/changeset/base/216058 Log: Use the SYSCTL_CHILDREN macro in kern_sysctl.c to help de-obfuscate the code. MFC after:3 days Modified: head/sys/kern/kern_sysctl.c Modified: head/sys/kern/kern_

svn commit: r216059 - head/sys/kern

2010-11-29 Thread Matthew D Fleming
Author: mdf Date: Mon Nov 29 18:18:00 2010 New Revision: 216059 URL: http://svn.freebsd.org/changeset/base/216059 Log: Slightly modify the logic in sysctl_find_oid to reduce the indentation. There should be no functional change. MFC after:3 days Modified: head/sys/kern/kern_sysctl.

svn commit: r216060 - in head/sys: kern sys

2010-11-29 Thread Matthew D Fleming
Author: mdf Date: Mon Nov 29 18:18:07 2010 New Revision: 216060 URL: http://svn.freebsd.org/changeset/base/216060 Log: Do not hold the sysctl lock across a call to the handler. This fixes a general LOR issue where the sysctl lock had no good place in the hierarchy. One specific instance is

svn commit: r216066 - head/sys/kern

2010-11-29 Thread Matthew D Fleming
Author: mdf Date: Mon Nov 29 21:53:21 2010 New Revision: 216066 URL: http://svn.freebsd.org/changeset/base/216066 Log: Fix uninitialized variable warning that shows on Tinderbox but not my setup. (??) Submitted by: Michael Butler Modified: head/sys/kern/kern_sysctl.c Modified: head/s

svn commit: r216463 - head/sys/kern

2010-12-15 Thread Matthew D Fleming
Author: mdf Date: Wed Dec 15 19:30:44 2010 New Revision: 216463 URL: http://svn.freebsd.org/changeset/base/216463 Log: One of the compat32 functions was copying in a raw timespec, instead of a 32-bit one. This can cause weird timeout issues, as the copying reads garbage from the user.

svn commit: r225597 - svnadmin/conf

2011-09-15 Thread Matthew D Fleming
Author: mdf Date: Thu Sep 15 20:21:35 2011 New Revision: 225597 URL: http://svn.freebsd.org/changeset/base/225597 Log: Welcome Gleb Kurtsou (gleb at FreeBSD dot org). Gleb has worked on the ino64 GSoC project among other things. Approved by: core Modified: svnadmin/conf/access svna

svn commit: r216616 - in head/sys: kern sys

2010-12-21 Thread Matthew D Fleming
Author: mdf Date: Tue Dec 21 16:29:58 2010 New Revision: 216616 URL: http://svn.freebsd.org/changeset/base/216616 Log: Move the fail_point_entry definition from fail.h to kern_fail.c, which allows putting the enumeration constants of fail point types with the text string that matches them.

svn commit: r216620 - in head/sys: kern sys

2010-12-21 Thread Matthew D Fleming
Author: mdf Date: Tue Dec 21 18:23:03 2010 New Revision: 216620 URL: http://svn.freebsd.org/changeset/base/216620 Log: Initialize fp_location for explicitly managed fail points, and push the parentheses around the location for simple fail points into the location string. This makes the prin

svn commit: r217109 - head/sys/geom/part

2011-01-07 Thread Matthew D Fleming
Author: mdf Date: Fri Jan 7 16:46:20 2011 New Revision: 217109 URL: http://svn.freebsd.org/changeset/base/217109 Log: Fix a memory overflow where the input length to g_gpt_utf8_to_utf16() was specified incorrectly, causing the bzero to run past the end of a malloc(9)'d object. Submitte

svn commit: r217268 - stable/8/sys/geom/part

2011-01-11 Thread Matthew D Fleming
Author: mdf Date: Tue Jan 11 17:16:50 2011 New Revision: 217268 URL: http://svn.freebsd.org/changeset/base/217268 Log: MFC r217109: Fix a memory overflow where the input length to g_gpt_utf8_to_utf16() was specified incorrectly, causing the bzero to run past the end of a malloc(9)'d obj

svn commit: r217269 - in stable/8/sys: kern sys

2011-01-11 Thread Matthew D Fleming
Author: mdf Date: Tue Jan 11 17:26:36 2011 New Revision: 217269 URL: http://svn.freebsd.org/changeset/base/217269 Log: Move the fail_point_entry definition from fail.h to kern_fail.c, which allows putting the enumeration constants of fail point types with the text string that matches them.

svn commit: r217270 - in stable/8/sys: kern sys

2011-01-11 Thread Matthew D Fleming
Author: mdf Date: Tue Jan 11 17:29:34 2011 New Revision: 217270 URL: http://svn.freebsd.org/changeset/base/217270 Log: (Note the previous commit was a MFC of r216616). MFC r216620: Initialize fp_location for explicitly managed fail points, and push the parentheses around the location

svn commit: r217271 - stable/8/sys/kern

2011-01-11 Thread Matthew D Fleming
Author: mdf Date: Tue Jan 11 17:31:59 2011 New Revision: 217271 URL: http://svn.freebsd.org/changeset/base/217271 Log: MFC r216058 and r216059: r216058: Use the SYSCTL_CHILDREN macro in kern_sysctl.c to help de-obfuscate the code. r216059: Slightly modify the logic in sysct

svn commit: r217272 - stable/8/sys/kern

2011-01-11 Thread Matthew D Fleming
Author: mdf Date: Tue Jan 11 17:33:29 2011 New Revision: 217272 URL: http://svn.freebsd.org/changeset/base/217272 Log: MFC r216463: One of the compat32 functions was copying in a raw timespec, instead of a 32-bit one. This can cause weird timeout issues, as the copying reads garbage fr

svn commit: r217313 - in head: . sys/sys

2011-01-12 Thread Matthew D Fleming
Author: mdf Date: Wed Jan 12 17:52:48 2011 New Revision: 217313 URL: http://svn.freebsd.org/changeset/base/217313 Log: Add type checking for static and dynamic sysctls using scalar types. The code is turned off until the tree is fixed up so it compiles. __FreeBSD_version was already bumped o

svn commit: r217318 - in head/sys/dev: e1000 ixgbe

2011-01-12 Thread Matthew D Fleming
Author: mdf Date: Wed Jan 12 19:53:23 2011 New Revision: 217318 URL: http://svn.freebsd.org/changeset/base/217318 Log: sysctl(9) cleanup checkpoint: amd64 GENERIC builds cleanly. Commit the Intel drivers. Modified: head/sys/dev/e1000/if_em.c head/sys/dev/e1000/if_igb.c head/sys/dev/e

svn commit: r217319 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2011-01-12 Thread Matthew D Fleming
Author: mdf Date: Wed Jan 12 19:53:30 2011 New Revision: 217319 URL: http://svn.freebsd.org/changeset/base/217319 Log: sysctl(9) cleanup checkpoint: amd64 GENERIC builds cleanly. Commit the zfs piece. Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c head/sys/cddl/con

svn commit: r217322 - in head/sys: net net80211 netinet netinet/cc netinet/ipfw

2011-01-12 Thread Matthew D Fleming
Author: mdf Date: Wed Jan 12 19:53:50 2011 New Revision: 217322 URL: http://svn.freebsd.org/changeset/base/217322 Log: sysctl(9) cleanup checkpoint: amd64 GENERIC builds cleanly. Commit the net* piece. Modified: head/sys/net/if.c head/sys/net/netisr.c head/sys/net/route.c head/sys/

svn commit: r217324 - head/sys/geom/sched

2011-01-12 Thread Matthew D Fleming
Author: mdf Date: Wed Jan 12 19:54:07 2011 New Revision: 217324 URL: http://svn.freebsd.org/changeset/base/217324 Log: sysctl(9) cleanup checkpoint: amd64 GENERIC builds cleanly. Commit the geom piece. Modified: head/sys/geom/sched/g_sched.c head/sys/geom/sched/gs_rr.c Modified: head/

svn commit: r217326 - in head/sys: amd64/acpica ddb kern nlm rpc ufs/ffs x86/x86

2011-01-12 Thread Matthew D Fleming
Author: mdf Date: Wed Jan 12 19:54:19 2011 New Revision: 217326 URL: http://svn.freebsd.org/changeset/base/217326 Log: sysctl(9) cleanup checkpoint: amd64 GENERIC builds cleanly. Commit the kernel changes. Modified: head/sys/amd64/acpica/acpi_machdep.c head/sys/ddb/db_capture.c head/

svn commit: r217320 - in head/sys/netgraph: . bluetooth/common bluetooth/socket

2011-01-12 Thread Matthew D Fleming
Author: mdf Date: Wed Jan 12 19:53:39 2011 New Revision: 217320 URL: http://svn.freebsd.org/changeset/base/217320 Log: sysctl(9) cleanup checkpoint: amd64 GENERIC builds cleanly. Commit the netgraph piece. Modified: head/sys/netgraph/bluetooth/common/ng_bluetooth.c head/sys/netgraph/bl

svn commit: r217321 - in head/sys/dev/cxgb: . ulp/iw_cxgb

2011-01-12 Thread Matthew D Fleming
Author: mdf Date: Wed Jan 12 19:53:44 2011 New Revision: 217321 URL: http://svn.freebsd.org/changeset/base/217321 Log: sysctl(9) cleanup checkpoint: amd64 GENERIC builds cleanly. Commit the cxgb driver piece. Modified: head/sys/dev/cxgb/cxgb_main.c head/sys/dev/cxgb/cxgb_sge.c head/s

svn commit: r217323 - in head/sys/dev: acpi_support ae alc ale ath bce bge bwi bwn ed iscsi/initiator iwi mps mpt nfe pccbb sound/pcm ste txp usb/input

2011-01-12 Thread Matthew D Fleming
Author: mdf Date: Wed Jan 12 19:53:56 2011 New Revision: 217323 URL: http://svn.freebsd.org/changeset/base/217323 Log: sysctl(9) cleanup checkpoint: amd64 GENERIC builds cleanly. Commit the rest of the devices. Modified: head/sys/dev/acpi_support/acpi_ibm.c head/sys/dev/ae/if_ae.c he

svn commit: r217325 - in head/sys/security: mac mac_seeotheruids

2011-01-12 Thread Matthew D Fleming
Author: mdf Date: Wed Jan 12 19:54:14 2011 New Revision: 217325 URL: http://svn.freebsd.org/changeset/base/217325 Log: sysctl(9) cleanup checkpoint: amd64 GENERIC builds cleanly. Commit the security directory. Modified: head/sys/security/mac/mac_framework.c head/sys/security/mac_seeoth

svn commit: r217328 - head/sys/sys

2011-01-12 Thread Matthew D Fleming
Author: mdf Date: Wed Jan 12 20:38:55 2011 New Revision: 217328 URL: http://svn.freebsd.org/changeset/base/217328 Log: Fix a typo. XLONG should allow pointers to unsigned and signed long. Submitted by: Modified: head/sys/sys/sysctl.h Modified: head/sys/sys/sysctl.h ===

svn commit: r217330 - head/sys/x86/x86

2011-01-12 Thread Matthew D Fleming
Author: mdf Date: Wed Jan 12 21:08:49 2011 New Revision: 217330 URL: http://svn.freebsd.org/changeset/base/217330 Log: Fix a brain fart. Since this file is shared between i386 and amd64, a bus_size_t may be 32 or 64 bits. Change the bounce_zone alignment field to explicitly be 32 bits, as

svn commit: r217332 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2011-01-12 Thread Matthew D Fleming
Author: mdf Date: Wed Jan 12 23:06:38 2011 New Revision: 217332 URL: http://svn.freebsd.org/changeset/base/217332 Log: Revert cddl changes for sysctl(9) until I understand why this isn't building on universe. Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c head/sys/cdd

svn commit: r217337 - head/sys/x86/x86

2011-01-12 Thread Matthew D Fleming
Author: mdf Date: Thu Jan 13 00:52:57 2011 New Revision: 217337 URL: http://svn.freebsd.org/changeset/base/217337 Log: Revert to using bus_size_t for the bounce_zone's alignment member. Reuqested by: jhb Modified: head/sys/x86/x86/busdma_machdep.c Modified: head/sys/x86/x86/busdma_machd

svn commit: r217367 - in head: cddl/contrib/opensolaris/lib/libzpool/common/sys sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2011-01-13 Thread Matthew D Fleming
Author: mdf Date: Thu Jan 13 18:20:19 2011 New Revision: 217367 URL: http://svn.freebsd.org/changeset/base/217367 Log: Re-commit the zfs sysctl(9) type-safety changes. Thanks to dim and pjd for the pointer to zfs_context.h for building userland. Modified: head/cddl/contrib/opensolaris/

svn commit: r217368 - in head/sys: amd64/amd64 cam dev/ath dev/sound/pcm kern

2011-01-13 Thread Matthew D Fleming
Author: mdf Date: Thu Jan 13 18:20:27 2011 New Revision: 217368 URL: http://svn.freebsd.org/changeset/base/217368 Log: Fix up a few more sysctl(9) mis-typing found in various LINT builds. Modified: head/sys/amd64/amd64/mp_machdep.c head/sys/cam/cam_xpt.c head/sys/dev/ath/if_ath.c head/s

svn commit: r217369 - in head/sys: cam/scsi sys

2011-01-13 Thread Matthew D Fleming
Author: mdf Date: Thu Jan 13 18:20:33 2011 New Revision: 217369 URL: http://svn.freebsd.org/changeset/base/217369 Log: Add a 64-bit hex-printed sysctl(9) since there is at least one place in the code that wanted it. It is named X64 rather than XQUAD since the quad name is a historical abomi

svn commit: r217370 - head/sys/kern

2011-01-13 Thread Matthew D Fleming
Author: mdf Date: Thu Jan 13 18:20:37 2011 New Revision: 217370 URL: http://svn.freebsd.org/changeset/base/217370 Log: One more sysctl(9) type-safety that I missed before. Modified: head/sys/kern/sched_4bsd.c Modified: head/sys/kern/sched_4bsd.c ==

svn commit: r217521 - head/sbin/sysctl

2011-01-17 Thread Matthew D Fleming
Author: mdf Date: Mon Jan 17 23:36:53 2011 New Revision: 217521 URL: http://svn.freebsd.org/changeset/base/217521 Log: The kernel is not exporting any "T,dev_t" sysctl nodes anymore, so remove the capability and mention from sysctl(8). Modified: head/sbin/sysctl/sysctl.8 head/sbin/sysctl/

svn commit: r217522 - head/sbin/sysctl

2011-01-17 Thread Matthew D Fleming
Author: mdf Date: Mon Jan 17 23:43:03 2011 New Revision: 217522 URL: http://svn.freebsd.org/changeset/base/217522 Log: Fix typo and bump date. Modified: head/sbin/sysctl/sysctl.8 Modified: head/sbin/sysctl/sysctl.8 =

svn commit: r217554 - in head/sys: net80211 netinet

2011-01-18 Thread Matthew D Fleming
Author: mdf Date: Tue Jan 18 21:14:13 2011 New Revision: 217554 URL: http://svn.freebsd.org/changeset/base/217554 Log: Specify a CTLTYPE_FOO so that a future sysctl(8) change does not need to rely on the format string. For SYSCTL_PROC instances that I noticed a discrepancy between the CTLTY

svn commit: r217555 - head/sys/kern

2011-01-18 Thread Matthew D Fleming
Author: mdf Date: Tue Jan 18 21:14:18 2011 New Revision: 217555 URL: http://svn.freebsd.org/changeset/base/217555 Log: Specify a CTLTYPE_FOO so that a future sysctl(8) change does not need to rely on the format string. Modified: head/sys/kern/kern_linker.c head/sys/kern/kern_sysctl.c he

svn commit: r217556 - in head/sys/dev: e1000 en fatm iscsi/initiator ixgbe patm usb/net

2011-01-18 Thread Matthew D Fleming
Author: mdf Date: Tue Jan 18 21:14:23 2011 New Revision: 217556 URL: http://svn.freebsd.org/changeset/base/217556 Log: Specify a CTLTYPE_FOO so that a future sysctl(8) change does not need to rely on the format string. Modified: head/sys/dev/e1000/if_em.c head/sys/dev/e1000/if_igb.c hea

svn commit: r217566 - in head: share/examples/kld/dyn_sysctl sys/compat/ndis sys/dev/acpi_support sys/dev/acpica sys/dev/msk sys/dev/patm sys/dev/xen/netback sys/xen/xenbus

2011-01-18 Thread Matthew D Fleming
Author: mdf Date: Wed Jan 19 00:57:58 2011 New Revision: 217566 URL: http://svn.freebsd.org/changeset/base/217566 Log: Fix a few more SYSCTL_PROC() that were missing a CTLFLAG type specifier. Modified: head/share/examples/kld/dyn_sysctl/dyn_sysctl.c head/sys/compat/ndis/subr_ntoskrnl.c he

svn commit: r217586 - in head: sbin/sysctl share/man/man9 sys/cam/scsi sys/dev/cxgb sys/dev/wi sys/net sys/sys

2011-01-19 Thread Matthew D Fleming
Author: mdf Date: Wed Jan 19 17:04:07 2011 New Revision: 217586 URL: http://svn.freebsd.org/changeset/base/217586 Log: sysctl(8) should use the CTLTYPE to determine the type of data when reading. (This was already done for writing to a sysctl). This requires all SYSCTL setups to specify a

svn commit: r217616 - in head: lib/libjail sbin/sysctl share/man/man9 sys/cddl/compat/opensolaris/kern sys/dev/cxgb sys/dev/msk sys/kern sys/mips/mips sys/mips/rmi sys/sys sys/x86/x86

2011-01-19 Thread Matthew D Fleming
Author: mdf Date: Wed Jan 19 23:00:25 2011 New Revision: 217616 URL: http://svn.freebsd.org/changeset/base/217616 Log: Introduce signed and unsigned version of CTLTYPE_QUAD, renaming existing uses. Rename sysctl_handle_quad() to sysctl_handle_64(). Modified: head/lib/libjail/jail.c head/

svn commit: r217830 - head/share/man/man9

2011-01-25 Thread Matthew D Fleming
Author: mdf Date: Tue Jan 25 17:39:52 2011 New Revision: 217830 URL: http://svn.freebsd.org/changeset/base/217830 Log: Document sbuf_new_for_sysctl(9). Pointed out by: lstewart Modified: head/share/man/man9/Makefile head/share/man/man9/sbuf.9 Modified: head/share/man/man9/Makefi

svn commit: r217886 - in head/sys: amd64/amd64 i386/i386

2011-01-26 Thread Matthew D Fleming
Author: mdf Date: Wed Jan 26 17:06:13 2011 New Revision: 217886 URL: http://svn.freebsd.org/changeset/base/217886 Log: Set td_kstack_pages for thread0. This was already being done for most architectures, but i386 and amd64 were missing it. Submitted by: Mohd Fahadullah Modified: head

svn commit: r217915 - in head/sys: geom kern sys

2011-01-26 Thread Matthew D Fleming
Author: mdf Date: Wed Jan 26 22:48:09 2011 New Revision: 217915 URL: http://svn.freebsd.org/changeset/base/217915 Log: Remove the CTLFLAG_NOLOCK as it seems to be both unused and unfunctional. Wiring the user buffer has only been done explicitly since r101422. Mark the kern.disks sysct

svn commit: r217916 - in head: share/man/man9 sys/dev/cxgb sys/kern sys/vm

2011-01-26 Thread Matthew D Fleming
Author: mdf Date: Thu Jan 27 00:34:12 2011 New Revision: 217916 URL: http://svn.freebsd.org/changeset/base/217916 Log: Explicitly wire the user buffer rather than doing it implicitly in sbuf_new_for_sysctl(9). This allows using an sbuf with a SYSCTL_OUT drain for extremely large amounts of

svn commit: r218195 - in head/sys: amd64/amd64 arm/arm i386/i386 ia64/ia64 kern mips/mips powerpc/powerpc sparc64/sparc64 sun4v/sun4v sys ufs/ffs

2011-02-02 Thread Matthew D Fleming
Author: mdf Date: Wed Feb 2 16:35:10 2011 New Revision: 218195 URL: http://svn.freebsd.org/changeset/base/218195 Log: Put the general logic for being a CPU hog into a new function should_yield(). Use this in various places. Encapsulate the common case of check-and-yield into a new functio

svn commit: r218424 - in head/sys: dev/sio kern pc98/cbus sys ufs/ffs

2011-02-07 Thread Matthew D Fleming
Author: mdf Date: Tue Feb 8 00:16:36 2011 New Revision: 218424 URL: http://svn.freebsd.org/changeset/base/218424 Log: Based on discussions on the svn-src mailing list, rework r218195: - entirely eliminate some calls to uio_yeild() as being unnecessary, such as in a sysctl handler.

svn commit: r218425 - in head: . sys/kern sys/sys

2011-02-07 Thread Matthew D Fleming
Author: mdf Date: Tue Feb 8 00:36:46 2011 New Revision: 218425 URL: http://svn.freebsd.org/changeset/base/218425 Log: Remove the uio_yield prototype and symbol. This function has been misnamed since it was introduced and should not be globally exposed with this name. The equivalent functi

svn commit: r218685 - head/sys/dev/acpica

2011-02-14 Thread Matthew D Fleming
Author: mdf Date: Mon Feb 14 17:20:20 2011 New Revision: 218685 URL: http://svn.freebsd.org/changeset/base/218685 Log: Prevent reading from the ACPI_RESOURCE past its actual end. For paranoia limit to the size of the ACPI_RESOURCE as well. Reviewd by: jhb (in spirit) MFC after:1

svn commit: r218825 - in head/sys: ddb gdb kern

2011-02-18 Thread Matthew D Fleming
Author: mdf Date: Fri Feb 18 22:25:11 2011 New Revision: 218825 URL: http://svn.freebsd.org/changeset/base/218825 Log: Modify kdb_trap() so that it re-calls the dbbe_trap function as long as the debugger back-end has changed. This means that switching from ddb to gdb no longer requires a "s

svn commit: r223875 - head/sys/kern

2011-07-08 Thread Matthew D Fleming
Author: mdf Date: Fri Jul 8 20:41:07 2011 New Revision: 223875 URL: http://svn.freebsd.org/changeset/base/223875 Log: style(9) and cleanup fixes. MFC after: 1 week Modified: head/sys/kern/kern_fail.c Modified: head/sys/kern/kern_fail.c ==

svn commit: r223876 - in head: share/man/man9 sys/kern

2011-07-08 Thread Matthew D Fleming
Author: mdf Date: Fri Jul 8 20:41:12 2011 New Revision: 223876 URL: http://svn.freebsd.org/changeset/base/223876 Log: Add an option to have a fail point term only execute when run by a specified pid. This is helpful for automated testing involving a global knob that would otherwise be exec

svn commit: r224190 - stable/8/sys/kern

2011-07-18 Thread Matthew D Fleming
Author: mdf Date: Mon Jul 18 18:06:39 2011 New Revision: 224190 URL: http://svn.freebsd.org/changeset/base/224190 Log: MFC r223875, r223876: style(9) and cleanup fixes. Add an option to have a fail point term only execute when run by a specified pid. This is helpful for automated te

  1   2   >