]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
15 years agouse WARNS?= instead of WARNS=
Matteo Riondato [Tue, 18 Nov 2008 00:59:26 +0000 (00:59 +0000)]
use WARNS?= instead of WARNS=

MFC after: 3 days

15 years agoBe more precise and use sizeof(tn)
Matteo Riondato [Tue, 18 Nov 2008 00:39:50 +0000 (00:39 +0000)]
Be more precise and use sizeof(tn)
Pointed out by: glewis@

MFC after: 3 days

15 years agoUse WARNS?= instead of WARNS=
Matteo Riondato [Tue, 18 Nov 2008 00:12:15 +0000 (00:12 +0000)]
Use WARNS?= instead of WARNS=

MFC after: 3 days

15 years agoFix a warning on amd64 caused by using int for request argument instead of
Pawel Jakub Dawidek [Tue, 18 Nov 2008 00:03:38 +0000 (00:03 +0000)]
Fix a warning on amd64 caused by using int for request argument instead of
unsigned long:

WARNING pid 12888 (zfs/zpool): ioctl sign-extension ioctl ffffffffcc285aXX

Reported by: kris

15 years agoPad the bootcode we write to the partition to a multiple of the
Marcel Moolenaar [Tue, 18 Nov 2008 00:03:30 +0000 (00:03 +0000)]
Pad the bootcode we write to the partition to a multiple of the
sector size.

Submitted by: Alexey Shuvaev <shuvaev@physik.uni-wuerzburg.de>
Prompted by:  delphij
MFC after: 3 days

15 years agoObey signedness flag in %z case.
Xin LI [Tue, 18 Nov 2008 00:01:16 +0000 (00:01 +0000)]
Obey signedness flag in %z case.

MFC after: 2 months

15 years agoObey signedness flag in %z case.
Xin LI [Mon, 17 Nov 2008 23:57:40 +0000 (23:57 +0000)]
Obey signedness flag in %z case.

MFC after: 2 months

15 years agoFix the maximum transfer size for mfi(4) disk devices to not exceed the
John Baldwin [Mon, 17 Nov 2008 23:30:19 +0000 (23:30 +0000)]
Fix the maximum transfer size for mfi(4) disk devices to not exceed the
maximum number of scatter/gather elements supported in the bus dma tag.

Reviewed by: scottl
MFC after: 1 week

15 years agomake this warns=5 clean
Warner Losh [Mon, 17 Nov 2008 22:46:29 +0000 (22:46 +0000)]
make this warns=5 clean

15 years agoMove dumpcis to its own directory, start to decouple from the
Warner Losh [Mon, 17 Nov 2008 22:19:19 +0000 (22:19 +0000)]
Move dumpcis to its own directory, start to decouple from the
pccardc/pccardd history.

15 years agoMinor ANSI tweaks.
Warner Losh [Mon, 17 Nov 2008 22:05:53 +0000 (22:05 +0000)]
Minor ANSI tweaks.

15 years agoWhen running on a filesystem that lacks ACL support,
Tim Kientzle [Mon, 17 Nov 2008 21:06:17 +0000 (21:06 +0000)]
When running on a filesystem that lacks ACL support,
just SKIP the test, don't report a test failure.

15 years agoUpdate ZFS from version 6 to 13 and bring some FreeBSD-specific changes.
Pawel Jakub Dawidek [Mon, 17 Nov 2008 20:49:29 +0000 (20:49 +0000)]
Update ZFS from version 6 to 13 and bring some FreeBSD-specific changes.

This bring huge amount of changes, I'll enumerate only user-visible changes:

- Delegated Administration

Allows regular users to perform ZFS operations, like file system
creation, snapshot creation, etc.

- L2ARC

Level 2 cache for ZFS - allows to use additional disks for cache.
Huge performance improvements mostly for random read of mostly
static content.

- slog

Allow to use additional disks for ZFS Intent Log to speed up
operations like fsync(2).

- vfs.zfs.super_owner

Allows regular users to perform privileged operations on files stored
on ZFS file systems owned by him. Very careful with this one.

- chflags(2)

Not all the flags are supported. This still needs work.

- ZFSBoot

Support to boot off of ZFS pool. Not finished, AFAIK.

Submitted by: dfr

- Snapshot properties

- New failure modes

Before if write requested failed, system paniced. Now one
can select from one of three failure modes:
- panic - panic on write error
- wait - wait for disk to reappear
- continue - serve read requests if possible, block write requests

- Refquota, refreservation properties

Just quota and reservation properties, but don't count space consumed
by children file systems, clones and snapshots.

- Sparse volumes

ZVOLs that don't reserve space in the pool.

- External attributes

Compatible with extattr(2).

- NFSv4-ACLs

Not sure about the status, might not be complete yet.

Submitted by: trasz

- Creation-time properties

- Regression tests for zpool(8) command.

Obtained from: OpenSolaris

15 years agoUndo revision 185013 until better solution is found.
Maksim Yevmenkin [Mon, 17 Nov 2008 20:33:13 +0000 (20:33 +0000)]
Undo revision 185013 until better solution is found.

Pointed out by: bde

15 years agoFix a potential NULL-pointer dereference in padlock(4).
Philip Paeps [Mon, 17 Nov 2008 19:00:36 +0000 (19:00 +0000)]
Fix a potential NULL-pointer dereference in padlock(4).

Spotted by: Coverity (via pjd)
MFC after: 1 week

15 years agogdb: Remove arm_pc_is_thumb_dummy() and related code.
Rafal Jaworowski [Mon, 17 Nov 2008 16:37:04 +0000 (16:37 +0000)]
gdb: Remove arm_pc_is_thumb_dummy() and related code.

This is basically an import of the following gdb change:
http://sourceware.org/ml/gdb-cvs/2005-03/msg00143.html (which in effect fixes
problems with gracefully closing down the non-Thumb program being debugged).

15 years agoInitial gdbserver support for ARM.
Rafal Jaworowski [Mon, 17 Nov 2008 16:32:57 +0000 (16:32 +0000)]
Initial gdbserver support for ARM.

Obtained from: Juniper Networks, Semihalf

15 years agoFix two possible (but unlikely) NULL-pointer dereferences in glxsb(4).
Philip Paeps [Mon, 17 Nov 2008 07:09:40 +0000 (07:09 +0000)]
Fix two possible (but unlikely) NULL-pointer dereferences in glxsb(4).

Spotted by: Coverity
MFC after: 1 week

15 years agoOverhaul of CIS parsing, next step: keep a cached copy of the CIS,
Warner Losh [Mon, 17 Nov 2008 01:32:29 +0000 (01:32 +0000)]
Overhaul of CIS parsing, next step: keep a cached copy of the CIS,
read before we configure the card, so we can implement
/dev/cardbus*.cis.  Also, do this on a per-child basis, so we now have
a different name than before.  I think i'll have to fix that for some
legacy tools to keep working.

I can now do a dumpcis on my running atheros card and have it still work!

15 years agoFix typo. It restuled in activating unwanted Rx filtering as well
Pyun YongHyeon [Mon, 17 Nov 2008 00:50:59 +0000 (00:50 +0000)]
Fix typo. It restuled in activating unwanted Rx filtering as well
as resetting Rx threshold configuration.

Submitted by: Joost Mulders < Joost.Mulders <> Sun DOT COM >

15 years agoMore locking for syscons(4). This should prevent races with sckbdevent().
Maksim Yevmenkin [Sun, 16 Nov 2008 22:39:04 +0000 (22:39 +0000)]
More locking for syscons(4). This should prevent races with sckbdevent().

PR: kern/127446
Submitted by: Eygene Ryabinkin rea-fbsd at codelabs dot ru

15 years agoInstead of forcing vn_start_write() to reset mp back to NULL for the
Konstantin Belousov [Sun, 16 Nov 2008 21:57:54 +0000 (21:57 +0000)]
Instead of forcing vn_start_write() to reset mp back to NULL for the
failed calls with non-NULL vp, explicitely clear mp after failure.

Tested by: stass
Reviewed by: tegge
PR: 123768
MFC after: 1 week

15 years agoRevert r184118. There is actually a code in the kernel, for instance in
Konstantin Belousov [Sun, 16 Nov 2008 21:56:29 +0000 (21:56 +0000)]
Revert r184118. There is actually a code in the kernel, for instance in
kern_unlinkat(), that expects that vn_start_write() actually fills the mp
even when the call failed.

As Tor noted, that pattern relies on the the type stability of the mount
points, as well as that suspended mount points are never freed and
V_XSLEEP is always passed to vn_start_write() when called on a freed
mount point.

Reported by: stass
Reviewed by: tegge
PR: 123768

15 years agoFix argument layout of devfs_get_cdevpriv().
Ed Schouten [Sun, 16 Nov 2008 21:26:56 +0000 (21:26 +0000)]
Fix argument layout of devfs_get_cdevpriv().

Right now it shows `void' and `**datap' as two different arguments,
while they belong together.

15 years ago- Allow the front-end to specify that iommu(4) should disable
Marius Strobl [Sun, 16 Nov 2008 19:53:49 +0000 (19:53 +0000)]
- Allow the front-end to specify that iommu(4) should disable
  rerun of the streaming cache for silicon bug workarounds.
- Announce the presence of a streaming cache on attach for
  informational purposes.
- For performance reasons don't do unnecessary flushes of the
  streaming cache when coherent mappings are synced.
- Fix some minor style issues.

15 years agoUse the spitfire VIS block copy/zero functions also with cheetah-
Marius Strobl [Sun, 16 Nov 2008 19:30:17 +0000 (19:30 +0000)]
Use the spitfire VIS block copy/zero functions also with cheetah-
class CPUs. In theory one could also use versions additionally
taking advantage of the prefetch cache with cheetah-class CPUs,
in my worldstone runs these either didn't provide extra speedup
(USIII+) in comparison to the existing spitfire versions or were
even slightly slower (USIIIi) though, so they aren't committed
for now.
The basic problem leading to the VIS-based copy/zero functions
being initially disabled for cheetah-class CPUs was solved by
letting cheetah_init() clear DCR_IFPOE.

15 years agoMicro-optimize spitfire_block_{copy,zero}():
Marius Strobl [Sun, 16 Nov 2008 19:28:55 +0000 (19:28 +0000)]
Micro-optimize spitfire_block_{copy,zero}():
- Predict the loop as taken as it's more likely that there's still
  data to copy and memory to zero respectively.
- Don't waste the delay slot.

15 years agoDefine LDBL_EPSILON, LDBL_MAX and LDBL_MIN as long double constants.
Marcel Moolenaar [Sun, 16 Nov 2008 19:20:29 +0000 (19:20 +0000)]
Define LDBL_EPSILON, LDBL_MAX and LDBL_MIN as long double constants.

Submitted by: Andreas Tobler <andreast-list@fgznet.ch>
Reviewed by: das@

15 years ago- For maximum flexibility, sparc64 supports BUS_DMA_COHERENT also
Marius Strobl [Sun, 16 Nov 2008 18:30:16 +0000 (18:30 +0000)]
- For maximum flexibility, sparc64 supports BUS_DMA_COHERENT also
  with bus_dmamap_create() and not only bus_dmamem_alloc() so move
  the description of this flag up accordingly in order to document
  this fact. While at, it refine this description with an application
  example.
- Reword the description of BUS_DMA_NOCACHE as this flag is also
  implemented on sparc64.

MFC after: 1 week

15 years agoVarious whitespace and style fixes.
John Baldwin [Sun, 16 Nov 2008 17:42:02 +0000 (17:42 +0000)]
Various whitespace and style fixes.

15 years agoIn the robust futexes list head, futex_offset shall be signed,
Konstantin Belousov [Sun, 16 Nov 2008 15:45:41 +0000 (15:45 +0000)]
In the robust futexes list head, futex_offset shall be signed,
and glibc actually supplies negative offsets. Change l_ulong to l_long.

Submitted by: dchagin

15 years agoAdd a comment to utmp.h about the sizes of UT_HOSTSIZE and UT_LINESIZE.
Ed Schouten [Sun, 16 Nov 2008 14:43:33 +0000 (14:43 +0000)]
Add a comment to utmp.h about the sizes of UT_HOSTSIZE and UT_LINESIZE.

UT_HOSTSIZE and UT_LINESIZE are too small right now. If we ever bump
UT_HOSTSIZE, we must not forget to increase UT_LINESIZE as well. If we
add a comment, we're pretty sure we increase both values at the same
time.

PR: bin/108743 (maybe others)

15 years agoIgnore absent CPUs when listing the current state of PMC hardware.
Joseph Koshy [Sun, 16 Nov 2008 04:26:38 +0000 (04:26 +0000)]
Ignore absent CPUs when listing the current state of PMC hardware.

15 years agoPrint PMC widths in the initialization announcement.
Joseph Koshy [Sun, 16 Nov 2008 04:21:59 +0000 (04:21 +0000)]
Print PMC widths in the initialization announcement.

15 years agoOn i386, the primary function that SYSCALL() generates is with the
Peter Wemm [Sat, 15 Nov 2008 22:23:07 +0000 (22:23 +0000)]
On i386, the primary function that SYSCALL() generates is with the
__sys_ prefix.  Make END() match.  This didn't cause a compile error, but
the function size is attached to the .weak symbol, not the real one.

15 years ago- Document the class name prefix for these PMCs.
Joseph Koshy [Sat, 15 Nov 2008 11:34:30 +0000 (11:34 +0000)]
- Document the class name prefix for these PMCs.
- Document the "anythread" qualifier, available on Atom CPUs.
- Add examples.

15 years agoCorrect an oversight: call the MD finalize hook at module unload
Joseph Koshy [Sat, 15 Nov 2008 11:11:32 +0000 (11:11 +0000)]
Correct an oversight: call the MD finalize hook at module unload
time.

15 years agoFix assertions.
Joseph Koshy [Sat, 15 Nov 2008 11:07:54 +0000 (11:07 +0000)]
Fix assertions.

Reported by: keramida

15 years agoCorrect an indexing error (a change missed out in #184802).
Joseph Koshy [Sat, 15 Nov 2008 10:56:36 +0000 (10:56 +0000)]
Correct an indexing error (a change missed out in #184802).

15 years agoCorrect association 0 handling.
Alexander Motin [Sat, 15 Nov 2008 09:39:00 +0000 (09:39 +0000)]
Correct association 0 handling.
as=0 means unused pin, so disable it explicitly, this is mostly cosmetics.

15 years ago- Update instructions for Subversion import
Rong-En Fan [Sat, 15 Nov 2008 09:30:09 +0000 (09:30 +0000)]
- Update instructions for Subversion import
- Remove FREEBSD-vendor as edwin@ is working on a automatically contrib
  software status page generation

15 years ago- Update ncurses to 5.7-20081102 (5.7 release) and build glue
Rong-En Fan [Sat, 15 Nov 2008 09:23:48 +0000 (09:23 +0000)]
- Update ncurses to 5.7-20081102 (5.7 release) and build glue
- This also removes $FreeBSD$ from two now unmodifed source files
  ncurses/tinfo/lib_raw.c and ncurses/tinfo/lib_baudrate.c

MFC after: 2 months (after 7.1 and 6.4 are released)

15 years agoFinish a few more .Dl "quoted" arguments missed in revision 184984
Giorgos Keramidas [Sat, 15 Nov 2008 06:41:57 +0000 (06:41 +0000)]
Finish a few more .Dl "quoted" arguments missed in revision 184984

15 years agoAdd missing quotes to .Dl arguments.
Giorgos Keramidas [Sat, 15 Nov 2008 06:36:07 +0000 (06:36 +0000)]
Add missing quotes to .Dl arguments.

This is harmless for the mandoc output, but it makes syntax highlighting of
the .Dl argument string a bit prettier in Emacs.

15 years agoFirst step in cleaning up CIS parsing and /dev/cardbus*.cis: remove
Warner Losh [Sat, 15 Nov 2008 05:22:06 +0000 (05:22 +0000)]
First step in cleaning up CIS parsing and /dev/cardbus*.cis: remove
redundant malloc/free.  Add comments about how this should really be
done.  Fix an overly verbose comment about under 1MB mapping: go ahead
and set the bits, but we ignore them.

15 years agoMerge from vendor dist: Bring in a change already in the sendmail
Gregory Neil Shapiro [Sat, 15 Nov 2008 04:43:54 +0000 (04:43 +0000)]
Merge from vendor dist: Bring in a change already in the sendmail
repository that will allow sendmail to be built with the c99 compiler.

Submitted by: rdivacky

15 years agoBring in a change already in the sendmail repository that
Gregory Neil Shapiro [Sat, 15 Nov 2008 04:38:10 +0000 (04:38 +0000)]
Bring in a change already in the sendmail repository that
will allow sendmail to be built with the c99 compiler.

Submitted by: rdivacky

15 years ago- Revive fdc(4) per-device flag 0x10, which was removed in r1.284[1].
Jung-uk Kim [Sat, 15 Nov 2008 01:43:34 +0000 (01:43 +0000)]
- Revive fdc(4) per-device flag 0x10, which was removed in r1.284[1].
- If the flag is set and auto-select fails, assume disk is not present.
- Set disk empty flag only when the floppy controller reset is needed.
It fixes regression introduced in r1.311, which prevented it from ignoring
errors.  Now fdformat(1) and dd(1) with conv=noerror option can continue
when read/write errors occur as they should.
- Do not retry disk probing as it is extremely slow and pointless.
- Move the disk probing code into a separate function.
- Do not reset disk empty flag if write-protect check fails somehow.

PR: kern/116538[1]

15 years agoFix compile. I was in the wrong tree when I tested it :-(
Doug Ambrisko [Fri, 14 Nov 2008 23:32:31 +0000 (23:32 +0000)]
Fix compile.  I was in the wrong tree when I tested it :-(

Pointed out by: Andrzej

15 years agoWhen running a 32bit app. on amd64, ensure the bits above 32bit
Doug Ambrisko [Fri, 14 Nov 2008 21:05:45 +0000 (21:05 +0000)]
When running a 32bit app. on amd64, ensure the bits above 32bit
are zero for the copyout.  Confirmed by LSI.

15 years agoSwitch the default rpc implementation for NFS back to the new code. I believe
Doug Rabson [Fri, 14 Nov 2008 11:27:53 +0000 (11:27 +0000)]
Switch the default rpc implementation for NFS back to the new code. I believe
I have fixed the reported problems - if you still have trouble with it, please
contact me with as much detail as possible so that I can track down any other
issues as quickly as possible.

15 years agoAdapt to accmode_t changes.
Edward Tomasz Napierala [Fri, 14 Nov 2008 09:58:16 +0000 (09:58 +0000)]
Adapt to accmode_t changes.

Approved by: rwatson (mentor), kan

15 years agoPer request, keep privilege number 20 reserved.
Ed Schouten [Fri, 14 Nov 2008 08:35:54 +0000 (08:35 +0000)]
Per request, keep privilege number 20 reserved.

In my commit that moved uname(), setdomainname() and getdomainname() to
COMPAT_FREEBSD4, I also removed PRIV_SETDOMAINNAME, because it was
already protected by userland_sysctl(). We'd better keep the number 20
reserved, to prevent it from being used again.

Requested by: rwatson

15 years ago merge fix for boot-time hang on centos' xen
Kip Macy [Fri, 14 Nov 2008 07:06:27 +0000 (07:06 +0000)]
  merge fix for boot-time hang on centos' xen

15 years agorepair config file from spamming
Kip Macy [Fri, 14 Nov 2008 07:05:51 +0000 (07:05 +0000)]
repair config file from spamming

15 years agoFix world
Paul Saab [Fri, 14 Nov 2008 01:56:11 +0000 (01:56 +0000)]
Fix world

Approved by: kmacy

15 years agoFix typo where the code was missing the "IPMICTL_RECEIVE_MSG_32" condition
David E. O'Brien [Fri, 14 Nov 2008 01:53:10 +0000 (01:53 +0000)]
Fix typo where the code was missing the "IPMICTL_RECEIVE_MSG_32" condition
test.

15 years agoWhen repeatedly accessing a thread credential, cache the credential
Robert Watson [Fri, 14 Nov 2008 01:24:52 +0000 (01:24 +0000)]
When repeatedly accessing a thread credential, cache the credential
pointer in a local thread.  While this is unlikely to significantly
improve performance given modern compiler behavior, it makes the code
more readable and reduces diffs to the Mac OS X version of the same
code (which stores things in creds in the same way, but where the
cred for a thread is reached quite differently).

Discussed with: sson
MFC after:      1 month
Sponsored by:   Apple Inc.
Obtained from: TrustedBSD Project

15 years agoHide the attach message. This needs to be done in the probe as well, as
Nick Hibma [Thu, 13 Nov 2008 21:49:07 +0000 (21:49 +0000)]
Hide the attach message. This needs to be done in the probe as well, as
the softc is reset a few times during probing.

Print 'changing to modem mode' messages if booting verbose to show the
reason for the time delay. Note: Some devices (Huawei for one) take 20
seconds to appear on the USB bus).

15 years agoSilence detach messages if the device has marked itself quiet (u3g).
Nick Hibma [Thu, 13 Nov 2008 21:46:19 +0000 (21:46 +0000)]
Silence detach messages if the device has marked itself quiet (u3g).

MFC after: 3 weeks

15 years agoAdd a reset device command to ugen.c.
Nick Hibma [Thu, 13 Nov 2008 21:34:34 +0000 (21:34 +0000)]
Add a reset device command to ugen.c.
This is needed to make some devices work that require a firmware upload
and a USB reset afterwards.

15 years agoUse strlcpy() instead of strcpy().
Ed Schouten [Thu, 13 Nov 2008 20:40:38 +0000 (20:40 +0000)]
Use strlcpy() instead of strcpy().

Requested by: mlaier

15 years agoAdd ADMA, SATA and SAS mass storage subclasses reporting.
Alexander Motin [Thu, 13 Nov 2008 19:57:33 +0000 (19:57 +0000)]
Add ADMA, SATA and SAS mass storage subclasses reporting.

15 years agoAdd ADMA, SATA and SAS mass storage subclasses.
Alexander Motin [Thu, 13 Nov 2008 19:49:16 +0000 (19:49 +0000)]
Add ADMA, SATA and SAS mass storage subclasses.

15 years agoConvert telnetd(8) to use posix_openpt(2).
Ed Schouten [Thu, 13 Nov 2008 19:05:27 +0000 (19:05 +0000)]
Convert telnetd(8) to use posix_openpt(2).

Some time ago I got some reports MPSAFE TTY broke telnetd(8). Even
though it turned out to be a different problem within the TTY code, I
spotted a small issue with telnetd(8). Instead of allocating PTY's using
openpty(3) or posix_openpt(2), it used its own PTY allocation routine.
This means that telnetd(8) still uses /dev/ptyXX-style devices.

I've also increased the size of line[]. Even though 16 should be enough,
we already use 13 bytes ("/dev/pts/999", including '\0'). 32 bytes gives
us a little more freedom.

Also enable -DSTREAMSPTY. Otherwise telnetd(8) strips the PTY's pathname
to the latest slash instead of just removing "/dev/" (e.g. /dev/pts/0 ->
0, instead of pts/0).

Reviewed by: rink

15 years agoFor now on every 10 cyclinder groups flush the buffer cache to free
Doug Ambrisko [Thu, 13 Nov 2008 17:40:21 +0000 (17:40 +0000)]
For now on every 10 cyclinder groups flush the buffer cache to free
up space.  If the buffer cache fills up then the disk systems can
grind to a halt.  Better tuning can be figured out later.

Tested by: Tim, others and work
Reviewed by: Kostik Belousov
PR: 128832

15 years agoOne more piece to add to make sense data work for a user app. from LSI.
Doug Ambrisko [Thu, 13 Nov 2008 17:13:16 +0000 (17:13 +0000)]
One more piece to add to make sense data work for a user app. from LSI.

Submitted by: LSI
MFC after: 3 days

15 years agoTweak -mdoc usage.
Joseph Koshy [Thu, 13 Nov 2008 16:32:20 +0000 (16:32 +0000)]
Tweak -mdoc usage.

15 years agoFix whitespace.
Ed Maste [Thu, 13 Nov 2008 15:06:34 +0000 (15:06 +0000)]
Fix whitespace.

15 years agoUse the remote address for access control, not the local address. This fixes
Doug Rabson [Thu, 13 Nov 2008 14:36:52 +0000 (14:36 +0000)]
Use the remote address for access control, not the local address. This fixes
the nfsd problems that some people have with the new code.

Add support for the vfs.nfsrv.nfs_privport sysctl which denies access unless
the client is using a port number less than 1024. Not really sure if this is
particularly useful since it doesn't add any real security.

15 years agoTemporarily switch NFS back to the old RPC code while I try to diagnose and
Doug Rabson [Thu, 13 Nov 2008 11:35:18 +0000 (11:35 +0000)]
Temporarily switch NFS back to the old RPC code while I try to diagnose and
fix the problems a few people have noticed with the new code. People who want
to continue testing the new code or who need RPCSEC_GSS support should use
the new option NFS_NEWRPC to select it.

15 years agoDocument UMASK values, fix errors.
Joseph Koshy [Thu, 13 Nov 2008 10:40:13 +0000 (10:40 +0000)]
Document UMASK values, fix errors.

15 years agoFix typos, document UMASK values.
Joseph Koshy [Thu, 13 Nov 2008 10:21:56 +0000 (10:21 +0000)]
Fix typos, document UMASK values.

15 years agoRemove duplicates, fix errors and document UMASK values.
Joseph Koshy [Thu, 13 Nov 2008 09:53:53 +0000 (09:53 +0000)]
Remove duplicates, fix errors and document UMASK values.

15 years agoAdd myself to the src committers list, with Diomidis as the mentor.
Konrad Jankowski [Thu, 13 Nov 2008 07:26:30 +0000 (07:26 +0000)]
Add myself to the src committers list, with Diomidis as the mentor.

Approved by: dds (mentor)

15 years agoFix Rx/Tx checksum offload ioctl handling. Now checksum offload
Pyun YongHyeon [Thu, 13 Nov 2008 04:11:01 +0000 (04:11 +0000)]
Fix Rx/Tx checksum offload ioctl handling. Now checksum offload
can be controlled by ifconfig(8). Note, VLAN hardware tagging
controls still lacks required handler but it requires more driver
cleanups so I didn't touch that part.

PR: kern/128766

15 years agoThis is being committed from a sparc64 (US-III, thanks Marius!) that
Ken Smith [Thu, 13 Nov 2008 01:47:08 +0000 (01:47 +0000)]
This is being committed from a sparc64 (US-III, thanks Marius!) that
was installed from a DVD so apparently it works... :-)

Enable building DVDs for sparc64.

15 years agoThe audit queue limit variables are size_t, so use size_t for the audit
Robert Watson [Thu, 13 Nov 2008 00:21:01 +0000 (00:21 +0000)]
The audit queue limit variables are size_t, so use size_t for the audit
queue length variables as well, avoiding storing the limit in a larger
type than the length.

Submitted by: sson
Sponsored by: Apple Inc.
MFC after: 1 week

15 years ago- Fix from jhb for failing I/O request when bus_dmamap_load fails.
Doug Ambrisko [Wed, 12 Nov 2008 22:44:50 +0000 (22:44 +0000)]
- Fix from jhb for failing I/O request when bus_dmamap_load fails.
- Fix to ioctl path in which the length could be 0 which means
  no data in/out from LSI.
- Fix to ioctl path in which the data in the sense data space
  of the ioctl packet is a really a pointer to some location in
  user-space.  From LSI re-worked a bit by me.
- Add HW support for next gen cards from LSI.

Thanks to LSI for their support!

Submitted by: jhb, LSI
MFC after: 3 days

15 years agoVarious style and whitespace fixes. Previously parts of this file used
John Baldwin [Wed, 12 Nov 2008 22:14:05 +0000 (22:14 +0000)]
Various style and whitespace fixes.  Previously parts of this file used
8 space indent, parts used 4 space indent, and other parts used a weird
mixture (8 spaces for first indent, 4 spaces for the rest).

15 years agoAdd opt_inet.h which has been needed since r184718, which had
Bjoern A. Zeeb [Wed, 12 Nov 2008 21:33:45 +0000 (21:33 +0000)]
Add opt_inet.h which has been needed since r184718, which had
introduced checks for #ifdef INET.

MFC after: 54 days

15 years agoAdd opt_inet.h which has been needed since r184717 introducing
Bjoern A. Zeeb [Wed, 12 Nov 2008 21:32:49 +0000 (21:32 +0000)]
Add opt_inet.h which has been needed since r184717 introducing
checks for #ifdef INET.

MFC after: 54 days

15 years agoAdd opt_inet.h which has been needed since r184714, r184715 introducing
Bjoern A. Zeeb [Wed, 12 Nov 2008 21:30:39 +0000 (21:30 +0000)]
Add opt_inet.h which has been needed since r184714, r184715 introducing
checks for #ifdef INET.

Submitted by: kmacy (r184876, I splitted lines)
MFC after: 54 days

15 years agoDocument the alternate event names supported for "architectural" PMC events.
Joseph Koshy [Wed, 12 Nov 2008 17:43:37 +0000 (17:43 +0000)]
Document the alternate event names supported for "architectural" PMC events.

15 years agoUse spellings that are close to vendor documentation.
Joseph Koshy [Wed, 12 Nov 2008 17:38:23 +0000 (17:38 +0000)]
Use spellings that are close to vendor documentation.

15 years agoProbe ADB miscellaneous devices (ID 7) instead of stopping at ID 6. This
Nathan Whitehorn [Wed, 12 Nov 2008 17:33:36 +0000 (17:33 +0000)]
Probe ADB miscellaneous devices (ID 7) instead of stopping at ID 6. This
allows us to probe the brightness and volume control buttons on PPC Apple
laptops, though there is not yet a driver to do anything useful with them.

15 years agoCall svc_freereq() before returning from the service proc.
Doug Rabson [Wed, 12 Nov 2008 15:31:05 +0000 (15:31 +0000)]
Call svc_freereq() before returning from the service proc.

15 years agoDon't call svc_freereq() before svc_freeargs().
Doug Rabson [Wed, 12 Nov 2008 15:30:30 +0000 (15:30 +0000)]
Don't call svc_freereq() before svc_freeargs().

15 years ago-Improvement: Add '\n' on debug output in sctp_lower_sosend().
Randall Stewart [Wed, 12 Nov 2008 14:16:39 +0000 (14:16 +0000)]
-Improvement: Add '\n' on debug output in sctp_lower_sosend().
-Improvement: panic() on INVARIANTS kernels if memory allocation
 fails for a tagblock in sctp_add_vtag_to_timewait().
-Bugfix: Protect code in sctp_is_in_timewait() by
 SCTP_INP_INFO_WLOCK/SCTP_INP_INFO_WUNLOCK.
-Cleanup: Get rid of unused variable now in sctp_init_asoc().
-Bugfix: Reuse the correct vtag in sctp_add_vtag_to_timewait().
-Cleanup: Get rid of unused constant SCTP_TIME_WAIT_SHORT
 in sctp_constants.h.
-Improvement: Use all hash buckets of the vtag hash table.
-Cleanup: Get rid of then unused constant SCTP_STACK_VTAG_HASH_SIZE_A.
-Bugfix: Handle SHUTDOWN;SACK packet correctly.
-Bugfix: Last TSN in a gap ack block was not being "ack'd"
         in the internal scoreboard.
Obtained from: (with help from Michael Tuexen)

15 years agoAdd a quirk for Belkin USB Bluetooth adapters (F8T012xx1 series)
Giorgos Keramidas [Wed, 12 Nov 2008 13:58:59 +0000 (13:58 +0000)]
Add a quirk for Belkin USB Bluetooth adapters (F8T012xx1 series)

The same (vendor, product) tuple is used for aue(4) adapters,
but I am not sure if the quirk is correct.  I'm using the USB
device 'release' info to skip aue(4) detection right now, but
if there's a better way to differentiate between USB-LAN and
USB Bluetooth we should update the quirk.

Reviewed by: imp, rink
MFC after: 2 weeks

15 years agoAdd support for the Microsoft Comfort Optical Mouse 3000 (model 1043).
Colin Percival [Wed, 12 Nov 2008 13:32:19 +0000 (13:32 +0000)]
Add support for the Microsoft Comfort Optical Mouse 3000 (model 1043).

PR: usb/128760
Submitted by: Arjan de Vet

15 years agoAdd a missing call to mtx_destroy().
Doug Rabson [Wed, 12 Nov 2008 12:21:18 +0000 (12:21 +0000)]
Add a missing call to mtx_destroy().

15 years agoCorrect .Dd
Pyun YongHyeon [Wed, 12 Nov 2008 10:31:06 +0000 (10:31 +0000)]
Correct .Dd

Pointed out by: maxim

15 years agoAdd ale(4) man page and hook up ale(4) to the build.
Pyun YongHyeon [Wed, 12 Nov 2008 10:20:29 +0000 (10:20 +0000)]
Add ale(4) man page and hook up ale(4) to the build.
Also add Xr to appropriate man pages.

15 years agoAdd ale(4) to the list of supported network interface.
Pyun YongHyeon [Wed, 12 Nov 2008 10:01:16 +0000 (10:01 +0000)]
Add ale(4) to the list of supported network interface.

15 years agoAdd ale(4), a driver for Atheros AR8121/AR8113/AR8114 PCIe ethernet
Pyun YongHyeon [Wed, 12 Nov 2008 09:52:06 +0000 (09:52 +0000)]
Add ale(4), a driver for Atheros AR8121/AR8113/AR8114 PCIe ethernet
controller. The controller is also known as L1E(AR8121) and
L2E(AR8113/AR8114). Unlike its predecessor Attansic L1,
AR8121/AR8113/AR8114 uses completely different Rx logic such that
it requires separate driver. Datasheet for AR81xx is not available
to open source driver writers but it shares large part of Tx and
PHY logic of L1. I still don't understand some part of register
meaning and some MAC statistics counters but the driver seems to
have no critical issues for performance and stability.

The AR81xx requires copy operation to pass received frames to upper
stack such that ale(4) consumes a lot of CPU cycles than that of
other controller. A couple of silicon bugs also adds more CPU
cycles to address the known hardware bug. However, if you have fast
CPU you can still saturate the link.
Currently ale(4) supports the following hardware features.
  - MSI.
  - TCP Segmentation offload.
  - Hardware VLAN tag insertion/stripping with checksum offload.
  - Tx TCP/UDP checksum offload and Rx IP/TCP/UDP checksum offload.
  - Tx/Rx interrupt moderation.
  - Hardware statistics counters.
  - Jumbo frame.
  - WOL.

AR81xx PCIe ethernet controllers are mainly found on ASUS EeePC or
P5Q series of ASUS motherboards. Special thanks to Jeremy Chadwick
who sent the hardware to me. Without his donation writing a driver
for AR81xx would never have been possible. Big thanks to all people
who reported feedback or tested patches.

HW donated by: koitsu
Tested by: bsam, Joao Barros <joao.barros <> gmail DOT com >
Jan Henrik Sylvester <me <> janh DOT de >
Ivan Brawley < ivan <> brawley DOT id DOT au >,
CURRENT ML

15 years agoTurn (NFSERR_AUTHERR|code) status values into svcerr_auth(rqst, code) replies
Doug Rabson [Wed, 12 Nov 2008 09:38:18 +0000 (09:38 +0000)]
Turn (NFSERR_AUTHERR|code) status values into svcerr_auth(rqst, code) replies
instead of returning a success with a bogus NFS error code.

15 years agoAllow v3 GETATTR requests even when weakly authenticated. Change the error
Doug Rabson [Wed, 12 Nov 2008 09:36:35 +0000 (09:36 +0000)]
Allow v3 GETATTR requests even when weakly authenticated. Change the error
return for for weakly authenticated requests from REJECTEDCRED to WEAKAUTH
for consistency with Solaris.

15 years agoDon't forget to relock the TTY after uiomove() returns an error.
Ed Schouten [Wed, 12 Nov 2008 09:04:44 +0000 (09:04 +0000)]
Don't forget to relock the TTY after uiomove() returns an error.

Peter Holm just discovered this funny bug inside the TTY code: if
uiomove() in ttydisc_write() returns an error, we forget to relock the
TTY before jumping out of ttydisc_write(). Fix it by placing
tty_unlock() and tty_lock() around uiomove().

Submitted by: pho

15 years agoUpdate firmware version check
Kip Macy [Wed, 12 Nov 2008 04:45:09 +0000 (04:45 +0000)]
Update firmware version check
make ddp a tunable

Obtained from: Chelsio Inc.
MFC after: 3 days