]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years agoFix a mutex lock/unlock mismatch.
David Xu [Wed, 1 Mar 2006 23:38:53 +0000 (23:38 +0000)]
Fix a mutex lock/unlock mismatch.

18 years agoTry to honor BUS_DMA_COHERENT : if the flag is set, normally allocate memory
Olivier Houchard [Wed, 1 Mar 2006 23:04:25 +0000 (23:04 +0000)]
Try to honor BUS_DMA_COHERENT : if the flag is set, normally allocate memory
with malloc() or contigmalloc() as usual, but try to re-map the allocated
memory into a VA outside the KVA, non-cached, thus making the calls to
bus_dmamap_sync() for these buffers useless.

18 years agoRemove NO_OBJ now that this makefile builds something.
Ruslan Ermilov [Wed, 1 Mar 2006 22:59:00 +0000 (22:59 +0000)]
Remove NO_OBJ now that this makefile builds something.

Noticed by: Andrzej Tobola

18 years agoUse a better panic message than lol.
Olivier Houchard [Wed, 1 Mar 2006 20:43:51 +0000 (20:43 +0000)]
Use a better panic message than lol.

18 years agoMake sure we decrement p_lock before leaving prefetch_abort_handler()
Olivier Houchard [Wed, 1 Mar 2006 20:42:47 +0000 (20:42 +0000)]
Make sure we decrement p_lock before leaving prefetch_abort_handler()

18 years agoAdd a note explaining what the rescue/ directory is for.
Ceri Davies [Wed, 1 Mar 2006 20:14:55 +0000 (20:14 +0000)]
Add a note explaining what the rescue/ directory is for.

PR: docs/93990
Submitted by: Ulf Lilleengen
MFC after: 3 days

18 years agoAssert proper use of bio_caller1, bio_caller2, bio_cflags, bio_driver1,
Pawel Jakub Dawidek [Wed, 1 Mar 2006 19:01:58 +0000 (19:01 +0000)]
Assert proper use of bio_caller1, bio_caller2, bio_cflags, bio_driver1,
bio_driver2 and bio_pflags fields.

Reviewed by: phk

18 years agoAdd new NTP servers for Taiwan.
Ceri Davies [Wed, 1 Mar 2006 18:37:41 +0000 (18:37 +0000)]
Add new NTP servers for Taiwan.

PR: bin/92160
Submitted by: Jose Liang <jose at jose dot idv pinkt tw>
Approved by: jhb
MFC After: 2 days

18 years agoProvide ability to disable kbdmux(4) with the hint.kbdmux.0.disabled="1" hint.
Maksim Yevmenkin [Wed, 1 Mar 2006 18:34:48 +0000 (18:34 +0000)]
Provide ability to disable kbdmux(4) with the hint.kbdmux.0.disabled="1" hint.
Document hint in the kbdmux(4) man page.

Requested by: scottl
MFC after: 1 day

18 years agouserret() now only takes 2 parameters.
Olivier Houchard [Wed, 1 Mar 2006 18:33:45 +0000 (18:33 +0000)]
userret() now only takes 2 parameters.

18 years agoTypo fix; "ing" -> "in".
Joseph Koshy [Wed, 1 Mar 2006 16:49:07 +0000 (16:49 +0000)]
Typo fix; "ing" -> "in".

18 years agoWrap keymap menu helper functions in #ifdef WITH_SYSCONS to unbreak the
John Baldwin [Wed, 1 Mar 2006 16:37:09 +0000 (16:37 +0000)]
Wrap keymap menu helper functions in #ifdef WITH_SYSCONS to unbreak the
build on archs that don't include syscons support in sysinstall.

Reported by: sparc64 tinderbox

18 years agoNote that ACPI_DEBUG depends on DDB.
Wojciech A. Koszek [Wed, 1 Mar 2006 16:31:37 +0000 (16:31 +0000)]
Note that ACPI_DEBUG depends on DDB.

Reviewed by: njl
Approved by: cognet (mentor)
MFC after: 3 days

18 years ago- Reduce needless DNS query by lookup only appropriate address
Hajimu UMEMOTO [Wed, 1 Mar 2006 16:13:17 +0000 (16:13 +0000)]
- Reduce needless DNS query by lookup only appropriate address
  family. [1]
- Specify appropriate hints to getaddrinfo(3). [1]
- Obtain address family from peername in inet mode.

Submitted by: Rostislav Krasny <rosti.bsd__at__gmail.com> [1]
Tested by: yar, Rostislav Krasny <rosti.bsd__at__gmail.com>
MFC after: 1 week

18 years agoHandle the errors returned by res_querydomain() in same manner.
Hajimu UMEMOTO [Wed, 1 Mar 2006 15:53:49 +0000 (15:53 +0000)]
Handle the errors returned by res_querydomain() in same manner.

Reported by: yar
Tested by: yar, Rostislav Krasny <rosti.bsd__at__gmail.com>
MFC after: 1 week

18 years agoCorrect a remote kernel panic when processing zero-length RPC records
Simon L. B. Nielsen [Wed, 1 Mar 2006 14:17:32 +0000 (14:17 +0000)]
Correct a remote kernel panic when processing zero-length RPC records
via TCP. [06:10]

Security: FreeBSD-SA-06:10.nfs
Approved by: cperciva

18 years agoDo not discard the current value of __MAKE_CONF when testing
Yaroslav Tykhiy [Wed, 1 Mar 2006 13:07:17 +0000 (13:07 +0000)]
Do not discard the current value of __MAKE_CONF when testing
whether MAKEOBJDIRPREFIX is set at a wrong place.

Reviewed by: ru
MFC after: 3 days

18 years agoUpdate low-level code. (to version 1.4)
Roman Kurakin [Wed, 1 Mar 2006 09:50:20 +0000 (09:50 +0000)]
Update low-level code. (to version 1.4)

Obtained from: Cronyx Engineering
MFC after: 3 days

18 years agoForgot to revert to use weak symbols when I was debugging, fix it!
David Xu [Wed, 1 Mar 2006 08:50:36 +0000 (08:50 +0000)]
Forgot to revert to use weak symbols when I was debugging, fix it!

18 years agoAdd missing parameter mq_attr * for mq_open.
David Xu [Wed, 1 Mar 2006 08:06:09 +0000 (08:06 +0000)]
Add missing parameter mq_attr * for mq_open.

18 years agoWork around the deadlock that occours when ATA waits for the taskqueue
Søren Schmidt [Wed, 1 Mar 2006 07:48:41 +0000 (07:48 +0000)]
Work around the deadlock that occours when ATA waits for the taskqueue
to call back for completition and something else is holding the taskqueue
waiting for ATA to return data.
This should clear up the "semaphore timeout !! DANGER Will Robinson !!"
in most situations, and log "taskqueue timeout - completing request directly"
instead, with a delayed "WARNING - freeing taskqueue zombie request" when
the taskqueue finally calls us back with the now stale request.
(It would have been nice if there was a way to remove a scheduled item from
 a taskqueue, but that is not currently implemented in the kernel).

A real fix for this is in the works but wont make it to 6.1RELEASE

definite MFC candidate.

18 years agoBig update to the iir driver:
Scott Long [Wed, 1 Mar 2006 07:24:39 +0000 (07:24 +0000)]
Big update to the iir driver:
- Don't use a common buffer in the softc to store per-command data.  Reserve
  a buffer in the command itself.
- Don't allocate DMA memory for the kernel command structures when all you
  really need is DMA memory for the scratch buffer embedded in them.  Instead
  allocate a slab for the scratch buffers and divide it up as needed.
- Call bus_dmamap_unload() at the completion of commands.
- Preserve and clear the CAM CCB status flags at completion.
- Reorder some low-level command operations to try to close races.
- Limit the simq to 32 commands for now.  There are some serious problems
  with the driver under load that are not well understood, so keeping the
  simq lower helps avoid this.  It has been tested at a higher value, but
  this is a safe value that doesn't show much performance degredation.

These changes allow the driver to work reliably with >4GB of memory on i386
and amd64, and also work around deadlocks seen under very high load in
certain situations.  The work-around is far from ideal, but without and
documentation it is hard to know what the right fix is.

MFC candidate

18 years agoRegenerate.
David Xu [Wed, 1 Mar 2006 06:49:38 +0000 (06:49 +0000)]
Regenerate.

18 years agos/timer_t/int/g
David Xu [Wed, 1 Mar 2006 06:48:31 +0000 (06:48 +0000)]
s/timer_t/int/g

18 years agoBring in my initial version of POSIX realtime extension library.
David Xu [Wed, 1 Mar 2006 06:37:34 +0000 (06:37 +0000)]
Bring in my initial version of POSIX realtime extension library.
Current the library implements mqueue, timer and aio with SIGEV_THREAD
notification supported.

Earlier version reviewed by: deischen

18 years agoDon't free ifaces yet, should fix a panic
Warner Losh [Wed, 1 Mar 2006 06:31:24 +0000 (06:31 +0000)]
Don't free ifaces yet, should fix a panic

18 years agoLet kernel POSIX timer code and mqueue code to use integer as a resource
David Xu [Wed, 1 Mar 2006 06:29:34 +0000 (06:29 +0000)]
Let kernel POSIX timer code and mqueue code to use integer as a resource
handle, the timer_t and mqd_t types will be a pointer which userland
will define it.

18 years agoDisconnect mqueue from buildworld, as I will implement it in seperated
David Xu [Wed, 1 Mar 2006 06:25:46 +0000 (06:25 +0000)]
Disconnect mqueue from buildworld, as I will implement it in seperated
library.

18 years agoguard function decls with _KERNEL so user code can include this file
Sam Leffler [Wed, 1 Mar 2006 05:59:56 +0000 (05:59 +0000)]
guard function decls with _KERNEL so user code can include this file

18 years agoIntegrate kbdmux(4) into syscons(4) and kbd code.
Maksim Yevmenkin [Tue, 28 Feb 2006 23:46:23 +0000 (23:46 +0000)]
Integrate kbdmux(4) into syscons(4) and kbd code.

By default syscons(4) will look for the kbdmux(4) keyboard first, and then,
if not found, look for any keyboard.

Current kbd code is modified so if kbdmux(4) is the current keyboard, all
new keyboards are automatically added to the kbdmux(4).

Switch to kbdmux(4) can be done at boot time, by loading kbdmux module at
the loader prompt, or at runtime, by kldload'ing the kbdmux module and
releasing current active keyboard.

If, for whatever reason, kbdmux(4) is not required/desired then just do
not load it and everything should work as before. It is also possible to
kldunload kbdmux at runtime and syscons(4) will automatically switch to
the first available keyboard.

No response from: freebsd-current@
MFC after: 1 day

18 years agoRework TCP window scaling (RFC1323) to properly scale the send window
Andre Oppermann [Tue, 28 Feb 2006 23:05:59 +0000 (23:05 +0000)]
Rework TCP window scaling (RFC1323) to properly scale the send window
right from the beginning and partly clean up the differences in handling
between SYN_SENT and SYN_RCVD (syncache).

Further changes to this code to come.  This is a first incremental step
to a general overhaul and streamlining of the TCP code.

PR: kern/15095
PR: kern/92690 (partly)
Reviewed by: qingli (and tested with ANVL)
Sponsored by: TCP/IP Optimization Fundraise 2005

18 years agoRework how we wire up interrupt sources to CPUs:
John Baldwin [Tue, 28 Feb 2006 22:24:55 +0000 (22:24 +0000)]
Rework how we wire up interrupt sources to CPUs:
- Throw out all of the logical APIC ID stuff.  The Intel docs are somewhat
  ambiguous, but it seems that the "flat" cluster model we are currently
  using is only supported on Pentium and P6 family CPUs.  The other
  "hierarchy" cluster model that is supported on all Intel CPUs with
  local APICs is severely underdocumented.  For example, it's not clear
  if the OS needs to glean the topology of the APIC hierarchy from
  somewhere (neither ACPI nor MP Table include it) and setup the logical
  clusters based on the physical hierarchy or not.  Not only that, but on
  certain Intel chipsets, even though there were 4 CPUs in a logical
  cluster, all the interrupts were only sent to one CPU anyway.
- We now bind interrupts to individual CPUs using physical addressing via
  the local APIC IDs.  This code has also moved out of the ioapic PIC
  driver and into the common interrupt source code so that it can be
  shared with MSI interrupt sources since MSI is addressed to APICs the
  same way that I/O APIC pins are.
- Interrupt source classes grow a new method pic_assign_cpu() to bind an
  interrupt source to a specific local APIC ID.
- The SMP code now tells the interrupt code which CPUs are avaiable to
  handle interrupts in a simpler and more intuitive manner.  For one thing,
  it means we could now choose to not route interrupts to HT cores if we
  wanted to (this code is currently in place in fact, but under an #if 0
  for now).
- For now we simply do static round-robin of IRQs to CPUs when the first
  interrupt handler just as before, with the change that IRQs are now
  bound to individual CPUs rather than groups of up to 4 CPUs.
- Because the IRQ to CPU mapping has now been moved up a layer, it would
  be easier to manage this mapping from higher levels.  For example, we
  could allow drivers to specify a CPU affinity map for their interrupts,
  or we could allow a userland tool to bind IRQs to specific CPUs.

The MFC is tentative, but I want to see if this fixes problems some folks
had with UP APIC kernels on 6.0 on SMP machines (an SMP kernel would work
fine, but a UP APIC kernel (such as GENERIC in RELENG_6) would lose
interrupts).

MFC after: 1 week

18 years agoFix numerous warnings. Aside from menu items in system.c and menu.c
John Baldwin [Tue, 28 Feb 2006 21:49:33 +0000 (21:49 +0000)]
Fix numerous warnings.  Aside from menu items in system.c and menu.c
this now compiles on i386 with WARNS?= 3.  Most of the fixes included
adding missing 'static' keywords to internal functions, using fully-defined
terminators in statically defined arrays of structs, and various
signed vs unsigned mismatches.  Also G/C'd unused configSecurity()
function.

18 years agoFix a c/p error.
Christian Brueffer [Tue, 28 Feb 2006 21:25:00 +0000 (21:25 +0000)]
Fix a c/p error.

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

18 years agoUse some helper macros for the device table so it can fit in 80 columns and
John Baldwin [Tue, 28 Feb 2006 21:12:16 +0000 (21:12 +0000)]
Use some helper macros for the device table so it can fit in 80 columns and
to allow us to use default values in some entries to quiet warnings.  This
table is actually readable again now.

18 years agoDrop unused major, minor, and delta values from device table.
John Baldwin [Tue, 28 Feb 2006 20:56:58 +0000 (20:56 +0000)]
Drop unused major, minor, and delta values from device table.

18 years agoG/C some cruft.
John Baldwin [Tue, 28 Feb 2006 20:34:50 +0000 (20:34 +0000)]
G/C some cruft.

18 years ago- Autogenerate a menu containing a list of countries and keymaps supported
John Baldwin [Tue, 28 Feb 2006 20:29:43 +0000 (20:29 +0000)]
- Autogenerate a menu containing a list of countries and keymaps supported
  by syscons.
- If we are running as init, popup the country menu before the main menu.
  If a non-default country is chosen, then a second menu is brought up
  to let the user choose a keymap.  By default the default keymap for
  the country that was selected is highlighted.  If the user chooses the
  default country, then the default keymap is just assumed and the user
  is not presented with the keymap menu.  Currently the default country
  is set to "United States" except for PC98 which assumes "Japan".

PR: bin/93853
Submitted by: Seth Kingsley sethk at magnesium dot net
MFC after: 3 days

18 years agoAllow PHOLD()'s of curproc even if P_WEXIT is set. Normally we don't want
John Baldwin [Tue, 28 Feb 2006 20:11:30 +0000 (20:11 +0000)]
Allow PHOLD()'s of curproc even if P_WEXIT is set.  Normally we don't want
to allow PHOLD()'s of processes that have P_WEXIT set as once that flag
is set we aren't guaranteed to block in exit1() waiting for the PRELE()
(we might already be past the wait).  However, curproc is a bit of a
special case.  By the time P_WEXIT is set, the process is single-threaded,
so the only thread for which can do a PHOLD(curproc) is the thread
executing in exit1().  The fact that this thread is executing ensures
that the process won't go away before the current hold is released via
PRELE().  This fixes some panics due to kicking off softupdate operations
inside of exit1() after the recent PHOLD changes to fix ptrace/procfs vs
exit races.

MFC after: 1 week
Tested by: pho

18 years agoupdate examples to use the correct terms that was never updated when the
John-Mark Gurney [Tue, 28 Feb 2006 19:58:57 +0000 (19:58 +0000)]
update examples to use the correct terms that was never updated when the
earlier descriptions were gone over...

MFC after: 3 days

18 years agoregen for 32bit sendfile
Paul Saab [Tue, 28 Feb 2006 19:39:52 +0000 (19:39 +0000)]
regen for 32bit sendfile

18 years agoFix 32bit sendfile by implementing kern_sendfile so that it takes
Paul Saab [Tue, 28 Feb 2006 19:39:18 +0000 (19:39 +0000)]
Fix 32bit sendfile by implementing kern_sendfile so that it takes
the header and trailers as iovec arguments instead of copying them
in inside of sendfile.

Reviewed by: jhb
MFC after: 3 weeks

18 years agowhen acpi does not explicitly enumerate lapic/cpu's there should
Sam Leffler [Tue, 28 Feb 2006 17:48:33 +0000 (17:48 +0000)]
when acpi does not explicitly enumerate lapic/cpu's there should
only be 1

Reviewed by: jhb

18 years agoConst'ify arguments to a couple of functions to fix breakage
Daniel Eischen [Tue, 28 Feb 2006 16:02:26 +0000 (16:02 +0000)]
Const'ify arguments to a couple of functions to fix breakage
with -O2.

18 years agouse standard mode instead of 500 for /sbin/init.
Luigi Rizzo [Tue, 28 Feb 2006 08:02:28 +0000 (08:02 +0000)]
use standard mode instead of 500 for /sbin/init.

As discussed on -current, there is no sensitive info in /sbin/init
to prevent reading it from non-privileged users, nor any reason to
remove the 'x' bit as the first thing the program does is check the
uid and exit if it is not run by root.

Instead (and this is why i make the change), mode 500 prevents
operation when exporting the partition without -maproot=0 to diskless
clients.

All previuos releases are affected by the same problem, so a merge
to RELENG_6 at least would be appropriate (after proper re@ approval
of course).

18 years agoFix mpt_reset to try mpt_hard_reset more than once, and to try
Matt Jacob [Tue, 28 Feb 2006 07:44:50 +0000 (07:44 +0000)]
Fix mpt_reset to try mpt_hard_reset more than once, and to try
mpt_soft_reset more than once. And to wait for MPT_DB_STATE_READY
twice. I mean, this is crucial- give the IOC a chance to get
ready.

If mpt_reset is called to reinit things, and we succeed, make
sure to re-enable interrupts. This is what has mostly led to
system lockup after having to hard reset the chip. Also, if
we think that interrupts aren't function in mpt_cam_timeout,
for goodness sake, turn them on again.

In read_cfg_header, return distinguishing errnos so the caller
can decide what's an error. It's *not* an error to fail to
read a RAID page from a non-RAID capable device like the FC929X.

Some whitespace fixes (removing spaces from ends of lines).

18 years agoDon't do a time travel to 12006...
Xin LI [Tue, 28 Feb 2006 07:36:25 +0000 (07:36 +0000)]
Don't do a time travel to 12006...

18 years agoReimplement mutex_init to get rid of compile warning.
David Xu [Tue, 28 Feb 2006 06:06:19 +0000 (06:06 +0000)]
Reimplement mutex_init to get rid of compile warning.

18 years agoMake ukbd(4) to not delay break scancodes in "raw" mode.
Maksim Yevmenkin [Tue, 28 Feb 2006 03:34:06 +0000 (03:34 +0000)]
Make ukbd(4) to not delay break scancodes in "raw" mode.

Developed with: Norbert Koch < NKoch at demig dot de >
No response from: freebsd-current@
Tested by: Norbert Koch < NKoch at demig dot de >
MFC after: 1 day

18 years agoFix up the Bridge Identifier field in the BPDU packet.
Andrew Thompson [Tue, 28 Feb 2006 00:13:24 +0000 (00:13 +0000)]
Fix up the Bridge Identifier field in the BPDU packet.

 - use the cu_bridge_id rather than the cu_rootid for the bridge address [1]
 - the memcmp return value is not signed so the wrong interface may have been
   selected
 - fix up the calculation of sc_bridge_id

PR: kern/93909 [1]
MFC after: 3 days

18 years agoCorrect the vnode locking in fdescfs.
Kris Kennaway [Tue, 28 Feb 2006 00:05:44 +0000 (00:05 +0000)]
Correct the vnode locking in fdescfs.

PR: kern/93905
Submitted by: Kostik Belousov <kostikbel@gmail.com>
Reviewed by: jeff
MFC After: 1 week

18 years agoGet this to compile with the recent UART changes.
Olivier Houchard [Mon, 27 Feb 2006 23:19:13 +0000 (23:19 +0000)]
Get this to compile with the recent UART changes.

18 years agoBump a date in .Dd field. Last change brought some new functionality.
Wojciech A. Koszek [Mon, 27 Feb 2006 22:48:58 +0000 (22:48 +0000)]
Bump a date in .Dd field. Last change brought some new functionality.

Spotted by: brueffer
Approved by: cognet (mentor)
MFC after: 1 week

18 years agoExtend kldunload(8) functionality and fix minor problems:
Wojciech A. Koszek [Mon, 27 Feb 2006 22:20:57 +0000 (22:20 +0000)]
Extend kldunload(8) functionality and fix minor problems:
o multiple modules can be unloaded at once (specified either by id or be
  module name)
o exit with EX_USAGE after usage() is called.
o remove unused variables, since we keep command line flags as bitmask,
  in 'opt'.
o 'kldload -n ...' does nothing. Add comment to this options.

Additionally:
o Update manual page to conform new functionality.
o Increace WARNS to 6. Because we can.

Approved by: cognet (mentor)
MFC after: 1 week

18 years agoStaticize a couple of functions.
Daniel Eischen [Mon, 27 Feb 2006 22:10:59 +0000 (22:10 +0000)]
Staticize a couple of functions.

Remove a few unused locks.

Remove locks from application namespace.

18 years agoCorrect a comment.
Daniel Eischen [Mon, 27 Feb 2006 22:08:16 +0000 (22:08 +0000)]
Correct a comment.

Staticize two tables thare are not visible in <resolv.h>
and which are also local in Solaris' libresolv.

Remove two functions that are not referenced in libc nor
anywhere else I can find, not visible in <resolv.h> and
which are also local in Solaris libresolv.

18 years agoDDB depends on KDB for some time now.
Christian Brueffer [Mon, 27 Feb 2006 21:56:24 +0000 (21:56 +0000)]
DDB depends on KDB for some time now.

Submitted by: Kent Stewart <kstewart@owt.com>
MFC after: 3 days

18 years agoBig style(9) fix. This commit brings no functional change.
Wojciech A. Koszek [Mon, 27 Feb 2006 21:55:47 +0000 (21:55 +0000)]
Big style(9) fix. This commit brings no functional change.

Approved by: cognet (mentor)
MFC after: 1 week

18 years agoPlug memory leak
Maksim Yevmenkin [Mon, 27 Feb 2006 21:47:38 +0000 (21:47 +0000)]
Plug memory leak

MFC after: 1 day

18 years agoA bandaid to unbreak world.
Ruslan Ermilov [Mon, 27 Feb 2006 20:46:34 +0000 (20:46 +0000)]
A bandaid to unbreak world.

18 years agoFix a botched commit that broke world.
Ruslan Ermilov [Mon, 27 Feb 2006 20:26:10 +0000 (20:26 +0000)]
Fix a botched commit that broke world.

18 years agoexplain what list chan displays
Sam Leffler [Mon, 27 Feb 2006 19:57:07 +0000 (19:57 +0000)]
explain what list chan displays

MFC after: 1 week

18 years agoSince we set the decription, we don't need to also print it. Noticed by: ru@
Warner Losh [Mon, 27 Feb 2006 19:40:37 +0000 (19:40 +0000)]
Since we set the decription, we don't need to also print it.  Noticed by: ru@

18 years agoDon't forget to free the ifaces when we free the ivars
Warner Losh [Mon, 27 Feb 2006 19:36:22 +0000 (19:36 +0000)]
Don't forget to free the ifaces when we free the ivars

18 years agoAvoid moving onto a new line while testing if there is a syslog priority
David Malone [Mon, 27 Feb 2006 19:13:47 +0000 (19:13 +0000)]
Avoid moving onto a new line while testing if there is a syslog priority
in the buffer. This isn't exactly the patch that Stephen submitted, but
is based on one of his suggestions.

PR: 93841
Submitted by: Stephen Montgomery-Smith <stephen@math.missouri.edu>
MFC after: 2 weeks

18 years agobackout 1.136 until we can resolve report that it causes output to stall
Sam Leffler [Mon, 27 Feb 2006 17:20:23 +0000 (17:20 +0000)]
backout 1.136 until we can resolve report that it causes output to stall

18 years agoThis patch fixes a problem, which exists if you have IPSEC in your kernel
Wojciech A. Koszek [Mon, 27 Feb 2006 16:56:22 +0000 (16:56 +0000)]
This patch fixes a problem, which exists if you have IPSEC in your kernel
and want to have crypto support loaded as KLD. By moving zlib to separate
module and adding MODULE_DEPEND directives, it is possible to use such
configuration without complication. Otherwise, since IPSEC is linked with
zlib (just like crypto.ko) you'll get following error:

interface zlib.1 already present in the KLD 'kernel'!

Approved by: cognet (mentor)

18 years agoConnect zlib to the build.
Wojciech A. Koszek [Mon, 27 Feb 2006 16:50:51 +0000 (16:50 +0000)]
Connect zlib to the build.

Approved by: cognet (mentor)

18 years agoDocument how to change the polling interval for the 64-bit interface
Hartmut Brandt [Mon, 27 Feb 2006 16:31:01 +0000 (16:31 +0000)]
Document how to change the polling interval for the 64-bit interface
counters in case an interface reports the wrong speed via if_mib.

18 years agoReconnect bsnmpd to the build. It was temporarily disable because of a
Hartmut Brandt [Mon, 27 Feb 2006 16:17:25 +0000 (16:17 +0000)]
Reconnect bsnmpd to the build. It was temporarily disable because of a
mis-import. Thanks for fixing this to markm@.

18 years agoThis commit was generated by cvs2svn to compensate for changes in r156066,
Hartmut Brandt [Mon, 27 Feb 2006 16:16:18 +0000 (16:16 +0000)]
This commit was generated by cvs2svn to compensate for changes in r156066,
which included commits to RCS files with non-trunk default branches.

18 years agoVirgin import of bsnmpd 1.12
Hartmut Brandt [Mon, 27 Feb 2006 16:16:18 +0000 (16:16 +0000)]
Virgin import of bsnmpd 1.12

18 years agoFix pmccontrol(8) on Intel Xeon's running in 64 bit mode.
Joseph Koshy [Mon, 27 Feb 2006 14:25:32 +0000 (14:25 +0000)]
Fix pmccontrol(8) on Intel Xeon's running in 64 bit mode.

PR: kern/93773

18 years agoCODA_COMPAT_5 may not be defined unconditionally in the coda5 module.
Yaroslav Tykhiy [Mon, 27 Feb 2006 12:04:13 +0000 (12:04 +0000)]
CODA_COMPAT_5 may not be defined unconditionally in the coda5 module.
Otherwise a kernel build would break in the coda5 module if the main
kernel conf file enabled CODA_COMPAT_5, too.  Redefined symbols are
strictly disallowed by -Werror.

To overcome this issue, introduce a different symbol indicating coda5
build, CODA5_MODULE, and translate it to CODA_COMPAT_5 appropriately
in /sys/coda/coda.h.

MFC after: 3 days

18 years agoAdd a man page for mkfilters(1) and put the corrected perl script in the
Darren Reed [Mon, 27 Feb 2006 11:22:20 +0000 (11:22 +0000)]
Add a man page for mkfilters(1) and put the corrected perl script in the
ipfilter usr/share directory

PR:     docs/26879

18 years agoDetect that the "audit" group is missing earlier during install.
Ruslan Ermilov [Mon, 27 Feb 2006 09:17:39 +0000 (09:17 +0000)]
Detect that the "audit" group is missing earlier during install.

18 years agoOne more grammar nit.
Gleb Smirnoff [Mon, 27 Feb 2006 07:22:32 +0000 (07:22 +0000)]
One more grammar nit.

Submitted by: ru

18 years agoDisable custom locking in the vkbd(4) for now and make it rely on the
Maksim Yevmenkin [Mon, 27 Feb 2006 06:17:48 +0000 (06:17 +0000)]
Disable custom locking in the vkbd(4) for now and make it rely on the
Giant mutex (just like the rest of keyboard drivers and syscons(4) do).

Tested by: markus
MFC after: 1 day

18 years agoAdd SWIDTH information for zh_CN.eucCN.
Xin LI [Mon, 27 Feb 2006 06:11:58 +0000 (06:11 +0000)]
Add SWIDTH information for zh_CN.eucCN.

Submitted by: ume
Obtained from: NetBSD
MFC Candidate.

18 years agoAdd the Tripp-Lite U209-000-R serial adapter.
Ian Dowse [Mon, 27 Feb 2006 01:01:27 +0000 (01:01 +0000)]
Add the Tripp-Lite U209-000-R serial adapter.

PR: usb/78543, usb/93347
MFC after: 1 week

18 years agoIt has not been possible to specify a dumpdev in loader.conf since 2002,
Kris Kennaway [Mon, 27 Feb 2006 00:15:53 +0000 (00:15 +0000)]
It has not been possible to specify a dumpdev in loader.conf since 2002,
so don't raise false hopes here.

18 years agoFix typo in manual page reference.
Wojciech A. Koszek [Sun, 26 Feb 2006 23:01:11 +0000 (23:01 +0000)]
Fix typo in manual page reference.

Approved by: cognet (mentor)
MFC after: 3 days

18 years agoReference sha256(1) instead of sha256(8), which doesn't exist.
Wojciech A. Koszek [Sun, 26 Feb 2006 22:59:40 +0000 (22:59 +0000)]
Reference sha256(1) instead of sha256(8), which doesn't exist.

Approved by: cognet (mentor)
MFC after: 3 days

18 years agoRemove the ill-considered effect of using the type definitions as
Matt Jacob [Sun, 26 Feb 2006 22:50:14 +0000 (22:50 +0000)]
Remove the ill-considered effect of using the type definitions as
distributed by LSI-Logic. For FreeBSD, just use the posix defines
instead of trying to figure out how wide an int is. Apologies to all.

18 years agopropagate role of device for ISP_GET_PDBINFO
Matt Jacob [Sun, 26 Feb 2006 22:40:56 +0000 (22:40 +0000)]
propagate role of device for ISP_GET_PDBINFO

18 years agoThe UQ_OPEN_CLEARSTALL entry added in revision 1.48 is no longer
Ian Dowse [Sun, 26 Feb 2006 22:20:45 +0000 (22:20 +0000)]
The UQ_OPEN_CLEARSTALL entry added in revision 1.48 is no longer
required now that we save the data toggle when closing a pipe.

Verified by: Fredrik Lindberg

18 years agoRemove OpenSSH and sendmail update notes; these updates were already
Bruce A. Mah [Sun, 26 Feb 2006 21:48:50 +0000 (21:48 +0000)]
Remove OpenSSH and sendmail update notes; these updates were already
present in 6.0-RELEASE and shouldn't be noted here.

18 years agoMove de driver to dev/de
Warner Losh [Sun, 26 Feb 2006 17:54:04 +0000 (17:54 +0000)]
Move de driver to dev/de

18 years agoRemove de driver from old location.
Warner Losh [Sun, 26 Feb 2006 17:52:51 +0000 (17:52 +0000)]
Remove de driver from old location.

18 years agoRepo copy de driver to dev/de, and adjust.
Warner Losh [Sun, 26 Feb 2006 17:52:04 +0000 (17:52 +0000)]
Repo copy de driver to dev/de, and adjust.

18 years agoMove de from pci to dev/de
Warner Losh [Sun, 26 Feb 2006 17:51:22 +0000 (17:51 +0000)]
Move de from pci to dev/de

18 years agoo Bump date (thanks ru)
Warner Losh [Sun, 26 Feb 2006 17:45:35 +0000 (17:45 +0000)]
o Bump date (thanks ru)
o Also, fdisk_pc98 appears to support -i, so add it to the man page.
o Ditto -v
o Change the name from PC partition table maintenance program to NEC PC-98x1
  partition table maintenance program, since it is possible to have a DOS MBR
  formatted disk on FreeBSD/pc98 now (although we don't install any tools for
  this).

18 years agoUse 'ipfw list' instead of 'ipfw l', since it's deprecated (and warning is
Wojciech A. Koszek [Sun, 26 Feb 2006 16:45:29 +0000 (16:45 +0000)]
Use 'ipfw list' instead of 'ipfw l', since it's deprecated (and warning is
printed on system startup).

Approved by: cognet (mentor)
MFC after: 3 days

18 years agoProvide SWIDTH information so that applications like tcsh(1) can properly
Xin LI [Sun, 26 Feb 2006 14:03:13 +0000 (14:03 +0000)]
Provide SWIDTH information so that applications like tcsh(1) can properly
handle with zh_CN.GBK locale, which is quite common for users who uses
Simplified Chinese.

MFC Candidate.

18 years ago1. Remove aio entry from lists earlier in aio_free_entry,
David Xu [Sun, 26 Feb 2006 12:56:23 +0000 (12:56 +0000)]
1. Remove aio entry from lists earlier in aio_free_entry,
   so other threads can not see it if we unlock the proc
   lock (this can happen in knlist_delete).  Don't do wakeup,
   it is not necessary.

2. Decrease kaio_buffer_count in biohelper rather than
   doing it in aio_bio_done_notify.

3. In aio_bio_done_notify, don't send notification if KAIO_RUNDOWN
   was set, because the process is already in single thread mode.

4. Use assignment to initialize aiothreadflags.

5. AIOCBLIST_RUNDOWN is not useful, axe the code using it.

6. use LIO_NOP instead of zero.

18 years agoFix several typos and trim spaces at eol.
Gleb Smirnoff [Sun, 26 Feb 2006 11:44:28 +0000 (11:44 +0000)]
Fix several typos and trim spaces at eol.

PR: kern/93759
Submitted by: Antoine Brodin <antoine.brodin laposte.net>

18 years agoShorten the time for waiting for TMF commands to complete- let's
Matt Jacob [Sun, 26 Feb 2006 07:46:09 +0000 (07:46 +0000)]
Shorten the time for waiting for TMF commands to complete- let's
not hang the system for 5 seconds. If a TMF doesn't complete within,
oh, say 500ms, that's enough.

Put in a printout to catch mpt_recover_commands being activated with
no commands.

18 years agoa) Delay for port enable to succeed should be 30 seconds (at least) for
Matt Jacob [Sun, 26 Feb 2006 07:44:31 +0000 (07:44 +0000)]
a) Delay for port enable to succeed should be 30 seconds (at least) for
*both* SAS and FC, not just SAS.

b) Don't tell the chip we want it to do FIFO signalling if we actually
don't set up the address where the FIFO signal is supposed to be written
(oops).

18 years agoFixes and new features:
Warner Losh [Sun, 26 Feb 2006 07:37:10 +0000 (07:37 +0000)]
Fixes and new features:
o Merge the -I switch from i386 verison to initialize the partition table
  to use the maximum amount possible for a single FreeBSD table.
o Improve warning when the geom method fails (which I think it
  always will until geom_pc98 is updated to respond to this ctl message)
o when writing out the boot sector, we have to write out a minimum of
  1024 bytes or the sector size.  This is different than the i386 case where
  we need to write out a minimum of 512 bytes (which is also the minimum
  sector size).  We already handle this difference on reading, but didn't
  in writing, so attempting to write a new partition table would fail.
o Add MID to the -s output, since pc98 users are likely interested in
  both of these parameters.

# I can now initialize disks on my pc98 machine either by -I or by
# manually entering the parameters.  I don't know if fdisk -B works or not,
# since I'm not willing to risk my only working boot disk to test it..

18 years agoSync inet_net_pton() and inet_net_ntop() with latest BIND9's includes
Hajimu UMEMOTO [Sun, 26 Feb 2006 05:44:21 +0000 (05:44 +0000)]
Sync inet_net_pton() and inet_net_ntop() with latest BIND9's includes
an IPv6 support.

PR: kern/93740
Submitted by: Rudolf Cejka <cejkar__at__fit.vutbr.cz>
Obtained from: BIND9
MFC after: 1 week