Commit Graph

110471 Commits

Author SHA1 Message Date
mux
747bbb41c4 Only try to use the 82503 serial interface for the 82557 chipsets. The
datasheet says it is only valid for such chipsets and shouldn't be used
with others.  This fixes some 82559 based cards which otherwise only
work at 10Mbit.

MFC after:	5 days
Tested by:	krion
2004-12-20 10:18:21 +00:00
harti
1c86b95b10 maxJobs is declared extern in job.h so it cannot be static in job.c.
PR:		bin/75210
Submitted by:	Andreas Jochens; Robert Millan <rmh@debian.org>
2004-12-20 10:14:05 +00:00
ru
9ca8709949 Sort by month/day/year/login. 2004-12-20 10:09:06 +00:00
bz
457df2c499 Enable jumbo frames on Yukon variants of sk(4).
In contrast to OpenBSD we enable jumbo frame support
depending on MTU setting (like done for xmac).

Approved by:	pjd (mentor)
Obtained from:	OpenBSD if_sk.c r1.52 (YU_SMR_MFL_JUMBO flag)
Tested by:	Heinz Knocke <knockefreebsd at o2 dot pl>
MFC after:	5 days
2004-12-20 10:07:12 +00:00
njl
80bf67513f Only report a critical battery level once until it's gone non-critical.
An improvement would be to check all batteries for critical state before
printing a message.

Reported by:	Kevin Oberman (oberman at es net)
2004-12-20 05:03:41 +00:00
sam
1d13972272 Note requirement to manually load/configure ancillary wlan modules.
Requested by:	silby
2004-12-20 04:27:23 +00:00
sam
0ba5d78de5 add ancillary wlan modules and fixup comments
Requested by:	silby
2004-12-20 04:22:41 +00:00
pjd
d359cbb8ec Remove unused variables. 2004-12-19 23:55:49 +00:00
pjd
5d72d5354a - Argument 'flags' in g_mirror_destroy_consumer() function is unsed -
mark it as such.
- Before closing consumer check if it is open. It can be closed here
  when g_mirror_connect_disk() fails on g_access().
2004-12-19 23:33:59 +00:00
deischen
8fe8e68e76 Don't panic when sigsuspend is interrupted by a cancellation.
PR:	75273
2004-12-19 23:23:43 +00:00
pjd
8c72a601a3 Some major cleanups.
Keeping consumers open when device is closed is very hard. We need to
open consumers sometimes to update metadata, etc.
Many hacks was introduced in the past to made it possible. You cannot
be sure that you can open consumer for writing always, even if you think
it should be allowed. If one of the mirror components is for example da0
and you try to open it, you can get EPERM when da0s1 is opened for reading
(because BSD class opens consumers (da0) with an extra 'e' bit set).
Waiting for the events queue to be empty may do the trick, but it makes
code much uglier (as you cannot always call g_waitidle()), it doesn't
solve all edge cases and it can introduce deadlocks if there are events
in the queue that wait for gmirror.

I removed those hacks. Now all consumers are open r1w1e1 always, even if
device is closed. Maybe it is less clean from GEOM perspective, but simpify
code a lot and make it much more reliable.
The only issue was retaste event which is sent when we close consumers
opened for writing. I ignore retaste event by not detaching consumer
immediately (so retaste event is not send to my class) and sending event
right after it to detach and destroy consumer.
2004-12-19 23:12:00 +00:00
pjd
fccc23ca68 Don't quit on first failure, just skip failures. 2004-12-19 22:58:25 +00:00
marks
e6bc8607e0 Add myself. 2004-12-19 22:21:41 +00:00
dhartmei
b61c49cccc Initialise init_addr in pf_map_addr() in the PF_POOL_ROUNDROBIN,
prevents a possible endless loop in pf_get_sport() with 'static-port'

ICMP state entries use the ICMP ID as port for the unique state key. When
checking for a usable key, construct the key in the same way. Otherwise,
a colliding key might be missed or a state insertion might be refused even
though it could be inserted. The second case triggers the endless loop,
possibly allowing a NATed LAN client to lock up the kernel.

PR:			kern/74930
Reported and tested by:	Hugo Silva, Srebrenko Sehic
MFC after:		3 days
2004-12-19 19:43:04 +00:00
njl
ae7f7772e5 Move launching the worker thread from a SYSINIT to the first device's
attach.  This fixes the previous behavior where systems without hptmv
hardware always had a worker thread running.
2004-12-19 19:42:54 +00:00
maxim
78757e68aa Allocate an additional white space in a username column for
a long (UT_NAMESIZE) login names.

PR:		bin/75259
Submitted by:	Matthew D.Fuller
MFC after:	2 weeks
2004-12-19 18:02:45 +00:00
glebius
3a2f2486b6 We already have ng_fec.4 manpage. And sys/modules is not a correct
place for documentation.
2004-12-19 16:06:14 +00:00
glebius
1a56a56a53 We have an informative ng_source.4 manpage, which is not installed. 2004-12-19 16:03:06 +00:00
glebius
a7bbad17b9 Assert queue mutex in ng_dequeue() and ng_queue_rw(). 2004-12-19 14:58:13 +00:00
cperciva
141ff18dcf Use the accepted abbreviation "kB" for kilobyte, rather than "kb" (which
is the common unit for a kilobit).
2004-12-19 13:29:25 +00:00
gad
4572e84e4f Call umask() before opening the lock-file for a queue, to make sure
the file will be created with the right access, if the call to open()
does create it.  Also fix the other call to umask() to turn off
"write others", just as a matter of general safety.

PR:		74418
MFC after:	4 days
2004-12-19 05:14:29 +00:00
brueffer
8d0a2a10ef Nuke ports-picobsd, it was thrown out a while ago.
Approved by:	linimon
MFC after:	3 days
2004-12-19 02:31:45 +00:00
brueffer
909b888a12 In the ethernet-nic-regex:
- add udav(4)

In the scsi-controller-regex:

- correct an entry
- move another one to the right place
- add a bunch of missing drivers

Glanced at by:	trhodes (scsi-controller-regex part)
MFC after:	3 days
2004-12-19 00:50:07 +00:00
sobomax
deee993b90 Add FC929X into the list of supported devices.
Reminded by:	simon
2004-12-18 19:12:06 +00:00
deischen
a5b13ff571 Use a generic way to back threads out of wait queues when handling
signals instead of having more intricate knowledge of thread state
within signal handling.

Simplify signal code because of above (by David Xu).

Use macros for libpthread usage of pthread_cleanup_push() and
pthread_cleanup_pop().  This removes some instances of malloc()
and free() from the semaphore and pthread_once() implementations.

When single threaded and forking(), make sure that the current
thread's signal mask is inherited by the forked thread.

Use private mutexes for libc and libpthread.  Signals are
deferred while threads hold private mutexes.  This fix also
breaks www/linuxpluginwrapper; a patch that fixes it is at
http://people.freebsd.org/~deischen/kse/linuxpluginwrapper.diff

Fix race condition in condition variables where handling a
signal (pthread_kill() or kill()) may not see a wakeup
(pthread_cond_signal() or pthread_cond_broadcast()).

In collaboration with:	davidxu
2004-12-18 18:07:37 +00:00
cognet
b231943e0e Update the StrongArm port to match the current code.
- Implement arm_mask_irqs and arm_unmask_irqs
- Provide the available physical address range after pmap_bootstrap allocated
things, instead or before, or bad things happen.
2004-12-18 17:58:49 +00:00
cognet
5b61dc111e Make sure gcc doesn't generate something such as swp r3, r4, [r3] for __swp,
as it has unpredictable results.
2004-12-18 17:43:01 +00:00
ru
b0de3be535 Add missing dependencies of $(OUTPUTS) on source makefiles.
Caught by:	make -DNOCLEAN buildworld
2004-12-18 17:30:53 +00:00
sobomax
b131545097 Add support for FC929X, which apparently is just a PCI-X version of FC929.
MFC after:	3 days
2004-12-18 16:49:54 +00:00
phk
47c37eb878 Change terminal state, not terminal type 2004-12-18 16:31:21 +00:00
rse
6787654cb7 Synchronize reference list to the ng_xxx(4) manpages of netgraph nodes
with the actually installed manpages by adding the missing ones. This
way they can be found more easily.

MFC after:	2 days
2004-12-18 15:27:17 +00:00
phk
15b61d2dfc If /etc/named is a symlink, try to make sure it points the right place. 2004-12-18 15:19:36 +00:00
davidxu
acc63fde9c 1. msleep returns EWOULDBLOCK not ETIMEDOUT, use EWOULDBLOCK instead.
2. Eliminate a possible lock leak in timed wait loop.
2004-12-18 13:43:16 +00:00
davidxu
395ea4c2e2 1. make umtx sharable between processes, the way is two or more processes
call mmap() to create a shared space, and then initialize umtx on it,
   after that, each thread in different processes can use the umtx same
   as threads in same process.
2. introduce a new syscall _umtx_op to support timed lock and condition
   variable semantics. also, orignal umtx_lock and umtx_unlock inline
   functions now are reimplemented by using _umtx_op, the _umtx_op can
   use arbitrary id not just a thread id.
2004-12-18 12:52:44 +00:00
ru
d4138a03c5 Grammar in a comment. 2004-12-18 12:31:12 +00:00
phk
644cffdbea Open device R/W for ioctl modifications. 2004-12-18 11:04:10 +00:00
ru
875f547555 Uncomment an upcoming 5.4-RELEASE. 2004-12-18 07:20:33 +00:00
mlaier
9cf451328d Make ip_nat compile again. Should read #if->n<-def LARGE_NAT as in ipf 4.x 2004-12-18 03:47:54 +00:00
julian
dbd1bd5be7 Slight change to formatting so that 'ctags' doesn't
give up on teh file half way through.. Might have been my
mistake earlier anyhow. No actual code change

MFC after:	5 days
2004-12-18 01:20:18 +00:00
jkoshy
fc0ef2974e Document "machdep.hlt_cpus".
Reviewed by:	ru
2004-12-18 01:13:37 +00:00
jkoshy
1b6e938d41 Uncomment entries for FreeBSD 6.0 and 4.11.
Requested by:	ru
2004-12-18 01:07:18 +00:00
brueffer
396a9f842f Specify the state of my birth, similar to other entries. 2004-12-18 00:58:22 +00:00
brueffer
0dc3ac5a70 BCM5721 is supported as well. 2004-12-17 23:03:30 +00:00
ps
cbeb33bd35 Add support for the 5721 which seems to be similar to the 5750/5751.
Tested by:	Vivek Khera vivek at khera dot org
2004-12-17 21:50:18 +00:00
rse
b88cc5aa83 1. To give the user a clue about the expiration timeout values, mention
the default timeouts of 1800 (activity) and 15 (inactivity) seconds.

2. Fix the "ifinfo" ASCII control message description:
   it requires the interface number as an argument.

MFC after:	2 days
2004-12-17 20:49:01 +00:00
mdodd
2fc00c6e91 Diff reduce wi_write_wep() relative to revision 1.168 2004-12-17 20:48:13 +00:00
brueffer
c4b0b32c03 Modify the name of the supported bluetooth card.
Discussed with:		emax
2004-12-17 19:01:55 +00:00
alc
c4f7988cf9 Eliminate another unnecessary call to vm_page_busy(). (See revision 1.333
for a detailed explanation.)
2004-12-17 18:54:51 +00:00
brueffer
7d3a2c19ea Autogenerate device listings for umass(4).
MFC after:	3 days
2004-12-17 18:37:58 +00:00
brueffer
66fa47c120 - add a HARDWARE section based on the hardware notes and the devices
already listed in the manpage
- reword some DESCRIPTION sentences
- Xref ehci(4)
- bump .Dd

MFC after:	3 days
2004-12-17 18:35:38 +00:00