]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
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.

16 years agoDoh! Extra mips in the path. Remove these and wait until tomorrow
imp [Wed, 16 Apr 2008 05:11:25 +0000 (05:11 +0000)]
Doh!  Extra mips in the path.  Remove these and wait until tomorrow
when I have more brain cells to try again.

16 years agoTurns out the machine/asm.h isn't needed here, since SYS.h already
imp [Wed, 16 Apr 2008 05:08:27 +0000 (05:08 +0000)]
Turns out the machine/asm.h isn't needed here, since SYS.h already
included it.

16 years agoFreeBSD/mips libc support. Merged from perforce mips2-jnpr branch.
imp [Wed, 16 Apr 2008 05:06:11 +0000 (05:06 +0000)]
FreeBSD/mips libc support.  Merged from perforce mips2-jnpr branch.

16 years ago_vfork is not in libthr, remove the reference.
davidxu [Wed, 16 Apr 2008 03:19:11 +0000 (03:19 +0000)]
_vfork is not in libthr, remove the reference.

16 years agoMention support for nForce MCP73.
yongari [Wed, 16 Apr 2008 00:17:24 +0000 (00:17 +0000)]
Mention support for nForce MCP73.
Touch Dd.

16 years agoFix one-byte buffer overflow: NUL gets written to the buffer, but isn't
cperciva [Tue, 15 Apr 2008 23:29:51 +0000 (23:29 +0000)]
Fix one-byte buffer overflow: NUL gets written to the buffer, but isn't
counted in the width specification in scanf.

This is not a security problem, since this function is only used to
parse a user's configuration file.

Submitted by: Joerg Sonnenberger
Obtained from: dragonflybsd
MFC after: 1 week

16 years agoAdd very limited support for the isc-dhclient. It will almostly certaintly
brooks [Tue, 15 Apr 2008 23:03:35 +0000 (23:03 +0000)]
Add very limited support for the isc-dhclient.  It will almostly certaintly
only work if there's just one interface doing dhcp.  This version implements
the same logic as the version in the PR, but uses pgrep to be less verbose.

PR: conf/95905
MFC after: 1 week

16 years agoWhen sending packets directly to the DHCP server, use a socket and send
brooks [Tue, 15 Apr 2008 22:48:56 +0000 (22:48 +0000)]
When sending packets directly to the DHCP server, use a socket and send
directly rather than bogusly sending it out as a link layer broadcast
(which fails to be received on some networks).

PR: bin/96018
MFC after: 2 weeks

16 years agostyle(9).
rpaulo [Tue, 15 Apr 2008 22:47:01 +0000 (22:47 +0000)]
style(9).

Noticed by: jkim

16 years agoSeveral changes breaking netgraph module ABI collected together:
mav [Tue, 15 Apr 2008 21:15:32 +0000 (21:15 +0000)]
Several changes breaking netgraph module ABI collected together:
 - reorder structures fields (XX_refs) a bit to group fields modified
   same time together. According to my tests it gives up to 10%
   SMP performance benefit on real workload due to reduced inter-CPU
   cache trashing.
 - change q_flags from long to int as long is not really needed there and
   it's usage with atomics is argued by some people.
 - move NGF_WORKQ flag into the separate field q_flags2 as it protected by
   queue mutex instead of node writer protection used by the rest of flags.
 - move nd_work queue entry to ng_queue structure to which it is more
   related and make it STAILQ instead of TAILQ as now it is a classic FIFO.
 - remove q_node pointer from ng_queue structure as it is not really needed.
 - reimplement item queue using STAILQ instead of own equal implementation.
   As soon as BT subsystem has own item queues using ng_item.el_next update
   it also.
 - change depth field in ng_item from uintptr_t to u_int. It was made
   uintptr_t to keep ABI compatibility.

Reviewed by: julian, emax
Tested with: Netperf cluster

16 years agoRevert the previous commit and use M_PROMISC flag instead.
jkim [Tue, 15 Apr 2008 17:08:24 +0000 (17:08 +0000)]
Revert the previous commit and use M_PROMISC flag instead.
It is safer because it will never be used for outgoing packets.

16 years agoUse genclock for RTC handling. This eliminates the MD versions for
marcel [Tue, 15 Apr 2008 17:02:23 +0000 (17:02 +0000)]
Use genclock for RTC handling. This eliminates the MD versions for
inittodr() and resettodr(). Have nexus double as the clock device,
because it's the firmware that provides RTC services. We could
create a special (pseudo-) device for it, but that wasn't superior
enough to actually do it. Maybe later...

Requested by: phk

16 years agoFix possible buffer overrun on 64-bit arch when generating MAC
emax [Tue, 15 Apr 2008 16:54:39 +0000 (16:54 +0000)]
Fix possible buffer overrun on 64-bit arch when generating MAC
address for tap interface.

Reported by: Marc Lorner < marc dot loerner at hob dot de >
Reviewed by: bms
MFC after: 3 days

16 years agoImplement POSIX function tcgetsid() which returns session id.
davidxu [Tue, 15 Apr 2008 08:33:32 +0000 (08:33 +0000)]
Implement POSIX function tcgetsid() which returns session id.

PR: stand/107561

16 years agoThis file shows signs of heavy borrowing from NetBSD's cache.c file,
imp [Tue, 15 Apr 2008 05:35:00 +0000 (05:35 +0000)]
This file shows signs of heavy borrowing from NetBSD's cache.c file,
so credit its authors with contributions to this file.  Remove
prototype copyright notice, although one might be warranted if someone
wanted to claim it badly enough.

Noticed by: Simon Burge.

16 years agoAdd copyright notice and license to reflect origin of most of the
imp [Tue, 15 Apr 2008 05:31:19 +0000 (05:31 +0000)]
Add copyright notice and license to reflect origin of most of the
routines in this file.  Remove 'place holder' copyright since the
amount that's actually original is small relative to the length of the
file.  The contents of this file appear to have originated at DECWRL
by way of NetBSD.

Noticed by: Simon Burge

16 years agoBootstrap the build of btxld.
ru [Tue, 15 Apr 2008 05:14:42 +0000 (05:14 +0000)]
Bootstrap the build of btxld.

16 years agoSupport and switch to the ULE scheduler:
marcel [Tue, 15 Apr 2008 05:02:42 +0000 (05:02 +0000)]
Support and switch to the ULE scheduler:
o  Implement IPI_PREEMPT,
o  Set td_lock for the thread being switched out,
o  For ULE & SMP, loop while td_lock points to blocked_lock for
   the thread being switched in,
o  Enable ULE by default in GENERIC and SKI,

16 years agoIf the .inf file did not have a Default entry for the registry key then write
thompsa [Tue, 15 Apr 2008 04:44:32 +0000 (04:44 +0000)]
If the .inf file did not have a Default entry for the registry key then write
out a blank value and close the brackets on the ndis_regvals array.

16 years agoUse a ndis_ prefix on the C variable instead of directly using the .sys
thompsa [Tue, 15 Apr 2008 04:17:13 +0000 (04:17 +0000)]
Use a ndis_ prefix on the C variable instead of directly using the .sys
filename, this would fail if the filename started with a number.

PR: bin/84911
Submitted by: Fredrik Lindberg

16 years agoThis isn't used, so remove it. It isn't relevant to most mips platforms.
imp [Tue, 15 Apr 2008 02:50:07 +0000 (02:50 +0000)]
This isn't used, so remove it.  It isn't relevant to most mips platforms.

16 years agoCopied from amd64, where it wasn't used, into mips, where it wasn't used.
imp [Tue, 15 Apr 2008 02:11:57 +0000 (02:11 +0000)]
Copied from amd64, where it wasn't used, into mips, where it wasn't used.
Remove it.

16 years agoThis file is unused on amd64.
imp [Tue, 15 Apr 2008 02:10:14 +0000 (02:10 +0000)]
This file is unused on amd64.

16 years agoRemove $P4$ tag. Rumor has it that p4 importer hates it.
imp [Tue, 15 Apr 2008 02:09:28 +0000 (02:09 +0000)]
Remove $P4$ tag.  Rumor has it that p4 importer hates it.

16 years agoRemove M_SKIP_FIREWALL abuse and add more appropriate check.
jkim [Tue, 15 Apr 2008 00:50:01 +0000 (00:50 +0000)]
Remove M_SKIP_FIREWALL abuse and add more appropriate check.

Pointyhat to: jkim
Reported by: Eugene Grosbein (eugen at kuzbass dot ru)
MFC after: 3 days

16 years agoDon't touch MSI enable bit in RL_CFG2 register. For unknown reason
yongari [Tue, 15 Apr 2008 00:46:15 +0000 (00:46 +0000)]
Don't touch MSI enable bit in RL_CFG2 register. For unknown reason
clearing MSI enable bit for MSI capable hardwares resulted in Tx
problems. MSI enable bit is set only when MSI is requested from
user.

Tested by: remko

16 years agoRevision 1.9 changes the delivery mode from the magic constant 0
marcel [Mon, 14 Apr 2008 20:34:45 +0000 (20:34 +0000)]
Revision 1.9 changes the delivery mode from the magic constant 0
(i.e. fixed delivery) to SAPIC_DELMODE_LOWPRI. While the commit
log doesn't mention the change in behaviour, it is believed to be
deliberate. In the last 5.5 years this hasn't been a problem. Nor
do I think did it make any difference, but who knows. However, I
do know that it break SMP support for Montecito-based machines.
Switch back to fixed-CPU delivery so that SMP works again. This
gives me some time to look more closely at the problem, as well
as make sure the I-cache validation as it's implemented currently
is sufficient in SMP configurations...

16 years agorestore(8) does not check for write failure while building two temp
mckusick [Mon, 14 Apr 2008 20:15:53 +0000 (20:15 +0000)]
restore(8) does not check for write failure while building two temp
files containing directory and ownership data. If /tmp fills, the
console is blasted with zillions of "file system full" errors, and
restore continues on, even though directory and/or ownership data
has been lost. This is particularly likely to happen when running
from the live CD, which has little /tmp space.

PR:         bin/93603, also probably bin/107213
Fix from:   Ken Lalonde

16 years agoFix problem with slave devices.
sos [Mon, 14 Apr 2008 18:34:24 +0000 (18:34 +0000)]
Fix problem with slave devices.
Fix or rather bring ENOMEM problems back to the state it was before.
Temporarily disable PortMultipliers on AHCI devices.

16 years agoUse the pru_flush infrastructure to avoid a panic
rrs [Mon, 14 Apr 2008 18:13:33 +0000 (18:13 +0000)]
Use the pru_flush infrastructure to avoid a panic

PR: 122710
MFC after: 1 week

16 years ago- Have SCTP use the new pru_flush functionality
rrs [Mon, 14 Apr 2008 18:12:37 +0000 (18:12 +0000)]
- Have SCTP use the new pru_flush functionality

PR: 122710
MFC after: 1 week

16 years agoAdd pru_flush routine so a transport can
rrs [Mon, 14 Apr 2008 18:06:04 +0000 (18:06 +0000)]
Add pru_flush routine so a transport can
flush itself during Shutdown

MFC after: 1 week

16 years agoProtection against errant sender sending a stream
rrs [Mon, 14 Apr 2008 14:34:29 +0000 (14:34 +0000)]
Protection against errant sender sending a stream
seq number out of order with no missing TSN's (a
cisco box has this problem which will make a ssn
be held forever).
MFC after: 1 week

16 years agoNew logging values.
rrs [Mon, 14 Apr 2008 14:33:07 +0000 (14:33 +0000)]
New logging values.

16 years ago1) adds some additional logging
rrs [Mon, 14 Apr 2008 14:32:32 +0000 (14:32 +0000)]
1) adds some additional logging
2) changes to use a inqueue_bytes calculated value in max_len calc's.
MFC after: 1 week

16 years agoWhen calling lf_advlock to unlock a record, make sure that ap->a_fl->l_type
dfr [Mon, 14 Apr 2008 09:22:48 +0000 (09:22 +0000)]
When calling lf_advlock to unlock a record, make sure that ap->a_fl->l_type
is F_UNLCK otherwise we trigger a LOCKF_DEBUG panic.

MFC after: 3 days

16 years agodon't include pthread_np.h, it is not used.
davidxu [Mon, 14 Apr 2008 08:08:40 +0000 (08:08 +0000)]
don't include pthread_np.h, it is not used.

16 years agoConvert amd64 and i386 to share the atrtc device driver.
phk [Mon, 14 Apr 2008 08:00:00 +0000 (08:00 +0000)]
Convert amd64 and i386 to share the atrtc device driver.

16 years agoatrtc.c is a repocopy of the RTC device driver from i386/isa/clock.c
phk [Mon, 14 Apr 2008 07:57:15 +0000 (07:57 +0000)]
atrtc.c is a repocopy of the RTC device driver from i386/isa/clock.c

In addition to the device driver functionality, it exposes a number of
functions which various other bits of code use to fondle the RTC chip.

16 years ago Make this file compile on IPv6 kernels.
qingli [Sun, 13 Apr 2008 23:04:46 +0000 (23:04 +0000)]
 Make this file compile on IPv6 kernels.

16 years agoUse __FBSDID() for $FreeBSD$ IDs in the audit code.
rwatson [Sun, 13 Apr 2008 22:06:56 +0000 (22:06 +0000)]
Use __FBSDID() for $FreeBSD$ IDs in the audit code.

MFC after: 3 days

16 years agofix comments for these files.
imp [Sun, 13 Apr 2008 22:04:56 +0000 (22:04 +0000)]
fix comments for these files.

Noticed by: stass

16 years agoMake naming of include guards for MAC Framework include files more
rwatson [Sun, 13 Apr 2008 21:45:52 +0000 (21:45 +0000)]
Make naming of include guards for MAC Framework include files more
consistent with other kernel include guards (don't start with _SYS).

MFC after: 3 days

16 years agoMake this compile also on non-IPv6 kernels.
phk [Sun, 13 Apr 2008 21:38:05 +0000 (21:38 +0000)]
Make this compile also on non-IPv6 kernels.

16 years agoGet rid of an empty RTC implementation and hook up genclock instead.
phk [Sun, 13 Apr 2008 21:20:26 +0000 (21:20 +0000)]
Get rid of an empty RTC implementation and hook up genclock instead.

16 years agoInitialize the vm object's flags to include OBJ_NOSPLIT, just like the
alc [Sun, 13 Apr 2008 21:08:34 +0000 (21:08 +0000)]
Initialize the vm object's flags to include OBJ_NOSPLIT, just like the
vm objects that are used by System V shared memory segments.

16 years agoAdd the bootcode verb for installing boot code. Boot code
marcel [Sun, 13 Apr 2008 19:54:54 +0000 (19:54 +0000)]
Add the bootcode verb for installing boot code. Boot code
is supported for the MBR, GPT and PC98 schemes, where GPT
installs boot code into the PMBR.

16 years agoFix identify of slave devices.
sos [Sun, 13 Apr 2008 16:05:34 +0000 (16:05 +0000)]
Fix identify of slave devices.

16 years agoAdd support for Asus EeePC backlight control.
rpaulo [Sun, 13 Apr 2008 14:40:02 +0000 (14:40 +0000)]
Add support for Asus EeePC backlight control.

Submitted by: Akira Funahashi <funa at funa.org>
MFC after: 1 week

16 years agoI keep taking timemachines to get back in time. Update the
remko [Sun, 13 Apr 2008 11:05:59 +0000 (11:05 +0000)]
I keep taking timemachines to get back in time. Update the
year to 2008.

Noticed by: ceri

16 years agoFix the build in case RADIX_MPATH is not defined.
bz [Sun, 13 Apr 2008 10:22:59 +0000 (10:22 +0000)]
Fix the build in case RADIX_MPATH is not defined.

16 years agoUse calloc() instaed of zeroing memory ourselves.
delphij [Sun, 13 Apr 2008 08:05:08 +0000 (08:05 +0000)]
Use calloc() instaed of zeroing memory ourselves.

16 years agoAdd missing device in tunefs entry.
remko [Sun, 13 Apr 2008 07:48:05 +0000 (07:48 +0000)]
Add missing device in tunefs entry.

PR: docs/122702
Submitted by: Yoshihiro Ota <ota@j.email.ne.jp>
MFC After: 3 days

16 years agoFreeBSD/mips port. The FreeBSD/mips port targets mips32, mips64,
imp [Sun, 13 Apr 2008 07:44:55 +0000 (07:44 +0000)]
FreeBSD/mips port.  The FreeBSD/mips port targets mips32, mips64,
mips32r2 and mips64r2 (and close relatives) processors.  There
presently is support for ADMtek ADM5120, A mips 4Kc in a malta board,
the RB533 routerboard (based on IDT RC32434) and some preliminary
support for sibtye/broadcom designs.  Other hardware support will be
forthcomcing.

This port boots multiuser under gxemul emulating the malta board and
also bootstraps on the hardware whose support is forthcoming...

Oleksandr Tymoshenko, Wojciech Koszek, Warner Losh, Olivier Houchard,
Randall Stewert and others that have contributed to the mips2 and/or
mips2-jnpr perforce branches.  Juniper contirbuted a generic mips port
late in the life cycle of the misp2 branch.  Warner Losh merged the
mips2 and Juniper code bases, and others list above have worked for
the past several months to get to multiuser.

In addition, the mips2 work owe a debt to the trail blazing efforts of
the original mips branch in perforce done by Juli Mallett.

16 years agoFreeBSD/mips port. The FreeBSD/mips port targets mips32, mips64,
imp [Sun, 13 Apr 2008 07:27:37 +0000 (07:27 +0000)]
FreeBSD/mips port.  The FreeBSD/mips port targets mips32, mips64,
mips32r2 and mips64r2 (and close relatives) processors.  There
presently is support for ADMtek ADM5120, A mips 4Kc in a malta board,
the RB533 routerboard (based on IDT RC32434) and some preliminary
support for sibtye/broadcom designs.  Other hardware support will be
forthcomcing.

This port boots multiuser under gxemul emulating the malta board and
also bootstraps on the hardware whose support is forthcoming...

Oleksandr Tymoshenko, Wojciech Koszek, Warner Losh, Olivier Houchard,
Randall Stewert and others that have contributed to the mips2 and/or
mips2-jnpr perforce branches.  Juniper contirbuted a generic mips port
late in the life cycle of the misp2 branch.  Warner Losh merged the
mips2 and Juniper code bases, and others list above have worked for
the past several months to get to multiuser.

In addition, the mips2 work owe a debt to the trail blazing efforts of
the original mips branch in perforce done by Juli Mallett.

16 years agoFreeBSD/mips port. The FreeBSD/mips port targets mips32, mips64,
imp [Sun, 13 Apr 2008 07:07:57 +0000 (07:07 +0000)]
FreeBSD/mips port.  The FreeBSD/mips port targets mips32, mips64,
mips32r2 and mips64r2 (and close relatives) processors.  There
presently is support for ADMtek ADM5120, A mips 4Kc in a malta board,
the RB533 routerboard (based on IDT RC32434) and some preliminary
support for sibtye/broadcom designs.  Other hardware support will be
forthcomcing.

This port boots multiuser under gxemul emulating the malta board and
also bootstraps on the hardware whose support is forthcoming...

Oleksandr Tymoshenko, Wojciech Koszek, Warner Losh, Olivier Houchard,
Randall Stewert and others that have contributed to the mips2 and/or
mips2-jnpr perforce branches.  Juniper contirbuted a generic mips port
late in the life cycle of the misp2 branch.  Warner Losh merged the
mips2 and Juniper code bases, and others list above have worked for
the past several months to get to multiuser.

In addition, the mips2 work owe a debt to the trail blazing efforts of
the original mips branch in perforce done by Juli Mallett.

16 years agoMerge in the mips specific configuration files and such from the
imp [Sun, 13 Apr 2008 06:25:43 +0000 (06:25 +0000)]
Merge in the mips specific configuration files and such from the
merged juniper and mips2 code base.  This represents the work of
Juniper Engineers, plus Oleksandr Tymoshenko, Wojciech Koszek, Warner
Losh, Olivier Houchard, Randall Stewert and others that have
contributed to the mips2 and/or mips2-jnpr perforce branches.

16 years agoMFi386: RTC related cleanups.
nyan [Sun, 13 Apr 2008 06:18:34 +0000 (06:18 +0000)]
MFi386: RTC related cleanups.

- Use generic RTC handling code.
- Make clock_if.m and subr_rtc.c standard.
- Nuke MD inittodr(), resettodr() functions.
- Add new "pcrtc" device driver.
- Add hints for "pcrtc" driver.

16 years agoThese files handle the radix tree for the ECMP routes.
qingli [Sun, 13 Apr 2008 06:12:13 +0000 (06:12 +0000)]
These files handle the radix tree for the ECMP routes.
The original code from KAME did not take care of address
aliases or multiple ip addresses that have the same
prefix.

Reviewed by: rwatson, gnn, sam, kmacy, julian

16 years agoThis patch provides the back end support for equal-cost multi-path
qingli [Sun, 13 Apr 2008 05:45:14 +0000 (05:45 +0000)]
This patch provides the back end support for equal-cost multi-path
(ECMP) for both IPv4 and IPv6. Previously, multipath route insertion
is disallowed. For example,

route add -net 192.103.54.0/24 10.9.44.1
route add -net 192.103.54.0/24 10.9.44.2

The second route insertion will trigger an error message of
"add net 192.103.54.0/24: gateway 10.2.5.2: route already in table"

Multiple default routes can also be inserted. Here is the netstat
output:

default 10.2.5.1 UGS 0 3074 bge0 =>
default 10.2.5.2 UGS 0 0 bge0

When multipath routes exist, the "route delete" command requires
a specific gateway to be specified or else an error message would
be displayed. For example,

route delete default

would fail and trigger the following error message:

"route: writing to routing socket: No such process"
"delete net default: not in table"

On the other hand,

route delete default 10.2.5.2

would be successful: "delete net default: gateway 10.2.5.2"

One does not have to specify a gateway if there is only a single
route for a particular destination.

I need to perform more testings on address aliases and multiple
interfaces that have the same IP prefixes. This patch as it
stands today is not yet ready for prime time. Therefore, the ECMP
code fragments are fully guarded by the RADIX_MPATH macro.
Include the "options  RADIX_MPATH" in the kernel configuration
to enable this feature.

Reviewed by: robert, sam, gnn, julian, kmacy

16 years agoUse a "rel" memory barrier for disowning the lock as it cames from an
attilio [Sun, 13 Apr 2008 01:21:56 +0000 (01:21 +0000)]
Use a "rel" memory barrier for disowning the lock as it cames from an
exclusive locking operation.

16 years agostruct lock_instance and struct lock_list_entry don't need to be in the
attilio [Sun, 13 Apr 2008 01:20:47 +0000 (01:20 +0000)]
struct lock_instance and struct lock_list_entry don't need to be in the
public namespace for WITNESS as they are only used internally so just
move them in the private namespace for the subsystem (with all related
supporting definitions).

16 years agofix printf type confusion on amd64
phk [Sat, 12 Apr 2008 21:51:54 +0000 (21:51 +0000)]
fix printf type confusion on amd64

16 years agoMove i386 to generic RTC handling code.
phk [Sat, 12 Apr 2008 20:46:06 +0000 (20:46 +0000)]
Move i386 to generic RTC handling code.

Make clock_if.m and subr_rtc.c standard on i386

Add hints for "atrtc" driver, for non-PnP, non-ACPI systems.
NB: Make sure to install GENERIC.hints into /boot/device.hints in these!

Nuke MD inittodr(), resettodr() functions.

Don't attach to PHP0B00 in the "attimer" dummy driver any more, and remove
comments that no longer apply for that reason.

Add new "atrtc" device driver, which handles IBM PC AT Real Time
Clock compatible devices using subr_rtc and clock_if.

This driver is not entirely clean: other code still fondles the
hardware to get a statclock interrupt on non-ACPI timer systems.

Wrap some overly long lines.

After it has settled in -current, this will be ported to amd64.

Technically this is MFC'able, but I fail to see a good reason.

16 years agoEmit summaries of struct c(alender)t(ime) <-> struct timespec conversions
phk [Sat, 12 Apr 2008 20:35:56 +0000 (20:35 +0000)]
Emit summaries of struct c(alender)t(ime) <-> struct timespec conversions
under bootverbose.

Struct ct is used for setting/reading real time clocks and I'm about
to Do Things to some of those, so a bit of preemptive debugging is
in order.

Remove a pointless __inline.

16 years agoRemove a trailing comma which FlexeLint whines about.
phk [Sat, 12 Apr 2008 20:26:07 +0000 (20:26 +0000)]
Remove a trailing comma which FlexeLint whines about.

16 years agoLK_NOWITNESS can be used now in lockmgr*() functions in order to skip
attilio [Sat, 12 Apr 2008 20:18:02 +0000 (20:18 +0000)]
LK_NOWITNESS can be used now in lockmgr*() functions in order to skip
witness(4) checks on a per-instance basis.

16 years ago- Re-introduce WITNESS support for lockmgr. About the old implementation
attilio [Sat, 12 Apr 2008 19:57:30 +0000 (19:57 +0000)]
- Re-introduce WITNESS support for lockmgr.  About the old implementation
  the only one difference is that lockmgr*() functions now accept
  LK_NOWITNESS flag which skips ordering for the instanced calling.
- Remove an unuseful stub in witness_checkorder() (because the above check
  doesn't allow ever happening) and allow witness_upgrade() to accept
  non-try operation too.

16 years agoDont call hw.status recursively.
sos [Sat, 12 Apr 2008 17:21:22 +0000 (17:21 +0000)]
Dont call hw.status recursively.

Spotted by: Marcel Moolenaar

16 years ago- Add codec id for Sigmatel STAC9205
ariff [Sat, 12 Apr 2008 15:07:32 +0000 (15:07 +0000)]
- Add codec id for Sigmatel STAC9205
- Fix speaker issues with Dell Vostro 1500 (GPIO0)

Tested by: John Wright <jwright.gmail.com>

- Apply ridiculous quirk on Asus A8X series (A8JC, A8M, A8xx, etc). These
  different laptop series share simmilar pci id, hardware codecs, etc.
  but works differently. A slight difference in connection type for
  widget #26 is used to differentiate it.

Tested by: eric baumbach <embaumbach.gmail.com>

- Apply GPIO0 quirk for ASUS G2K laptop
- Sort ASUS ids accordingly.

Submitted by: jkim

MFC after: 3 days

16 years agoUnbreak the build for arm and powerpc.
das [Sat, 12 Apr 2008 14:53:52 +0000 (14:53 +0000)]
Unbreak the build for arm and powerpc.

Pointy hat to yours truly.

16 years agoConnect k8temp(4) to the build.
rpaulo [Sat, 12 Apr 2008 14:20:22 +0000 (14:20 +0000)]
Connect k8temp(4) to the build.

16 years agoMFp4: k8temp(4) man page.
rpaulo [Sat, 12 Apr 2008 14:08:24 +0000 (14:08 +0000)]
MFp4: k8temp(4) man page.

16 years agoMFp4: k8temp, a driver to monitor AMD K8 CPU temperature via builtin
rpaulo [Sat, 12 Apr 2008 14:04:08 +0000 (14:04 +0000)]
MFp4: k8temp, a driver to monitor AMD K8 CPU temperature via builtin
sensors. Based on the Linux driver by the same name.

Tested by:     many (see freebsd-amd64)

16 years ago- Remove a stale comment.
attilio [Sat, 12 Apr 2008 13:56:17 +0000 (13:56 +0000)]
- Remove a stale comment.
- Add an extra assertion in order to catch malformed requested operations.

16 years agoAdd missing stubs for spinlocks cpuset and intrcnt.
attilio [Sat, 12 Apr 2008 13:51:18 +0000 (13:51 +0000)]
Add missing stubs for spinlocks cpuset and intrcnt.

Submitted by: kris

16 years agoTrylocks were implemented, remove stale comment
kris [Sat, 12 Apr 2008 12:17:49 +0000 (12:17 +0000)]
Trylocks were implemented, remove stale comment

16 years agoUpdate the list of Cx states when ACPICA notifies us. Usually, this
rpaulo [Sat, 12 Apr 2008 12:06:00 +0000 (12:06 +0000)]
Update the list of Cx states when ACPICA notifies us. Usually, this
notification is sent when the AC plug is plugged in/out.

This is required on some laptops, namely the MacBooks.

Silence on:  freebsd-acpi

16 years agoMatch the Mac Pro with 8 cores. This machine reports 35 temperature
rpaulo [Sat, 12 Apr 2008 12:04:09 +0000 (12:04 +0000)]
Match the Mac Pro with 8 cores. This machine reports 35 temperature
sensors and some fans.
As I don't own this machine, I could not test this patch.

Obtained from: applesmc Linux driver.

16 years agoCorrect an obvious typo.
pjd [Sat, 12 Apr 2008 05:49:05 +0000 (05:49 +0000)]
Correct an obvious typo.

16 years agoUpdates for changes in the way printf() handles hex floating point
das [Sat, 12 Apr 2008 03:11:56 +0000 (03:11 +0000)]
Updates for changes in the way printf() handles hex floating point
numbers.

16 years agoMake several changes to the way printf handles hex floating point (%a):
das [Sat, 12 Apr 2008 03:11:36 +0000 (03:11 +0000)]
Make several changes to the way printf handles hex floating point (%a):

1. Previously, printing the number 1.0 could produce 0x1p+0, 0x2p-1,
   0x4p-2, or 0x8p-3, depending on what happened to be convenient. This
   meant that printing a value as a double and printing the same value
   as a long double could produce different (but equivalent) results.
   The change is to always make the leading digit a 1, unless the
   number is 0. This solves the aforementioned problem and has
   several other advantages.

2. Use the FPU to do rounding. This is far simpler and more portable
   than manipulating the bits, and it fixes an obsure round-to-even
   bug. It also raises the exceptions now required by IEEE 754R.
   The drawbacks are that it is usually slightly slower, and it makes
   printf less effective as a debugging tool when the FPU is hosed
   (e.g., due to a buggy softfloat implementation).

3. On i386, twiddle the rounding precision so that (2) works properly
   for long doubles.

4. Make several simplifications that are now possible due to (2).

5. Split __hldtoa() into a separate file.

Thanks to remko for access to a sparc64 box for testing.

16 years agoFix some bugs that caused sparc64's quad precision sqrt to get
das [Sat, 12 Apr 2008 03:10:13 +0000 (03:10 +0000)]
Fix some bugs that caused sparc64's quad precision sqrt to get
the wrong answer for virtually all inputs.

Thanks to remko for access to a sparc64 box for testing.

16 years agoMake the software emulator for long doubles set the FPU exception
das [Sat, 12 Apr 2008 03:09:51 +0000 (03:09 +0000)]
Make the software emulator for long doubles set the FPU exception
flags appropriately. The next step is to make it raise a SIGFPE if
any exceptions are unmasked.

Thanks to remko for access to a sparc64 box for testing.

16 years ago- Fixed a problem with the send chain consumer index which would cause
davidch [Fri, 11 Apr 2008 23:10:40 +0000 (23:10 +0000)]
- Fixed a problem with the send chain consumer index which would cause
  TX traffic to sit in the send chain until a received packet kick
  started the interrupt handler.  This would cause extremely slow
  performance when used with NFS over UDP.
- Removed untested polling code.
- Updated copyright year in the file header.
- Removed inadvertent ^M's created by DOS text editor.

MFC after: 2 weeks

16 years ago - Pass the irq and not the vector to intr_event_create().
jeff [Fri, 11 Apr 2008 23:10:39 +0000 (23:10 +0000)]
 - Pass the irq and not the vector to intr_event_create().

Reviewed by: marcel