]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoThis commit was generated by cvs2svn to compensate for changes in r178382,
delphij [Mon, 21 Apr 2008 18:30:26 +0000 (18:30 +0000)]
This commit was generated by cvs2svn to compensate for changes in r178382,
which included commits to RCS files with non-trunk default branches.

16 years agoImport netcat as of today's OPENBSD_4_3 snapshot.
delphij [Mon, 21 Apr 2008 18:30:26 +0000 (18:30 +0000)]
Import netcat as of today's OPENBSD_4_3 snapshot.

16 years agoChange the default of ddb_enable to YES so we default to generating textdumps
brooks [Mon, 21 Apr 2008 18:17:48 +0000 (18:17 +0000)]
Change the default of ddb_enable to YES so we default to generating textdumps
on panic.  This means you get a potentially useful dump even if your system
is running X when you panic.

X-MFC after: never

16 years agoBack-out previous revision. For now I can use _ddb() variants of stack(9) KPI,
pjd [Mon, 21 Apr 2008 17:22:35 +0000 (17:22 +0000)]
Back-out previous revision. For now I can use _ddb() variants of stack(9) KPI,
as I use it for debugging only. Once someone will need it for more production
features, the change should be reconsider.

Requested by: rwatson

16 years agoUse ddb(4), not DDB(4) for man page cross-references.
rwatson [Mon, 21 Apr 2008 17:09:53 +0000 (17:09 +0000)]
Use ddb(4), not DDB(4) for man page cross-references.

MFC after: 3 days
Reported by: novel

16 years agoIn ICMPv6, read lock rather than write lock the inpcb on receive.
rwatson [Mon, 21 Apr 2008 12:08:40 +0000 (12:08 +0000)]
In ICMPv6, read lock rather than write lock the inpcb on receive.

MFC after: 3 months

16 years agoWith IPv4 raw sockets, read lock rather than write lock the inpcb when
rwatson [Mon, 21 Apr 2008 12:06:41 +0000 (12:06 +0000)]
With IPv4 raw sockets, read lock rather than write lock the inpcb when
receiving or transmitting.

With IPv6 raw sockets, read lock rather than write lock the inpcb when
receiving.  Unfortunately, IPv6 source address selection appears to
require a write lock on the inpcb for the time being.

MFC after: 3 months

16 years agoRead lock, rather than write lock, the inpcb when transmitting with or
rwatson [Mon, 21 Apr 2008 12:03:59 +0000 (12:03 +0000)]
Read lock, rather than write lock, the inpcb when transmitting with or
delivering to an IP divert socket.

MFC after: 3 months

16 years agoAdd HW level support for the Adaptec 1420SA controller.
sos [Mon, 21 Apr 2008 10:51:38 +0000 (10:51 +0000)]
Add HW level support for the Adaptec 1420SA controller.

16 years agoUnload DMA slot on device timeouts.
sos [Mon, 21 Apr 2008 10:35:19 +0000 (10:35 +0000)]
Unload DMA slot on device timeouts.

16 years agoDo not enable FIS based PM switching, even if not used some controllers barf.
sos [Mon, 21 Apr 2008 10:34:31 +0000 (10:34 +0000)]
Do not enable FIS based PM switching, even if not used some controllers barf.

16 years agoMake genclock standard on all platforms.
phk [Mon, 21 Apr 2008 10:09:55 +0000 (10:09 +0000)]
Make genclock standard on all platforms.

Thanks to: grehan & marcel for platform support on ia64 and ppc.

16 years agoRemove duplicate headers <sys/socket.h>
kevlo [Mon, 21 Apr 2008 07:25:26 +0000 (07:25 +0000)]
Remove duplicate headers <sys/socket.h>

16 years agoAdd a small script that will examine all files which exist on /cfg and
phk [Mon, 21 Apr 2008 06:22:27 +0000 (06:22 +0000)]
Add a small script that will examine all files which exist on /cfg and
if they are different in /etc, copy them to /cfg.

Submitted by: mat

16 years agoawi(4) has been removed.
brueffer [Mon, 21 Apr 2008 05:43:08 +0000 (05:43 +0000)]
awi(4) has been removed.

16 years agoSwitch to using genclock. Have nexus double as clock device for
marcel [Mon, 21 Apr 2008 04:41:37 +0000 (04:41 +0000)]
Switch to using genclock. Have nexus double as clock device for
now. While here, add a proper attach() method to nexus.

Requested by: phk

16 years agoOn the AT91, we need to write on the EOI register after we handle an
cognet [Sun, 20 Apr 2008 23:29:06 +0000 (23:29 +0000)]
On the AT91, we need to write on the EOI register after we handle an
interrupt. So, add a new function pointer, arm_post_filter, which defaults
to NULL, and which will be used as the post_filter arg for
intr_event_create(). Set it properly for the AT91, so that it boots again.

Reported by: hps

16 years agofix build
sam [Sun, 20 Apr 2008 23:10:44 +0000 (23:10 +0000)]
fix build

16 years agoThis commit was generated by cvs2svn to compensate for changes in r178363,
sam [Sun, 20 Apr 2008 21:39:06 +0000 (21:39 +0000)]
This commit was generated by cvs2svn to compensate for changes in r178363,
which included commits to RCS files with non-trunk default branches.

16 years ago802.11 support moves to vaps
sam [Sun, 20 Apr 2008 21:25:37 +0000 (21:25 +0000)]
802.11 support moves to vaps

16 years agotest scripts for vaps and other 802.11 features
sam [Sun, 20 Apr 2008 20:43:42 +0000 (20:43 +0000)]
test scripts for vaps and other 802.11 features

Supported by: Hobnob and Marvell

16 years agoadd dwds test app
sam [Sun, 20 Apr 2008 20:43:13 +0000 (20:43 +0000)]
add dwds test app

Supported by: Hobnob
Obtained from: Atheros (earlier version)

16 years agoupdate for vaps
sam [Sun, 20 Apr 2008 20:41:47 +0000 (20:41 +0000)]
update for vaps

Supported by: Hobnob

16 years agoo update for vaps
sam [Sun, 20 Apr 2008 20:40:45 +0000 (20:40 +0000)]
o update for vaps
o add private wired driver that fixes various bugs in the vendor version

Submitted by: thompsa (ndis fixups)

16 years agoo update for vaps
sam [Sun, 20 Apr 2008 20:39:08 +0000 (20:39 +0000)]
o update for vaps
o add+enable radius acl support

Supported by: Hobnob
Submitted by: Chris Zimmermann (acl support)

16 years agorc support for vaps
sam [Sun, 20 Apr 2008 20:37:21 +0000 (20:37 +0000)]
rc support for vaps

16 years ago802.11 regulatory definitions used by ifconfig
sam [Sun, 20 Apr 2008 20:37:02 +0000 (20:37 +0000)]
802.11 regulatory definitions used by ifconfig

Support by: Hobnob

16 years agoMulti-bss (aka vap) support for 802.11 devices.
sam [Sun, 20 Apr 2008 20:35:46 +0000 (20:35 +0000)]
Multi-bss (aka vap) support for 802.11 devices.

Note this includes changes to all drivers and moves some device firmware
loading to use firmware(9) and a separate module (e.g. ral).  Also there
no longer are separate wlan_scan* modules; this functionality is now
bundled into the wlan module.

Supported by: Hobnob and Marvell
Reviewed by: many
Obtained from: Atheros (some bits)

16 years agomove awi to the Attic; it will not make the jump to the new world order
sam [Sun, 20 Apr 2008 19:20:39 +0000 (19:20 +0000)]
move awi to the Attic; it will not make the jump to the new world order

Reviewed by: imp

16 years ago- Add ($paragraph$) for printed version.
hrs [Sun, 20 Apr 2008 18:41:16 +0000 (18:41 +0000)]
- Add ($paragraph$) for printed version.
- Fix a bug that role="" does not work when arch="" is not specified.

16 years agoRevert to rev. 1.161 - switch back to optimized TCP options ordering.
bz [Sun, 20 Apr 2008 18:36:59 +0000 (18:36 +0000)]
Revert to rev. 1.161 - switch back to optimized TCP options ordering.

A lot of testing has shown that the problem people were seeing was due
to invalid padding after the end of option list option, which was corrected
in tcp_output.c rev. 1.146.

Thanks to: anders@, s3raphi, Matt Reimer
Thanks to: Doug Hardie and Randy Rose, John Mayer, Susan Guzzardi
Special thanks to: dwhite@ and BitGravity
Discussed with: silby
MFC after: 1 day

16 years agoMove (define ($paragraph$)) to the marked section for HTML output.
hrs [Sun, 20 Apr 2008 18:28:31 +0000 (18:28 +0000)]
Move (define ($paragraph$)) to the marked section for HTML output.
It should not be applied to printed output.

16 years agoNew release notes:
hrs [Sun, 20 Apr 2008 18:17:33 +0000 (18:17 +0000)]
New release notes:
ULE scheduler enabled by default in GENERIC for ia64,
fdopendir(3) added, and
tcgetsid(3) added.

16 years agoNew release notes:
hrs [Sun, 20 Apr 2008 18:03:21 +0000 (18:03 +0000)]
New release notes:
env(1) -u name option.

16 years agoUse role="merged" and arch="amd64,i386,..." attributes to mark a
hrs [Sun, 20 Apr 2008 17:58:05 +0000 (17:58 +0000)]
Use role="merged" and arch="amd64,i386,..." attributes to mark a
paragraph as MFC'd or one for specific platforms.  This should
make no content change with the rendered output.

16 years agodevclass_get_maxunit() returns n+1 with n starting at 0.
bz [Sun, 20 Apr 2008 17:45:32 +0000 (17:45 +0000)]
devclass_get_maxunit() returns n+1 with n starting at 0.
So if we have channel 0..3  devclass_get_maxunit is 4.

It's never been a problem as devclass_get_device() has
catched a possibly bad input.

Discussed with: scottl

16 years agoAdd one more HTC PocketPC device id.
mav [Sun, 20 Apr 2008 17:12:11 +0000 (17:12 +0000)]
Add one more HTC PocketPC device id.
Tested on HTC TyTN.

Submitted by: Alexander Logvinov <ports@logvinov.com>

16 years agoMove "1000baseT" from IFM_SUBTYPE_ETHERNET_DESCRIPTIONS to
antoine [Sun, 20 Apr 2008 16:17:44 +0000 (16:17 +0000)]
Move "1000baseT" from IFM_SUBTYPE_ETHERNET_DESCRIPTIONS to
IFM_SUBTYPE_ETHERNET_ALIASES: there is already "1000baseTX" in
IFM_SUBTYPE_ETHERNET_DESCRIPTIONS.  This doesn't change ifconfig
behaviour.

PR: 45793 (maybe)
Approved by: rwatson (mentor)
MFC after: 1 month

16 years agoUnbreak firmware.ko build without kernel.
antoine [Sun, 20 Apr 2008 16:11:14 +0000 (16:11 +0000)]
Unbreak firmware.ko build without kernel.

Approved by: rwatson (mentor)
MFC after: 1 month

16 years agoAdd recent obsolete files.
antoine [Sun, 20 Apr 2008 16:03:19 +0000 (16:03 +0000)]
Add recent obsolete files.

Approved by: rwatson (mentor)

16 years agoRecord the dependency of the iscsi initiator on cam.
antoine [Sun, 20 Apr 2008 15:56:59 +0000 (15:56 +0000)]
Record the dependency of the iscsi initiator on cam.

PR: 116745
Submitted by: OISHI Masakuni
Approved by: rwatson (mentor)
MFC after: 1 month

16 years agoDocument that you must include <sys/param.h> before <sys/cpuset.h>.
antoine [Sun, 20 Apr 2008 15:51:56 +0000 (15:51 +0000)]
Document that you must include <sys/param.h> before <sys/cpuset.h>.

Approved by: rwatson (mentor)

16 years agoTeach pf and ipfw to use read locks in inpcbs write than write locks
rwatson [Sun, 20 Apr 2008 00:21:54 +0000 (00:21 +0000)]
Teach pf and ipfw to use read locks in inpcbs write than write locks
when reading credential data from sockets.

Teach pf to unlock the pcbinfo more quickly once it has acquired an
inpcb lock, as the inpcb lock is sufficient to protect the reference.

Assert locks, rather than read locks or write locks, on inpcbs in
subroutines--this is necessary as the inpcb may be passed down with a
write lock from the protocol, or may be passed down with a read lock
from the firewall lookup routine, and either is sufficient.

MFC after: 3 months

16 years agoFix no sound issues for ASUS W6F (ALC861) laptops (buggy BIOS config that
ariff [Sat, 19 Apr 2008 22:32:23 +0000 (22:32 +0000)]
Fix no sound issues for ASUS W6F (ALC861) laptops (buggy BIOS config that
deserves its own internet memes). The trick is to force all available,
unused pins (that being advertised as "speaker") to behave as microphone
pins instead.

Reported / Tested by: Dmitry Kutsenko <kutsenko.truebsd.org>
MFC after: 3 days

16 years agoDelay the global registration of the struct ifnet in if_alloc() until after
brooks [Sat, 19 Apr 2008 22:04:51 +0000 (22:04 +0000)]
Delay the global registration of the struct ifnet in if_alloc() until after
we're certain the allocation will entierly succeed.  This fixes a leak in a
fairly unlikely case.

Reported by: vijay singh <vijjus at rocketmail dot com>
MFC after: 1 week

16 years agoWhen auditing state from an IPv4 or IPv6 socket, use read locks on the
rwatson [Sat, 19 Apr 2008 18:37:08 +0000 (18:37 +0000)]
When auditing state from an IPv4 or IPv6 socket, use read locks on the
inpcb rather than write locks.

MFC after: 3 months

16 years agoWhen propagating a MAC label from an inpcb to an mbuf, allow read and
rwatson [Sat, 19 Apr 2008 18:35:27 +0000 (18:35 +0000)]
When propagating a MAC label from an inpcb to an mbuf, allow read and
write locks on the inpcb, not just write locks.

MFC after: 3 months

16 years agoWhen querying a local or remote address on an IPv6 socket, use only a
rwatson [Sat, 19 Apr 2008 14:36:19 +0000 (14:36 +0000)]
When querying a local or remote address on an IPv6 socket, use only a
read lock on the inpcb.

MFC after: 3 months

16 years agoIn ip_output(), allow a read lock as well as a write lock when asserting
rwatson [Sat, 19 Apr 2008 14:35:17 +0000 (14:35 +0000)]
In ip_output(), allow a read lock as well as a write lock when asserting
a lock on the passed inpcb.

MFC after: 3 months

16 years agoWhen querying the local or foreign address from an IP socket, acquire
rwatson [Sat, 19 Apr 2008 14:34:38 +0000 (14:34 +0000)]
When querying the local or foreign address from an IP socket, acquire
only a read lock on the inpcb.

When an external module requests a read lock, acquire only a read lock.

MFC after: 3 months

16 years agoProvide more detailed information about each procstat(1) display mode,
rwatson [Sat, 19 Apr 2008 13:40:42 +0000 (13:40 +0000)]
Provide more detailed information about each procstat(1) display mode,
including a key to fields in each mode and flag abbreviations.

MFC after: 3 days
X-MFC-note: POSIX shared memory memory objects aren't in 7-STABLE yet

16 years agoIt is a bug that procstat(8) works only on live kernels and not crashdumps;
rwatson [Sat, 19 Apr 2008 12:39:15 +0000 (12:39 +0000)]
It is a bug that procstat(8) works only on live kernels and not crashdumps;
document in case anyone wants to work on fixing this.

MFC after: 3 days

16 years agoMFi386: Merge yet another the RTC related work.
nyan [Sat, 19 Apr 2008 08:18:47 +0000 (08:18 +0000)]
MFi386: Merge yet another the RTC related work.

Split the pcrtc driver into pcrtc.c which is repo-copied from clock.c

16 years agoPut in a real isa_irq_pending() stub in order to remove two lines of dmesg
peter [Sat, 19 Apr 2008 07:25:57 +0000 (07:25 +0000)]
Put in a real isa_irq_pending() stub in order to remove two lines of dmesg
noise from sio per unit.  sio likes to probe if interrupts are configured
correctly by looking at the pending bits of the atpic in order to put a
non-fatal warning on the console.  I think I'd rather read the pending
bits from the apics, but I'm not sure its worth the hassle.

16 years agoDon't forget to free() currency_symbol and asciivalue when multiple
ru [Sat, 19 Apr 2008 07:22:58 +0000 (07:22 +0000)]
Don't forget to free() currency_symbol and asciivalue when multiple
conversion specifiers for them are present.

Submitted by: Maxim Dounin <mdounin@mdounin.ru>
Obtained from: NetBSD (partially)
MFC after: 3 days

16 years agoBetter strfmon(3) conversion specifiers sanity checking.
ru [Sat, 19 Apr 2008 07:18:22 +0000 (07:18 +0000)]
Better strfmon(3) conversion specifiers sanity checking.

There were no checks for left and right precisions at all, and
a check for field width had integer overflow bug.

Reported by: Maksymilian Arciemowicz
Security: http://securityreason.com/achievement_securityalert/53
Submitted by: Maxim Dounin <mdounin@mdounin.ru>
MFC after: 3 days

16 years agong_address_hook() microoptimization. Use local variables as they should be.
mav [Sat, 19 Apr 2008 05:30:49 +0000 (05:30 +0000)]
ng_address_hook() microoptimization. Use local variables as they should be.
It helps compiller to avoid some extra memory accesses.

16 years agoRemove my copyright. This file includes simply i386's one now.
nyan [Sat, 19 Apr 2008 05:07:50 +0000 (05:07 +0000)]
Remove my copyright.  This file includes simply i386's one now.

16 years agoSanitize the malloc types: M_PMAP is not used in pmap.c, so don't
marcel [Sat, 19 Apr 2008 04:56:16 +0000 (04:56 +0000)]
Sanitize the malloc types: M_PMAP is not used in pmap.c, so don't
define it there. Don't use M_PMAP in mp_machdep.c; define M_SMP
instead.

16 years agoremove kdb_backtrace() call
kmacy [Sat, 19 Apr 2008 03:43:06 +0000 (03:43 +0000)]
remove kdb_backtrace() call

16 years agomove tcbinfo lock acquisition in to syncache
kmacy [Sat, 19 Apr 2008 03:39:17 +0000 (03:39 +0000)]
move tcbinfo lock acquisition in to syncache

16 years agomove cxgb_lt2.[ch] from NIC to TOE
kmacy [Sat, 19 Apr 2008 03:22:43 +0000 (03:22 +0000)]
move cxgb_lt2.[ch] from NIC to TOE
move most offload functionality from NIC to TOE
factor out all socket and inpcb direct access
factor out access to locking in incpb, pcbinfo, and sockbuf

16 years agoFix the breakage that caused AHCI devices to vanish. Editor droppings :(
sos [Fri, 18 Apr 2008 15:15:04 +0000 (15:15 +0000)]
Fix the breakage that caused AHCI devices to vanish. Editor droppings :(

Put the ATAPI device numbering back to the old ways.

16 years ago - Add inlines for the monitor and mwait instructions.
jeff [Fri, 18 Apr 2008 05:47:56 +0000 (05:47 +0000)]
 - Add inlines for the monitor and mwait instructions.

Sponsored by: Nokia

16 years agoRemove cruft we got from Alpha, which was probably inherited
marcel [Fri, 18 Apr 2008 02:21:11 +0000 (02:21 +0000)]
Remove cruft we got from Alpha, which was probably inherited
from NetBSD. I.e. make it more like a FreeBSD header.

16 years agoAdd missing function prototype for tcgetsid().
davidxu [Fri, 18 Apr 2008 02:02:33 +0000 (02:02 +0000)]
Add missing function prototype for tcgetsid().

16 years agoAdd support for the 32-bit EFI target.
marcel [Thu, 17 Apr 2008 23:36:35 +0000 (23:36 +0000)]
Add support for the 32-bit EFI target.

16 years agoAdd in check for loopback as well, which was missing from the original patch.
gnn [Thu, 17 Apr 2008 23:24:58 +0000 (23:24 +0000)]
Add in check for loopback as well, which was missing from the original patch.

PR: 120958
Submitted by: James Snow <snow at teardrop.org>
MFC after: 2 weeks

16 years agoAdd the '-u name' option to the env command, which will completely unset
gad [Thu, 17 Apr 2008 23:17:09 +0000 (23:17 +0000)]
Add the '-u name' option to the env command, which will completely unset
the given variable name (removing it from the environment, instead of
just setting it to a null value).

PR: bin/65649
MFC after: 2 weeks

16 years agoChange the 1 in callout_init to CALLOUT_MPSAFE. I made the change in my
cokane [Thu, 17 Apr 2008 22:57:33 +0000 (22:57 +0000)]
Change the 1 in callout_init to CALLOUT_MPSAFE. I made the change in my
tree, but never committed it into git before making my patch!

Submitted by: thompsa
MFC after: 1 month

16 years agoNext stage of stdio cleanup: Retire __sFILEX and merge the fields back into
jhb [Thu, 17 Apr 2008 22:17:54 +0000 (22:17 +0000)]
Next stage of stdio cleanup: Retire __sFILEX and merge the fields back into
__sFILE.  This was supposed to be done in 6.0.  Some notes:
- Where possible I restored the various lines to their pre-__sFILEX state.
- Retire INITEXTRA() and just initialize the wchar bits (orientation and
  mbstate) explicitly instead.  The various places that used INITEXTRA
  didn't need the locking fields or _up initialized.  (Some places needed
  _up to exist and not be off the end of a NULL or garbage pointer, but
  they didn't require it to be initialized to a specific value.)
- For now, stdio.h "knows" that pthread_t is a 'struct pthread *' to
  avoid namespace pollution of including all the pthread types in stdio.h.
  Once we remove all the inlines and make __sFILE private it can go back
  to using pthread_t, etc.
- This does not remove any of the inlines currently and does not change
  any of the public ABI of 'FILE'.

MFC after: 1 month
Reviewed by: peter

16 years agoChange the timeout(9) usage in if_ndis to a callout(9) implementation,
cokane [Thu, 17 Apr 2008 22:01:38 +0000 (22:01 +0000)]
Change the timeout(9) usage in if_ndis to a callout(9) implementation,
as the former is becoming deprecated and exhibits some extraneous
Giant-locking. The new callout(9) is declared MPSAFE, so it may
improve concurrency.

Tested by: matteo
Silence from: wpaul
MFC after: 1 month

16 years agoConvert pcbinfo and inpcb mutexes to rwlocks, and modify macros to
rwatson [Thu, 17 Apr 2008 21:38:18 +0000 (21:38 +0000)]
Convert pcbinfo and inpcb mutexes to rwlocks, and modify macros to
explicitly select write locking for all use of the inpcb mutex.
Update some pcbinfo lock assertions to assert locked rather than
write-locked, although in practice almost all uses of the pcbinfo
rwlock main exclusive, and all instances of inpcb lock acquisition
are exclusive.

This change should introduce (ideally) little functional change.
However, it lays the groundwork for significantly increased
parallelism in the TCP/IP code.

MFC after: 3 months
Tested by: kris (superset of committered patch)

16 years agoAllow linker_search_symbol_name() to be called with KLD lock held.
pjd [Thu, 17 Apr 2008 19:19:40 +0000 (19:19 +0000)]
Allow linker_search_symbol_name() to be called with KLD lock held.
The linker_search_symbol_name() function is used by stack_print()
and stack_print() can be called from kernel module unload method.

MFC after: 1 week

16 years agoSpecifically mark the members of 'FILE' that are accessed via inline
jhb [Thu, 17 Apr 2008 19:06:00 +0000 (19:06 +0000)]
Specifically mark the members of 'FILE' that are accessed via inline
functions or macros since they are part of the public ABI as a result.

MFC after: 1 month

16 years agoAlloc two DMA slots pr default, silly me forgot that slaves still exists.
sos [Thu, 17 Apr 2008 18:11:47 +0000 (18:11 +0000)]
Alloc two DMA slots pr default, silly me forgot that slaves still exists.

16 years agoClean up the code that checks the types of address so that it is
gnn [Thu, 17 Apr 2008 12:50:42 +0000 (12:50 +0000)]
Clean up the code that checks the types of address so that it is
done by understandable macros.

Fix the bug that prevented the system from responding on interfaces with
link local addresses assigned.

PR: 120958
Submitted by: James Snow <snow at teardrop.org>
MFC after: 2 weeks

16 years agoOn sparc64 machines with multiple host-PCI-bridges these bridges
marius [Thu, 17 Apr 2008 12:38:00 +0000 (12:38 +0000)]
On sparc64 machines with multiple host-PCI-bridges these bridges
have separate configuration spaces so by definition they implement
different PCI domains. Thus change psycho(4) to use PCI domains
instead of reenumerating all PCI busses so they have globally unique
bus numbers and drop support for reenumerating busses in the OFW PCI
code.
According to CVS history reenumeration was also required in order to
get some E450 to boot but given that no other open source kernel
changes the PCI bus numbers assigned by the firmware I believe the
real problem was that the old code used the bus number as the device
number for the PCI busses and unlike most of the other machines the
firmwares of the problematic ones don't use disjoint PCI bus numbers
across the host-PCI-bridges.

MFC after: 1 month

16 years agoGo back to preallocating everything possible on init.
sos [Thu, 17 Apr 2008 12:29:35 +0000 (12:29 +0000)]
Go back to preallocating everything possible on init.
This avoids calling busdma in the request processing path which caused a traumatic performance degradation.
Allocation has be postponed to after we know how many devices we possible can have on portmulitpliers to save some space.

16 years ago - Add a metric to describe how busy a processor has been over the last
jeff [Thu, 17 Apr 2008 09:56:01 +0000 (09:56 +0000)]
 - Add a metric to describe how busy a processor has been over the last
   two ticks by counting the number of switches and the load when
   sched_clock() is called.
 - If the busy metric exceeds a threshold allow the idle thread to spin
   waiting for new work for a brief period to avoid using IPIs.  This
   reduces the cost on the sender and receiver as well as reducing wakeup
   latency considerably when it works.

Sponsored by: Nokia

16 years ago - Make SCHED_STATS more generic by adding a wrapper to create the
jeff [Thu, 17 Apr 2008 04:20:10 +0000 (04:20 +0000)]
 - Make SCHED_STATS more generic by adding a wrapper to create the
   variables and sysctl nodes.
 - In reset walk the children of kern_sched_stats and reset the counters
   via the oid_arg1 pointer.  This allows us to add arbitrary counters to
   the tree and still reset them properly.
 - Define a set of switch types to be passed with flags to mi_switch().
   These types are named SWT_*.  These types correspond to SCHED_STATS
   counters and are automatically handled in this way.
 - Make the new SWT_ types more specific than the older switch stats.
   There are now stats for idle switches, remote idle wakeups, remote
   preemption ithreads idling, etc.
 - Add switch statistics for ULE's pickcpu algorithm.  These stats include
   how much migration there is, how often affinity was successful, how
   often threads were migrated to the local cpu on wakeup, etc.

Sponsored by: Nokia

16 years agoMention bzip2 1.0.5 MFC.
delphij [Thu, 17 Apr 2008 01:02:03 +0000 (01:02 +0000)]
Mention bzip2 1.0.5 MFC.

16 years agoSimplify the pmap_zero_page family of functions by making use of
marcel [Thu, 17 Apr 2008 00:37:40 +0000 (00:37 +0000)]
Simplify the pmap_zero_page family of functions by making use of
the fact that we have a 1:1 mapping by virtue of the BATs.
Eliminate the now unused moea_rkva_alloc(), moea_pa_map() and
moea_pa_unmap() functions.

Pointed out by: grehan.

16 years agoAllocate a stack (with optional guard pages) for thread0 and
marcel [Wed, 16 Apr 2008 23:28:12 +0000 (23:28 +0000)]
Allocate a stack (with optional guard pages) for thread0 and
switch to it before calling mi_startup().

16 years ago- Correctly destroy assoiciated ucom device on detach.
stas [Wed, 16 Apr 2008 21:15:10 +0000 (21:15 +0000)]
- Correctly destroy assoiciated ucom device on detach.

MFC after: 2 weeks
Reported by: Ilya Bakulin <webmaster@kibab.com>
Approved by: imp, cognet

16 years agoUse separate UMA zone for data items allocation. It is a partial
mav [Wed, 16 Apr 2008 19:52:29 +0000 (19:52 +0000)]
Use separate UMA zone for data items allocation. It is a partial
rev. 1.149 rework.
It allows to save several percents of CPU time on SMP by using UMA's
internal per-CPU allocation limits instead of own global variable
each time updated with atomics.

Tested with:    Netperf cluster

16 years agoRegenerate.
jkim [Wed, 16 Apr 2008 19:27:36 +0000 (19:27 +0000)]
Regenerate.

16 years agoAdd stubs for syscalls introduced in Linux 2.6.17 kernel.
jkim [Wed, 16 Apr 2008 19:25:39 +0000 (19:25 +0000)]
Add stubs for syscalls introduced in Linux 2.6.17 kernel.
Some GNU libc version started using them before 2.6.17 was officially out.

MFC after: 3 days

16 years agoImplement fdopendir(3) by splitting __opendir2() into two parts, the upper part
delphij [Wed, 16 Apr 2008 18:59:36 +0000 (18:59 +0000)]
Implement fdopendir(3) by splitting __opendir2() into two parts, the upper part
deals with the usual __opendir2() calls, and the rest part with an interface
translator to expose fdopendir(3) functionality.  Manual page was obtained from
kib@'s work for *at(2) system calls.

16 years agoStyle fixes to opendir.c:
delphij [Wed, 16 Apr 2008 18:40:52 +0000 (18:40 +0000)]
Style fixes to opendir.c:
 - Use /*- for copyright block;
 - ANSIfy.

16 years agoFixes typo's in sctp.c
rrs [Wed, 16 Apr 2008 17:40:30 +0000 (17:40 +0000)]
Fixes typo's in sctp.c

16 years agoAllow SCTP to compile without INET6.
rrs [Wed, 16 Apr 2008 17:24:18 +0000 (17:24 +0000)]
Allow SCTP to compile without INET6.
PR: 116816
Obtained from tuexen@fh-muenster.de:
MFC after: 2 weeks

16 years agoReplace callout_init(..., 1) with callout_init(..., CALLOUT_MPSAFE) for
kris [Wed, 16 Apr 2008 16:47:14 +0000 (16:47 +0000)]
Replace callout_init(..., 1) with callout_init(..., CALLOUT_MPSAFE) for
better grep-compliance and to standardize with the rest of the kernel.

Reviewed by:        jhb
MFC after:        1 week

16 years agoSort MAN and MLINKS.
ru [Wed, 16 Apr 2008 14:57:40 +0000 (14:57 +0000)]
Sort MAN and MLINKS.

16 years agoConnect newly added manpages to the build.
ru [Wed, 16 Apr 2008 14:44:43 +0000 (14:44 +0000)]
Connect newly added manpages to the build.

Submitted by: kib

16 years agoFix compilation with LOCKF_DEBUG.
dfr [Wed, 16 Apr 2008 14:08:12 +0000 (14:08 +0000)]
Fix compilation with LOCKF_DEBUG.

16 years agoFix pkg_info when specifying a remote package.
flz [Wed, 16 Apr 2008 13:05:35 +0000 (13:05 +0000)]
Fix pkg_info when specifying a remote package.

MFC after: 1 week

16 years agoMan pages for the openat(2), fexecve(2) and related syscalls.
kib [Wed, 16 Apr 2008 13:03:12 +0000 (13:03 +0000)]
Man pages for the openat(2), fexecve(2) and related syscalls.

Reviewed by: ru

16 years agoMove the head of byte-level advisory lock list from the
kib [Wed, 16 Apr 2008 11:33:32 +0000 (11:33 +0000)]
Move the head of byte-level advisory lock list from the
filesystem-specific vnode data to the struct vnode. Provide the
default implementation for the vop_advlock and vop_advlockasync.
Purge the locks on the vnode reclaim by using the lf_purgelocks().
The default implementation is augmented for the nfs and smbfs.
In the nfs_advlock, push the Giant inside the nfs_dolock.

Before the change, the vop_advlock and vop_advlockasync have taken the
unlocked vnode and dereferenced the fs-private inode data, racing with
with the vnode reclamation due to forced unmount. Now, the vop_getattr
under the shared vnode lock is used to obtain the inode size, and
later, in the lf_advlockasync, after locking the vnode interlock, the
VI_DOOMED flag is checked to prevent an operation on the doomed vnode.

The implementation of the lf_purgelocks() is submitted by dfr.

Reported by: kris
Tested by: kris, pho
Discussed with: jeff, dfr
MFC after: 2 weeks

16 years agoTighten up the error-handling in nlm_get_rpc. While I'm here, fix a
dfr [Wed, 16 Apr 2008 09:09:50 +0000 (09:09 +0000)]
Tighten up the error-handling in nlm_get_rpc. While I'm here, fix a
couple of spelling mistakes in comments.