]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years agoWork around the fact that nfsclient SRCS must include
yar [Sat, 18 Feb 2006 23:31:49 +0000 (23:31 +0000)]
Work around the fact that nfsclient SRCS must include
nfs_diskless.c if NFS_ROOT is in effect, e.g., present
in the kernel config file.  Otherwise the built module
won't load due to an undefined reference to nfs_setup_diskless.

MFC after: 3 days

18 years agoRemove empty lines at the end
ache [Sat, 18 Feb 2006 22:08:28 +0000 (22:08 +0000)]
Remove empty lines at the end

18 years agoThe sysctls kern.ipc.[max_linkhdr|max_protohdr|max_hdr|max_datalen]
andre [Sat, 18 Feb 2006 17:16:18 +0000 (17:16 +0000)]
The sysctls kern.ipc.[max_linkhdr|max_protohdr|max_hdr|max_datalen]
can't be changed from userland.  Make them read-only and provide
descriptions.

kern.ipc.max_datalen must never be less than one byte.  Enforce this
with a panic in net_init_domain().

Sponsored by: TCP/IP Optimization Fundraise 2005
MFC after: 3 days

18 years agoRemove unneeded includes and provide more accurate description
andre [Sat, 18 Feb 2006 17:05:00 +0000 (17:05 +0000)]
Remove unneeded includes and provide more accurate description
to others.

Submitted by: garys
PR: kern/86437

18 years agoA file can also be a link, so check not only for a file, but also for a link
netchild [Sat, 18 Feb 2006 16:58:21 +0000 (16:58 +0000)]
A file can also be a link, so check not only for a file, but also for a link
in the delete-old and check-old targets.

We don't install a lib (libXY.so.Z) as a link, but an user may have created
something like this. This is dangerous if this link points to a different
version of the lib. So check for a link also in the *-lib targets (an
annoyed user which absolutely wants this redirection of a lib should use
libmap.conf instead of a link).

A directory can also be a link, but in this case just echo a message to
remove it by hand.

18 years agoAdd missing TH_PUSH to the TH_FLAGS enumeration.
andre [Sat, 18 Feb 2006 16:50:08 +0000 (16:50 +0000)]
Add missing TH_PUSH to the TH_FLAGS enumeration.

Submitted by: Andre Albsmeier <Andre.Albsmeier-at-siemens.com>
PR: kern/85203

18 years agoXref chkgrp(8).
brueffer [Sat, 18 Feb 2006 16:48:56 +0000 (16:48 +0000)]
Xref chkgrp(8).

PR: 93529
Submitted by: Daniel Gerzo <danger@rulez.sk>
MFC after: 3 days

18 years agoBuild audit command line tools only if NO_AUDIT isn't defined.
rwatson [Sat, 18 Feb 2006 16:40:31 +0000 (16:40 +0000)]
Build audit command line tools only if NO_AUDIT isn't defined.

Submitted by: brueffer
Obtained from: TrustedBSD Project

18 years agoAdd system call auditing support for sparc64.
rwatson [Sat, 18 Feb 2006 16:36:56 +0000 (16:36 +0000)]
Add system call auditing support for sparc64.

Submitted by: brueffer
Obtained from: TrustedBSD Project

18 years ago - add libxpg4
netchild [Sat, 18 Feb 2006 16:35:57 +0000 (16:35 +0000)]
 - add libxpg4
 - correct typo in variable name
 - remove etc/security (file):
   While this doesn't affect the new directory, we should remove it to keep
   the list "clean".

18 years agoImproved description for packet zone statistics.
andre [Sat, 18 Feb 2006 16:09:38 +0000 (16:09 +0000)]
Improved description for packet zone statistics.

Sponsored by: TCP/IP Optimization Fundraise 2005
MFC after: 3 days

18 years agoPrint statistics on mbuf+clusters in packet zone.
andre [Sat, 18 Feb 2006 16:03:07 +0000 (16:03 +0000)]
Print statistics on mbuf+clusters in packet zone.

Sponsored by: TCP/IP Optimization Fundraise 2005
MFC after: 3 days

18 years agoLook for cpu/ichss instead of cpu/p4tcc, which is i386/amd64-only.
des [Sat, 18 Feb 2006 16:01:07 +0000 (16:01 +0000)]
Look for cpu/ichss instead of cpu/p4tcc, which is i386/amd64-only.

18 years agoPrint statistics on jumbo mbuf clusters.
andre [Sat, 18 Feb 2006 15:55:19 +0000 (15:55 +0000)]
Print statistics on jumbo mbuf clusters.

Sponsored by: TCP/IP Optimization Fundraise 2005
MFC after: 3 days

18 years agoUse kld(3) for loading geom_md.ko.
pjd [Sat, 18 Feb 2006 11:40:24 +0000 (11:40 +0000)]
Use kld(3) for loading geom_md.ko.

18 years agoLoad cpufreq at startup if it isn't there already.
des [Sat, 18 Feb 2006 11:35:12 +0000 (11:35 +0000)]
Load cpufreq at startup if it isn't there already.

18 years agoReplace the guts of usbmodule() with calls to the new kld(3) functions.
des [Sat, 18 Feb 2006 11:26:36 +0000 (11:26 +0000)]
Replace the guts of usbmodule() with calls to the new kld(3) functions.

18 years agoAdd utility functions for checking if a given kernel module is loaded,
des [Sat, 18 Feb 2006 11:25:28 +0000 (11:25 +0000)]
Add utility functions for checking if a given kernel module is loaded,
and loading it.

18 years agoInform when label disappears.
pjd [Sat, 18 Feb 2006 11:24:00 +0000 (11:24 +0000)]
Inform when label disappears.

MFC after: 3 days

18 years agoAllow to use g_slice_orphan() from outside.
pjd [Sat, 18 Feb 2006 11:21:17 +0000 (11:21 +0000)]
Allow to use g_slice_orphan() from outside.

MFC after: 3 days

18 years ago- Do not depend on fact that file system covers entire provider.
pjd [Sat, 18 Feb 2006 10:59:47 +0000 (10:59 +0000)]
- Do not depend on fact that file system covers entire provider.
  It won't work for file systems created with -s option.
  Use better file system verfication.
- Add myself to the copyright.

MFC after: 3 days

18 years ago- Fix severe crackling after long running and abusive module load / unload by
ariff [Sat, 18 Feb 2006 10:24:48 +0000 (10:24 +0000)]
- Fix severe crackling after long running and abusive module load / unload by
  forcing DMA alignment to default buffer size.
- Make sure DMA pointer properly aligned to avoid being truncated by caller
  which causing severe underruns and random popping (especially in 32bit
  playback / recording).
- Add AC97 inverted external amplifier quirk for Maxselect x710s
  - http://maxselect.ru/

MFC after: 1 week

18 years agoFix random popping while playing in 32bit by increasing default buffer size
ariff [Sat, 18 Feb 2006 10:23:37 +0000 (10:23 +0000)]
Fix random popping while playing in 32bit by increasing default buffer size
from 4096 to 8192.

MFC after: 1 week

18 years agoThis function returns nothing.
pjd [Sat, 18 Feb 2006 03:04:26 +0000 (03:04 +0000)]
This function returns nothing.

18 years agoIf provider's sector size prevents reading SBLOCKSIZE bytes return
pjd [Sat, 18 Feb 2006 03:00:49 +0000 (03:00 +0000)]
If provider's sector size prevents reading SBLOCKSIZE bytes return
immediatelly.

18 years agoUse shell's version of if to check if the firmware really exists in the
mlaier [Sat, 18 Feb 2006 01:38:44 +0000 (01:38 +0000)]
Use shell's version of if to check if the firmware really exists in the
current directory to allow user rules to create the firmware (e.g. from a
uuencoded blob).  make's version of if is evaluated too early to catch this.

Found-by: gallatin

18 years agouse s/w bmiss facility
sam [Sat, 18 Feb 2006 01:04:08 +0000 (01:04 +0000)]
use s/w bmiss facility

MFC after: 1 week

18 years agostop device so we don't panic on card eject
sam [Sat, 18 Feb 2006 01:03:09 +0000 (01:03 +0000)]
stop device so we don't panic on card eject

MFC after: 1 week

18 years agoThese files apply to all the atmel parts that freebsd is going to run on,
imp [Fri, 17 Feb 2006 22:33:13 +0000 (22:33 +0000)]
These files apply to all the atmel parts that freebsd is going to run on,
so name them more generically.  If we do support the MMU-less ARM7 parts,
then we'll need to, at that time, expand the files we have.

18 years agoThis file was obsolete when committed. Catchup and delete it.
imp [Fri, 17 Feb 2006 22:23:36 +0000 (22:23 +0000)]
This file was obsolete when committed.  Catchup and delete it.

18 years agoExpand scope of marker to reduce the number of page queue scan restarts.
tegge [Fri, 17 Feb 2006 21:02:39 +0000 (21:02 +0000)]
Expand scope of marker to reduce the number of page queue scan restarts.

18 years agoBelatedly bump the date for the fan control changes in rev. 1.9.
brueffer [Fri, 17 Feb 2006 20:29:32 +0000 (20:29 +0000)]
Belatedly bump the date for the fan control changes in rev. 1.9.

18 years agoRe-work the bus attachment somewhat. Make the rids unique for
ambrisko [Fri, 17 Feb 2006 18:46:18 +0000 (18:46 +0000)]
Re-work the bus attachment somewhat.  Make the rids unique for
the SMI/TCO address space.  Switch the bus space I/O to the
one specific for either the SMI or TCO space.  Re-calibrate
the tick.  Add some more device id's, 82801FBR submitted by des.
This makes it work on the platforms I've tested with.

Go ahead by: des

18 years agoCheck return value from nonblocking call to vn_start_write().
tegge [Fri, 17 Feb 2006 18:22:19 +0000 (18:22 +0000)]
Check return value from nonblocking call to vn_start_write().

18 years ago1) Ignore link events for MII/GMII cards if MI auto-polling disabled. This
oleg [Fri, 17 Feb 2006 14:33:35 +0000 (14:33 +0000)]
1) Ignore link events for MII/GMII cards if MI auto-polling disabled. This
   should fix strange link state behaviour reported for bcm5721 & bcm5704c
2) Clear bge_link flag in bge_stop()
3) Force link state check after bge_ifmedia_upd(). Otherwise we can miss link
   event if PHY changes it's state fast enough.

Tested by: phk (bcm5704c)
Approved by: glebius (mentor)
MFC after: 1 week

18 years agoJMicron RAID metadata support.
brueffer [Fri, 17 Feb 2006 14:26:49 +0000 (14:26 +0000)]
JMicron RAID metadata support.

18 years agoReplace the 4k fixed sized jumbo mbuf clusters with PAGE_SIZE sized
andre [Fri, 17 Feb 2006 14:14:15 +0000 (14:14 +0000)]
Replace the 4k fixed sized jumbo mbuf clusters with PAGE_SIZE sized
jumbo mbuf clusters.  To make the variable size clear they are named
MJUMPAGESIZE.

Having jumbo clusters with the native PAGE_SIZE is more useful than
a fixed 4k size according the device driver writers using this API.

The 9k and 16k jumbo mbuf clusters remain unchanged.

Requested by: glebius, gallatin
Sponsored by: TCP/IP Optimization Fundraise 2005
MFC after: 3 days

18 years agoAdd r/w support for JMicron ATA RAID metadata.
sos [Fri, 17 Feb 2006 13:02:10 +0000 (13:02 +0000)]
Add r/w support for JMicron ATA RAID metadata.
Acknowledgement should definitly go to JMicron Technology for providing full
docs on the metadata format as the only vendor so far, big thanks from here.

18 years agoFix standalone module build.
ru [Fri, 17 Feb 2006 10:52:59 +0000 (10:52 +0000)]
Fix standalone module build.

Reported by: Boris Samorodov

18 years agoRemove unused now field.
glebius [Fri, 17 Feb 2006 09:42:49 +0000 (09:42 +0000)]
Remove unused now field.

18 years agoDocument how to find a short description of a memory type.
pjd [Fri, 17 Feb 2006 09:11:41 +0000 (09:11 +0000)]
Document how to find a short description of a memory type.

18 years agoCheck if /sbin/nextboot exists before running it.
ru [Fri, 17 Feb 2006 08:34:01 +0000 (08:34 +0000)]
Check if /sbin/nextboot exists before running it.

PR: 93466
Submitted by: Mats Palmgren

18 years agoDocument Intel E7505 support.
brueffer [Fri, 17 Feb 2006 06:29:51 +0000 (06:29 +0000)]
Document Intel E7505 support.

18 years agoWhen linking make sure it succeeds.
obrien [Fri, 17 Feb 2006 04:59:23 +0000 (04:59 +0000)]
When linking make sure it succeeds.

18 years agoAdd support for the Intel E7205 chipset.
anholt [Fri, 17 Feb 2006 01:40:46 +0000 (01:40 +0000)]
Add support for the Intel E7205 chipset.

PR: kern/91315
Submitted by: Joerg Pulz <Joerg.Pulz@frm2.tum.de>

18 years agoRounding addr upwards to next 4M or 2M boundary in pmap_growkernel() could
tegge [Thu, 16 Feb 2006 22:10:57 +0000 (22:10 +0000)]
Rounding addr upwards to next 4M or 2M boundary in pmap_growkernel() could
cause addr to become 0, resulting in an early return without populating
the last PDE.

Reviewed by: alc

18 years agoJMicron JMB363 support.
brueffer [Thu, 16 Feb 2006 22:05:49 +0000 (22:05 +0000)]
JMicron JMB363 support.

18 years agoAdd new -E option, which allows to specify location of the mdconfig(8)
sobomax [Thu, 16 Feb 2006 21:28:54 +0000 (21:28 +0000)]
Add new -E option, which allows to specify location of the mdconfig(8)
utility instead of using default _PATH_MDCONFIG (/sbin/mdconfig).

MFC after:      1 week

18 years agoUse example.com rather than bar.com for the system contact example.
ceri [Thu, 16 Feb 2006 20:38:09 +0000 (20:38 +0000)]
Use example.com rather than bar.com for the system contact example.

Requested by: glebius

18 years agoHave TCP Inflight disable itself if the RTT is below a certain
andre [Thu, 16 Feb 2006 19:38:07 +0000 (19:38 +0000)]
Have TCP Inflight disable itself if the RTT is below a certain
threshold.  Inflight doesn't make sense on a LAN as it has
trouble figuring out the maximal bandwidth because of the coarse
tick granularity.

The sysctl net.inet.tcp.inflight.rttthresh specifies the threshold
in milliseconds below which inflight will disengage.  It defaults
to 10ms.

Tested by: Joao Barros <joao.barros-at-gmail.com>,
Rich Murphey <rich-at-whiteoaklabs.com>
Sponsored by: TCP/IP Optimization Fundraise 2005

18 years agoAdd support for the JMicron JMB363 dual SATA + single PATA controller.
sos [Thu, 16 Feb 2006 17:09:24 +0000 (17:09 +0000)]
Add support for the JMicron JMB363 dual SATA + single PATA controller.
Documentation and HW kindly provided by JMicron.

18 years agoIn in_pcbconnect_setup() reduce code duplication and use ip_rtaddr()
andre [Thu, 16 Feb 2006 15:45:28 +0000 (15:45 +0000)]
In in_pcbconnect_setup() reduce code duplication and use ip_rtaddr()
to find the outgoing interface for this connection.

Sponsored by: TCP/IP Optimization Fundraise 2005
MFC after: 2 weeks

18 years agoMake sysctl_msec_to_ticks(SYSCTL_HANDLER_ARGS) generally available instead
andre [Thu, 16 Feb 2006 15:40:36 +0000 (15:40 +0000)]
Make sysctl_msec_to_ticks(SYSCTL_HANDLER_ARGS) generally available instead
of being private to tcp_timer.c.

Sponsored by: TCP/IP Optimization Fundraise 2005
MFC after: 3 days

18 years agoThe libwrap built with NO_INET6=yes cannot parse an IPv6 address.
ume [Thu, 16 Feb 2006 14:46:03 +0000 (14:46 +0000)]
The libwrap built with NO_INET6=yes cannot parse an IPv6 address.
So, mention it in comment.

Submitted by: Dmitry Morozovsky <marck__at__rinet.ru>
MFC after: 2 days

18 years ago- Massage wording to make it easier to understand and fix some grammar.
brd [Thu, 16 Feb 2006 09:56:31 +0000 (09:56 +0000)]
- Massage wording to make it easier to understand and fix some grammar.

Submitted by: sbahra at gwu dot edu
Reviewed by: ru@
Approved by: ceri@
MFC after: 3 days

18 years agoWisdom about the Open Source ecosystem.
grog [Thu, 16 Feb 2006 09:30:12 +0000 (09:30 +0000)]
Wisdom about the Open Source ecosystem.

Submitted by: MÃ¥rten Mickos

18 years agoDon't forget to initialize a tailq before using it.
deischen [Thu, 16 Feb 2006 01:33:36 +0000 (01:33 +0000)]
Don't forget to initialize a tailq before using it.

MFC candidate
Noticed by: luoqi

18 years agoFix a long standing race between sleep queue and thread
davidxu [Wed, 15 Feb 2006 23:52:01 +0000 (23:52 +0000)]
Fix a long standing race between sleep queue and thread
suspension code. When a thread A is going to sleep, it calls
sleepq_catch_signals() to detect any pending signals or thread
suspension request, if nothing happens, it returns without
holding process lock or scheduler lock, this opens a race
window which allows thread B to come in and do process
suspension work, however since A is still at running state,
thread B can do nothing to A, thread A continues, and puts
itself into actually sleeping state, but B has never seen it,
and it sits there forever until B is woken up by other threads
sometimes later(this can be very long delay or never
happen). Fix this bug by forcing sleepq_catch_signals to
return with scheduler lock held.
Fix sleepq_abort() by passing it an interrupted code, previously,
it worked as wakeup_one(), and the interruption can not be
identified correctly by sleep queue code when the sleeping
thread is resumed.
Let thread_suspend_check() returns EINTR or ERESTART, so sleep
queue no longer has to use SIGSTOP as a hack to build a return
value.

Reviewed by: jhb
MFC after: 1 week

18 years agoadd miss args to mac:del and mac:kick
sam [Wed, 15 Feb 2006 23:16:03 +0000 (23:16 +0000)]
add miss args to mac:del and mac:kick

Submitted by: Anders Hanssen
MFC after: 3 days

18 years agoRework last change of pthread_once, create a function _thr_once_init to
davidxu [Wed, 15 Feb 2006 23:05:03 +0000 (23:05 +0000)]
Rework last change of pthread_once, create a function _thr_once_init to
reinitialize its internal locks.

18 years agoWhen the VM needs to allocated physical memory pages (for non interrupt use)
ups [Wed, 15 Feb 2006 22:29:53 +0000 (22:29 +0000)]
When the VM needs to allocated physical memory pages (for non interrupt use)
and it has not plenty of free pages it tries to free pages in the cache queue.
Unfortunately freeing a cached page requires the locking of the object that
owns the page. However in the context of allocating pages we may not be able
to lock the object and thus can only TRY to lock the object. If the locking try
fails the cache page can not be freed and is activated to move it out of the way
so that we may try to free other cache pages.

If all pages in the cache belong to objects that are currently locked the
cache queue can be emptied without freeing a single page. This scenario caused
two problems:

    1)  vm_page_alloc always failed allocation when it tried freeing pages from
        the cache queue and failed to do so. However if there are more than
        cnt.v_interrupt_free_min pages on the free list it should return pages
        when requested with priority VM_ALLOC_SYSTEM. Failure to do so can cause
        resource exhaustion deadlocks.

    2)  Threads than need to allocate pages spend a lot of time cleaning up the
        page queue without really getting anything done while the pagedaemon
         needs to work overtime to refill the cache.

This change fixes the first problem. (1)

Reviewed by: tegge@

18 years agodrop softc lock around copyin/copyout
sam [Wed, 15 Feb 2006 18:36:52 +0000 (18:36 +0000)]
drop softc lock around copyin/copyout

MFC after: 2 weeks

18 years agofix build w/o AR_DEBUG
sam [Wed, 15 Feb 2006 18:35:09 +0000 (18:35 +0000)]
fix build w/o AR_DEBUG

MFC after: 2 weeks

18 years agoimprove tx/rx buf printing routines
sam [Wed, 15 Feb 2006 18:31:04 +0000 (18:31 +0000)]
improve tx/rx buf printing routines

MFC after: 2 weeks

18 years agoadd missing bit from 1.130
sam [Wed, 15 Feb 2006 18:24:22 +0000 (18:24 +0000)]
add missing bit from 1.130

18 years agoo handle fatal errors directly instead of via the task queue
sam [Wed, 15 Feb 2006 18:23:03 +0000 (18:23 +0000)]
o handle fatal errors directly instead of via the task queue
o temporarily dump some h/w state for diagnosis; this will be
  removed once some issues are resolved

MFC after: 2 weeks

18 years agouse ath_hal_gettxintrtxqs so we only process h/w tx
sam [Wed, 15 Feb 2006 18:17:53 +0000 (18:17 +0000)]
use ath_hal_gettxintrtxqs so we only process h/w tx
queues that have an interrupt pending

MFC after: 2 weeks

18 years agofixup comments
sam [Wed, 15 Feb 2006 18:15:49 +0000 (18:15 +0000)]
fixup comments

18 years agoclose race between ath_tx_start and ath_tx_processq
sam [Wed, 15 Feb 2006 18:12:24 +0000 (18:12 +0000)]
close race between ath_tx_start and ath_tx_processq

Reviewed by: apatti
MFC after: 1 week

18 years ago- Add info regarding the watchdog part of the MK48Txx.
marius [Wed, 15 Feb 2006 16:57:30 +0000 (16:57 +0000)]
- Add info regarding the watchdog part of the MK48Txx.
- Add a missing .Tn before Mostek.

MFC after: 3 days

18 years agoFor E250 and E450 enable the watchdog part of the MK48Txx as it just
marius [Wed, 15 Feb 2006 16:56:38 +0000 (16:56 +0000)]
For E250 and E450 enable the watchdog part of the MK48Txx as it just
works there.

MFC after: 3 days

18 years agoIt seems bit 5 of cpu_feature2 is the VMX (Virtual Machine Extensions)
dwmalone [Wed, 15 Feb 2006 14:48:59 +0000 (14:48 +0000)]
It seems bit 5 of cpu_feature2 is the VMX (Virtual Machine Extensions)
bit. While I'm here, delete a comment that was cut and past from the
cpu_features code that doesn't belong here.

18 years agoUpdate a comment to match functionality changed in r1.39 (allow square
ceri [Wed, 15 Feb 2006 14:37:35 +0000 (14:37 +0000)]
Update a comment to match functionality changed in r1.39 (allow square
brackets in process names).

MFC after: 2 days

18 years agoFix fallout from last commit - we need to program the MAC address in em_init().
glebius [Wed, 15 Feb 2006 14:27:38 +0000 (14:27 +0000)]
Fix fallout from last commit - we need to program the MAC address in em_init().

18 years agoem_hardware_init() in em_init() is not needed, and leads to annoying
glebius [Wed, 15 Feb 2006 13:45:02 +0000 (13:45 +0000)]
em_hardware_init() in em_init() is not needed, and leads to annoying
link flap.

Submitted by: ru, Mike Tancsa

18 years agoAfter fork(), reinitialize internal locks for pthread_once().
davidxu [Wed, 15 Feb 2006 13:41:02 +0000 (13:41 +0000)]
After fork(), reinitialize internal locks for pthread_once().

18 years agoSet ifp->if_baudrate according to current speed.
glebius [Wed, 15 Feb 2006 11:38:33 +0000 (11:38 +0000)]
Set ifp->if_baudrate according to current speed.

18 years ago- Rename em_print_link_status() to em_update_link_status().
glebius [Wed, 15 Feb 2006 10:51:11 +0000 (10:51 +0000)]
- Rename em_print_link_status() to em_update_link_status().
- In em_attach() remove em_check_for_link(). Not needed here, since
  already done in em_hardware_init().
- In em_attach() replace the printing block with call to
  em_update_link_status().
- Remove modification of sc->link_state from em_hardware_init() and
  from em_media_status(). This makes em_update_link_status() a
  single point of change. Call em_update_link_status() where needed.

18 years ago- Second style(9) megacleanup.
glebius [Wed, 15 Feb 2006 08:39:50 +0000 (08:39 +0000)]
- Second style(9) megacleanup.
- Rename "adapter" to "sc"/"softc", to be like other drivers.

  (-13 Kb less source code)

18 years agoFix build.
glebius [Wed, 15 Feb 2006 08:25:40 +0000 (08:25 +0000)]
Fix build.

18 years agoa) clean up some declaration stuff (i.e., make more modern with respect
mjacob [Wed, 15 Feb 2006 00:31:48 +0000 (00:31 +0000)]
a) clean up some declaration stuff (i.e., make more modern with respect
to getting rid u_int for uint and so on).

b) Turn back on 64 bit DAC support. Cheeze it a bit in that we have two
DMA callback functions- one when we have bus_addr_t > 4 bits in width and
the other which should be normal. Even Cheezier in that we turn off setting
up DMA maps to be BUS_SPACE_MAXADDR if we're in ISP_TARGET_MODE. More work
on this in a week or so.

c) Tested under amd64 and 1MB DFLTPHYS, sparc64, i386 (PAE, but insufficient
memory to really test > 4GB). LINT check under amd64.

MFC after: 1 month

18 years agoChange default build of wpa_supplicant to include EAPOL support;
sam [Tue, 14 Feb 2006 23:51:21 +0000 (23:51 +0000)]
Change default build of wpa_supplicant to include EAPOL support;
ENABLE_WPA_SUPPLICANT_EAPOL is no more, now use NO_WPA_SUPPLICANT_EAPOL
to build with only WPA-PSK support.

Reviewed by: ru, bsdimp (basic approach)
MFC after: 1 week

18 years agofix off by one malloc sizes
sam [Tue, 14 Feb 2006 23:19:40 +0000 (23:19 +0000)]
fix off by one malloc sizes

Submitted by: Michal Mertl
MFC after: 1 week

18 years agoo make driver override of net80211 parameter state consistent
sam [Tue, 14 Feb 2006 17:48:56 +0000 (17:48 +0000)]
o make driver override of net80211 parameter state consistent
  with methods: instead of honoring non-zero values expect drivers
  to write their own values on return from ieee80211_ifattach
o add a define for the default h/w bmiss count

MFC after: 2 weeks

18 years agoOnly install ipmi.4 for i386/amd64.
ambrisko [Tue, 14 Feb 2006 17:18:20 +0000 (17:18 +0000)]
Only install ipmi.4 for i386/amd64.

Requested by: ru

18 years agoUnbreak this.
ru [Tue, 14 Feb 2006 15:22:24 +0000 (15:22 +0000)]
Unbreak this.

18 years agoFix the hw.realmem sysctl. The global realmem variable is a count of
jhb [Tue, 14 Feb 2006 14:50:11 +0000 (14:50 +0000)]
Fix the hw.realmem sysctl.  The global realmem variable is a count of
pages, not a count of bytes.  The sysctl handler for hw.realmem already
uses ctob() to convert realmem from pages to bytes.  Thus, on archs that
were storing a byte count in the realmem variable, hw.realmem was inflated.

Reported by: Valerio daelli valerio dot daelli at gmail dot com (alpha)
MFC after: 3 days

18 years agoMove the "r p d s w" fields to the left to create space for expansion.
bde [Tue, 14 Feb 2006 13:27:25 +0000 (13:27 +0000)]
Move the "r p d s w" fields to the left to create space for expansion.
3 columns were wasted at the left, except these columns were used to
make the header line up.  Now there is no space on the same line for
the "Proc:" part of the header.  Try putting this on the line above
although it clutters that line (there is already similar clutter for
the "Interrupts" header).  Leave 1 column between these fields.  With
the above and a previous change there is enough of space for this.

Use 5 columns instead of 3 for the number of users since 3 is not quite
enough and there was space to spare.  This also fixes an off-by-2 error
in a previous fix forthe column count in the comment on STATROW.

Move all the pager fields 1 to the right so that the "count" and "pages"
descriptors more clearly apply to the pager fields and not the memory
fields.  There was space to space.

Waste some of the spare space at the right of the pager fields to expand
all the pager field widths to their old values (but now with a column
between the fields).  There are fields more in need of expansion but most
of them are not in places near spare space.

18 years agoA little extra cleaning up.
gnn [Tue, 14 Feb 2006 13:20:09 +0000 (13:20 +0000)]
A little extra cleaning up.

MFC after: 1 week

18 years agoMove includes from if_em.h to if_em.c and sort them.
glebius [Tue, 14 Feb 2006 13:11:36 +0000 (13:11 +0000)]
Move includes from if_em.h to if_em.c and sort them.

18 years agoClean up some descriptions and remove ambiguities in the language.
gnn [Tue, 14 Feb 2006 13:02:00 +0000 (13:02 +0000)]
Clean up some descriptions and remove ambiguities in the language.
Add explanations to the examples.

MFC after: 1 week

18 years agoDisable the ipmi driver on pc98.
nyan [Tue, 14 Feb 2006 12:55:07 +0000 (12:55 +0000)]
Disable the ipmi driver on pc98.

18 years agoDo not touch ifp->if_baudrate in miibus aware drivers.
glebius [Tue, 14 Feb 2006 12:44:56 +0000 (12:44 +0000)]
Do not touch ifp->if_baudrate in miibus aware drivers.

18 years agoRemoved the frobbing of CPU percentages from > 99.9 to 99.9. Rev.1.35
bde [Tue, 14 Feb 2006 12:26:51 +0000 (12:26 +0000)]
Removed the frobbing of CPU percentages from > 99.9 to 99.9.  Rev.1.35
made it unnecessary.  (Rev.1.6 had to reduce the field width to 4, and
changed 100.0 and preposterous larger values down to 99.9 since 100.0
wouldn't have fitted.  Rev.1.35 handles precentages > 99.9 well enough by
changing the format to %.0f when the string given by the initial format
is too wide.)

Even with this change, during short testing I've never seen a percentage
of 100 being displayed by systat -v, although top(1) displays percentages
of 100 user or 100 idle for similar loads.

18 years ago- Introduce ifmedia_baudrate(), which returns correct baudrate of the
glebius [Tue, 14 Feb 2006 12:10:03 +0000 (12:10 +0000)]
- Introduce ifmedia_baudrate(), which returns correct baudrate of the
  given media status. [1]
- Utilize ifmedia_baudrate() in miibus_statchg() to update ifp->if_baudrate.

Obtained from: NetBSD [1]

18 years agoFix some minor bugs:
bde [Tue, 14 Feb 2006 11:57:02 +0000 (11:57 +0000)]
Fix some minor bugs:

Always use snprintf()'s return value, since discarding it is a style
bug at best and using it here gives slightly simpler code and better
error checking.  Use snprintf() in putlongdouble() the same as in
putfloat().  (1.25 changed most sprintf()'s to snprintf()'s to fix
non-bugs without changing the logic to use the result of snprintf();
1.27 restored one of the sprintf()s by cloning a stale version of
putfloat().)

Don't print a too-long field in the unlikely case that the fallback
to M units in putint() leaves the field still too long.  (The fallback
to printing stars was lost in rev.1.58 when the fallback to M units
was added.)

18 years agoAdd '-F' option which allows to delete existing empty directories, when
glebius [Tue, 14 Feb 2006 11:08:05 +0000 (11:08 +0000)]
Add '-F' option which allows to delete existing empty directories, when
creating symbolic links.

PR: bin/92149
Submitted by: Eugene Grosbein <eugen grosbein.pp.ru>

18 years agoReduce the field width by 1 for many numeric fields so that most fields
bde [Tue, 14 Feb 2006 10:47:36 +0000 (10:47 +0000)]
Reduce the field width by 1 for many numeric fields so that most fields
cannot run into other fields or field descriptors.  If the value is
too large to fit in the field width, then the output format is adjusted
so that the value (usually) fits, but with fields running together
externally this adjustment usually didn't help.  Mostly it doesn't
matter to lose 1 digit of precision, but switching the output format
is bad if it happens often or gives bogus units.  The loss of width
is most serious for fields near "Csw" (which are also the ones which
must often ran together) since these have a high variance and large
values relative to the possible field widths so the switch occurs more
often now, and for the memory size fields where the switch gives the
bogus units kKB or MKB.

Now only the fields for r, p, d, s and w can run into each other.
These fields have width 3, and 3 cannot be reduced to 2 without losing
all precision when the value is between 100 and 999.

Trim "pdwake" to "pdwak" at think time now that it doesn't get clobbered
at runtime.  The manpage doesn't need to be changed for this because
it documents the clobbered descriptor, unlike for 4 other too-long
descriptors which only get clobbered if there are lots of interrupt
sources.

Trim "% busy" to "%busy" since most other descriptors for percentages
are spelled without the space and this change makes changing the widths
of the %busy fields unnecessary.

18 years agoOops, the "excessive" {} removed in the previous commit was needed
bde [Tue, 14 Feb 2006 09:33:51 +0000 (09:33 +0000)]
Oops, the "excessive" {} removed in the previous commit was needed
around PUTRATE() because PUTRATE() only looked like a function -- it was
multiple statements.  Use "do {...} while(0)" as usual in PUTRATE() so
that it is a single statement that can be used like a function.

18 years agoDisconnect bsnmp from the build until the breakage is sorted out.
harti [Tue, 14 Feb 2006 08:34:26 +0000 (08:34 +0000)]
Disconnect bsnmp from the build until the breakage is sorted out.