]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
14 years agoMFC r200028, r201193, r201752, r201930, r202460, r200672, r206375:
ume [Wed, 7 Apr 2010 19:04:36 +0000 (19:04 +0000)]
MFC r200028, r201193, r201752, r201930, r202460, r200672, r206375:
Unify rc.firewall and rc.firewall6, and obsolete rc.firewall6 and
rc.d/ip6fw.

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

14 years agoThis is an MFC of 205993
mjacob [Wed, 7 Apr 2010 17:58:29 +0000 (17:58 +0000)]
This is an MFC of 205993

For unhandled actions in xpt_action_default, remember to call
xpt_done for queued requests. This solves the problem of
indefinite hangs for unspecified transports when XPT_SCAN_BUS
is called.

A few minor cosmetics elsewhere.

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

14 years agoMFC: r205572
rmacklem [Wed, 7 Apr 2010 15:19:52 +0000 (15:19 +0000)]
MFC: r205572
Fix the experimental NFS subsystem so that it uses the correct
preprocessor macro name for not requiring strict data alignment.

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

14 years agoMFC r205986:
rpaulo [Wed, 7 Apr 2010 14:59:07 +0000 (14:59 +0000)]
MFC r205986:
 Constify vap argument of ieee80211_{note,discard}* functions.

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

14 years agoRegen.
kib [Wed, 7 Apr 2010 14:53:49 +0000 (14:53 +0000)]
Regen.

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

14 years agoMFC r205327:
kib [Wed, 7 Apr 2010 14:52:42 +0000 (14:52 +0000)]
MFC r205327:
Remove empty line.

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

14 years agoMFC r205326:
kib [Wed, 7 Apr 2010 14:50:58 +0000 (14:50 +0000)]
MFC r205326:
Convert aio syscall registration to SYSCALL_INIT_HELPER.

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

14 years agoMFC r205325:
kib [Wed, 7 Apr 2010 14:49:35 +0000 (14:49 +0000)]
MFC r205325:
Implement compat32 shims for mqueuefs.

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

14 years agoMFC r205324:
kib [Wed, 7 Apr 2010 14:47:55 +0000 (14:47 +0000)]
MFC r205324:
Implement compat32 shims for ksem syscalls.

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

14 years agoMFC r205323:
kib [Wed, 7 Apr 2010 14:46:28 +0000 (14:46 +0000)]
MFC r205323:
Move SysV IPC freebsd32 compat shims from freebsd32_misc.c to corresponding
sysv_{msg,sem,shm}.c files.

Mark SysV IPC freebsd32 syscalls as NOSTD and add required
SYSCALL_INIT_HELPER/SYSCALL32_INIT_HELPERs to provide auto
register/unregister on module load.

This makes COMPAT_FREEBSD32 functional with SysV IPC compiled and loaded
as modules.

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

14 years agoMFC r205322:
kib [Wed, 7 Apr 2010 14:35:09 +0000 (14:35 +0000)]
MFC r205322:
Move SysV IPC freebsd32 compat shims helpers from freebsd32_misc.c to
sysv_ipc.c.

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

14 years agoMFC r205321:
kib [Wed, 7 Apr 2010 14:28:47 +0000 (14:28 +0000)]
MFC r205321:
Introduce SYSCALL_INIT_HELPER and SYSCALL32_INIT_HELPER macros and
neccessary support functions to allow registering dynamically loaded
syscalls from the MOD_LOAD handlers. Helpers handle registration
failures semi-automatically.

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

14 years agoMFC r205320:
kib [Wed, 7 Apr 2010 14:22:38 +0000 (14:22 +0000)]
MFC r205320:
For SYSCALL_MODULE_HELPER, use "sys/<syscallname>" module name.
For SYSCALL32_MODULE_HELPER, use "sys32/<syscallname>" module name.
This avoids modules name conflict when compat32 syscall does not
need shims.

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

14 years agoMFC r205318:
kib [Wed, 7 Apr 2010 14:16:14 +0000 (14:16 +0000)]
MFC r205318:
Properly handle compat32 calls to sctp generic sendmsd/recvmsg functions that
take iov.

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

14 years agoMFC r205319:
kib [Wed, 7 Apr 2010 14:09:29 +0000 (14:09 +0000)]
MFC r205319:
Make freebsd32_copyiniov() available outside of freebsd32_misc.

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

14 years agoadd priority scheduler.
luigi [Wed, 7 Apr 2010 13:18:58 +0000 (13:18 +0000)]
add priority scheduler.

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

14 years agofix breakage in ipfw removal.
luigi [Wed, 7 Apr 2010 12:42:49 +0000 (12:42 +0000)]
fix breakage in ipfw removal.

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

14 years agoRegen after MFC of COMPAT_FREEBSD32.
nwhitehorn [Wed, 7 Apr 2010 02:25:36 +0000 (02:25 +0000)]
Regen after MFC of COMPAT_FREEBSD32.

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

14 years agoMFC r205014,205015:
nwhitehorn [Wed, 7 Apr 2010 02:24:41 +0000 (02:24 +0000)]
MFC r205014,205015:

Provide groundwork for 32-bit binary compatibility on non-x86 platforms,
for upcoming 64-bit PowerPC and MIPS support. This renames the COMPAT_IA32
option to COMPAT_FREEBSD32, removes some IA32-specific code from MI parts
of the kernel and enhances the freebsd32 compatibility code to support
big-endian platforms.

This MFC is required for MFCs of later changes to the freebsd32
compatibility from HEAD.

Requested by: kib

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

14 years agoMFC r203147
thompsa [Wed, 7 Apr 2010 00:34:05 +0000 (00:34 +0000)]
MFC r203147

 Add a function to check if the usb devices is still connected.

Submitted by: Hans Petter Selasky

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

14 years agoMFC r205036
thompsa [Wed, 7 Apr 2010 00:32:59 +0000 (00:32 +0000)]
MFC r205036

 Implement USB kernel driver detach from userland.

Submitted by: Hans Petter Selasky

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

14 years agoMFC r205681
thompsa [Wed, 7 Apr 2010 00:30:25 +0000 (00:30 +0000)]
MFC r205681

 - add some usb devices (scanner, printer, usb storage)
 - add quirks for the usb storage

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

14 years agoMFC r203087
thompsa [Wed, 7 Apr 2010 00:27:59 +0000 (00:27 +0000)]
MFC r203087

 adds sysctl knobs to show rate statistics that it could be useful to
 debug slow TX speed.

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

14 years agoMFC r202609
thompsa [Wed, 7 Apr 2010 00:26:39 +0000 (00:26 +0000)]
MFC r202609

 Product ID of D-Link DWA-120 after loading the firmware is incorrect.

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

14 years agoMFC r202608
thompsa [Wed, 7 Apr 2010 00:25:03 +0000 (00:25 +0000)]
MFC r202608

 Remove a hack to attach TRENDnet TEW-504UB/EU, this has been solved.

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

14 years agoMFC r205805
thompsa [Tue, 6 Apr 2010 23:31:22 +0000 (23:31 +0000)]
MFC r205805

 Do not sync cache for the PL2506

PR: usb/144915
Submitted by: Monty Hall

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

14 years agoMFC r205804
thompsa [Tue, 6 Apr 2010 23:30:57 +0000 (23:30 +0000)]
MFC r205804

 Do not swap Apple keys when detecting Apple-FN keyboards.

Reported by: Steven Noonan
Submitted by: Hans Petter Selasky

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

14 years agoMFC r205803
thompsa [Tue, 6 Apr 2010 23:30:30 +0000 (23:30 +0000)]
MFC r205803

 Make sure the bsd_urb_list gets initialised and that new URB's are queued at
 the end of the list.

Submitted by: Hans Petter Selasky

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

14 years agoMFC r205802
thompsa [Tue, 6 Apr 2010 23:30:02 +0000 (23:30 +0000)]
MFC r205802

 Add PCI IDs for two more nForce controllers.

Submitted by: Dmitry Luhtionov @ gmail.com

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

14 years agoMFC r205801
thompsa [Tue, 6 Apr 2010 23:29:38 +0000 (23:29 +0000)]
MFC r205801

 Add a couple of usb product IDs.

Submitted by: Dmitry Luhtionov @ gmail.com

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

14 years agoMFC r205043
thompsa [Tue, 6 Apr 2010 23:29:14 +0000 (23:29 +0000)]
MFC r205043

 Add device ID for the NATURAL4000 keyboard

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

14 years agoMFC r205042
thompsa [Tue, 6 Apr 2010 23:28:46 +0000 (23:28 +0000)]
MFC r205042

 - Integrate latest driver code from OpenBSD
 - Drain our tasks from the ieee80211 taskqueue
 - Add more IDs

Submitted by: Akinori Furukoshi

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

14 years agoMFC r205040
thompsa [Tue, 6 Apr 2010 23:28:18 +0000 (23:28 +0000)]
MFC r205040

 extend search for Apple Function Key.

PR: usb/144414
Submitted by: Hans Petter Selasky

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

14 years agoMFC r205039
thompsa [Tue, 6 Apr 2010 23:27:55 +0000 (23:27 +0000)]
MFC r205039

 Add new device ID for the SMC 2514HUB

Submitted by: Alexander Best

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

14 years agoMFC r205038
thompsa [Tue, 6 Apr 2010 23:27:31 +0000 (23:27 +0000)]
MFC r205038

 add new vendor ID for APACER

Submitted by: Paul B Mahol

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

14 years agoMFC r205035
thompsa [Tue, 6 Apr 2010 23:27:04 +0000 (23:27 +0000)]
MFC r205035

 Make sure there is a way to reset the endpoint FIFO on transfer errors for
 ISOCHRONOUS transfers

Submitted by: Hans Petter Selasky

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

14 years agoMFC r205034
thompsa [Tue, 6 Apr 2010 23:26:40 +0000 (23:26 +0000)]
MFC r205034

 For USS820 driver we need to manually reset TX FIFO at each SETUP transaction
 because the chip doesn't do this by itself.

Submitted by: Hans Petter Selasky

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

14 years agoMFC r205033
thompsa [Tue, 6 Apr 2010 23:26:17 +0000 (23:26 +0000)]
MFC r205033

 isochronous endpoint descriptors should have two more bytes which are zero by
 default.

Submitted by: Hans Petter Selasky

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

14 years agoMFC r205032
thompsa [Tue, 6 Apr 2010 23:25:53 +0000 (23:25 +0000)]
MFC r205032

 Add new uvisor(4) device ID.

PR: usb/144201

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

14 years agoMFC r205031
thompsa [Tue, 6 Apr 2010 23:25:19 +0000 (23:25 +0000)]
MFC r205031

 It appears that some UVISOR devices do not handle when the clear stall command
 is issued at the beginning of the initial IN/OUT data transfers.  Reason
 unknown, probably firmware fault. Now the stall is only cleared on data
 transfer errors.

PR: usb/144199
Submitted by: Hans Petter Selasky

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

14 years agoMFC r205030
thompsa [Tue, 6 Apr 2010 23:24:55 +0000 (23:24 +0000)]
MFC r205030

 - make the usb_temp_setup() and usb_temp_unsetup() functions public so that
   other modules can generate USB descriptors.
 - extend the vendor specific request function by one length pointer argument,
   because not all descriptors store the length in the first byte. For example
   HID descriptors.

Submitted by: Hans Petter Selasky

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

14 years agoMFC r205029
thompsa [Tue, 6 Apr 2010 23:24:29 +0000 (23:24 +0000)]
MFC r205029

 Use wMaxPacketSize for the uftdi input buffer size.

Submitted by: Hans Petter Selasky

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

14 years agoMFC r205026
thompsa [Tue, 6 Apr 2010 23:24:07 +0000 (23:24 +0000)]
MFC r205026

 Reapply r185998 which was overwritten at some point.

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

14 years agoMFC r205005
thompsa [Tue, 6 Apr 2010 23:23:43 +0000 (23:23 +0000)]
MFC r205005

 Wrap the proc wakeup special case for ddb in ifdef DDB.

Submitted by: Giovanni Trematerra

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

14 years agoMFC r203906
thompsa [Tue, 6 Apr 2010 23:23:19 +0000 (23:23 +0000)]
MFC r203906

 Add device ID for the FTDI 4232H.

PR: usb/143832
Submitted by: UEMURA Tetsuya

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

14 years agoMFC r203905
thompsa [Tue, 6 Apr 2010 23:22:47 +0000 (23:22 +0000)]
MFC r203905

 Add support for the E1752 3G modem and the required eject command.

Submitted by: Milan Obuch

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

14 years agoMFC r203903
thompsa [Tue, 6 Apr 2010 23:22:19 +0000 (23:22 +0000)]
MFC r203903

 Make umodem more tolerant for devices which modem descriptors are misplaced.

Reported by: Erick Wales
Submitted by: Hans Petter Selasky

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

14 years agoMFC r203899
thompsa [Tue, 6 Apr 2010 23:21:54 +0000 (23:21 +0000)]
MFC r203899

 Add UQ_KBD_BOOTPROTO quirk needed in r203896

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

14 years agoMFC r203896
thompsa [Tue, 6 Apr 2010 23:21:30 +0000 (23:21 +0000)]
MFC r203896

 Detect when we are polling from kernel via cngetc() in the boot process and
 reserve the keypresses so they do not get passed to syscons.

Submitted by: Hans Petter Selasky

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

14 years agoMFC r203693
thompsa [Tue, 6 Apr 2010 23:21:06 +0000 (23:21 +0000)]
MFC r203693

 Disable the use of the IAAD usb doorbell on NVidia controllers as it can cause
 the hardware to stall.

Submitted by: Hans Petter Selasky

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

14 years agoMFC r203507
thompsa [Tue, 6 Apr 2010 23:20:41 +0000 (23:20 +0000)]
MFC r203507

 The ZTE MF633R modem has a different type of cdrom driver disk, add the product
 ID and use a standard scsi eject.

Reported by: Patrick Lamaiziere

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

14 years agoMFC r203506
thompsa [Tue, 6 Apr 2010 23:20:13 +0000 (23:20 +0000)]
MFC r203506

 Properly name the 0x0016 ZTE product as MF633R now that its known.

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

14 years agoMFC r203146
thompsa [Tue, 6 Apr 2010 23:19:43 +0000 (23:19 +0000)]
MFC r203146

 Rework cam error handling to fix Mitsumi floppy drives.

Submitted by: mav

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

14 years agoMFC r203145
thompsa [Tue, 6 Apr 2010 23:19:11 +0000 (23:19 +0000)]
MFC r203145

 Simplify attach for UMASS_PROTO_CBI_I mode and change some switch() returns
 into breaks.

Submitted by: Hans Petter Selesky

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

14 years agoMFC r203144
thompsa [Tue, 6 Apr 2010 23:18:41 +0000 (23:18 +0000)]
MFC r203144

 Add null check on quirk lookup and add a couple of umass quirks.

Submitted by: Hans Petter Selesky

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

14 years agoMFC r203143
thompsa [Tue, 6 Apr 2010 23:18:09 +0000 (23:18 +0000)]
MFC r203143

 Add the Netgear WPN111

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

14 years agoMFC r203142
thompsa [Tue, 6 Apr 2010 23:17:43 +0000 (23:17 +0000)]
MFC r203142

 Sync usb products to perforce.

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

14 years agoMFC r203141
thompsa [Tue, 6 Apr 2010 23:17:13 +0000 (23:17 +0000)]
MFC r203141

 Attempt to recover on a TX error rather than stopping all transfers.

Submitted by: Hans Petter Selesky

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

14 years agoMFC r203140
thompsa [Tue, 6 Apr 2010 23:16:40 +0000 (23:16 +0000)]
MFC r203140

 Optimise EHCI ISOC HS done check.

Submitted by: Hans Petter Selasky

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

14 years agoMFC r203139
thompsa [Tue, 6 Apr 2010 23:16:09 +0000 (23:16 +0000)]
MFC r203139

 Add device ID.

PR: usb/142427

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

14 years agoMFC r203138
thompsa [Tue, 6 Apr 2010 23:15:44 +0000 (23:15 +0000)]
MFC r203138

 Use device_printf rather than printf + device_get_nameunit.

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

14 years agoMFC r203137
thompsa [Tue, 6 Apr 2010 23:15:16 +0000 (23:15 +0000)]
MFC r203137

 Release the firmware after loading to the device.

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

14 years agoMFC r203134
thompsa [Tue, 6 Apr 2010 23:14:43 +0000 (23:14 +0000)]
MFC r203134

 Add run(4), a driver for Ralink RT2700U/RT2800U/RT3000U USB 802.11agn devices.

 This driver was written for OpenBSD by Damien Bergamini and ported over by
 Akinori Furukoshi.

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

14 years agoMFC: r205562
rmacklem [Tue, 6 Apr 2010 23:03:20 +0000 (23:03 +0000)]
MFC: r205562
When the regular NFS server replied to a UDP client out of the replay
cache, it did not free the request argument mbuf list, resulting in a leak.
This patch fixes that leak.

PR: kern/144330

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

14 years agoMerge r205659:
danger [Tue, 6 Apr 2010 21:39:18 +0000 (21:39 +0000)]
Merge r205659:
- update zfs and zpool manual pages to match the current state of the source

PR: 144984
Submitted by: mm@
Approved by: pjd@
Obtained from: OpenSolaris

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

14 years agoMerge r204044:
kensmith [Tue, 6 Apr 2010 17:57:27 +0000 (17:57 +0000)]
Merge r204044:

Provide a script that can be used to create the memstick images.

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

14 years agoMFC r203422, r205516:
rpaulo [Tue, 6 Apr 2010 14:07:48 +0000 (14:07 +0000)]
MFC r203422, r205516:

 When receiving a management frame, pass the mbuf to bpf before calling
 iv_recv_mgmt(). iv_recv_mgmt() will generate management frame
 responses
 and pass them to bpf before the management frame that triggered the
 response.

 PR: 144323
 Submitted by: Alexander Egorenkov <egorenar at gmail.com>
 Sponsored by: iXsystems, inc.

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

14 years agoMFC r205514:
rpaulo [Tue, 6 Apr 2010 13:04:27 +0000 (13:04 +0000)]
MFC r205514:
 Add a missing LINE_BREAK() after printing the roaming parameters in
 verbose mode.

 Sponsored by: iXsystems, inc.

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

14 years agoMFC r201213:
trasz [Tue, 6 Apr 2010 10:58:40 +0000 (10:58 +0000)]
MFC r201213:

Remove examples for pppd and SLIP-related stuff.

PR: conf/144950

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

14 years agoMFC r201211:
trasz [Tue, 6 Apr 2010 10:34:15 +0000 (10:34 +0000)]
MFC r201211:

Remove pppd and SLIP-related stuff.

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

14 years agoMFC r201210:
trasz [Tue, 6 Apr 2010 10:32:26 +0000 (10:32 +0000)]
MFC r201210:

Remove pppd, it's gone.

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

14 years agoMFC r205534:
delphij [Tue, 6 Apr 2010 00:50:23 +0000 (00:50 +0000)]
MFC r205534:

Add PCI ID for MCS9901's parallel port.

PR: kern/144713
Submitted by: gcooper

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

14 years agoMFC r205520:
delphij [Tue, 6 Apr 2010 00:46:49 +0000 (00:46 +0000)]
MFC r205520:

Correct cross reference.

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

14 years agoMFC r204267: Allow cxgbtool to build with WARNS=6
np [Mon, 5 Apr 2010 23:55:04 +0000 (23:55 +0000)]
MFC r204267: Allow cxgbtool to build with WARNS=6

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

14 years agoMFC of tzdata2010h:
edwin [Mon, 5 Apr 2010 23:43:23 +0000 (23:43 +0000)]
MFC of tzdata2010h:

From tzdata2010h:

- Tunis will not go into DST this year.
- Pakistan will not go into DST this year.

From tzdata2010g:

- Bangladesh cancels DST.
- Palestine goes into DST one day later than expected.

- Russian timezones update:
  Europe/Samara goes to Moscow time.
  Asia/Kamchatka goes to Moscow+8 time.
  Asia/Anadyr goes to Moscow+8 time.

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

14 years agocxgb(4) MFCs: r204271,r204274,r204348,r204921,r205944,r205945,r205946,r205947,r205948...
np [Mon, 5 Apr 2010 23:29:27 +0000 (23:29 +0000)]
cxgb(4) MFCs: r204271,r204274,r204348,r204921,r205944,r205945,r205946,r205947,r205948,r205949,r205950,r206109

r204271:
Accessing an mbuf after it has been handed off to the hardware is a bad
race as it could already have been tx'd and freed by that time.  Place
the bpf tap just _before_ writing the gen bit.

This fixes a panic when running tcpdump on a cxgb interface.

r204274:
There is no need to test __FreeBSD_version for features that have
been around for a long time now (7.1-ish or even earlier); assume
they are present.  These includes MSI, TSO, LRO, VLAN, INTR_FILTERS,
FIRMWARE, etc.

Also, eliminate some dead code and clean up in other places as part
of this quick once-over.

r204348:
Support IFCAP_VLANHWTSO in cxgb(4).  It works with or without vlanhwtag.
While here, remove old DPRINTFs and tidy up the capability code a bit.

r204921:
Better TwinAx transceiver detection.

Originally submitted by: <Bruno dot Bittner at isilon dot com>
(This is a rewritten, corrected version of that patch)

r205944:
Refresh the firmware version immediately after it is upgraded (or downgraded).

r205945:
Improved PHY EDC settings.

r205946:
Do not attempt to retrieve interrupt information before it is available.

r205947:
Fix build with "nooptions INET"

r205948:
Fix tx drop statistics.

r205949:
Fix signed/unsigned mix-up that allowed txq->in_use to grow beyond txq->size.

r205950:
Multiple fixes related to queue set sizing and resources:

- Only the tunnelq (TXQ_ETH) requires a buf_ring, an ifq, and the watchdog/timer
  callouts.  Do not allocate these for the other tx queues.

- Use 16k jumbo clusters only on offload capable cards by default.

- Do not allocate a full tx ring for the offload queue if the card is not
  offload capable.

- Slightly better freelist size calculation.

- Fix nmbjumbo4 typo, remove unneeded global variables.

r206109:
Increase response queue size to avoid starvation, add a counter
to track it when it does occur.

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

14 years agoAdd missing module Makefile for ixgbe and em MFCs
jfv [Mon, 5 Apr 2010 21:43:22 +0000 (21:43 +0000)]
Add missing module Makefile for ixgbe and em MFCs

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

14 years agoMFC of the em/igb drivers
jfv [Mon, 5 Apr 2010 20:39:44 +0000 (20:39 +0000)]
MFC of the em/igb drivers

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

14 years agoMFC of version 2.1.7 of the ixgbe driver.
jfv [Mon, 5 Apr 2010 18:46:29 +0000 (18:46 +0000)]
MFC of version 2.1.7 of the ixgbe driver.

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

14 years agoThis is an MFC of 205712.
mjacob [Mon, 5 Apr 2010 18:36:47 +0000 (18:36 +0000)]
This is an MFC of 205712.

D'oh- isp_handle_index' logic was reversed (not used in FreeBSD).

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

14 years agoHandle the missing props changes for my MFC of 205698 (206196)
mjacob [Mon, 5 Apr 2010 18:33:42 +0000 (18:33 +0000)]
Handle the missing props changes for my MFC of 205698 (206196)

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

14 years agoMFC: r206086
marius [Mon, 5 Apr 2010 18:25:30 +0000 (18:25 +0000)]
MFC: r206086

- Try do deal gracefully with correctable ECC errors.
- Improve the reporting of unhandled kernel and user traps.

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

14 years agoThis is an MFC of 205698
mjacob [Mon, 5 Apr 2010 18:22:42 +0000 (18:22 +0000)]
This is an MFC of 205698

Clean up some printing stuff so that we can have a bit finer control
on debug output. Add a new platform function requirement to allow
for printing based upon the ITL nexus instead of the isp unit plus
channel, target and lun. This allows some printouts and error messages
from the core code to appear in the same format as the platform's
subsystem (in FreeBSD's case, CAM path).

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

14 years agoMFC: r206020
marius [Mon, 5 Apr 2010 18:04:01 +0000 (18:04 +0000)]
MFC: r206020

Use device_get_nameunit(9) rather than device_get_name(9) so one can
identify the reporting bridge in machines with multiple PCI domains.

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

14 years agoMFC: r206019
marius [Mon, 5 Apr 2010 17:58:47 +0000 (17:58 +0000)]
MFC: r206019

Don't re-implement device_get_nameunit(9).

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

14 years agoMFC: r206018
marius [Mon, 5 Apr 2010 17:56:40 +0000 (17:56 +0000)]
MFC: r206018

- Take advantage of the INTCLR_* macros.
- Right-justify the backslashes as per style(9).

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

14 years agoMFC: r205095
jkim [Mon, 5 Apr 2010 17:37:35 +0000 (17:37 +0000)]
MFC: r205095

Fix a style(9) nit.

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

14 years agoMFC: r205858
jkim [Mon, 5 Apr 2010 17:32:49 +0000 (17:32 +0000)]
MFC: r205858

Check the pointer to JIT binary filter before its de-allocation.

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

14 years agoMFC r204907, r204913, r205402, r205573, r205573
alc [Mon, 5 Apr 2010 16:11:42 +0000 (16:11 +0000)]
MFC r204907, r204913, r205402, r205573, r205573
  Implement AMD's recommended workaround for Erratum 383 on Family 10h
  processors.

  Enable machine check exceptions by default.

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

14 years agoMFC of 2 items to fix the csum for v6 issue:
rrs [Mon, 5 Apr 2010 13:48:23 +0000 (13:48 +0000)]
MFC of 2 items to fix the csum for v6 issue:
Revision 205075 and 205104:

---------205075----------
With the recent change of the sctp checksum to support offload,
no delayed checksum was added to the ip6 output code. This
causes cards that do not support SCTP checksum offload to
have SCTP packets that are IPv6 NOT have the sctp checksum
performed. Thus you could not communicate with a peer. This
adds the missing bits to make the checksum happen for these cards.
-------------------------
---------205104----------
The proper fix for the delayed SCTP checksum is to
have the delayed function take an argument as to the offset
to the SCTP header. This allows it to work for V4 and V6.
This of course means changing all callers of the function
to either pass the header len, if they have it, or create
it (ip_hl << 2 or sizeof(ip6_hdr)).
-------------------------
PR: 144529

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

14 years agoMFC of 204670:
rrs [Mon, 5 Apr 2010 13:33:54 +0000 (13:33 +0000)]
MFC of 204670:
-------------------------
sched_getparam was just plain broke for time-share
processes. It did not return an error but instead
just let garbage be passed back. This I fix so
it actually properly translates the priority the
process is at to a posix's high means more priority.
I also fix it so that if the ULE scheduler has bumped
it up to a realtime process you get back a sane value
i.e. the highest priority (63 for time-share).

sched_setscheduler() had the setting of the
timeshare class priority disabled. With some notes
about rejecting the posix high numbers is greater
priority and use nice instead. This fix also
adjusts that to work, with the cavet that a t-s
process may well get bumped up or down i.e. the
setscheduler() will NOT change the nice value only
the current priority. I think this is reasonable
considering if the user wants to play with nice then
he can. At least all the posix'ish interfaces now
respond sanely.
-----------------------

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

14 years agoMFC r205120,r205126
rnoland [Sun, 4 Apr 2010 15:46:46 +0000 (15:46 +0000)]
MFC r205120,r205126

Add drm support for Intel Pineview chips.

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

14 years agoMFC r203289,r203367
rnoland [Sun, 4 Apr 2010 15:42:52 +0000 (15:42 +0000)]
MFC r203289,r203367

Enable MTRR on all VIA CPUs that claim support

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

14 years agoMFC r205096, r205102
rnoland [Sun, 4 Apr 2010 15:37:47 +0000 (15:37 +0000)]
MFC r205096, r205102

Add AGP support for Intel Pineview and Ironlake chipsets.

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

14 years agoMFC: r205269
marius [Sun, 4 Apr 2010 14:57:46 +0000 (14:57 +0000)]
MFC: r205269

o Add support for UltraSparc-IV+:
  - Swap the configuration of the first and second large dTLB as with
    US-IV+ these can only hold entries of certain page sizes each, which
    we happened to chose the non-working way around.
  - Additionally ensure that the large iTLB is set up to hold 8k pages
    (currently this happens to be a NOP though).
  - Add a workaround for US-IV+ erratum #2.
  - Turn off dTLB parity error reporting as otherwise we get seemingly
    false positives when copying in the user window by simulating a
    fill trap on return to usermode. Given that these parity errors can
    be avoided by disabling multi issue mode and the problem could be
    reproduced with a second machine this appears to be a silicon bug of
    some sort.
  - Add a membar #Sync also before the stores to ASI_DCACHE_TAG. While
    at it, turn of interrupts across the whole cheetah_cache_flush() for
    simplicity instead of around every flush. This should have next to no
    impact as for cheetah-class machines we typically only need to flush
    the caches a few times during boot when recovering from peeking/poking
    non-existent PCI devices, if at all.
  - Just use KERNBASE for FLUSH as we also do elsewhere as the US-IV+
    documentation doesn't seem to mention that these CPUs also ignore the
    address like previous cheetah-class CPUs do. Again the code changing
    LSU_IC is executed seldom enough that the negligible optimization of
    using %g0 instead should have no real impact.

  With these changes FreeBSD runs stable on V890 equipped with US-IV+
  and -j128 buildworlds in a loop for days are no problem. Unfortunately,
  the performance isn't were it should be as a buildworld on a 4x1.5GHz
  US-IV+ V890 takes nearly 3h while on a V440 with (theoretically) less
  powerfull 4x1.5GHz US-IIIi it takes just over 1h. It's unclear whether
  this is related to the supposed silicon bug mentioned above or due to
  another issue. The documentation (which contains a sever bug in the
  description of the bits added to the context registers though) at least
  doesn't mention any requirements for changes in the CPU handling besides
  those implemented and the cache as well as the TLB configurations and
  handling look fine.
o Re-arrange cheetah_init() so it's easier to add support for SPARC64
  V up to VIIIfx CPUs, which only require parts of this initialization.

Committed from: EH2010

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

14 years agoMFC r205652
alc [Sat, 3 Apr 2010 15:43:28 +0000 (15:43 +0000)]
MFC r205652
  A ptrace(2) by one process may trigger a page size promotion in the
  address space of another process.  Modify pmap_promote_pde() to handle
  this.

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

14 years agoMFC r205998:
fabient [Sat, 3 Apr 2010 07:12:35 +0000 (07:12 +0000)]
MFC r205998:
If there is multiple PMCs for the same interrupt ignore new post.
This will indirectly fix a bug where the thread will be pinned
forever if the assert is not compiled.

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

14 years agoMFC r205637:
bz [Fri, 2 Apr 2010 17:52:50 +0000 (17:52 +0000)]
MFC r205637:

  We are holding a write lock here so avoid aquiring it twice calling
  the "locked" version rather than the wrapper function.

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

14 years agoMFC r205789:
bz [Fri, 2 Apr 2010 17:48:01 +0000 (17:48 +0000)]
MFC r205789:

  When tearing down IPsec as part of a (virtual) network stack,
  do not try to free the same list twice but free both the
  acquiring list and the security policy acquiring list.

  Reviewed by:  anchie

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

14 years agoMFC r205854: calendar.freebsd: add my entry
avg [Fri, 2 Apr 2010 15:33:24 +0000 (15:33 +0000)]
MFC r205854: calendar.freebsd: add my entry

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