]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years agoAssert v_fifoinfo is non-NULL in fifo_close() in order to catch
rwatson [Mon, 26 Sep 2005 08:17:03 +0000 (08:17 +0000)]
Assert v_fifoinfo is non-NULL in fifo_close() in order to catch
non-conforming cases sooner.

MFC after: 3 days
Reported by: Peter Holm <peter at holm dot cc>

18 years agoAcquire Giant in uprintf() and tprintf() rather than asserting it. In
rwatson [Mon, 26 Sep 2005 08:02:24 +0000 (08:02 +0000)]
Acquire Giant in uprintf() and tprintf() rather than asserting it.  In
the vast majority of cases, these functions are called without mutexes
held, meaning that in all but two cases, there will be no ordering
issues with doing this, and it will eliminate the need for changes in
the caller.  In two cases, mutexes are held, so Giant must be acquired
before those mutexes such that uprintf() and tprintf() recurse Giant
rather than generating a lock order reversal.

Suggested by: bde

18 years agoFix order and style(9) to match surrounding defs.
njl [Mon, 26 Sep 2005 07:45:35 +0000 (07:45 +0000)]
Fix order and style(9) to match surrounding defs.

18 years agominor style.Makefile(5) fixes:
keramida [Mon, 26 Sep 2005 06:23:43 +0000 (06:23 +0000)]
minor style.Makefile(5) fixes:
- WARNS before CFLAGS
- CFLAGS -DXXX before -IXXX

Approved by: ru

18 years agoAdd dummy support for ifmedia subsystem. This allows devd to see cdce as an
sobomax [Mon, 26 Sep 2005 05:29:46 +0000 (05:29 +0000)]
Add dummy support for ifmedia subsystem. This allows devd to see cdce as an
ethernet device and configure IP etc.

Submitted by: Craig Boston <craig@tobuj.gank.org>

18 years agoRemove the kernel portion of OLDCARD. I'm working on a replacement
imp [Sun, 25 Sep 2005 21:29:32 +0000 (21:29 +0000)]
Remove the kernel portion of OLDCARD.  I'm working on a replacement
for pccardc dumpcis, but until I'm done with that, I'm leaving pccardc
in place.  As such, I'm leaving the .h files in place for the moment.

18 years agoRemove references to OLDCARD.
imp [Sun, 25 Sep 2005 21:26:09 +0000 (21:26 +0000)]
Remove references to OLDCARD.

18 years agoOLDCARD is being removed from the tree, so remove it from here.
imp [Sun, 25 Sep 2005 21:24:06 +0000 (21:24 +0000)]
OLDCARD is being removed from the tree, so remove it from here.

# the snc pccard entry might be able to be moved to files

18 years agoCorrect filesystem mountpoint
phk [Sun, 25 Sep 2005 21:23:19 +0000 (21:23 +0000)]
Correct filesystem mountpoint

18 years agoFix multiple abuses of __RMAN_RESOURCE_VISIBLE in the arm code.
cognet [Sun, 25 Sep 2005 21:06:50 +0000 (21:06 +0000)]
Fix multiple abuses of __RMAN_RESOURCE_VISIBLE in the arm code.

Spotted out by: phk

18 years ago__RMAN_RESOURCE_VISIBLE not necessary.
phk [Sun, 25 Sep 2005 20:21:48 +0000 (20:21 +0000)]
__RMAN_RESOURCE_VISIBLE not necessary.

18 years ago__RMAN_RESOURCE_VISIBLE not needed.
phk [Sun, 25 Sep 2005 20:21:14 +0000 (20:21 +0000)]
__RMAN_RESOURCE_VISIBLE not needed.

18 years agoReplace __RMAN_RESOURCE_VISIBLE with calls to public entry points
phk [Sun, 25 Sep 2005 20:12:30 +0000 (20:12 +0000)]
Replace __RMAN_RESOURCE_VISIBLE with calls to public entry points
in rman module.

18 years agoAdd rman_is_region_manager() for the benefit of an alpha hack.
phk [Sun, 25 Sep 2005 20:10:10 +0000 (20:10 +0000)]
Add rman_is_region_manager() for the benefit of an alpha hack.

18 years ago__RMAN_RESOURCE_VISIBLE is not actually needed.
phk [Sun, 25 Sep 2005 20:03:41 +0000 (20:03 +0000)]
__RMAN_RESOURCE_VISIBLE is not actually needed.

18 years agoLock the read socket receive buffer when frobbing the sb_state flag on
rwatson [Sun, 25 Sep 2005 19:52:09 +0000 (19:52 +0000)]
Lock the read socket receive buffer when frobbing the sb_state flag on
that socket during open, not the write socket receive buffer.  This
might explain clearing of the sb_state SB_LOCK flag seen occasionally
in soreceive() on fifos.

MFC after: 3 days
Spotted by: ups

18 years agoSubstitute rman_get_start() for __RMAN_RESOURCE_VISIBLE
phk [Sun, 25 Sep 2005 19:48:51 +0000 (19:48 +0000)]
Substitute rman_get_start() for __RMAN_RESOURCE_VISIBLE

18 years agoThis file never needed to see what is in the internal struct resource,
phk [Sun, 25 Sep 2005 19:34:54 +0000 (19:34 +0000)]
This file never needed to see what is in the internal struct resource,
all it needed was a call to rman_get_start().

18 years agoOverhaul error handling in the IPS driver. Don't use a magic value for
scottl [Sun, 25 Sep 2005 17:12:41 +0000 (17:12 +0000)]
Overhaul error handling in the IPS driver.  Don't use a magic value for
driver-induced errors, instead be better about propagating error status
upwards.  Add more error definitions, courtesy of the linux driver.  Fix
a command leak in the ioctl handler.  Re-arrange some of the command handlers
to localize error handling.

MFC After: 3 days

18 years agoRemove OLDCARD vestiges from here
imp [Sun, 25 Sep 2005 01:39:04 +0000 (01:39 +0000)]
Remove OLDCARD vestiges from here

18 years agoFix comment
imp [Sun, 25 Sep 2005 01:38:02 +0000 (01:38 +0000)]
Fix comment

18 years agoImplement new world order in VFS locking for extended attributes. This will
csjp [Sat, 24 Sep 2005 23:47:04 +0000 (23:47 +0000)]
Implement new world order in VFS locking for extended attributes. This will
remove the unconditional acquisition of Giant for extended attribute related
operations. If the file system is set as being MP safe and debug.mpsafevfs is
1, do not pickup Giant.

Mark the following system calls as being MP safe so we no longer pickup Giant
in the system call handler:

o extattrctl
o extattr_set_file
o extattr_get_file
o extattr_delete_file
o extattr_set_fd
o extattr_get_fd
o extattr_delete_fd
o extattr_set_link
o extattr_get_link
o extattr_delete_link
o extattr_list_file
o extattr_list_link
o extattr_list_fd

-Pass MPSAFE flags to namei(9) lookup and introduce vfslocked variable which
 will keep track of any Giant acquisitions.
-Wrap any fd operations which manipulate vnodes in VFS_{UN}LOCK_GIANT
-Drop VFS_ASSERT_GIANT into function which operate on vnodes to ensure that
 we are sufficiently protected.

I've tested these changes with various TrustedBSD MAC policies which use
extended attribute a lot on SMP and UP systems (thanks to Scott Long for
making some SMP hardware available to me for testing).

Discussed with: jeff
Requested by: jhb, rwatson

18 years agoDo not bitch about bsdpan modules not having origin.
krion [Sat, 24 Sep 2005 21:41:47 +0000 (21:41 +0000)]
Do not bitch about bsdpan modules not having origin.

Based on PR: bin/82269
Submitted by: Steven Hartland <killing at multiplay dot co dot uk>
MFC after: 3 days

18 years agoFix -u with absolute paths (e.g., "tar -uf foo.tar /bar") by handling
kientzle [Sat, 24 Sep 2005 21:19:57 +0000 (21:19 +0000)]
Fix -u with absolute paths (e.g., "tar -uf foo.tar /bar") by handling
pathname edits before comparing pathnames on disk to those in the archive.

Thanks to: Gareth Bailey, Lowell Gilbert

18 years agoDetect Mac OS X's broken ACL library.
kientzle [Sat, 24 Sep 2005 21:17:47 +0000 (21:17 +0000)]
Detect Mac OS X's broken ACL library.

Thanks to: Diego "Flameeyes" Petten?

18 years agosigned/unsigned fixes (thanks to GCC4) and a few related minor style corrections.
kientzle [Sat, 24 Sep 2005 21:15:00 +0000 (21:15 +0000)]
signed/unsigned fixes (thanks to GCC4) and a few related minor style corrections.

18 years agoUse the new bus_space/resource convenience functions.
phk [Sat, 24 Sep 2005 20:46:02 +0000 (20:46 +0000)]
Use the new bus_space/resource convenience functions.

18 years agoUse new bus_space/resource convenience functions.
phk [Sat, 24 Sep 2005 20:44:55 +0000 (20:44 +0000)]
Use new bus_space/resource convenience functions.

Pretend the 10-bit I/O ISA addressing is not our problem.

18 years agoAdd convenience macros for bus_space usage that doesn't require specification
phk [Sat, 24 Sep 2005 20:11:07 +0000 (20:11 +0000)]
Add convenience macros for bus_space usage that doesn't require specification
of bus tag+handle.

Instead of
bus_space_write_1(sc->tag, sc->handle, ...)
this macros offer
bus_write_1(sc->resource, ...)

The name+argument transformation is constant and the the macros are
generated (by hand) by the script in tools/bus_macro.sh.

18 years agoSplit struct resource in an external and internal part.
phk [Sat, 24 Sep 2005 20:07:03 +0000 (20:07 +0000)]
Split struct resource in an external and internal part.

The external part is still called 'struct resource' but the contents
is now visible to drivers etc.  This makes it part of the device
driver ABI so it not be changed lightly.  A comment to this effect
is in place.

The internal part is called 'struct resource_i' and contain its external
counterpart as one field.

Move the bus_space tag+handle into the external struct resource, this
removes the need for device drivers to even know about these fields
in order to use bus_space to access hardware. (More in following commit).

18 years agoRemove '\n' since it's redundant in case if file doesn't exist while
krion [Sat, 24 Sep 2005 19:41:56 +0000 (19:41 +0000)]
Remove '\n' since it's redundant in case if file doesn't exist while
running 'pkg_info -g'

Based on PR: bin/42609
Submitted by: Jeff King <peff-freebsd at peff dot net>
MFC after: 3 days

18 years agoAdd two convenience functions for device drivers: bus_alloc_resources()
phk [Sat, 24 Sep 2005 19:31:10 +0000 (19:31 +0000)]
Add two convenience functions for device drivers:  bus_alloc_resources()
and bus_free_resources().  These functions take a list of resources
and handle them all in one go.  A flag makes it possible to mark
a resource as optional.

A typical device driver can save 10-30 lines of code by using these.

Usage examples will follow RSN.

MFC: A good idea, eventually.

18 years agoI have confirmed with my Epson EEN10B that it needs to look at the
imp [Sat, 24 Sep 2005 17:36:43 +0000 (17:36 +0000)]
I have confirmed with my Epson EEN10B that it needs to look at the
attribute memory at 0xff0 to find its MAC address.  This is another
instance of the IBM ethercard II from all apperances (short of popping
the lid).  Update the entry to document which cards we support
actually need this functionality.

18 years agoRemove unnecessary Dlink de650 entry
imp [Sat, 24 Sep 2005 17:32:57 +0000 (17:32 +0000)]
Remove unnecessary Dlink de650 entry

18 years agoThe DLink DE650 has the same ID as Linksys EthernetCard, so we don't
imp [Sat, 24 Sep 2005 17:32:20 +0000 (17:32 +0000)]
The DLink DE650 has the same ID as Linksys EthernetCard, so we don't
need a sperate entry for it.

18 years agoTry to avoid crashes during kernel startup by limiting the # of EISA
wilko [Sat, 24 Sep 2005 16:47:34 +0000 (16:47 +0000)]
Try to avoid crashes during kernel startup by limiting the # of EISA
slots to probe.  Problems have been reported in this area, lets hope this
bandaid helps.

!! Owners of EISA-equipped Alpha machines are requested to at least
!! boot-test a 6-BETA build and report back to the Alpha list. Thanks!

Approved by: re (scottl)
Suggested by: ticso

18 years agoSimplify the code by making use of 'kldstat -q -m <mod>'.
pjd [Sat, 24 Sep 2005 15:57:17 +0000 (15:57 +0000)]
Simplify the code by making use of 'kldstat -q -m <mod>'.

No objections from: mlaier

18 years agoThis part of the struct isn't needed on FreeBSD:
netchild [Sat, 24 Sep 2005 14:49:36 +0000 (14:49 +0000)]
This part of the struct isn't needed on FreeBSD:
---snip---
FYI this bit isn't needed for FreeBSD - I think it came from either
OpenBSD or NetBSD where arc4random() wasn't available during cold
boot.
---snip---

Explained by: iedowse

18 years agoThe function inplace_edit() doesn't exist anymore, remove the prototype.
stefanf [Sat, 24 Sep 2005 13:18:30 +0000 (13:18 +0000)]
The function inplace_edit() doesn't exist anymore, remove the prototype.

Submitted by: Leonardo Chiquitto Filho

18 years agoMake it possible to set the NANO_TOOLS variable to a directory outside
simon [Sat, 24 Sep 2005 12:26:59 +0000 (12:26 +0000)]
Make it possible to set the NANO_TOOLS variable to a directory outside
of $NANO_SRC, which can e.g. be used if the nanobsd scripts are not in
the source tree being built.

Improved by: phk
Approved by: phk

18 years agoUpdate usage.
pjd [Sat, 24 Sep 2005 08:20:45 +0000 (08:20 +0000)]
Update usage.

18 years agoFix typo.
brueffer [Sat, 24 Sep 2005 07:07:55 +0000 (07:07 +0000)]
Fix typo.

PR: 86522
Submitted by: Stephen Hurd <shurd@sasktel.net>
MFC after: 3 days

18 years agoMake rule zero really magical, that way we don't have to do anything
phk [Sat, 24 Sep 2005 07:03:09 +0000 (07:03 +0000)]
Make rule zero really magical, that way we don't have to do anything
when we mount and get zero cost if no rules are used in a mountpoint.

Add code to deref rules on unmount.

Switch from SLIST to TAILQ.

Drop SYSINIT, use SX_SYSINIT and static initializer of TAILQ instead.

Drop goto, a break will do.

Reduce double pointers to single pointers.

Combine reaping and destroying rulesets.

Avoid memory leaks in a some error cases.

18 years agoModify the code path of the ifdef NOTYET part of _kse_single_thread():
brian [Sat, 24 Sep 2005 01:19:53 +0000 (01:19 +0000)]
Modify the code path of the ifdef NOTYET part of _kse_single_thread():

o  Don't reinitialise the atfork() handler list in the child.  We
   are meant to call the child handler, and on subsequent fork()s
   should call all three functions as normal.
o  Don't reinitialise the thread specific keyed data in the
   child after a fork.  Applications may require this for context.
o  Reinitialise curthread->tlflags after removing ourselves from
   (and reinitialising) the various internal thread lists.
o  Reinitialise __malloc_lock in the child after fork() (to balance
   our explicitly taking the lock prior to the fork()).

With these changes, it is possible to enable the NOTYET code in
thr_kern.c to allow the use of non-async-safe functions after
fork()ing from a threaded program.

Reviewed by: Daniel Eischen <deischen@freebsd.org>
[_malloc_lock reinitialisation has since been moved to avoid polluting the
!NOTYET code]

18 years agoSimplify the code a bit by using newly added (to kldstat(8) '-q') option.
pjd [Fri, 23 Sep 2005 23:53:35 +0000 (23:53 +0000)]
Simplify the code a bit by using newly added (to kldstat(8) '-q') option.

18 years agoAdd '-q' option, which (when used with '-m' option) just tells if the given
pjd [Fri, 23 Sep 2005 23:52:26 +0000 (23:52 +0000)]
Add '-q' option, which (when used with '-m' option) just tells if the given
module is loaded or compiled into the kernel.
This is useful mostly in startup scripts, when module should be loaded only
if it wasn't compiled into the kernel nor already loaded, eg.:

kldstat -q -m g_eli || kldload geom_eli.ko || err 1 'geom_eli module failed to load.'

18 years agoRemove obsolete include
imp [Fri, 23 Sep 2005 21:59:11 +0000 (21:59 +0000)]
Remove obsolete include

18 years agoRestore a historical ufs_inactive behavior that has been changed
delphij [Fri, 23 Sep 2005 20:49:57 +0000 (20:49 +0000)]
Restore a historical ufs_inactive behavior that has been changed
in rev. 1.40 of ufs_inode.c, which allows an inode being truncated
even when the filesystem itself is marked RDONLY.  A subsequent
call of UFS_TRUNCATE (ffs_truncate) would panic the system as it
asserts that it can only be called when the filesystem is mounted
read-write (same changeset, rev. 1.74 of sys/ufs/ffs/ffs_inode.c).

Because ffs_mount() already takes care of sync'ing the filesystem
to disk before being downgraded to readonly, it appears to be more
desirable that we should not permit this sort of writes to disk.

This change would fix a panic that occours when read-only mounted
a corrupted filesystem and doing some file operations.

MT6/5/4 candidate

Reviewed by: mckusick

18 years agoIf we're not installing OpenSSH in the base, don't install its startup
wollman [Fri, 23 Sep 2005 16:54:09 +0000 (16:54 +0000)]
If we're not installing OpenSSH in the base, don't install its startup
file either.  This clears the way for third-party SSH ports to install
an RCng startup script.

18 years agoAdd myself to FreeBSD calendar
mnag [Fri, 23 Sep 2005 13:06:23 +0000 (13:06 +0000)]
Add myself to FreeBSD calendar

Approved by: pav (mentor)

18 years agoFix vgrind(1) indexing I broke in previous revision.
ru [Fri, 23 Sep 2005 12:55:22 +0000 (12:55 +0000)]
Fix vgrind(1) indexing I broke in previous revision.

PR: bin/86343
Submitted by: Matej Vela <vela@debian.org>

18 years agoCanonicalize the UNIX domain socket copyright layout: original holders
rwatson [Fri, 23 Sep 2005 12:41:06 +0000 (12:41 +0000)]
Canonicalize the UNIX domain socket copyright layout: original holders
before more recent holders.

MFC after: 3 days

18 years agoFor reasons of consistency (and necessity), assert an exclusive vnode
rwatson [Fri, 23 Sep 2005 12:39:51 +0000 (12:39 +0000)]
For reasons of consistency (and necessity), assert an exclusive vnode
lock on the fifo vnode in fifo_open(): we rely on the vnode lock to
serialize access to v_fifoinfo.

MFC after: 3 days

18 years agoWhitespaces cleanup.
krion [Fri, 23 Sep 2005 12:15:52 +0000 (12:15 +0000)]
Whitespaces cleanup.

PR: conf/81926
Submitted by: Gavin Atkinson <gavin.atkinson at ury dot york dot ac dot uk>

18 years agoFrank Lloyd Wright birth year is 1867, not 1869.
krion [Fri, 23 Sep 2005 12:02:27 +0000 (12:02 +0000)]
Frank Lloyd Wright birth year is 1867, not 1869.

PR: conf/82051
Submitted by: Derek Jones <derek at wahila dot com>

18 years agoFix typo, FRG and GDR became UNO members in 1973, not in 1993.
krion [Fri, 23 Sep 2005 11:58:16 +0000 (11:58 +0000)]
Fix typo, FRG and GDR became UNO members in 1973, not in 1993.

PR: conf/86193
Submitted by: Matthias Buelow <mkb at incubus dot de>

18 years agoFix comment
emax [Thu, 22 Sep 2005 19:15:33 +0000 (19:15 +0000)]
Fix comment

18 years agoForgot to commit ata-card fixes last night. Fix gleb's attempt to do
imp [Thu, 22 Sep 2005 18:46:29 +0000 (18:46 +0000)]
Forgot to commit ata-card fixes last night.  Fix gleb's attempt to do
the right thing by merging in the changes I neglected to commit last
night.

18 years agoFix build.
glebius [Thu, 22 Sep 2005 18:41:56 +0000 (18:41 +0000)]
Fix build.

18 years agoBump up BUFSIZE from 4k to 8k. This was requested by portmgr@ to allow
mp [Thu, 22 Sep 2005 18:32:53 +0000 (18:32 +0000)]
Bump up BUFSIZE from 4k to 8k. This was requested by portmgr@ to allow
ports builds in the cluster to work correctly.

Tested by: kris

18 years agoNote Hawking PN652TX support
imp [Thu, 22 Sep 2005 16:56:48 +0000 (16:56 +0000)]
Note Hawking PN652TX support

18 years agoClarify supported cards
imp [Thu, 22 Sep 2005 16:56:28 +0000 (16:56 +0000)]
Clarify supported cards

18 years agoFix the "fpudna: fpcurthread == curthread XXX times" problem.
ups [Thu, 22 Sep 2005 15:46:21 +0000 (15:46 +0000)]
Fix the "fpudna: fpcurthread == curthread XXX times" problem.

Tested by: kris@
Reviewed by: peter@
MFC after: 3 days

18 years agoDon't pretend to be thread0 when calling sync().
ups [Thu, 22 Sep 2005 15:34:15 +0000 (15:34 +0000)]
Don't pretend to be thread0 when calling sync().
It confuses the lock manager since in some places thread0 is
then used for vnode locking while curthread is used for vnode unlocking.

Found by: Yahoo!
Reviewed by: ps@,jhb@
MFC after: 3 days

18 years agoCause all flags passed by boot2 to set the respective loader(8)
ru [Thu, 22 Sep 2005 15:14:13 +0000 (15:14 +0000)]
Cause all flags passed by boot2 to set the respective loader(8)
boot_* variable.  The end effect is that all flags from boot2
are now passed to the kernel.

18 years agoAdd loader(8) variables for RB_DFLTROOT, RB_MUTE, and RB_PAUSE:
ru [Thu, 22 Sep 2005 15:06:58 +0000 (15:06 +0000)]
Add loader(8) variables for RB_DFLTROOT, RB_MUTE, and RB_PAUSE:
"boot_dfltroot", "boot_mute", and "boot_pause" respectively.

18 years agoRemove compat layer for OLDCARD compatibility. All instances of it
imp [Thu, 22 Sep 2005 14:51:11 +0000 (14:51 +0000)]
Remove compat layer for OLDCARD compatibility.  All instances of it
are now gone from the tree.

18 years agoSince special interface types get their own subsections
yar [Thu, 22 Sep 2005 11:49:52 +0000 (11:49 +0000)]
Since special interface types get their own subsections
(not in mdoc(7) sense yet) in ifconfig(8) manpage, create such
subsections for gif(4) and vlan(4) so that their specific
options are not mixed up with general options.

18 years ago- RBX_MASK wasn't updated when RB_PAUSE was changed from 0x40000
ru [Thu, 22 Sep 2005 11:20:33 +0000 (11:20 +0000)]
- RBX_MASK wasn't updated when RB_PAUSE was changed from 0x40000
  to 0x100000 in rev. 1.67.

- NOPT wasn't updated (decremented) in previous revision.

18 years agoFix a typo
brian [Thu, 22 Sep 2005 11:18:30 +0000 (11:18 +0000)]
Fix a typo

Obtained from: OpenBSD

18 years agoAdd fi_sx, an sx lock to serialize I/O operations on the socket pair
rwatson [Thu, 22 Sep 2005 10:51:12 +0000 (10:51 +0000)]
Add fi_sx, an sx lock to serialize I/O operations on the socket pair
underlying the POSIX fifo implementation.  In 6.x/7.x, fifo access is
moved from the VFS layer, where it was serialized using the vnode
lock, to the file descriptor layer, where access is protected by a
reference count but not serialized.  This exposed socket buffer
locking to high levels of parallelism in specific fifo workloads, such
as make -j 32, which expose as yet unresolved socket buffer bugs.

fi_sx re-adds serialization about the read and write routines,
although not paths that simply test socket buffer mbuf queue state,
such as the poll and kqueue methods.  This restores the extra locking
cost previously present in some cases, but is an effective workaround
for the instability that has been experienced.  This workaround should
be removed once the bug in socket buffer handling has been fixed.

Reported by: kris, jhb, Julien Gabel <jpeg at thilelli dot net>,
Peter Holm <peter at holm dot cc>, others
MFC after: 3 days

18 years agoAdd HTTP proxy authentication, via the HTTP_PROXY_AUTH environment
cperciva [Thu, 22 Sep 2005 07:11:27 +0000 (07:11 +0000)]
Add HTTP proxy authentication, via the HTTP_PROXY_AUTH environment
variable.

Tested by: Emil Mikulic
X-MFC-After: 6.0-RELEASE

18 years ago'PC Card' instead of other variants
imp [Thu, 22 Sep 2005 06:01:44 +0000 (06:01 +0000)]
'PC Card' instead of other variants

18 years agoEliminate dead code
imp [Thu, 22 Sep 2005 05:56:32 +0000 (05:56 +0000)]
Eliminate dead code

18 years agoPC Card instead of other variants
imp [Thu, 22 Sep 2005 05:52:54 +0000 (05:52 +0000)]
PC Card instead of other variants

18 years agoFinish last commit: actually remove compat methods from bt3c_pccard_methods
imp [Thu, 22 Sep 2005 05:51:07 +0000 (05:51 +0000)]
Finish last commit: actually remove compat methods from bt3c_pccard_methods

18 years agoRemove broken OLDCARD compat shims.
imp [Thu, 22 Sep 2005 05:47:04 +0000 (05:47 +0000)]
Remove broken OLDCARD compat shims.
"PC Card" is the correct spelling.  "PC-Card" isn't, per the PCMCIA
standard.

18 years agoDo not use passphraseless keys for authentication unless the nullok
des [Thu, 22 Sep 2005 05:35:24 +0000 (05:35 +0000)]
Do not use passphraseless keys for authentication unless the nullok
option was specified.

PR: bin/81231
Submitted by: "Daniel O'Connor" <doconnor@gsoft.com.au>
MFC after: 3 days

18 years agoMFp4: save mac addr hint, eliminage OLDCARD shims
imp [Thu, 22 Sep 2005 05:11:50 +0000 (05:11 +0000)]
MFp4: save mac addr hint, eliminage OLDCARD shims

18 years agoUse the AHC_DISABLE_PCI_PERR flag to silence parity error reporting on
gibbs [Thu, 22 Sep 2005 05:11:35 +0000 (05:11 +0000)]
Use the AHC_DISABLE_PCI_PERR flag to silence parity error reporting on
chips where setting the FAILDIS bit is not effective.  While here,
try again to make it clear that reported parity errors indicate
a failure of some PCI device *other than* the aic7xxx controller.

18 years agoRemove OLDCARD shims
imp [Thu, 22 Sep 2005 05:06:37 +0000 (05:06 +0000)]
Remove OLDCARD shims

18 years agoEnhance diagnostic printfs for the chains of free lists used to
gibbs [Thu, 22 Sep 2005 05:06:03 +0000 (05:06 +0000)]
Enhance diagnostic printfs for the chains of free lists used to
avoid SCB ID collissions to non-packetized targets.

18 years agoCorrect bug that caused the completed "recovery" scb to have its
gibbs [Thu, 22 Sep 2005 05:01:37 +0000 (05:01 +0000)]
Correct bug that caused the completed "recovery" scb to have its
timer reset rather than the timer of an SCB still pending on the
controller after recovery completed.  This should correct timeout
loops seen in the field.

18 years agoSet allow_memio to 1 if fetching the allow_memio hint fails. This
gibbs [Thu, 22 Sep 2005 04:56:59 +0000 (04:56 +0000)]
Set allow_memio to 1 if fetching the allow_memio hint fails.  This
is the default behavior according the the bootverbose printf in the
failure case.

18 years agoMFp4: Remove OLDCARD shims
imp [Thu, 22 Sep 2005 04:51:11 +0000 (04:51 +0000)]
MFp4: Remove OLDCARD shims

18 years agoMFp4: trivial KNF nits
imp [Thu, 22 Sep 2005 04:49:17 +0000 (04:49 +0000)]
MFp4: trivial KNF nits

18 years agoMFp4: KNF (mostly remove K&R function definitions). Fix some spaces left
imp [Thu, 22 Sep 2005 04:46:56 +0000 (04:46 +0000)]
MFp4: KNF (mostly remove K&R function definitions).  Fix some spaces left
over from de__Ping.

# Didn't fix the -Exxxx return statements that appaer to be linuxisms
# (and wrong) since I don't have hardware to test with.

18 years agoRemove the OPTIONS section, since it only documents FE_DEBUG and wrongly
keramida [Thu, 22 Sep 2005 01:50:00 +0000 (01:50 +0000)]
Remove the OPTIONS section, since it only documents FE_DEBUG and wrongly
so.  If the full list of fe(4) options is documented we can revive the
entire section.

PR: docs/86228
Submitted by: n-kogane@syd.odn.ne.jp
Helped by: Masahiro Sekiguchi <seki@jp.fujitsu.com>
MFC after: 1 week

18 years agoFix an alignment panic my preserving the 2byte padding (ETHER_ALIGN) on our
thompsa [Thu, 22 Sep 2005 01:46:11 +0000 (01:46 +0000)]
Fix an alignment panic my preserving the 2byte padding (ETHER_ALIGN) on our
copied mbuf, which keeps the IP header 32-bit aligned. This copied mbuf is
reinjected back into ether_input and off to the IP routines.

Reported and tested by: Peter van Dijk
Approved by: mlaier (mentor)
MFC after: 3 days

18 years agoThis is a forced commit. The previous change, revision 1.158 was intend to
davidxu [Thu, 22 Sep 2005 01:25:31 +0000 (01:25 +0000)]
This is a forced commit. The previous change, revision 1.158 was intend to
fix the PR kern/86067.

18 years agoTemporarily disable nice threshold detection code, as it can starve
davidxu [Thu, 22 Sep 2005 01:19:37 +0000 (01:19 +0000)]
Temporarily disable nice threshold detection code, as it can starve
a thread holding critical resource, e.g mutex or other implicit
synchronous flags. Give thread which exceeds nice threshold a minimum
time slice.

PR: kern/86087

18 years agoBetter descriptions for the Jack of Diamonds cards.
imp [Wed, 21 Sep 2005 23:57:26 +0000 (23:57 +0000)]
Better descriptions for the Jack of Diamonds cards.

18 years agoRemove OLDCARD shims
imp [Wed, 21 Sep 2005 22:45:14 +0000 (22:45 +0000)]
Remove OLDCARD shims

18 years agoDon't confuse the tuple code and the tuple length. Ooops. Since most
imp [Wed, 21 Sep 2005 20:08:24 +0000 (20:08 +0000)]
Don't confuse the tuple code and the tuple length.  Ooops.  Since most
CIS are tiny, this likely hasn't bit anybody yet...

18 years agoUse correct VFS locking rather than unconditionally grabbing Giant around
jhb [Wed, 21 Sep 2005 19:49:42 +0000 (19:49 +0000)]
Use correct VFS locking rather than unconditionally grabbing Giant around
namei() calls in kern_alternate_path().

Reviewed by: csjp
MFC after: 1 week

18 years agoSplit power state control into two variables. hw.pci.do_powerstate
imp [Wed, 21 Sep 2005 19:47:00 +0000 (19:47 +0000)]
Split power state control into two variables.  hw.pci.do_powerstate
has been removed.  It has been replaced by hw.pci.do_power_nodriver
and hw.pci.do_power_resume.  The former defaults to 0 while the latter
defaults to 1.

When do_powerstate was set to 0, it broke suspend/resume for a lot of
people as an unintended consequence.  This change will only affect the
areas that were intended to affect.  This change will have no effect on
servers, but will help laptops quite a bit.

MFC After: 3 days.

18 years agoAdd COMPAT_FREEBSD5 option. This should have been done back when I
kensmith [Wed, 21 Sep 2005 19:27:08 +0000 (19:27 +0000)]
Add COMPAT_FREEBSD5 option.  This should have been done back when I
added it to GENERIC...

Pointed out by: jhb
Pointy hat: kensmith

18 years agoRemove a fortune that is duplicated verbatim in fortunes2-o
dougb [Wed, 21 Sep 2005 19:04:10 +0000 (19:04 +0000)]
Remove a fortune that is duplicated verbatim in fortunes2-o

18 years agoStyle fix: "if (pointer)" -> "if (pointer != NULL)"
cperciva [Wed, 21 Sep 2005 18:42:56 +0000 (18:42 +0000)]
Style fix: "if (pointer)" -> "if (pointer != NULL)"

18 years agoNarrow the use of user credentials.
des [Wed, 21 Sep 2005 16:08:40 +0000 (16:08 +0000)]
Narrow the use of user credentials.
Fix one case where openpam_restore_cred() might be called twice in a row.

MFC after: 3 days