]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years ago2 spelling fixes...
netchild [Sun, 18 Jun 2006 17:02:21 +0000 (17:02 +0000)]
2 spelling fixes...

Noticed by: John E Hein <jhein@timing.com>

18 years agoNew release note: COMPAT_43 removed from GENERIC.
bmah [Sun, 18 Jun 2006 16:36:51 +0000 (16:36 +0000)]
New release note:  COMPAT_43 removed from GENERIC.

Updated release note:  MPSAFE-ness of NFS includes the client code.

18 years agoo sort the HARDWARE list somewhat
brueffer [Sun, 18 Jun 2006 14:45:28 +0000 (14:45 +0000)]
o sort the HARDWARE list somewhat
o mention ATA and SATA support
o mdoc improvements

MFC after: 3 days

18 years agoo Remove FILES section (uninteresting for users)
brueffer [Sun, 18 Jun 2006 14:37:48 +0000 (14:37 +0000)]
o Remove FILES section (uninteresting for users)
o Xref asr(4)

MFC after: 3 days

18 years agoRemove T/TCP RFC1644 Connection Count comparison macros. They are no longer
andre [Sun, 18 Jun 2006 14:24:12 +0000 (14:24 +0000)]
Remove T/TCP RFC1644 Connection Count comparison macros.  They are no longer
used and needed.

Sponsored by:   TCP/IP Optimization Fundraise 2005

18 years ago- Rename hw.snd.unit to hw.snd.default_unit to make the purpose more obvious.
netchild [Sun, 18 Jun 2006 14:14:41 +0000 (14:14 +0000)]
- Rename hw.snd.unit to hw.snd.default_unit to make the purpose more obvious.
- Enable 4 automatic vchan's by default.
- Add some comments which provide ides/questions for improvement.
- Prefix some temporary sysctl's with an underscore to denote that it is not
  an official API but a workaround until the real solution is implemented.

18 years agoo Capitalization fixes
brueffer [Sun, 18 Jun 2006 14:12:27 +0000 (14:12 +0000)]
o Capitalization fixes
o Remove the outdated FILES section

MFC after: 3 days

18 years agoAdd MLINKS:
brueffer [Sun, 18 Jun 2006 14:08:20 +0000 (14:08 +0000)]
Add MLINKS:

ixgb.4 -> if_ixgb.4
mxge.4 -> if_mxge.4

18 years ago- xref linsysfs
netchild [Sun, 18 Jun 2006 13:51:39 +0000 (13:51 +0000)]
- xref linsysfs
- improve the ldconfig part
- tell about pitfalls with the osrelease sysctl

18 years agoAlpha is gone, no need to keep them.
netchild [Sun, 18 Jun 2006 13:44:26 +0000 (13:44 +0000)]
Alpha is gone, no need to keep them.

18 years agoDo not access syncache entry before it was allocated for the TF_NOOPT case
andre [Sun, 18 Jun 2006 13:03:42 +0000 (13:03 +0000)]
Do not access syncache entry before it was allocated for the TF_NOOPT case
in syncache_add().

Found by: Coverity Prevent
CID: 1473

18 years agoAdd a funny sysctl: debug.kdb.trap_code .
yar [Sun, 18 Jun 2006 12:27:59 +0000 (12:27 +0000)]
Add a funny sysctl: debug.kdb.trap_code .
It is similar to debug.kdb.trap, except for it tries to cause a page fault
via a call to an invalid pointer.  This can highlight differences between
a fault on data access vs. a fault on code call some CPUs might have.

This appeared as a test for a work \
Sponsored by: RiNet (Cronyx Plus LLC)

18 years agoMove all syncache related structures to tcp_syncache.c. They are only used
andre [Sun, 18 Jun 2006 12:26:11 +0000 (12:26 +0000)]
Move all syncache related structures to tcp_syncache.c.  They are only used
there.

This unbreaks userland programs that include tcp_var.h.

Discussed with: rwatson

18 years agoFix style while I'm here.
yar [Sun, 18 Jun 2006 12:13:49 +0000 (12:13 +0000)]
Fix style while I'm here.

18 years agoThe i386 "call" instruction works as follows: it pushes
yar [Sun, 18 Jun 2006 12:07:00 +0000 (12:07 +0000)]
The i386 "call" instruction works as follows: it pushes
the return address on the stack and only then "dereferences" %pc.
Therefore, in the case of a call to an invalid address, we arrive
to the trap handler with the invalid value in tf_eip.  This used
to prevent db_backtrace() from assigning the most recent and interesting
frame on the stack to the right spot in the right function, from
which the invalid call was attempted.

Try to detect and work around that by recovering the return address
from the stack.

The work-around requires the fault address be passed to db_backtrace().
Smuggle it as tf_err.

MFC after: 1 month
Sponsored by: RiNet (Cronyx Plus LLC)

18 years agoRemove double lock acquisition in syncookie_lookup() which came from last
andre [Sun, 18 Jun 2006 11:48:03 +0000 (11:48 +0000)]
Remove double lock acquisition in syncookie_lookup() which came from last
minute conversions to macros.

Pointy hat to: andre

18 years ago"clean" of <bsd.prog.mk> no longer removes a.out, Errs,
yar [Sun, 18 Jun 2006 11:26:17 +0000 (11:26 +0000)]
"clean" of <bsd.prog.mk> no longer removes a.out, Errs,
errs, mklog, and ${PROG}.core .

MFC after: 1 week

18 years agoGive a major overhaul to asf(8).
yar [Sun, 18 Jun 2006 11:14:40 +0000 (11:14 +0000)]
Give a major overhaul to asf(8).

The improvements are:

- can get the kld info from core files via kvm(3);
- can use kldstat(2) directly, which is a piece of cake;
- can use .symbols or whatever, which allows for use by
  non-developers when reporting system crashes -- now asf(8)
  can be mentioned in the handbook at last;
- speed (no more double fts(3) per loaded module);
- various bugs fixed.

At the same time, the new asf(8) should stay compatible with
the old one, bar bugs.  Perhaps some defaults may be changed
later to match today's state of affairs.

Reviewed by: grog
MFC after: 1 month
Sponsored by: RiNet (Cronyx Plus LLC)

18 years agoo Convert to our new SYNOPSIS layout
brueffer [Sun, 18 Jun 2006 09:53:00 +0000 (09:53 +0000)]
o Convert to our new SYNOPSIS layout
o Add "device scbus/pci/etc" where needed for consistency

MFC after: 3 days

18 years agoCorrect date for the previous commit.
brueffer [Sun, 18 Jun 2006 07:33:51 +0000 (07:33 +0000)]
Correct date for the previous commit.

18 years agoUnconditionally enable ppc(4) and puc(4).
marcel [Sun, 18 Jun 2006 05:05:46 +0000 (05:05 +0000)]
Unconditionally enable ppc(4) and puc(4).

18 years agoMake this usable for all platforms.
marcel [Sun, 18 Jun 2006 05:04:42 +0000 (05:04 +0000)]
Make this usable for all platforms.

18 years agoNew release notes: SCHED_CORE, snd_envy24(4), better traceroute(8)
bmah [Sun, 18 Jun 2006 04:48:11 +0000 (04:48 +0000)]
New release notes:  SCHED_CORE, snd_envy24(4), better traceroute(8)
ICMP unreachable decoding, Linux emulation now FC4 (+MFC).

MFCs noted:  ipmi(4), cm(4) MPSAFE, nve(4) ALTQ, sk(4) MPSAFE,

18 years agocomment out twi for now: no iicbus in KB920X: it breaks booting
imp [Sat, 17 Jun 2006 23:34:59 +0000 (23:34 +0000)]
comment out twi for now: no iicbus in KB920X: it breaks booting

18 years agoCarefully note the RMII bit in the config register at attach time.
imp [Sat, 17 Jun 2006 23:24:35 +0000 (23:24 +0000)]
Carefully note the RMII bit in the config register at attach time.
The boot loader is supposed to leave this bit set to the right value
for the board.  If this bit was set at attach time, use it to init the
config register correctly.

Note: this means the boot loader has to properly initialize it.

18 years agoimprove reporting of clocks
imp [Sat, 17 Jun 2006 23:22:10 +0000 (23:22 +0000)]
improve reporting of clocks

18 years agoRemove sbinsertoob(), sbinsertoob_locked(). They violate (and have
rwatson [Sat, 17 Jun 2006 22:48:34 +0000 (22:48 +0000)]
Remove sbinsertoob(), sbinsertoob_locked().  They violate (and have
basically always violated) invariannts of soreceive(), which assume
that the first mbuf pointer in a receive socket buffer can't change
while the SB_LOCK sleepable lock is held on the socket buffer,
which is precisely what these functions do.  No current protocols
invoke these functions, and removing them will help discourage them
from ever being used.  I should have removed them years ago, but
lost track of it.

MFC after: 1 week
Prodded almost by accident by: peter

18 years agoPrevent 'mutex not owned' panic on boot if INVARIANTS is in the kernel. This
rink [Sat, 17 Jun 2006 20:10:32 +0000 (20:10 +0000)]
Prevent 'mutex not owned' panic on boot if INVARIANTS is in the kernel. This
makes the GENERIC kernel boot on ppc.

Reviewed by: grehan
Approved by: imp (mentor)
MFC after: 1 week

dCVS: ----------------------------------------------------------------------

18 years ago- Bring the hardware list up to date
brueffer [Sat, 17 Jun 2006 18:45:53 +0000 (18:45 +0000)]
- Bring the hardware list up to date
- Convert to our standard SYNOPSIS layout
- Remove the kld from FILES, it's now mentioned in the SYNOPSIS
- Remove useless .Pp call at eof

MFC after: 3 days

18 years agoCorrect the names or some Adaptec and ICP devices, verified by the
brueffer [Sat, 17 Jun 2006 18:42:26 +0000 (18:42 +0000)]
Correct the names or some Adaptec and ICP devices, verified by the
respective websites.

Reviewed by: scottl
Approved by: rwatson (mentor)
MFC after: 5 days

18 years agoFix the !INET6 compile.
andre [Sat, 17 Jun 2006 18:42:07 +0000 (18:42 +0000)]
Fix the !INET6 compile.

Reported by: alc

18 years agoRearrange fields in struct syncache and syncache_head to make them more
andre [Sat, 17 Jun 2006 17:57:36 +0000 (17:57 +0000)]
Rearrange fields in struct syncache and syncache_head to make them more
cache line friendly.

Sponsored by:   TCP/IP Optimization Fundraise 2005

18 years agoANSIfy and tidy up comments.
andre [Sat, 17 Jun 2006 17:49:11 +0000 (17:49 +0000)]
ANSIfy and tidy up comments.

Sponsored by:   TCP/IP Optimization Fundraise 2005

18 years agoAdd locking to TCP syncache and drop the global tcpinfo lock as early
andre [Sat, 17 Jun 2006 17:32:38 +0000 (17:32 +0000)]
Add locking to TCP syncache and drop the global tcpinfo lock as early
as possible for the syncache_add() case.  The syncache timer no longer
aquires the tcpinfo lock and timeout/retransmit runs can happen in
parallel with bucket granularity.

On a P4 the additional locks cause a slight degression of 0.7% in tcp
connections per second.  When IP and TCP input are deserialized and
can run in parallel this little overhead can be neglected. The syncookie
handling still leaves room for improvement and its random salts may be
moved to the syncache bucket head structures to remove the second lock
operation currently required for it.  However this would be a more
involved change from the way syncookies work at the moment.

Reviewed by: rwatson
Tested by: rwatson, ps (earlier version)
Sponsored by: TCP/IP Optimization Fundraise 2005

18 years agoAdd snd_envy24(4).
brueffer [Sat, 17 Jun 2006 17:10:39 +0000 (17:10 +0000)]
Add snd_envy24(4).

18 years agoLoad the envy24 driver in the meta-module too.
netchild [Sat, 17 Jun 2006 17:01:41 +0000 (17:01 +0000)]
Load the envy24 driver in the meta-module too.

18 years agoAdd man page for the envy24 driver.
netchild [Sat, 17 Jun 2006 16:43:21 +0000 (16:43 +0000)]
Add man page for the envy24 driver.

18 years agoConnect the envy42 driver to the build.
netchild [Sat, 17 Jun 2006 16:41:54 +0000 (16:41 +0000)]
Connect the envy42 driver to the build.

18 years ago- fix compatibility with newer versions of FreeBSD
netchild [Sat, 17 Jun 2006 15:11:36 +0000 (15:11 +0000)]
- fix compatibility with newer versions of FreeBSD
- fix all warnings during compilation
- fix obvious bugs
- add support for more cards

Now supported:
 - M-Audio Delta Dio 2496
 - M-Audio Audiophile 2496
 - Terratec DMX 6fire

Known bugs (detected by Nokolas and Stefan):
 - $ kldunload snd_ak452x.ko
   Warning: memory type ak452x leaked memory on destroy (1 allocations,
   64 bytes leaked).
 - No sound in KDE: Everything works fine at the console but when I load KDE
   (3.5.3) the sound stutters and plays at less then 1/2 speed.
 - 'mixer: WRITE_MIXER: Device not configured' The message repeats x
   times at system startup, x = whatever hw.snd.maxautovchans is set to.
   (this is because only vol, pcm and line are supported, but the driver
   shows more than those mixer devices and setting those additional mixers
   results in this error message)
 - vchans don't work
 - 24 bit playback not supported (only 16/32 bit)
 - after kld(un)loading some times, the card fails to be probed until reboot

Datasheets are available from:
http://www.nbritton.org/uploads/envy24/
http://www.asahi-kasei.co.jp/akm/en/product/ak4528/ak4528_f01e.pdf
http://www.asahi-kasei.co.jp/akm/en/product/ak4528/ekd4528-01.pdf
http://www.asahi-kasei.co.jp/akm/en/product/ak4524/ak4524_f03e.pdf
http://www.asahi-kasei.co.jp/akm/en/product/ak4524/ekd4524.pdf
http://www.wolfson.co.uk/uploads/documents/en/WM8728.pdf
http://www.richtech.co.kr/down/richtek/RT9131.pdf
http://xkodi.svobodno.com/xkodi/space71.html
http://people.freebsd.org/~lofi/envy24.pdf
http://people.freebsd.org/~lofi/4524.pdf

Submitted by: Konstantin Dimitrov <kosio.dimitrov@gmail.com>
Tested by: Nikolas Britton <nikolas.britton@gmail.com>
Stefan Ehmann <shoesoft@gmx.net>

18 years agodd the envy24 driver as is to the tree. It's not connected to the build
netchild [Sat, 17 Jun 2006 14:36:44 +0000 (14:36 +0000)]
dd the envy24 driver as is to the tree. It's not connected to the build
yet. More commits to follow.

I got no response from the author, but since the driver is BSD licensed
I don't think he will complain. :-)

I got it from http://people.freebsd.org/~lofi/envy24.tar.gz

Written by: Katsurajima Naoto <raven@katsurajima.seya.yokohama.jp>

18 years agoMake the size of the subject32_ex and process32_ex tokens depend on
wsalamon [Sat, 17 Jun 2006 13:53:04 +0000 (13:53 +0000)]
Make the size of the subject32_ex and process32_ex tokens depend on
whether we have an IPv6 address. Write the term ID as 4 or
16 bytes depending on address type. This change matches the recent
OpenBSM change, and what Solaris does.

Obtained from: TrustedBSD Project
Approved by: rwatson (mentor)

18 years agoRemove the snd_es1888 module now that it isn't build anymore.
netchild [Sat, 17 Jun 2006 09:38:08 +0000 (09:38 +0000)]
Remove the snd_es1888 module now that it isn't build anymore.

Noticed by: Neil Short <neshort@yahoo.com>

18 years agoUse ptoa(psize) instead of size to compute the end of the mapping in
alc [Sat, 17 Jun 2006 08:45:01 +0000 (08:45 +0000)]
Use ptoa(psize) instead of size to compute the end of the mapping in
vm_map_pmap_enter().

18 years agoo Typo: ownship -> ownership.
maxim [Sat, 17 Jun 2006 07:25:58 +0000 (07:25 +0000)]
o Typo: ownship -> ownership.

Obtained from: DragonFlyBSD

18 years agoMFCs noted: pc98 CDROM bootloader, linsysfs(5).
bmah [Sat, 17 Jun 2006 04:54:00 +0000 (04:54 +0000)]
MFCs noted:  pc98 CDROM bootloader, linsysfs(5).

18 years agoAdd a description for sysctl -d.
emaste [Sat, 17 Jun 2006 02:58:18 +0000 (02:58 +0000)]
Add a description for sysctl -d.

18 years agoDocument that we can only bridge wireless interfaces in hostap mode, this is
thompsa [Fri, 16 Jun 2006 23:03:22 +0000 (23:03 +0000)]
Document that we can only bridge wireless interfaces in hostap mode, this is
becoming a faq.

MFC after: 1 week

18 years agoRemove extra blank line below comment.
rwatson [Fri, 16 Jun 2006 22:31:56 +0000 (22:31 +0000)]
Remove extra blank line below comment.

MFC after: 1 week

18 years agoRemove unused (and ifdef'd) unp_abort() and unp_drain().
rwatson [Fri, 16 Jun 2006 22:11:49 +0000 (22:11 +0000)]
Remove unused (and ifdef'd) unp_abort() and unp_drain().

MFC after: 1 month

18 years agoCheck for errors when registering and unregistering firmware modules. This
jhb [Fri, 16 Jun 2006 21:06:03 +0000 (21:06 +0000)]
Check for errors when registering and unregistering firmware modules.  This
prevents the unfortunate situation whereby one might kldload a firmware
module by hand and later kldunload it while a driver still has an open
reference to it.

MFC after: 1 week
Glanced at by: iedowse

18 years agoAdd a kern.timecounter.tc sysctl tree that contains the mask,
dwmalone [Fri, 16 Jun 2006 20:29:05 +0000 (20:29 +0000)]
Add a kern.timecounter.tc sysctl tree that contains the mask,
frequency, quality and current value of each available time counter.

At the moment all of these are read-only, but it might make sense to
make some of these read-write in the future.

MFC after: 3 months

18 years agoNever zero-out db_last_symtab. Whan backtraces are done
kib [Fri, 16 Jun 2006 16:17:52 +0000 (16:17 +0000)]
Never zero-out db_last_symtab. Whan backtraces are done
in parallel in several threads, one symbol lookup could
clear db_last_symtab when another one going to use it as
starting point for traversal.

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

18 years agoMention that the powernow driver also supports AMD Cool'n'Quiet.
brueffer [Fri, 16 Jun 2006 14:51:23 +0000 (14:51 +0000)]
Mention that the powernow driver also supports AMD Cool'n'Quiet.

MFC after: 3 days

18 years agoUnbreak tinderbox- fix device_printf arg to accomodate different sizes
mjacob [Fri, 16 Jun 2006 14:04:21 +0000 (14:04 +0000)]
Unbreak tinderbox- fix device_printf arg to accomodate different sizes
of vm_paddr_t in different contexts (e.g., PAE vs. non PAE).

18 years agoBuild the ppc module on pc98.
nyan [Fri, 16 Jun 2006 12:51:53 +0000 (12:51 +0000)]
Build the ppc module on pc98.

18 years agoReturn -1 from db_numargs() if number of args couldn't be guessed.
yar [Fri, 16 Jun 2006 11:49:37 +0000 (11:49 +0000)]
Return -1 from db_numargs() if number of args couldn't be guessed.
Use this later to indicate in backtrace output that args shown are
uncertain.

Sponsored by: RiNet (Cronyx Plus LLC)

18 years agoAllow for ppc(4) to be built as module, initially
kib [Fri, 16 Jun 2006 11:44:55 +0000 (11:44 +0000)]
Allow for ppc(4) to be built as module, initially
only for i386 and amd64.

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

18 years agoGuess the number of arguments to a function somewhat better.
yar [Fri, 16 Jun 2006 11:14:54 +0000 (11:14 +0000)]
Guess the number of arguments to a function somewhat better.
Now GCC likes to stick a "mov %eax, %FOO" instruction before
"addl $BAR, %esp" if the function just called returns an int,
which is a very common case in the kernel.

Sponsored by: RiNet (Cronyx Plus LLC)

18 years agoFix pfsync w/o carp compilation.
mlaier [Fri, 16 Jun 2006 10:25:06 +0000 (10:25 +0000)]
Fix pfsync w/o carp compilation.

Submitted by: yar

18 years agoKill an XXX remark that has been untrue since rev. 1.150 of this file.
yar [Fri, 16 Jun 2006 07:36:18 +0000 (07:36 +0000)]
Kill an XXX remark that has been untrue since rev. 1.150 of this file.

18 years agoAxe Giant from vn_fullpath(9). The vnode -> pathname lookup should be
csjp [Fri, 16 Jun 2006 05:09:28 +0000 (05:09 +0000)]
Axe Giant from vn_fullpath(9). The vnode -> pathname lookup should be
filesystem agnostic. We are not touching any file system specific functions
in this code path. Since we have a cache lock, there is really no need to
keep Giant around here.

This eliminates Giant acquisitions for any syscall which is auditing pathnames.

Discussed with: jeff

18 years agoRemove COMPAT_43 from GENERIC (and other kernel configs). For amd64 there's
netchild [Thu, 15 Jun 2006 19:58:53 +0000 (19:58 +0000)]
Remove COMPAT_43 from GENERIC (and other kernel configs). For amd64 there's
an explicit comment that it's needed for the linuxolator. This is not the
case anymore. For all other architectures there was only a "KEEP THIS".
I'm (and other people too) running a COMPAT_43-less kernel since it's not
necessary anymore for the linuxolator. Roman is running such a kernel for a
for longer time. No problems so far. And I doubt other (newer than ia32
or alpha) architectures really depend on it.

This may result in a small performance increase for some workloads.

If the removal of COMPAT_43 results in a not working program, please
recompile it and all dependencies and try again before reporting a
problem.

The only place where COMPAT_43 is needed (as in: does not compile without
it) is in the (outdated/not usable since too old) svr4 code.

Note: this does not remove the COMPAT_43TTY option.

Nagging by: rdivacky

18 years agomxge(4) works with altq.
brueffer [Thu, 15 Jun 2006 19:38:42 +0000 (19:38 +0000)]
mxge(4) works with altq.

Tested by: gallatin

18 years agoo Make grep ^strlcpy work: put a return value type on separate line.
maxim [Thu, 15 Jun 2006 15:56:55 +0000 (15:56 +0000)]
o Make grep ^strlcpy work: put a return value type on separate line.

18 years agoSince we are doing some bpf(4) clean up, change a couple of function prototypes
csjp [Thu, 15 Jun 2006 15:39:12 +0000 (15:39 +0000)]
Since we are doing some bpf(4) clean up, change a couple of function prototypes
to be consistent. Also, ANSI'fy function definitions. There is no functional
change here.

18 years agoForced commit to note that previous commit was also:
glebius [Thu, 15 Jun 2006 14:35:31 +0000 (14:35 +0000)]
Forced commit to note that previous commit was also:

Partially submitted by: Pavel Merdin <freebsd-bugs merdin.com>
Tested by: Lucas Nussbaum <lucas.nussbaum imag.fr>

18 years agoPossess some work from OpenBSD, with some local additions.
glebius [Thu, 15 Jun 2006 14:31:49 +0000 (14:31 +0000)]
Possess some work from OpenBSD, with some local additions.

- Add more device IDs, ASIC revisions and chip IDs.
- Rewrite a bit code that picks the description for device.
- Introduce several macros to shorten quirks for bugs and
  features.[*]
- Use some magic values, that OpenBSD has successfully
  possessed from Linux (Broadcom supplied) driver.
- Remove disabled code that tried to access VPD.

[*] The macro that matches Jumbo capable NICs is
    rewritten to preserve our current behavior. I
    need clarify whether our or theirs is correct.

PR: 68351 (and may be others)
Obtained from: OpenBSD, brad@ mostly

18 years agoAdd support of 'tablearg' feature for:
oleg [Thu, 15 Jun 2006 09:39:22 +0000 (09:39 +0000)]
Add support of 'tablearg' feature for:
- 'tag' & 'untag' action parameters.
- 'tagged' & 'limit' rule options.
Rule examples:
pipe 1 tag tablearg ip from table(1) to any
allow ip from any to table(2) tagged tablearg
allow tcp from table(3) to any 25 setup limit src-addr tablearg

sbin/ipfw/ipfw2.c:
1) new macros
   GET_UINT_ARG - support of 'tablearg' keyword, argument range checking.
   PRINT_UINT_ARG - support of 'tablearg' keyword.
2) strtoport(): do not silently truncate/accept invalid port list expressions
   like: '1,2-abc' or '1,2-3-4' or '1,2-3x4'. style(9) cleanup.

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

18 years agoinstall_state(): style(9) cleanup
oleg [Thu, 15 Jun 2006 08:54:29 +0000 (08:54 +0000)]
install_state(): style(9) cleanup

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

18 years agoo Expand an exclusive lock scope to prevent a race between two
maxim [Thu, 15 Jun 2006 08:53:09 +0000 (08:53 +0000)]
o Expand an exclusive lock scope to prevent a race between two
simultaneous module_register().

Original work done by: Alex Lyashkov
Reviewed by: jhb
MFC after: 2 weeks

18 years agoMerge NetBSD's revision 1.86: Don't crash on "<cmd> | { }".
stefanf [Thu, 15 Jun 2006 07:57:05 +0000 (07:57 +0000)]
Merge NetBSD's revision 1.86:  Don't crash on "<cmd> | { }".

18 years agoImplement the PS4 variable which is defined by the POSIX User Portability
stefanf [Thu, 15 Jun 2006 07:00:49 +0000 (07:00 +0000)]
Implement the PS4 variable which is defined by the POSIX User Portability
Utilities option.  Its value is printed at the beginning of the line if tracing
(-x) is active.  PS4 defaults to the string "+ " which is compatible with the
old behaviour to always print "+ ".

We still need to expand variables in PS1, PS2 and PS4.

PR: 46441 (part of)
Submitted by: schweikh
Obtained from: NetBSD

18 years agoUse scheduler API sched_relinquish() to implement yield() syscall.
davidxu [Thu, 15 Jun 2006 06:41:57 +0000 (06:41 +0000)]
Use scheduler API sched_relinquish() to implement yield() syscall.

18 years agoAdd scheduler API sched_relinquish(), the API is used to implement
davidxu [Thu, 15 Jun 2006 06:37:39 +0000 (06:37 +0000)]
Add scheduler API sched_relinquish(), the API is used to implement
yield() and sched_yield() syscalls. Every scheduler has its own way
to relinquish cpu, the ULE and CORE schedulers have two internal run-
queues, a timesharing thread which calls yield() syscall should be
moved to inactive queue.

18 years agoRemove mpte optimization from pmap_enter_quick().
ups [Thu, 15 Jun 2006 01:01:06 +0000 (01:01 +0000)]
Remove mpte optimization from pmap_enter_quick().
There is a race with the current locking scheme and removing
it should have no measurable performance impact.
This fixes page faults leading to panics in pmap_enter_quick_locked()
on amd64/i386.

Reviewed by: alc,jhb,peter,ps

18 years agoBump the version of src/etc/sendmail/freebsd*mc so mergemaster will
gshapiro [Wed, 14 Jun 2006 23:03:41 +0000 (23:03 +0000)]
Bump the version of src/etc/sendmail/freebsd*mc so mergemaster will
merge /etc/mail/freebsd*cf

Submitted by: Rostislav Krasny

18 years agoMuch to my surprise, IFQ_DRV_DEQUEUE() can return a null mbuf even if
gallatin [Wed, 14 Jun 2006 19:32:00 +0000 (19:32 +0000)]
Much to my surprise, IFQ_DRV_DEQUEUE() can return a null mbuf even if
!IFQ_DRV_IS_EMPTY().  Taking this into account,  I re-structured the
transmit routine so as to avoid adding another if/then in the
critical path.

Thanks to brueffer for showing my how to test with altq/pf.

18 years ago- new sentence -> new line
brueffer [Wed, 14 Jun 2006 18:26:34 +0000 (18:26 +0000)]
- new sentence -> new line
- s/freebsd/FreeBSD/ for consistency
- eol and eof whitespace removed

18 years agoReplace a sc->ifp->if_snd.ifq_drv_maxlen with IFQ_SET_MAXLEN(),
gallatin [Wed, 14 Jun 2006 17:52:30 +0000 (17:52 +0000)]
Replace a sc->ifp->if_snd.ifq_drv_maxlen with IFQ_SET_MAXLEN(),
and call IFQ_SET_READY().

Submitted by: brueffer

18 years agoCorrect an error in the previous revision that could lead to a panic:
alc [Wed, 14 Jun 2006 17:48:45 +0000 (17:48 +0000)]
Correct an error in the previous revision that could lead to a panic:
Found mapped cache page.  Specifically, if cnt.v_free_count dips below
cnt.v_free_reserved after p_start has been set to a non-NULL value,
then vm_map_pmap_enter() would break out of the loop and incorrectly
call pmap_enter_object() for the remaining address range.  To correct
this error, this revision truncates the address range so that
pmap_enter_object() will not map any cache pages.

In collaboration with: tegge@
Reported by: kris@

18 years agoRemove the initial myri10ge driver, now that it has been
gallatin [Wed, 14 Jun 2006 17:07:21 +0000 (17:07 +0000)]
Remove the initial myri10ge driver, now that it has been
renamed mxge.

18 years ago- Document FreeBSD-SA-06:17.sendmail.
hrs [Wed, 14 Jun 2006 16:53:35 +0000 (16:53 +0000)]
- Document FreeBSD-SA-06:17.sendmail.
- Split an item of sendmail import since 8.13.7 is not merged yet.

18 years agoRecord sendmail 8.13.7 import
gshapiro [Wed, 14 Jun 2006 16:34:39 +0000 (16:34 +0000)]
Record sendmail 8.13.7 import

18 years agoUpdate FreeBSD info regarding sendmail 8.13.7 import
gshapiro [Wed, 14 Jun 2006 16:33:59 +0000 (16:33 +0000)]
Update FreeBSD info regarding sendmail 8.13.7 import

18 years agoResolve conflicts from sendmail 8.13.7 import
gshapiro [Wed, 14 Jun 2006 16:25:31 +0000 (16:25 +0000)]
Resolve conflicts from sendmail 8.13.7 import

18 years agoUpdate the mxge driver.
gallatin [Wed, 14 Jun 2006 16:23:17 +0000 (16:23 +0000)]
Update the mxge driver.

- Update the firmware to the latest released firmware
  (1.4.3), which corresponds to the firmware in the
  latest shipping drivers from Myricom.  This firmware
  fixes several bugs in the firmware's PCI-e implementation,
  and it also changes the driver/firmware interface:

  o TSO was added, and changed the format of the transmit
    descriptors.
  o The firmware no longer counts transmits descriptors,
    but frames.  So the driver needs to keep a count
    of the number of frames sent.
  o The weird interrupt strategy changed to a normal receive
    return ring.  This ring is much bigger, and we may be
    able to support DEVICE_POLLING.
  o Myricom's header files changed the name of firmware
    related #define's and enums (s/_MCP_/FW_).

- Stopped spamming the console with lots of printfs unless
  mxge_verbose (or bootverbose) is set.

- Made additional information available via sysctl, including
  the results of a PCI-e DMA benchmark run at device reset.

- Decreased the excessively long timeouts when sending commands
  from 2 seconds to 20ms.

Sponsored by: Myricom Inc.

18 years agoThis commit was generated by cvs2svn to compensate for changes in r159609,
gshapiro [Wed, 14 Jun 2006 16:23:02 +0000 (16:23 +0000)]
This commit was generated by cvs2svn to compensate for changes in r159609,
which included commits to RCS files with non-trunk default branches.

18 years agoImport sendmail 8.13.7
gshapiro [Wed, 14 Jun 2006 16:23:02 +0000 (16:23 +0000)]
Import sendmail 8.13.7

Security: FreeBSD-SA-06:17.sendmail

18 years agoChange the myri10ge dev entity and all consumers to mxge.
brueffer [Wed, 14 Jun 2006 15:32:50 +0000 (15:32 +0000)]
Change the myri10ge dev entity and all consumers to mxge.

18 years agoo Revert a previous delta as strlcpy(3) operates with NUL-terminated
maxim [Wed, 14 Jun 2006 15:09:52 +0000 (15:09 +0000)]
o Revert a previous delta as strlcpy(3) operates with NUL-terminated
strings and cp is not.  Fix logic in the original code and eliminate
core dumps on lines without '\n'.

18 years agoo Replace (an incorrect) string copy gymnastics with strlcpy(3).
maxim [Wed, 14 Jun 2006 11:45:01 +0000 (11:45 +0000)]
o Replace (an incorrect) string copy gymnastics with strlcpy(3).

PR: bin/98905
Submitted by: Fabian Keil
MFC after: 1 week

18 years agoFix byteorder of syncpeer and make it actually work.
mlaier [Wed, 14 Jun 2006 11:11:54 +0000 (11:11 +0000)]
Fix byteorder of syncpeer and make it actually work.

Submitted by: glebius
MFC after: 1 week

18 years agoFix spelling.
joel [Wed, 14 Jun 2006 08:32:25 +0000 (08:32 +0000)]
Fix spelling.

18 years agoClear ke_runq before calling maybe_preempt, this avoids a
davidxu [Wed, 14 Jun 2006 03:46:03 +0000 (03:46 +0000)]
Clear ke_runq before calling maybe_preempt, this avoids a
KASSERT(ke->ke_runq == NULL) panic when the sched_add is recursively
called by maybe_preempt.

Reported by: Wojciech A. Koszek < dunstan at freebsd dot czest dot pl >

18 years agoUnexpand an instance of TAILQ_EMPTY()
delphij [Wed, 14 Jun 2006 03:14:26 +0000 (03:14 +0000)]
Unexpand an instance of TAILQ_EMPTY()

18 years agoUnbreak build on platforms that don't have uart_sab82532 and uart_z8530
marcel [Wed, 14 Jun 2006 03:03:08 +0000 (03:03 +0000)]
Unbreak build on platforms that don't have uart_sab82532 and uart_z8530
for uart(4) by default, but have scc(4).

18 years agoUnbreak 64-bit architectures. The 3rd argument to kern_kldload() is
marcel [Wed, 14 Jun 2006 03:01:06 +0000 (03:01 +0000)]
Unbreak 64-bit architectures. The 3rd argument to kern_kldload() is
a pointer to an integer and td->td_retval[0] is of type register_t.
On 64-bit architectures register_t is wider than an integer.

18 years agoIf bpf(4) has not been compiled into the kernel, initialize the bpf interface
csjp [Wed, 14 Jun 2006 02:23:28 +0000 (02:23 +0000)]
If bpf(4) has not been compiled into the kernel, initialize the bpf interface
pointer to a zeroed, statically allocated bpf_if structure. This way the
LIST_EMPTY() macro will always return true. This allows us to remove the
additional unconditional memory reference for each packet in the fast path.

Discussed with: sam

18 years agoAdd a manpage for the CORE scheduler.
delphij [Wed, 14 Jun 2006 02:16:51 +0000 (02:16 +0000)]
Add a manpage for the CORE scheduler.

18 years agoFox a typo in sched_is_timeshare.
davidxu [Tue, 13 Jun 2006 23:45:59 +0000 (23:45 +0000)]
Fox a typo in sched_is_timeshare.