]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
14 years ago- Fix the problem presented by r196988. svn merge was erroneously
gonzo [Fri, 2 Oct 2009 23:48:42 +0000 (23:48 +0000)]
- Fix the problem presented by r196988. svn merge was erroneously
interrupted and after re-run new files were not added to repo though
respective revisions were marked as merged. This commit presents latest
versions of these files.

14 years ago- MFC
gonzo [Fri, 2 Oct 2009 19:51:03 +0000 (19:51 +0000)]
- MFC

14 years agoThe flow-table associates TCP/UDP flows and IP destinations with
qingli [Thu, 1 Oct 2009 20:32:29 +0000 (20:32 +0000)]
The flow-table associates TCP/UDP flows and IP destinations with
specific routes. When the routing table changes, for example,
when a new route with a more specific prefix is inserted into the
routing table, the flow-table is not updated to reflect that change.
As such existing connections cannot take advantage of the new path.
In some cases the path is broken. This patch will update the affected
flow-table entries when a more specific route is added. The route
entry is properly marked when a route is deleted from the table.
In this case, when the flow-table performs a search, the stale
entry is updated automatically. Therefore this patch is not
necessary for route deletion.

Submitted by: simon, phk
Reviewed by: bz, kmacy
MFC after: 3 days

14 years ago- Sync caches properly when dealing with sf_buf
gonzo [Thu, 1 Oct 2009 20:05:36 +0000 (20:05 +0000)]
- Sync caches properly when dealing with sf_buf

14 years agoPut square backets ([]) around process names for system processes to patch
jhb [Thu, 1 Oct 2009 19:12:14 +0000 (19:12 +0000)]
Put square backets ([]) around process names for system processes to patch
the behavior of ps(1).

14 years agoReturn EOPNOTSUPP instead of EINVAL when doing chflags(2) over an old
delphij [Thu, 1 Oct 2009 18:58:26 +0000 (18:58 +0000)]
Return EOPNOTSUPP instead of EINVAL when doing chflags(2) over an old
format ZFS, as defined in the manual page.

Submitted by: pjd (response of my original patch but bugs are mine)
MFC after: 3 days

14 years agoEHCI Hardware BUG workaround
thompsa [Thu, 1 Oct 2009 18:37:16 +0000 (18:37 +0000)]
EHCI Hardware BUG workaround

The EHCI HW can use the qtd_next field instead of qtd_altnext when a short
packet is received. This contradicts what is stated in the EHCI datasheet.
Also the total-bytes field in the status field of the following TD gets
corrupted upon reception of a short packet!  We work this around in software by
not queueing more than one job/TD at a time of up to 16Kbytes! The bug has been
seen on multiple INTEL based EHCI chips.  Other vendors have not been tested
yet.

- Applications using /dev/usb/X.Y.Z, where Z is non-zero are affected, but not
  applications using LibUSB v0.1, v1.2 and v2.0.
- Mass Storage (umass) is affected.

Submitted by: Hans Petter Selasky
MFC after: 3 days

14 years agoCorrect the pthread stub prototype for pthread_mutexattr_settype to allow for
marcus [Thu, 1 Oct 2009 18:23:50 +0000 (18:23 +0000)]
Correct the pthread stub prototype for pthread_mutexattr_settype to allow for
the type argument.  This is known to fix some pthread_mutexattr_settype()
invocations, especially when it comes to pulseaudio.

Approved by: kib
deischen (threads)
MFC after: 3 days

14 years agoProvide default implementation for VOP_ACCESS(9), so that filesystems which
trasz [Thu, 1 Oct 2009 17:22:03 +0000 (17:22 +0000)]
Provide default implementation for VOP_ACCESS(9), so that filesystems which
want to provide VOP_ACCESSX(9) don't have to implement both.  Note that
this commit makes implementation of either of these two mandatory.

Reviewed by: kib

14 years agoUpgrade to OpenSSH 5.3p1.
des [Thu, 1 Oct 2009 17:12:52 +0000 (17:12 +0000)]
Upgrade to OpenSSH 5.3p1.

14 years agoChanged an IPSEC_ASSERT to a simple test, as such invalid packets
vanhu [Thu, 1 Oct 2009 15:33:53 +0000 (15:33 +0000)]
Changed an IPSEC_ASSERT to a simple test, as such invalid packets
may come from outside without being discarded before.

Submitted by: aurelien.ansel@netasq.com
Reviewed by: bz (secteam)
Obtained from: NETASQ
MFC after: 1m

14 years agoVendor import of OpenSSH 5.3p1
des [Thu, 1 Oct 2009 15:19:37 +0000 (15:19 +0000)]
Vendor import of OpenSSH 5.3p1

14 years agoAs a workaround, for Intel CPUs, do not use CLFLUSH in
kib [Thu, 1 Oct 2009 12:52:48 +0000 (12:52 +0000)]
As a workaround, for Intel CPUs, do not use CLFLUSH in
pmap_invalidate_cache_range() when self-snoop is apparently not reported
in cpu features. We get a reserved trap when clflushing APIC registers
window.

XEN in full system virtualization mode removes self-snoop from CPU
features, making this a problem.

Tested by: csjp
Reviewed by: alc
MFC after: 3 days

14 years agoDo not dereference vp->v_mount without holding vnode lock and checking
kib [Thu, 1 Oct 2009 12:50:26 +0000 (12:50 +0000)]
Do not dereference vp->v_mount without holding vnode lock and checking
that the vnode is not reclaimed.

Noted by: Igor Sysoev <is rambler-co ru>
MFC after: 1 week

14 years agoMove the annotation for vm_map_startup() immediately before the function.
kib [Thu, 1 Oct 2009 12:48:35 +0000 (12:48 +0000)]
Move the annotation for vm_map_startup() immediately before the function.

MFC after: 3 days

14 years agoFix typo.
kib [Thu, 1 Oct 2009 12:46:58 +0000 (12:46 +0000)]
Fix typo.

MFC after: 3 days

14 years agoFix a bad use of NULL instead of zero for int comparison. Sorry for the
cokane [Thu, 1 Oct 2009 11:52:06 +0000 (11:52 +0000)]
Fix a bad use of NULL instead of zero for int comparison. Sorry for the
breakage.

Submitted by: bz, des, onemda
MFC after: 3 days

14 years agoprint machine in kernel boot version string
avg [Thu, 1 Oct 2009 10:53:12 +0000 (10:53 +0000)]
print machine in kernel boot version string

Discussed with: gavin, kib, jhb
PR: kern/126926
MFC after: 2 weeks

14 years agoMFi386: revision 197653
nyan [Thu, 1 Oct 2009 10:46:22 +0000 (10:46 +0000)]
MFi386: revision 197653

  Improve 802.11s comment.

MFC after: 1 day

14 years agostyle(9) fixes (always compare pointers to NULL)
cokane [Thu, 1 Oct 2009 02:43:51 +0000 (02:43 +0000)]
style(9) fixes (always compare pointers to NULL)

Also, the previous commit to sys/dev/if_ndis/if_ndis.c also included the
removal of a call to ndis_setstate_80211 that is no longer needed.

Submitted by: sam
MFC after: 3 days

14 years agoImprove 802.11s comment.
rpaulo [Thu, 1 Oct 2009 02:08:42 +0000 (02:08 +0000)]
Improve 802.11s comment.

Spotted by: dougb
MFC after: 1 day

14 years agoFix typo in the comment.
trasz [Wed, 30 Sep 2009 18:50:50 +0000 (18:50 +0000)]
Fix typo in the comment.

14 years agoDo not hold the ACPI A/C adapter lock when changing the power profile.
jhb [Wed, 30 Sep 2009 17:07:49 +0000 (17:07 +0000)]
Do not hold the ACPI A/C adapter lock when changing the power profile.

MFC after: 2 weeks

14 years agoSplit the 'video' ACPI lock up into two locks to resolve a LOR with the
jhb [Wed, 30 Sep 2009 17:05:26 +0000 (17:05 +0000)]
Split the 'video' ACPI lock up into two locks to resolve a LOR with the
sysctl lock.  The 'video' lock now protects the 'bus' of video output
devices attached to a graphics adapter.  It is used when iterating over
the list of outputs, etc.  The 'video_output' lock is used to lock the
output-specific data similar to a driver lock for the individual video
outputs.

MFC after: 2 weeks

14 years agocpufunc.h: unify/correct style of c extension names
avg [Wed, 30 Sep 2009 16:34:50 +0000 (16:34 +0000)]
cpufunc.h: unify/correct style of c extension names

i386 and amd64 archs only.
inline => __inline. [1]
__asm__ => __asm. [2]

Reviewed by: kib, jhb [1]
Suggested by: kib [2]
MFC after: 1 week

14 years agoDon't do an IPv6 operation when the kernel doesn't have
ume [Wed, 30 Sep 2009 14:58:10 +0000 (14:58 +0000)]
Don't do an IPv6 operation when the kernel doesn't have
an IPv6 support.

Reported by: Alexander Best <alexbestms__at__math.uni-muenster.de>
Confirmed by: Paul B. Mahol <onemda__at__gmail.com>,
Alexander Best <alexbestms__at__math.uni-muenster.de>

14 years agoTwo more mxge watchdog fixes:
gallatin [Wed, 30 Sep 2009 14:42:06 +0000 (14:42 +0000)]
Two more mxge watchdog fixes:

1) Restore the PCI Express control register after a watchdog
   reset.  This is required because the device will come out
   of watchdog reset with the pectl reg at its default state,
   and important BIOS configuration (like max payload size)
   could be lost.

2) Call mxge_start_locked() for every tx queue before dropping
   the lock in the watchdog handler.   This is required, as
   the queue's buf ring may have filled during the reset.

14 years agoCorrect a bug that could lead to a kernel panic if a user attempted to
cokane [Wed, 30 Sep 2009 14:28:38 +0000 (14:28 +0000)]
Correct a bug that could lead to a kernel panic if a user attempted to
perform 802.11 operations directly on the ndis0 interface before the
first VAP (wlan0) had been created. This would lead to a NULL-pointer
dereference in the kernel.

Submitted by: Paul B. Mahol <onemda@gmail.com>
MFC after: 3 days

14 years agoWhen releasing a read/shared lock we need to use a write memory barrier
attilio [Wed, 30 Sep 2009 13:26:31 +0000 (13:26 +0000)]
When releasing a read/shared lock we need to use a write memory barrier
in order to avoid, on architectures which doesn't have strong ordered
writes, CPU instructions reordering.

Diagnosed by: fabio
Reviewed by: jhb
Tested by: Giovanni Trematerra
<giovanni dot trematerra at gmail dot com>

14 years agoprint_caddr_t: drop incorrect __unused attribute from parameter
avg [Wed, 30 Sep 2009 11:14:13 +0000 (11:14 +0000)]
print_caddr_t: drop incorrect __unused attribute from parameter

seems like a purely cosmetic change

Reviewed by: jhb, kib
MFC after: 1 week

14 years agoFix typo in previous commit.
mav [Wed, 30 Sep 2009 11:05:12 +0000 (11:05 +0000)]
Fix typo in previous commit.
Add Realtek ALC887 codec ID.

14 years agoRegenerate system call files following r197636.
rwatson [Wed, 30 Sep 2009 08:48:59 +0000 (08:48 +0000)]
Regenerate system call files following r197636.

14 years agoReserve system call numbers for Capsicum security framework capabilities,
rwatson [Wed, 30 Sep 2009 08:46:01 +0000 (08:46 +0000)]
Reserve system call numbers for Capsicum security framework capabilities,
capability mode, and process descriptors: cap_new, cap_getrights, cap_enter,
cap_getmode, pdfork, pdkill, pdgetpid, and pdwait.

Obtained from: TrustedBSD Project
Sponsored by: Google
MFC after: 3 weeks

14 years agoFix multicast handling. All Atheros controllers use big-endian form
yongari [Tue, 29 Sep 2009 23:03:16 +0000 (23:03 +0000)]
Fix multicast handling. All Atheros controllers use big-endian form
in computing multicast hash.

PR: kern/139137

14 years agoFix using lp(1) without the new -t option after r194171.
jilles [Tue, 29 Sep 2009 21:28:32 +0000 (21:28 +0000)]
Fix using lp(1) without the new -t option after r194171.

PR: standards/129554
Tested by: Steve Kargl
MFC after: 1 week

14 years agoAdd audit events for process descriptor system calls, which will appear in
rwatson [Tue, 29 Sep 2009 21:25:59 +0000 (21:25 +0000)]
Add audit events for process descriptor system calls, which will appear in
a future OpenBSM release.

Sponsored by: Google
Obtained from: TrustedBSD Project
MFC after: 3 weeks

14 years agoFix bug, when RADIUS client gave up after single sendto() error, do not
mav [Tue, 29 Sep 2009 19:09:17 +0000 (19:09 +0000)]
Fix bug, when RADIUS client gave up after single sendto() error, do not
trying backup servers.

PR: kern/103764, misc/139214

14 years agoBy popular acclaim, enable "Starting foo:" messages by default
dougb [Tue, 29 Sep 2009 16:49:10 +0000 (16:49 +0000)]
By popular acclaim, enable "Starting foo:" messages by default

14 years agoSpecial-case "-r X" where X is [0-9.]+ to mean "-r X-RELEASE".
cperciva [Tue, 29 Sep 2009 16:26:09 +0000 (16:26 +0000)]
Special-case "-r X" where X is [0-9.]+ to mean "-r X-RELEASE".

Tripped over by: too many people to count
MFC after: 1 month

14 years agoFixed markup bugs.
ru [Tue, 29 Sep 2009 10:50:02 +0000 (10:50 +0000)]
Fixed markup bugs.

14 years agoAdd some bits of HDMI/DisplayPort support from later specification updates.
mav [Tue, 29 Sep 2009 09:36:38 +0000 (09:36 +0000)]
Add some bits of HDMI/DisplayPort support from later specification updates.
It may be not enough to make them work, but at least should give some
information about these beasts.

14 years agoThe first 96 bytes may not be zeroes. It can contain trivial boot
marcel [Mon, 28 Sep 2009 23:52:47 +0000 (23:52 +0000)]
The first 96 bytes may not be zeroes. It can contain trivial boot
code that merely emits an error and waits for a key press before
rebooting. The error being that extended partitions are not
bootable. The origin is presumed to be Windows 2000; Windows XP
does not do this...

For now, ignore the first 96 bytes when checking that the EBR is
(for the most part) all zeroes.

Tested by: Mario Lobo <mlobo@digiart.art.br>
MFC after: 1 week

14 years agoFix offset handling
rnoland [Mon, 28 Sep 2009 22:41:28 +0000 (22:41 +0000)]
Fix offset handling

MFC after: 1 week

14 years agoradeon_family is an enum, so ordering can be important.
rnoland [Mon, 28 Sep 2009 22:40:29 +0000 (22:40 +0000)]
radeon_family is an enum, so ordering can be important.

sync up with what amd is shipping.

MFC after: 1 week

14 years agoFix blit pitch for 4 byte transfers on r600.
rnoland [Mon, 28 Sep 2009 22:38:44 +0000 (22:38 +0000)]
Fix blit pitch for 4 byte transfers on r600.

MFC after: 1 week

14 years agoR600 doesn't support IRQs yet, so don't try to use them.
rnoland [Mon, 28 Sep 2009 22:37:07 +0000 (22:37 +0000)]
R600 doesn't support IRQs yet, so don't try to use them.

MFC after: 1 week

14 years agoFor AR8132 fast ethernet controller, do not report 1000baseT
yongari [Mon, 28 Sep 2009 22:18:38 +0000 (22:18 +0000)]
For AR8132 fast ethernet controller, do not report 1000baseT
capability to mii(4). Even though AR8132 uses the same model/
revision number of F1 gigabit PHY, the PHY has no ability to
establish 1000baseT link. I have no idea why Atheros use the same
device/model id for this PHY.
With this change atphy(4) does not report 1000baseT media
capability and manual 1000baseT configuration is also disabled
which is more desirable behavior for 10/100Mbps PHY.

14 years agoMFV of tzdata2009n
edwin [Mon, 28 Sep 2009 21:53:28 +0000 (21:53 +0000)]
MFV of tzdata2009n

Pakistan will go out DST on 1 October.
Headsup for changes in Argentina.

14 years agoDGE-560SX is now supported.
yongari [Mon, 28 Sep 2009 21:15:57 +0000 (21:15 +0000)]
DGE-560SX is now supported.

14 years agoAdd DGE-560SX(Yukon XL) to the supported device list. Many thanks
yongari [Mon, 28 Sep 2009 21:11:31 +0000 (21:11 +0000)]
Add DGE-560SX(Yukon XL) to the supported device list. Many thanks
to "Eugene Perevyazko <john <> dnepro dot net>" who kindly gave
remote access to system with DGE-560SX.

14 years agoAdd workaround for Yukon XL which has hardware bug that can't flush
yongari [Mon, 28 Sep 2009 21:07:19 +0000 (21:07 +0000)]
Add workaround for Yukon XL which has hardware bug that can't flush
FIFO.

14 years agoAdd hack to pass controller specific information to phy driver.
yongari [Mon, 28 Sep 2009 21:03:28 +0000 (21:03 +0000)]
Add hack to pass controller specific information to phy driver.
Unlike most other PHYs there is no easy way to know which media
type the PHY supports on Marvell PHYs. MIIF_HAVEFIBER flags is now
passed via bus-specific instance variable of a device. While I'm
here add 88E1112 specific work around to set SIGDET polarity low.
Many thanks "Eugene Perevyazko <john <> dnepro dot net>" who kindly
gave remote access to system with DGE-560SX.

14 years agoFix MIB statistics clear routine. This should fix alignment errors on sparc64.
yongari [Mon, 28 Sep 2009 20:03:37 +0000 (20:03 +0000)]
Fix MIB statistics clear routine. This should fix alignment errors on sparc64.

Reported by: Garrett Damore < gdamore <> opensolaris dot org >

14 years agoSome fiber PHY(88E1112) does not seem to set resolved speed so
yongari [Mon, 28 Sep 2009 19:53:53 +0000 (19:53 +0000)]
Some fiber PHY(88E1112) does not seem to set resolved speed so
always assume we've got IFM_1000_SX.

14 years agoDon't encode model id twice.
yongari [Mon, 28 Sep 2009 19:48:17 +0000 (19:48 +0000)]
Don't encode model id twice.

Reported by: Kristof Provost <kristof <> sigsegv dot be>

14 years agoIt seems some 82559ER controllers do not support Rx checksum
yongari [Mon, 28 Sep 2009 19:40:16 +0000 (19:40 +0000)]
It seems some 82559ER controllers do not support Rx checksum
offloading. Datasheet said nothing about the limitation of 82559ER
except WOL. Explicitly disable Rx checksum offloading for
controllers that is known to lack the capability.

PR: kern/138135
Tested by: Gooderum, Mark < mgooderum <> websense dot com >

14 years agoRemove unnecessary device reinitialization.
yongari [Mon, 28 Sep 2009 19:33:52 +0000 (19:33 +0000)]
Remove unnecessary device reinitialization.

14 years agoSet the prison in NFS anon and GSS SVC creds (as I indended to in r197581).
jamie [Mon, 28 Sep 2009 18:55:29 +0000 (18:55 +0000)]
Set the prison in NFS anon and GSS SVC creds (as I indended to in r197581).

Reviewed by: marcel

14 years agoBack out r197581, which replaced this file witk sys/kern/vfs_export.c.
jamie [Mon, 28 Sep 2009 18:54:26 +0000 (18:54 +0000)]
Back out r197581, which replaced this file witk sys/kern/vfs_export.c.

Who knew that "svn export" was an actual command, or that I would have
vfs_export.c stuck in my mind deep enough to type "export" instead of
"commit"?

Pointy Hat to:  jamie

14 years agoSet the prison in NFS anon and GSS SVC creds.
jamie [Mon, 28 Sep 2009 18:07:16 +0000 (18:07 +0000)]
Set the prison in NFS anon and GSS SVC creds.

Reviewed by: marcel
MFC after: 3 days

14 years agoTemporarily disable the use of 1GB page mappings by the direct map. There
alc [Mon, 28 Sep 2009 17:10:27 +0000 (17:10 +0000)]
Temporarily disable the use of 1GB page mappings by the direct map.  There
are currently two problems with the use of 1GB page mappings by the direct
map.  First, at least one device driver uses pmap_extract() rather than
DMAP_TO_PHYS() to translate a direct map address to a physical address.
Unfortunately, neither pmap_extract() nor pmap_kextract() yet support 1GB
page mappings.  Second, pmap_bootstrap() needs to interrogate the MTRRs to
ensure that a 1GB page mapping doesn't span two MTRRs of different types.

Reported and tested by: Daniel O'Connor
MFC after: 3 days

14 years agoAdd two new fcntls to enable/disable read-ahead:
delphij [Mon, 28 Sep 2009 16:59:47 +0000 (16:59 +0000)]
Add two new fcntls to enable/disable read-ahead:

 - F_READAHEAD: specify the amount for sequential access.  The amount is
   specified in bytes and is rounded up to nearest block size.
 - F_RDAHEAD: Darwin compatible version that use 128KB as the sequential
   access size.

A third argument of zero disables the read-ahead behavior.

Please note that the read-ahead amount is also constrainted by sysctl
variable, vfs.read_max, which may need to be raised in order to better
utilize this feature.

Thanks Igor Sysoev for proposing the feature and submitting the original
version, and kib@ for his valuable comments.

Submitted by: Igor Sysoev <is rambler-co ru>
Reviewed by: kib@
MFC after: 1 month

14 years agoUse correct sizeof() object for klist 'list'. Currently, struct klist
delphij [Mon, 28 Sep 2009 10:22:46 +0000 (10:22 +0000)]
Use correct sizeof() object for klist 'list'.  Currently, struct klist
contained only SLIST_HEAD as its member, thus sizeof(struct klist) would
equal to sizeof(struct klist *), so this change makes the code more
correct in terms of semantics, but should be a no-op to compiler at this
time.

Reported by: MQ <antinvidia at gmail com>

14 years agoFixed a markup bug.
ru [Mon, 28 Sep 2009 09:49:48 +0000 (09:49 +0000)]
Fixed a markup bug.

14 years agoAdd back endpoint swap detection that was disabled in an earlier driver
thompsa [Mon, 28 Sep 2009 08:18:14 +0000 (08:18 +0000)]
Add back endpoint swap detection that was disabled in an earlier driver
conversion.

Submitted by: Hans Petter Selasky

14 years agoAdd new FTDI IDs.
thompsa [Mon, 28 Sep 2009 08:15:26 +0000 (08:15 +0000)]
Add new FTDI IDs.

Submitted by: Maks Verver, Arrigo Marchiori

14 years agoUse a 2 clause BSD-style license instead of stating the code as public
delphij [Mon, 28 Sep 2009 08:14:15 +0000 (08:14 +0000)]
Use a 2 clause BSD-style license instead of stating the code as public
domain, as requested by core@ and reviewed by the author.

14 years agoAdd experimental support for usb serial console and polled mode during DDB.
thompsa [Mon, 28 Sep 2009 08:13:50 +0000 (08:13 +0000)]
Add experimental support for usb serial console and polled mode during DDB.

Submitted by: Hans Petter Selasky

14 years agoAdd a config number quirk for the ELSA_MODEM1
thompsa [Mon, 28 Sep 2009 08:09:11 +0000 (08:09 +0000)]
Add a config number quirk for the ELSA_MODEM1

Submitted by: Stefan Bethke

14 years agoadd more device IDs
thompsa [Mon, 28 Sep 2009 08:07:20 +0000 (08:07 +0000)]
add more device IDs

Reported by: Mike Tancsa
Submitted by: Hans Petter Selasky

14 years agoAllow setting of MAC address for AXE based ethernet adapters.
thompsa [Mon, 28 Sep 2009 08:05:14 +0000 (08:05 +0000)]
Allow setting of MAC address for AXE based ethernet adapters.

Submitted by: yongari

14 years agoIncrease the rx buffer size to 16384 bytes, this increases RX performance from
thompsa [Mon, 28 Sep 2009 08:03:52 +0000 (08:03 +0000)]
Increase the rx buffer size to 16384 bytes, this increases RX performance from
50Mbps to 220Mbps on PLANEX GU-1000T.

Submitted by: yongari

14 years ago- Remove SAMSUNG_YP_U2 now that it is in the cam layer
thompsa [Mon, 28 Sep 2009 08:00:17 +0000 (08:00 +0000)]
- Remove SAMSUNG_YP_U2 now that it is in the cam layer
- Add quirk from Tobias Grosser for Western Mypassword

Submitted by: Hans Petter Selasky

14 years agoMFp4
thompsa [Mon, 28 Sep 2009 07:57:23 +0000 (07:57 +0000)]
MFp4

Add new usbdev entries for Marvell, FTDI, Option and Western.

14 years agoAdd basic support for USB Network Control Model (NCM) v1.0 to if_cdce.c.
thompsa [Mon, 28 Sep 2009 07:53:55 +0000 (07:53 +0000)]
Add basic support for USB Network Control Model (NCM) v1.0 to if_cdce.c.

http://www.usb.org/developers/devclass_docs/NCM10.zip

Submitted by: Hans Petter Selasky

14 years agoAdd extra safety locking when clobbering xfer->flags_int.started in start and
thompsa [Mon, 28 Sep 2009 07:46:22 +0000 (07:46 +0000)]
Add extra safety locking when clobbering xfer->flags_int.started in start and
stop functions, because xfer->flags_int is also updated by the USB controller,
under the controller lock.

Submitted by: Hans Petter Selasky

14 years agoCorrect buffer sizes used so that they match. The old code could give the
thompsa [Mon, 28 Sep 2009 07:42:59 +0000 (07:42 +0000)]
Correct buffer sizes used so that they match. The old code could give the
impression that a overflow situation existed but was not possible.

Reported by: kib
Submitted by: Hans Petter Selasky

14 years agoStatic'ify internal methods and use prototype.
delphij [Mon, 28 Sep 2009 07:42:52 +0000 (07:42 +0000)]
Static'ify internal methods and use prototype.

14 years agoAdd support for USB language selection.
thompsa [Mon, 28 Sep 2009 07:41:17 +0000 (07:41 +0000)]
Add support for USB language selection.

PR: usb/138563
Reported by: Bruce Cran
Submitted by: Hans Petter Selasky

14 years agoFix NULL-pointer dereference in usb_endpoint_foreach().
thompsa [Mon, 28 Sep 2009 07:39:51 +0000 (07:39 +0000)]
Fix NULL-pointer dereference in usb_endpoint_foreach().

PR: usb/138389
Submitted by: Patroklos Argyroudis at census, inc

14 years agoAdd support for ChipHead 341 serial port adapter.
thompsa [Mon, 28 Sep 2009 07:32:11 +0000 (07:32 +0000)]
Add support for ChipHead 341 serial port adapter.

Submitted by: Hans Petter Selasky

14 years agoClear all interrupts rather than just SETUP packet.
thompsa [Mon, 28 Sep 2009 07:10:32 +0000 (07:10 +0000)]
Clear all interrupts rather than just SETUP packet.

Submitted by: Hans Petter Selasky

14 years agoSimplify logic around setting EHCI_QH_DTC and expand some htohc32(temp.sc, 0)
thompsa [Mon, 28 Sep 2009 07:09:17 +0000 (07:09 +0000)]
Simplify logic around setting EHCI_QH_DTC and expand some htohc32(temp.sc, 0)
statements to zero.

Submitted by: Hans Petter Selasky

14 years agoImport two PCI quirks from Linux
thompsa [Mon, 28 Sep 2009 07:06:47 +0000 (07:06 +0000)]
Import two PCI quirks from Linux

 - Add quirk for ATI SB600 and SB700 to free SMB controller
 - Correct schedule sleep time to 10us on the VIA ehci controller

Reported by: Dorian B<FC>ttner, Andriy Gapon
Submitted by: Hans Petter Selasky

14 years agoMFp4 @ 168387
thompsa [Mon, 28 Sep 2009 07:01:54 +0000 (07:01 +0000)]
MFp4 @ 168387

- clean up USB detach logic. There seems to be some problems detaching multiple
  USB HUBs connected in series from the root.

- after this patch the rule is:
  1) Always use device_detach() on the USB HUB first.
  2) Never just device_delete_child() on the USB HUB, because that function
  will traverse to all the device leaves and free them first, and then the USB
  stack will free the devices twice which doesn't work very well.

- make sure the did DMA delay gets set after the timeout has elapsed to make
  logic more clear. There is no functional difference.

Submitted by: Hans Petter Selasky

14 years agoSilence warning printed by getfsspec(3) when /etc/fstab does not exist
cperciva [Mon, 28 Sep 2009 03:32:35 +0000 (03:32 +0000)]
Silence warning printed by getfsspec(3) when /etc/fstab does not exist
  fstab: /etc/fstab:0: No such file or directory
and from dump(8) when setfsent(3) fails due to /etc/fstab not existing:
  DUMP: Can't open /etc/fstab for dump table information: No such...

This makes daily and security periodic runs somewhat cleaner in jails
which lack /etc/fstab files.

MFC after: 1 month

14 years agoFethch more information from IDENTIFY result.
mav [Sun, 27 Sep 2009 22:00:26 +0000 (22:00 +0000)]
Fethch more information from IDENTIFY result.

14 years ago- Add share/nls/gl_ES.ISO8859-1, which I forgot in my last commit
gabor [Sun, 27 Sep 2009 21:27:11 +0000 (21:27 +0000)]
- Add share/nls/gl_ES.ISO8859-1, which I forgot in my last commit

Submitted by: Andrzej Tobola <ato@iem.pw.edu.pl> (via private mail)

14 years agoAdd a simple C program to check mmap calls to various different addresses.
bz [Sun, 27 Sep 2009 21:03:33 +0000 (21:03 +0000)]
Add a simple C program to check mmap calls to various different addresses.
The most important test is the mapping fixed at address 0 depending on the
new sysctl.

Things will be updated and possibly converted to m4/.t style once the
details about the kernel patch will be shaken out.

Submitted by: simon (initial version)

14 years ago- When we run our trap cleanup handler, echo that we are running this
simon [Sun, 27 Sep 2009 21:01:07 +0000 (21:01 +0000)]
- When we run our trap cleanup handler, echo that we are running this
  handler to make it more clear why we are 'suddenly' running df,
  umount, and mdconfig.
- Remove trap handler again after we have unconfigured the memory
  device etc.  Before we could end up running the trap handler if a
  later stage failed, which was a bit confusing and not really useful.

MFC after: 2 weeks

14 years agoReport SATA 3.x devices.
mav [Sun, 27 Sep 2009 20:50:54 +0000 (20:50 +0000)]
Report SATA 3.x devices.

14 years agoAdd more defines from recent and not only specs.
mav [Sun, 27 Sep 2009 20:48:10 +0000 (20:48 +0000)]
Add more defines from recent and not only specs.

14 years agoAdd support for VT200-style mouse input.
ed [Sun, 27 Sep 2009 18:19:41 +0000 (18:19 +0000)]
Add support for VT200-style mouse input.

Right now if applications want to use the mouse on the command line,
they use sysmouse(4) and install a signal handler in the kernel to
deliver signals when mouse events arrive. This conflicts with my plan to
change to TERM=xterm, so implement proper VT200-style mouse input.

Because mouse input is now streamed through the TTY, it means you can
now SSH to another system on the console and use the mouse there as
well. The disadvantage of the VT200 mouse protocol, is that it doesn't
seem to generate events when moving the cursor. Only when pressing and
releasing mouse buttons.

There are different protocols as well, but this one seems to be most
commonly supported.

Reported by: Paul B. Mahol <onemda gmail com>
Tested with: vim(1)

14 years agoDo not allow mmap with the MAP_FIXED argument to map at address zero.
simon [Sun, 27 Sep 2009 14:49:51 +0000 (14:49 +0000)]
Do not allow mmap with the MAP_FIXED argument to map at address zero.
This is done to make it harder to exploit kernel NULL pointer security
vulnerabilities.  While this of course does not fix vulnerabilities,
it does mitigate their impact.

Note that this may break some applications, most likely emulators or
similar, which for one reason or another require mapping memory at
zero.

This restriction can be disabled with the security.bsd.mmap_zero
sysctl variable.

Discussed with: rwatson, bz
Tested by: bz (Wine), simon (VirtualBox)
Submitted by: jhb

14 years agoCopy apm(4) emulation from sys/i386/acpica/acpi_machdep.c and
jkim [Sun, 27 Sep 2009 14:00:16 +0000 (14:00 +0000)]
Copy apm(4) emulation from sys/i386/acpica/acpi_machdep.c and
install apm(8) and apm_bios.h on amd64.

14 years agoAdd '#define NFSCLIENT' into opt_nfs.h if the NFSCLIENT variable is 1
nyan [Sun, 27 Sep 2009 13:24:34 +0000 (13:24 +0000)]
Add '#define NFSCLIENT' into opt_nfs.h if the NFSCLIENT variable is 1
(the default is 1).

This makes the nfslockd module works for NFS client.

Reviewed by: dfr
MFC after: 3 days

14 years ago- Add Galician NLS catalog
gabor [Sun, 27 Sep 2009 13:16:38 +0000 (13:16 +0000)]
- Add Galician NLS catalog

14 years agoprinterr_reply() has never been used for as long as we've had this code in
des [Sat, 26 Sep 2009 23:05:01 +0000 (23:05 +0000)]
printerr_reply() has never been used for as long as we've had this code in
our tree (13+ years).  This is an excellent argument for aggressive use
of "static".

14 years agoUse ipv6if() when $rtadvd_interfaces="AUTO".
hrs [Sat, 26 Sep 2009 19:00:47 +0000 (19:00 +0000)]
Use ipv6if() when $rtadvd_interfaces="AUTO".

14 years agoMove rc.d/{stf,faith} to just before rc.d/routing.
hrs [Sat, 26 Sep 2009 19:00:20 +0000 (19:00 +0000)]
Move rc.d/{stf,faith} to just before rc.d/routing.

Pointed out by: tegge