Re: svn commit: r239178 - in head/sys: kern sys

2012-08-13 Thread Hans Petter Selasky
On Monday 13 August 2012 23:00:25 John Baldwin wrote: > int > foo_attach(device_t dev) > { > struct foo_softc *sc; > > sc = malloc(sizeof(struct foo_softc), M_BUS, M_WAITOK | M_ZERO); > device_set_softc(dev, sc); > ... Hi, Here you forget that there are alot of el

svn commit: r239245 - head/sys/dev/sound/macio

2012-08-13 Thread Andreas Tobler
Author: andreast Date: Tue Aug 14 05:16:35 2012 New Revision: 239245 URL: http://svn.freebsd.org/changeset/base/239245 Log: Fix typo in comment. Modified: head/sys/dev/sound/macio/snapper.c Modified: head/sys/dev/sound/macio/snapper.c =

svn commit: r239244 - head/sys/dev/twe

2012-08-13 Thread John Baldwin
Author: jhb Date: Mon Aug 13 21:29:34 2012 New Revision: 239244 URL: http://svn.freebsd.org/changeset/base/239244 Log: Add locking to the twe(4) driver and make it MPSAFE: - Add per-controller configuration (sx) and I/O (mutex) locks. The configuration lock protects the relationship of vo

svn commit: r239243 - head/sys/boot/i386/libi386

2012-08-13 Thread Dimitry Andric
Author: dim Date: Mon Aug 13 21:04:01 2012 New Revision: 239243 URL: http://svn.freebsd.org/changeset/base/239243 Log: After r239066, reinitialize v86.ctl and v86.addr for int 13 EDD probing in sys/boot/i386/libi386/biosdisk.c. Otherwise, when DISK_DEBUG is enabled, the DEBUG() macros will

Re: svn commit: r239178 - in head/sys: kern sys

2012-08-13 Thread John Baldwin
On Monday, August 13, 2012 3:43:42 pm Hans Petter Selasky wrote: > On Monday 13 August 2012 15:49:07 John Baldwin wrote: > > On Friday, August 10, 2012 11:02:50 am Hans Petter Selasky wrote: > > > Author: hselasky > > > Date: Fri Aug 10 15:02:49 2012 > > > New Revision: 239178 > > > URL: http://svn

Re: svn commit: r239178 - in head/sys: kern sys

2012-08-13 Thread Hans Petter Selasky
On Monday 13 August 2012 15:49:07 John Baldwin wrote: > On Friday, August 10, 2012 11:02:50 am Hans Petter Selasky wrote: > > Author: hselasky > > Date: Fri Aug 10 15:02:49 2012 > > New Revision: 239178 > > URL: http://svn.freebsd.org/changeset/base/239178 > > > > Log: > > Add new device method

Re: svn commit: r239178 - in head/sys: kern sys

2012-08-13 Thread Hans Petter Selasky
On Monday 13 August 2012 15:49:07 John Baldwin wrote: > On Friday, August 10, 2012 11:02:50 am Hans Petter Selasky wrote: > > Author: hselasky > > Date: Fri Aug 10 15:02:49 2012 > > New Revision: 239178 > > URL: http://svn.freebsd.org/changeset/base/239178 > > > > Log: > > Add new device method

svn commit: r239242 - head/sys/dev/netmap

2012-08-13 Thread Ed Maste
Author: emaste Date: Mon Aug 13 19:14:45 2012 New Revision: 239242 URL: http://svn.freebsd.org/changeset/base/239242 Log: Reword comment to try to improve clarity, and fix a typo. Modified: head/sys/dev/netmap/ixgbe_netmap.h Modified: head/sys/dev/netmap/ixgbe_netmap.h ==

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

2012-08-13 Thread John Baldwin
Author: jhb Date: Mon Aug 13 18:52:51 2012 New Revision: 239241 URL: http://svn.freebsd.org/changeset/base/239241 Log: Remove the deassert INIT IPI from the IPI startup sequence for APs. It is not listed in the boot sequence in the MP specification (1.4), and it is explicitly ignored on mode

svn commit: r239240 - head/sys/dev/usb

2012-08-13 Thread Hans Petter Selasky
Author: hselasky Date: Mon Aug 13 18:34:04 2012 New Revision: 239240 URL: http://svn.freebsd.org/changeset/base/239240 Log: Fix for missing locks due to recent change. PR: usb/170606 MFC after:2 weeks Modified: head/sys/dev/usb/usb_device.c Modified: head/sys/dev/usb/usb

svn commit: r239239 - head/lib/libusb

2012-08-13 Thread Hans Petter Selasky
Author: hselasky Date: Mon Aug 13 18:10:52 2012 New Revision: 239239 URL: http://svn.freebsd.org/changeset/base/239239 Log: Add support for streams to LibUSB v2.0. MFC after:2 weeks Modified: head/lib/libusb/libusb20.3 head/lib/libusb/libusb20.c head/lib/libusb/libusb20.h head/

svn commit: r239238 - head/sys/dev/usb

2012-08-13 Thread Hans Petter Selasky
Author: hselasky Date: Mon Aug 13 18:09:19 2012 New Revision: 239238 URL: http://svn.freebsd.org/changeset/base/239238 Log: Rename new IOCTL to singular form of the noun "streams". MFC after:2 weeks Modified: head/sys/dev/usb/usb_generic.c head/sys/dev/usb/usb_ioctl.h Modified: he

svn commit: r239237 - head/sys/dev/usb

2012-08-13 Thread Hans Petter Selasky
Author: hselasky Date: Mon Aug 13 18:00:34 2012 New Revision: 239237 URL: http://svn.freebsd.org/changeset/base/239237 Log: Improve auto-quirks detection for certain Kingston memory sticks. MFC after:2 weeks Modified: head/sys/dev/usb/usb_msctest.c Modified: head/sys/dev/usb/usb_msc

Re: svn commit: r239214 - in head/sys: dev/usb dev/usb/controller sys

2012-08-13 Thread Hans Petter Selasky
On Monday 13 August 2012 19:09:41 Gavin Atkinson wrote: > On Sun, 2012-08-12 at 17:53 +, Hans Petter Selasky wrote: > > Author: hselasky > > Date: Sun Aug 12 17:53:06 2012 > > New Revision: 239214 > > URL: http://svn.freebsd.org/changeset/base/239214 > > > > Log: > > Add support for the so-c

Re: svn commit: r239178 - in head/sys: kern sys

2012-08-13 Thread John Baldwin
On Friday, August 10, 2012 11:02:50 am Hans Petter Selasky wrote: > Author: hselasky > Date: Fri Aug 10 15:02:49 2012 > New Revision: 239178 > URL: http://svn.freebsd.org/changeset/base/239178 > > Log: > Add new device method to free the automatically > allocated softc structure which is retur

svn commit: r239236 - in head/sys: conf mips/include mips/mips

2012-08-13 Thread Alan Cox
Author: alc Date: Mon Aug 13 17:38:38 2012 New Revision: 239236 URL: http://svn.freebsd.org/changeset/base/239236 Log: Port the new PV entry allocator from amd64/i386. This allocator has two advantages. First, PV entries are roughly half the size. Second, this allocator doesn't access the

Re: svn commit: r239214 - in head/sys: dev/usb dev/usb/controller sys

2012-08-13 Thread Gavin Atkinson
On Sun, 2012-08-12 at 17:53 +, Hans Petter Selasky wrote: > Author: hselasky > Date: Sun Aug 12 17:53:06 2012 > New Revision: 239214 > URL: http://svn.freebsd.org/changeset/base/239214 > > Log: > Add support for the so-called streams feature of BULK endpoints > in SUPER-speed mode, USB 3.0

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

2012-08-13 Thread John Baldwin
Author: jhb Date: Mon Aug 13 16:33:22 2012 New Revision: 239235 URL: http://svn.freebsd.org/changeset/base/239235 Log: Add a 10 millisecond delay after sending the initial INIT IPI. This matches the algorithm in the MP specification (1.4). Previously we were sending out the deassert INIT I

svn commit: r239234 - head/sys/dev/re

2012-08-13 Thread Ed Maste
Author: emaste Date: Mon Aug 13 16:03:30 2012 New Revision: 239234 URL: http://svn.freebsd.org/changeset/base/239234 Log: Use array notation for consistency. Modified: head/sys/dev/re/if_re.c Modified: head/sys/dev/re/if_re.c ==

svn commit: r239233 - head/usr.sbin/lpr/lpd

2012-08-13 Thread Warren Block
Author: wblock (doc committer) Date: Mon Aug 13 15:16:25 2012 New Revision: 239233 URL: http://svn.freebsd.org/changeset/base/239233 Log: Correct description of minfree to kilobytes rather than blocks. PR: 125921 Submitted by: Andre Albsmeier MFC after:3 days Modified:

svn commit: r239232 - head/sys/boot/common

2012-08-13 Thread Andrey V. Elsukov
Author: ae Date: Mon Aug 13 13:33:21 2012 New Revision: 239232 URL: http://svn.freebsd.org/changeset/base/239232 Log: Restore the old behaviour. If requested partition is a BSD slice, but d_partition isn't explicitly set, then try to open BSD label and its first partition. Modified: head/

svn commit: r239231 - head/sys/boot/common

2012-08-13 Thread Andrey V. Elsukov
Author: ae Date: Mon Aug 13 13:10:50 2012 New Revision: 239231 URL: http://svn.freebsd.org/changeset/base/239231 Log: Remove colons from the debug message, device name returned by the disk_fmtdev() already has the colons. Modified: head/sys/boot/common/disk.c Modified: head/sys/boot/common

svn commit: r239230 - head/sys/boot/common

2012-08-13 Thread Andrey V. Elsukov
Author: ae Date: Mon Aug 13 13:08:30 2012 New Revision: 239230 URL: http://svn.freebsd.org/changeset/base/239230 Log: Unbreak booting from the true dedicated disks. When we open the disk, check the type of partition table, that has been detected. If this is BSD label, then we assume this is

svn commit: r239228 - in head/sys: amd64/conf i386/conf

2012-08-13 Thread Colin Percival
Author: cperciva Date: Mon Aug 13 07:36:57 2012 New Revision: 239228 URL: http://svn.freebsd.org/changeset/base/239228 Log: Build modules along with the XENHVM kernels. No objections from: freebsd-xen mailing list MFC after:1 week Modified: head/sys/amd64/conf/XENHVM head/sys/i