]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years agoDocument the -32 switch available on amd64.
John Baldwin [Fri, 11 Nov 2005 20:29:50 +0000 (20:29 +0000)]
Document the -32 switch available on amd64.

Submitted by: Steve Kargl sgk at troutmask dot apl dot washington dot edu
MFC after: 1 week

18 years agoFix a bug in dlinfo(RTLD_DI_SERINFOSIZE) requests. For each search path
John Baldwin [Fri, 11 Nov 2005 19:57:41 +0000 (19:57 +0000)]
Fix a bug in dlinfo(RTLD_DI_SERINFOSIZE) requests.  For each search path
we included the length of the path in the returned size but not the length
of the associated Dl_serpath structure.  Without this fix, programs
attempting to allocate a structure to hold the search path information
would allocate too small of a buffer and rtld would overrun the buffer
while filling it via a subsequent RTLD_DI_SERINFO request.

Submitted by: "William K. Josephson" wkj at morphisms dot net
Reviewed by: jdp
MFC after: 2 weeks

18 years agoAdd dev/speaker into include/ tree
Xin LI [Fri, 11 Nov 2005 17:38:10 +0000 (17:38 +0000)]
Add dev/speaker into include/ tree

18 years agoSince speaker.h now lives in sys/dev/speaker, reflect this fact here.
Xin LI [Fri, 11 Nov 2005 16:48:01 +0000 (16:48 +0000)]
Since speaker.h now lives in sys/dev/speaker, reflect this fact here.

18 years agoUpdate PCI ids to add the E200, E200i, P400, and P400i storage
Paul Saab [Fri, 11 Nov 2005 16:45:33 +0000 (16:45 +0000)]
Update PCI ids to add the E200, E200i, P400, and P400i storage
controllers.  Remove the E400 since it is not a real product.

Submitted by: HP

18 years ago- Store pointer to the link-level address right in "struct ifnet"
Ruslan Ermilov [Fri, 11 Nov 2005 16:04:59 +0000 (16:04 +0000)]
- Store pointer to the link-level address right in "struct ifnet"
  rather than in ifindex_table[]; all (except one) accesses are
  through ifp anyway.  IF_LLADDR() works faster, and all (except
  one) ifaddr_byindex() users were converted to use ifp->if_addr.

- Stop storing a (pointer to) Ethernet address in "struct arpcom",
  and drop the IFP2ENADDR() macro; all users have been converted
  to use IF_LLADDR() instead.

18 years agoOnly signo should be marked with .Fa.
David Xu [Fri, 11 Nov 2005 14:52:06 +0000 (14:52 +0000)]
Only signo should be marked with .Fa.

18 years agoList /boot/device.hints entries for the second joystick.
Jean-Yves Lefort [Fri, 11 Nov 2005 12:53:37 +0000 (12:53 +0000)]
List /boot/device.hints entries for the second joystick.

Approved by: joel

18 years agoUse the more appropriate ifnet_byindex() instead of ifaddr_byindex().
Ruslan Ermilov [Fri, 11 Nov 2005 12:32:49 +0000 (12:32 +0000)]
Use the more appropriate ifnet_byindex() instead of ifaddr_byindex().

18 years agoCatch up with IFP2ENADDR() type change (array -> pointer).
Ruslan Ermilov [Fri, 11 Nov 2005 12:17:31 +0000 (12:17 +0000)]
Catch up with IFP2ENADDR() type change (array -> pointer).

18 years agoAdd definitions for 64-bit PTEs
Peter Grehan [Fri, 11 Nov 2005 12:03:28 +0000 (12:03 +0000)]
Add definitions for 64-bit PTEs

18 years agoRename GEOM class kernel module g_md.ko to geom_md.ko for consistency
Pawel Jakub Dawidek [Fri, 11 Nov 2005 11:31:23 +0000 (11:31 +0000)]
Rename GEOM class kernel module g_md.ko to geom_md.ko for consistency
with the rest.

mdconfig.c: Simplify mdmaybeload() function.
mdioctl.h: Removed (now unused) #define.
loader.conf: Sort GEOM classes properly.

OK'ed by: phk

18 years agoForce this interface to be RUNNING.
Gleb Smirnoff [Fri, 11 Nov 2005 11:17:57 +0000 (11:17 +0000)]
Force this interface to be RUNNING.

18 years agoAdd more GEOM classes to defaults/loader.conf. Add references to manual
Pawel Jakub Dawidek [Fri, 11 Nov 2005 10:48:30 +0000 (10:48 +0000)]
Add more GEOM classes to defaults/loader.conf. Add references to manual
pages to those already present.

Reviewed by: brueffer

18 years agoAdd /dev/speaker support to amd64.
Ruslan Ermilov [Fri, 11 Nov 2005 09:57:32 +0000 (09:57 +0000)]
Add /dev/speaker support to amd64.

The following repo-copies were made (by Mark Murray):

sys/i386/isa/spkr.c -> sys/dev/speaker/spkr.c
sys/i386/include/speaker.h -> sys/dev/speaker/speaker.h
share/man/man4/man4.i386/spkr.4 -> share/man/man4/spkr.4

18 years agoata_generic_hw takes a dev as a parameter, not a channel.
Peter Grehan [Fri, 11 Nov 2005 09:36:38 +0000 (09:36 +0000)]
ata_generic_hw takes a dev as a parameter, not a channel.

18 years agoFix compile warning: pmap_bootstrap is now declared extern in pmap.h,
Peter Grehan [Fri, 11 Nov 2005 09:32:27 +0000 (09:32 +0000)]
Fix compile warning: pmap_bootstrap is now declared extern in pmap.h,
remove redundant declaration.

18 years agoSome fixes for last commit.
Gleb Smirnoff [Fri, 11 Nov 2005 09:31:23 +0000 (09:31 +0000)]
Some fixes for last commit.

Submitted by: ru

18 years agoSkip .symbols files.
Ruslan Ermilov [Fri, 11 Nov 2005 08:13:18 +0000 (08:13 +0000)]
Skip .symbols files.

18 years agoFix plural.
Xin LI [Fri, 11 Nov 2005 08:00:44 +0000 (08:00 +0000)]
Fix plural.

18 years agoFix plural.
David Xu [Fri, 11 Nov 2005 07:50:51 +0000 (07:50 +0000)]
Fix plural.

18 years agoFix copy-paste issue.
David Xu [Fri, 11 Nov 2005 07:50:09 +0000 (07:50 +0000)]
Fix copy-paste issue.

18 years agoAdd POSIX timer manuals.
David Xu [Fri, 11 Nov 2005 07:48:38 +0000 (07:48 +0000)]
Add POSIX timer manuals.

18 years ago- Make IFP2ENADDR() a pointer to IF_LLADDR() rather than another
Ruslan Ermilov [Fri, 11 Nov 2005 07:36:14 +0000 (07:36 +0000)]
- Make IFP2ENADDR() a pointer to IF_LLADDR() rather than another
  copy of Ethernet address.

- Change iso88025_ifattach() and fddi_ifattach() to accept MAC
  address as an argument, similar to ether_ifattach(), to make
  this work.

18 years agoAdd descriptions about signal queue.
David Xu [Fri, 11 Nov 2005 05:40:39 +0000 (05:40 +0000)]
Add descriptions about signal queue.

18 years agoEr, highlight function wait().
David Xu [Fri, 11 Nov 2005 05:38:40 +0000 (05:38 +0000)]
Er, highlight function wait().

18 years agoAdd notes about queued SIGCHLD.
David Xu [Fri, 11 Nov 2005 05:30:48 +0000 (05:30 +0000)]
Add notes about queued SIGCHLD.

18 years agoAdd manuals for sigqueue, sigtimedwait, sigwaitinfo.
David Xu [Fri, 11 Nov 2005 03:13:25 +0000 (03:13 +0000)]
Add manuals for sigqueue, sigtimedwait, sigwaitinfo.

18 years agofix a crash when an nfsv2 mount fails
Jonathan Chen [Thu, 10 Nov 2005 23:25:16 +0000 (23:25 +0000)]
fix a crash when an nfsv2 mount fails

MFC after: 1 week

18 years agofixed a bug that uRPF does not work properly for an IPv6 packet bound for the sending...
SUZUKI Shinsuke [Thu, 10 Nov 2005 22:10:39 +0000 (22:10 +0000)]
fixed a bug that uRPF does not work properly for an IPv6 packet bound for the sending machine itself  (this is a bug introduced due to a change in ip6_input.c:Rev.1.83)

Pointed out by: Sean McNeil and J.R.Oldroyd
MFC after: 3 days

18 years agoApply the .PHONY attribute to the ../make*/make* targets. This
Ruslan Ermilov [Thu, 10 Nov 2005 21:03:58 +0000 (21:03 +0000)]
Apply the .PHONY attribute to the ../make*/make* targets.  This
causes them to be recreated (if needed) early, when doing "make
depend" here, before generating headers that depend on them.
This should fix breakages often seen while doing incremental
(NO_CLEAN) cross-builds.

18 years agoStart integrating Bluetooth into rc.d system.
Maksim Yevmenkin [Thu, 10 Nov 2005 19:09:22 +0000 (19:09 +0000)]
Start integrating Bluetooth into rc.d system.

Introduce /etc/rc.d/bluetooth script to start/stop Bluetooth devices. It
will be called from devd(8) in response to device arrival/departure events.
It is also possible to call it by hand to start/stop particular device
without unplugging it.

Introduce generic way to set configuration parameters for Bluetooth devices.
By default /etc/rc.d/bluetooth script has hardwired defaults compatible
with old rc.bluetooth from /usr/share/netgraph/bluetooth/examples. These
can be overridden using /etc/defaults/bluetooth.device.conf file (system
wide defaults). Finally, there could be another device specific override
file located in /etc/bluetooth/$device.conf (where $device is ubt0, btccc0
etc.)

The list of configuration parameters and their meaning described in the
/etc/defaults/bluetooth.device.conf file. Even though Bluetooth device
configuration files are not shell scripts, they must follow basic sh(1) syntax.

The bluetooth.device.conf(5) and handbook update will follow shortly.

Inspired by: Panagiotis Astithas ( past at ebs dot gr )
Reviewed by: brooks, yar
MFC after: 1 week

18 years agoAdd missing shared library interdependencies.
Ruslan Ermilov [Thu, 10 Nov 2005 18:07:07 +0000 (18:07 +0000)]
Add missing shared library interdependencies.

18 years agoAs for __kernel_cosf() and __kernel_sinf(), use a fairly optimal minimax
Bruce Evans [Thu, 10 Nov 2005 17:43:49 +0000 (17:43 +0000)]
As for __kernel_cosf() and __kernel_sinf(), use a fairly optimal minimax
polynomial for __kernel_tanf().  The old one was the double-precision
polynomial with coefficients truncated to float.  Truncation is not
a good way to convert minimax polynomials to lower precision.  Optimize
for efficiency and use the lowest-degree polynomial that gives a
relative error of less than 1 ulp.  It has degree 13 instead of 27,
and happens to be 2.5 times more accurate (in infinite precision) than
the old polynomial (the maximum error is 0.017 ulps instead of 0.041
ulps).

Unlike for cosf and sinf, the old accuracy was close to being inadequate
-- the polynomial for double precision has a max error of 0.014 ulps
and nearly this small an error is needed.  The new accuracy is also a
bit small, but exhaustive checking shows that even the old accuracy
was enough.  The increased accuracy reduces the maximum relative error
in the final result on amd64 -O1 from 0.9588 ulps to 0.9044 ulps.

18 years agoCorrect a number of serious and closely related bugs in the UNIX domain
Robert Watson [Thu, 10 Nov 2005 16:06:04 +0000 (16:06 +0000)]
Correct a number of serious and closely related bugs in the UNIX domain
socket file descriptor garbage collection code, which is intended to
detect and clear cycles of orphaned file descriptors that are "in-flight"
in a socket when that socket is closed before they are received.  The
algorithm present was both run at poor times (resulting in recursion and
reentrance), and also buggy in the presence of parallelism.  In order to
fix these problems, make the following changes:

- When there are in-flight sockets and a UNIX domain socket is destroyed,
  asynchronously schedule the garbage collector, rather than running it
  synchronously in the current context.  This avoids lock order issues
  when the garbage collection code reenters the UNIX domain socket code,
  avoiding lock order reversals, deadlocks, etc.  Run the code
  asynchronously in a task queue.

- In the garbage collector, when skipping file descriptors that have
  entered a closing state (i.e., have f_count == 0), re-test the FDEFER
  flag, and decrement unp_defer.  As file descriptors can now transition
  to a closed state, while the garbage collector is running, it is no
  longer the case that unp_defer will remain an accurate count of
  deferred sockets in the mark portion of the GC algorithm.  Otherwise,
  the garbage collector will loop waiting waiting for unp_defer to reach
  zero, which it will never do as it is skipping file descriptors that
  were marked in an earlier pass, but now closed.

- Acquire the UNIX domain socket subsystem lock in unp_discard() when
  modifying the unp_rights counter, or a read/write race is risked with
  other threads also manipulating the counter.

While here:

- Remove #if 0'd code regarding acquiring the socket buffer sleep lock in
  the garbage collector, this is not required as we are able to use the
  socket buffer receive lock to protect scanning the receive buffer for
  in-flight file descriptors on the socket buffer.

- Annotate that the description of the garbage collector implementation
  is increasingly inaccurate and needs to be updated.

- Add counters of the number of deferred garbage collections and recycled
  file descriptors.  This will be removed and is here temporarily for
  debugging purposes.

With these changes in place, the unp_passfd regression test now appears
to be passed consistently on UP and SMP systems for extended runs,
whereas before it hung quickly or panicked, depending on which bug was
triggered.

Reported by: Philip Kizer <pckizer at nostrum dot com>
MFC after: 2 weeks

18 years agoUse .Nx macro for NetBSD.
Tim Kientzle [Thu, 10 Nov 2005 15:42:51 +0000 (15:42 +0000)]
Use .Nx macro for NetBSD.

Thanks to: Ruslan Ermilov

18 years agoMention the non-standardness of the -I option in ls(1).
Maxime Henrion [Thu, 10 Nov 2005 14:26:50 +0000 (14:26 +0000)]
Mention the non-standardness of the -I option in ls(1).

Spotted by: ru
MFC after: 3 days

18 years agoAdd the f_msgcount field to the set of struct file fields printed in show
Robert Watson [Thu, 10 Nov 2005 13:26:29 +0000 (13:26 +0000)]
Add the f_msgcount field to the set of struct file fields printed in show
files.

MFC after: 1 week

18 years agos/Three file/Three files/
Hartmut Brandt [Thu, 10 Nov 2005 13:12:06 +0000 (13:12 +0000)]
s/Three file/Three files/

Submitted by: ru

18 years agoRemove hard sentence breaks. Correct the width calculation for the list
Hartmut Brandt [Thu, 10 Nov 2005 12:08:17 +0000 (12:08 +0000)]
Remove hard sentence breaks. Correct the width calculation for the list
indent.

Submitted by: ru

18 years agoDon't include bsd.init.mk so early - it's just not needed here.
Hartmut Brandt [Thu, 10 Nov 2005 12:07:12 +0000 (12:07 +0000)]
Don't include bsd.init.mk so early - it's just not needed here.
Use . instead of ${.OBJDIR}.
Move DEFSDIR and BMIBSDIR under the resp. .if clauses so that they
get defined only if DEFS and BMIBS are defined.

Submitted by: ru

18 years agoGive a try to autoconfiguring the number of transmit and receive
Gleb Smirnoff [Thu, 10 Nov 2005 11:44:37 +0000 (11:44 +0000)]
Give a try to autoconfiguring the number of transmit and receive
descriptors depending on chip revision.

18 years agoExpanet of details printed for each file descriptor to include it's
Robert Watson [Thu, 10 Nov 2005 11:35:59 +0000 (11:35 +0000)]
Expanet of details printed for each file descriptor to include it's
garbage collection flags.  Reformat generally to make this fit and
leave some room for future expansion.

MFC after: 1 week

18 years ago- Document last change to ARP behavior.
Gleb Smirnoff [Thu, 10 Nov 2005 11:35:53 +0000 (11:35 +0000)]
- Document last change to ARP behavior.
- Document several undocumented sysctl variables.
- Fix spelling of few diagnostics.

18 years agoAdd a DDB "show files" command to list the current open file list, some
Robert Watson [Thu, 10 Nov 2005 10:42:50 +0000 (10:42 +0000)]
Add a DDB "show files" command to list the current open file list, some
state about each open file, and identify the first process in the process
table that references the file.  This is helpful in debugging leaks of
file descriptors.

MFC after: 1 week

18 years agoBackout r1.11...
Ralf S. Engelschall [Thu, 10 Nov 2005 10:40:15 +0000 (10:40 +0000)]
Backout r1.11...

> >   There is no need to explicitly add "status" to $extra_commands in
> >   the /etc/rc.d/pf script as it is implicitly added by /etc/rc.subr's
> >   run_rc_command() because of the existing $pf_program.
> >
> >   Submitted by:   Christoph Schug <chris@schug.net>

...because as yar@ points out: "[...] you were relying on evil
side-effects of the variable being named *_program. hose side-effect
have been eliminated since rc.subr rev. 1.42. [...] The point is that
the default "status" method is for rc.d scripts that handle startup and
shutdown of conventional daemons, and not for custom tasks like the pf
case."

The change is still valid in RELENG_6 (and still doesn't have to be
backed out) as long as rc.subr:r1.42 is not MFC'ed to RELENG_6, too.

18 years agoadd set/read max address 48bit versions
Søren Schmidt [Thu, 10 Nov 2005 10:29:04 +0000 (10:29 +0000)]
add set/read max address 48bit versions

18 years agoUse the new bsd.snmpmod.mk makefile to build the modules. The -I pointers
Hartmut Brandt [Thu, 10 Nov 2005 10:14:57 +0000 (10:14 +0000)]
Use the new bsd.snmpmod.mk makefile to build the modules. The -I pointers
into the contrib directory are still necessary for some of the Makefiles,
because the C-sources there use non-canonical includes ("" includes) to get
at the header files.

18 years agoUse the canonical include name for snmpmod.h. The build infrastructure takes
Hartmut Brandt [Thu, 10 Nov 2005 10:12:01 +0000 (10:12 +0000)]
Use the canonical include name for snmpmod.h. The build infrastructure takes
already care to pick up the correct version of the file depending on how
we build.

18 years agoThis is a short man page which describes bsd.snmpmod.mk. It documents
Hartmut Brandt [Thu, 10 Nov 2005 10:09:42 +0000 (10:09 +0000)]
This is a short man page which describes bsd.snmpmod.mk. It documents
only the features that this file layers on top of bsd.lib.mk and should
therefore cross-reference to bsd.lib.mk, which doesn't exist.

18 years agoAdd a .mk file for building modules for the SNMP daemon. This may be
Hartmut Brandt [Thu, 10 Nov 2005 10:03:22 +0000 (10:03 +0000)]
Add a .mk file for building modules for the SNMP daemon. This may be
use in-tree as well as for 3rd party modules. This file is more or less
what was in usr.sbin/bsnmpd/modules/Makefile.inc with some modifications
and omissions. Usage examples can be found under usr.sbin/bsnmpd/modules/*.

Idea by: phk

18 years agoCredit NetBSD as the source for the /rescue concept.
Tim Kientzle [Thu, 10 Nov 2005 06:36:06 +0000 (06:36 +0000)]
Credit NetBSD as the source for the /rescue concept.
While I'm here, update my own email address.

Thanks to: Luke Mewburn for pointing out the oversight.

18 years agoSince union wait was removed in revision 1.17 (3 years, 5 months ago),
David Xu [Thu, 10 Nov 2005 05:00:20 +0000 (05:00 +0000)]
Since union wait was removed in revision 1.17 (3 years, 5 months ago),
type casting version of macro _W_INT is no longer needed.

Discussed with: yongari

18 years agoImplement RtlZeroMemory() and RtlCopyMemory(). This seems to allow
Bill Paul [Thu, 10 Nov 2005 02:22:55 +0000 (02:22 +0000)]
Implement RtlZeroMemory() and RtlCopyMemory(). This seems to allow
the Broadcom Win64 wireless driver for the BCM4318 to work on amd64.

18 years agoAdd a -I option to disable the automatic -A flag for the super-user.
Maxime Henrion [Thu, 10 Nov 2005 00:02:32 +0000 (00:02 +0000)]
Add a -I option to disable the automatic -A flag for the super-user.

PR: bin/86710
Submitted by: Marcus Alves Grando
MFC after: 3 days

18 years agoem(4) works on all archs now, so this can be removed.
Christian Brueffer [Wed, 9 Nov 2005 22:05:41 +0000 (22:05 +0000)]
em(4) works on all archs now, so this can be removed.

18 years agoThis is a workaround for a complicated issue involving VFS cookies and devfs.
Doug White [Wed, 9 Nov 2005 22:03:50 +0000 (22:03 +0000)]
This is a workaround for a complicated issue involving VFS cookies and devfs.
The PR and patch have the details. The ultimate fix requires architectural
changes and clarifications to the VFS API, but this will prevent the system
from panicking when someone does "ls /dev" while running in a shell under the
linuxulator.

This issue affects HEAD and RELENG_6 only.

PR: 88249
Submitted by: "Devon H. O'Dell" <dodell@ixsystems.com>
MFC after: 3 days

18 years agoFix typo in recent comment tweak.
Robert Watson [Wed, 9 Nov 2005 22:02:02 +0000 (22:02 +0000)]
Fix typo in recent comment tweak.

Submitted by: jkim
MFC after: 1 week

18 years agoAdd unix_passfd, a simple set of regression tests for UNIX domain socket
Robert Watson [Wed, 9 Nov 2005 21:41:20 +0000 (21:41 +0000)]
Add unix_passfd, a simple set of regression tests for UNIX domain socket
file descriptor passing.  These tests are not all currently passed.

18 years agoIn closef(), remove the assumption that there is a thread associated
Robert Watson [Wed, 9 Nov 2005 20:54:25 +0000 (20:54 +0000)]
In closef(), remove the assumption that there is a thread associated
with the file descriptor.  When a file descriptor is closed as a result
of garbage collecting a UNIX domain socket, the file descriptor will
not have any associated thread, so the logic to identify advisory locks
held by that thread is not appropriate.  Check the thread for NULL to
avoid this scenario.  Expand an existing comment to say a bit more about
this.

MFC after: 1 week

18 years agoUnbreak second joystick (joy1) support.
Jean-Yves Lefort [Wed, 9 Nov 2005 20:26:00 +0000 (20:26 +0000)]
Unbreak second joystick (joy1) support.

PR: kern/46734
Submitted by: Richard Airlie <richard@darq.net>
Approved by: netchild

18 years agoGeneral consensus is that it would be even better to run this in a
Warner Losh [Wed, 9 Nov 2005 16:22:56 +0000 (16:22 +0000)]
General consensus is that it would be even better to run this in a
thread context.  While it doesn't matter too much at the moment, in
the future we could be back in the same boat if/when more restrictions
are placed (or enforced) in a SWI.

Suggested by: njl, bde, jhb, scottl

18 years ago- Introduce two more stat counters, counting number of RX
Gleb Smirnoff [Wed, 9 Nov 2005 15:23:54 +0000 (15:23 +0000)]
- Introduce two more stat counters, counting number of RX
  overruns and number of watchdog timeouts.
- Do not log(9) RX overrun events, since this pessimizes
  things under load [1].
- Do not increase if->if_oerrors in em_watchdog(), since
  this leads to counter slipping back, when if->if_oerrors
  is recalculated in em_update_stats_counters(). Instead
  increase watchdog counter in em_watchdog() and take it
  into account in em_update_stats_counters().

Submitted by: ade [1]

18 years agoUse intptr_t casts to convert void * <--> int to make 64-bit archs happy.
John Baldwin [Wed, 9 Nov 2005 15:15:59 +0000 (15:15 +0000)]
Use intptr_t casts to convert void * <--> int to make 64-bit archs happy.

18 years agoAlign output.
Ruslan Ermilov [Wed, 9 Nov 2005 15:12:57 +0000 (15:12 +0000)]
Align output.

18 years agoMake IFP2NG() usable as an lvalue.
Ruslan Ermilov [Wed, 9 Nov 2005 13:34:43 +0000 (13:34 +0000)]
Make IFP2NG() usable as an lvalue.

18 years agoUse sparse initializers for "struct domain" and "struct protosw",
Ruslan Ermilov [Wed, 9 Nov 2005 13:29:16 +0000 (13:29 +0000)]
Use sparse initializers for "struct domain" and "struct protosw",
so they are easier to follow for the human being.

18 years agoMFi386: Remove obsolete options.
Yoshihiro Takahashi [Wed, 9 Nov 2005 12:26:37 +0000 (12:26 +0000)]
MFi386: Remove obsolete options.

18 years agoFix pc98 build.
Yoshihiro Takahashi [Wed, 9 Nov 2005 12:22:26 +0000 (12:22 +0000)]
Fix pc98 build.

18 years agoNo longer needed: replaced by mmu_if.m/pmap_dispatch.c/mmu_oea.c
Peter Grehan [Wed, 9 Nov 2005 10:28:51 +0000 (10:28 +0000)]
No longer needed: replaced by mmu_if.m/pmap_dispatch.c/mmu_oea.c

18 years agoAdd new ports-net-im collection.
Pav Lucistnik [Wed, 9 Nov 2005 10:16:26 +0000 (10:16 +0000)]
Add new ports-net-im collection.

18 years agoApply r1.103 to correct place.
Peter Grehan [Wed, 9 Nov 2005 09:54:33 +0000 (09:54 +0000)]
Apply r1.103 to correct place.

pmap.c on PowerPC is now a combo of mmu_if.m, pmap_dispatch.c
and mmu_oea.c

(I forgot to delete pmap.c from CVS in last jumbo commit)

18 years agoUncomment em(4) as it's now working.
Pyun YongHyeon [Wed, 9 Nov 2005 08:49:46 +0000 (08:49 +0000)]
Uncomment em(4) as it's now working.

18 years agoConnect em(4) build on sparc64.
Pyun YongHyeon [Wed, 9 Nov 2005 08:46:02 +0000 (08:46 +0000)]
Connect em(4) build on sparc64.

18 years agoMake em(4) work on big-endian architectures.
Pyun YongHyeon [Wed, 9 Nov 2005 08:43:18 +0000 (08:43 +0000)]
Make em(4) work on big-endian architectures.
 - disable jumbo frame support on strict alignment architectures due
   to the limitation of hardware. The driver needs a fix-up code for
   RX side. The fix will show up in near future.
 - fix endian issue for 82544 on PCI-X bus. I couldn't test this as
   I don't have the NIC/hardware.
 - prefer PCIR_BAR to hardcoded EM_MMBA.
 - Properly checks for for 64bit BAR [1]
 - replace inl/outl with bus_space(9) [1]
 - fix endian issue on VLAN handling.
 - reorder header files and remove unnecessary one.

Reviewed by: cognet
No response from: pdeuskar, tackerman
Obtained from: OpenBSD [1]

18 years agoReimplement the reclamation of PV entries. Specifically, perform
Alan Cox [Wed, 9 Nov 2005 08:19:21 +0000 (08:19 +0000)]
Reimplement the reclamation of PV entries.  Specifically, perform
reclamation synchronously from get_pv_entry() instead of
asynchronously as part of the page daemon.  Additionally, limit the
reclamation to inactive pages unless allocation from the PV entry zone
or reclamation from the inactive queue fails.  Previously, reclamation
destroyed mappings to both inactive and active pages.  get_pv_entry()
still, however, wakes up the page daemon when reclamation occurs.  The
reason being that the page daemon may move some pages from the active
queue to the inactive queue, making some new pages available to future
reclamations.

Print the "reclaiming PV entries" message at most once per minute, but
don't stop printing it after the fifth time.  This way, we do not give
the impression that the problem has gone away.

Reviewed by: tegge

18 years agoWIFxxx macros requires an int type but p_xstat is short, convert it
David Xu [Wed, 9 Nov 2005 07:58:16 +0000 (07:58 +0000)]
WIFxxx macros requires an int type but p_xstat is short, convert it
to int before using the macros.

Bug reported by : Pyun YongHyeon pyunyh at gmail dot com

18 years agoKick off the suspend sequence from the keyboard in a SWI rather than
Warner Losh [Wed, 9 Nov 2005 07:32:01 +0000 (07:32 +0000)]
Kick off the suspend sequence from the keyboard in a SWI rather than
in the hardware interrupt context (even if it is likely just an
ithread).  We don't document that suspend/resume routines are run from
such a context and some of the things that happen in those routines
aren't interrupt safe.  Since there's no real need to run from that
context, this restores assumptions that suspend routines have made.

This fixes Thierry Herbelot's 'Trying to sleep while sleeping is
prohibited' problem.

18 years agoClarify panic message, I parsed the old one 'trying to sleep while sleeping'
Warner Losh [Wed, 9 Nov 2005 07:28:52 +0000 (07:28 +0000)]
Clarify panic message, I parsed the old one 'trying to sleep while sleeping'

18 years agoRemove obsolete options
Warner Losh [Wed, 9 Nov 2005 04:30:55 +0000 (04:30 +0000)]
Remove obsolete options

18 years agoAdd support for XBOX to the FreeBSD port. The xbox architecture is
Warner Losh [Wed, 9 Nov 2005 03:55:40 +0000 (03:55 +0000)]
Add support for XBOX to the FreeBSD port.  The xbox architecture is
nearly identical to wintel/ia32, with a couple of tweaks.  Since it is
so similar to ia32, it is optionally added to a i386 kernel.  This
port is preliminary, but seems to work well.  Further improvements
will improve the interaction with syscons(4), port Linux nforce driver
and future versions of the xbox.

This supports the 64MB and 128MB boxes.  You'll need the most recent
CVS version of Cromwell (the Linux BIOS for the XBOX) to boot.

Rink will be maintaining this port, and is interested in feedback.
He's setup a website http://xbox-bsd.nl to report the latest
developments.

Any silly mistakes are my fault.

Submitted by: Rink P.W. Springer rink at stack dot nl and
Ed Schouten ed at fxq dot nl

18 years agoImprove diagnostic message.
Warner Losh [Wed, 9 Nov 2005 03:37:52 +0000 (03:37 +0000)]
Improve diagnostic message.

18 years agoFor nmount(), allow a text string error message to be propagated back
Craig Rodrigues [Wed, 9 Nov 2005 02:26:38 +0000 (02:26 +0000)]
For nmount(), allow a text string error message to be propagated back
to user-space if a parameter named "errmsg" is passed into the iovec.
Used in conjunction with vfs_mount_error(), more useful error messages
than errno can be passed back to userspace when mounting a filesystem
fails.

Discussed with: phk, pjd

18 years agoAdded list of supported 9xxxSX models.
Vinod Kashyap [Wed, 9 Nov 2005 00:23:54 +0000 (00:23 +0000)]
Added list of supported 9xxxSX models.

18 years agoIn aio_waitcomplete, do not return EAGAIN if no other threads
David Xu [Tue, 8 Nov 2005 23:48:32 +0000 (23:48 +0000)]
In aio_waitcomplete, do not return EAGAIN if no other threads
have started aio, instead, initialize aio management structure
if it hasn't been done, the reason to adjust this behavior is
to make it a bit friendly for threaded program, consider two
threads, one submits aio_write, and another just calls
aio_waitcomplete to wait any I/O to be completed and recycle the
aio requests, before submitter doing any I/O, the recycler wants
to wait in kernel. This also fixes inconsistency with other aio
syscalls.

18 years agoMake sure pending SIGCHLD is removed from previous parent when process
David Xu [Tue, 8 Nov 2005 23:28:12 +0000 (23:28 +0000)]
Make sure pending SIGCHLD is removed from previous parent when process
is attached or detached.

18 years agotwa corresponding to the 9.3.0.1 release on the 3ware website. This driver has
Vinod Kashyap [Tue, 8 Nov 2005 22:51:43 +0000 (22:51 +0000)]
twa corresponding to the 9.3.0.1 release on the 3ware website.  This driver has
support for the 9xxxSX controllers, along with the earlier 9xxxS series
controllers.

18 years agoThe hptmv inherently believes that a 'long' can hold a physical address.
Scott Long [Tue, 8 Nov 2005 22:12:26 +0000 (22:12 +0000)]
The hptmv inherently believes that a 'long' can hold a physical address.
This hasn't been true on i386 for at least a decade, probably longer, but
I'm too lazy to look up the exact year that PAE support was introduced.
Thus, this driver doesn't work on PAE.

X-MFC After: now

18 years agoIntroduce 3 new options for pkg_create(1), -x for using basic
Kirill Ponomarev [Tue, 8 Nov 2005 20:48:26 +0000 (20:48 +0000)]
Introduce 3 new options for pkg_create(1), -x for using basic
regular expressions for pkg-name, -E for extended regexps and -G for
exact matching.

Submitted by: mux
MFC after: 3 days

18 years agoMove the cloned interface list management in to if_clone. For some drivers the
Andrew Thompson [Tue, 8 Nov 2005 20:08:34 +0000 (20:08 +0000)]
Move the cloned interface list management in to if_clone. For some drivers the
softc lists and associated mutex are now unused so these have been removed.

Calling if_clone_detach() will now destroy all the cloned interfaces for the
driver and in most cases is all thats needed to unload.

Idea by: brooks
Reviewed by: brooks

18 years agoVarious and sundry cleanups:
John Baldwin [Tue, 8 Nov 2005 17:43:05 +0000 (17:43 +0000)]
Various and sundry cleanups:
- Use curthread for calls to knlist_delete() and add a big comment
  explaining why as well as appropriate assertions.
- Use TAILQ_FOREACH and TAILQ_FOREACH_SAFE instead of handrolling them.
- Use fget() family of functions to lookup file objects instead of
  grovelling around in file descriptor tables.
- Destroy the aio_freeproc mutex if we are unloaded.

Tested on: i386

18 years agoGiant clean up for exit(2)
Christian S.J. Peron [Tue, 8 Nov 2005 17:11:03 +0000 (17:11 +0000)]
Giant clean up for exit(2)

-Change unconditional aquisition of Giant to only pickup Giant if the vnode
 for the controlling tty resides on a non-mpsafe file system.
-Pickup Giant around executable vnode reference counting operations only if
 the executable resides on a non-mpsafe file system.
-If this process is being traced, pickup Giant for trace file reference count
 operations only if it resides on a non-mpsafe file system.

Discussed with: jhb
Tested by: kris

18 years agoFix standalone module build for viapm. Note that by default it doesn't
John Baldwin [Tue, 8 Nov 2005 17:03:09 +0000 (17:03 +0000)]
Fix standalone module build for viapm.  Note that by default it doesn't
include the ISA bus support even though it probably should.

18 years agoMollify the whitespace police
Warner Losh [Tue, 8 Nov 2005 15:42:12 +0000 (15:42 +0000)]
Mollify the whitespace police

18 years agoFix support for multiple RocketPort cards in the same machine by including
John Baldwin [Tue, 8 Nov 2005 15:33:39 +0000 (15:33 +0000)]
Fix support for multiple RocketPort cards in the same machine by including
the RocketPort unit number in the name of the devices.  This means that
unit 0 device names will change from ttyR0 .. ttyRf to ttyR00 .. ttyR0f.

Reviewed by: phk

18 years agoThere's no need to include <machine/asmacros.h> here.
Olivier Houchard [Tue, 8 Nov 2005 13:01:29 +0000 (13:01 +0000)]
There's no need to include <machine/asmacros.h> here.

18 years agoRework ARP retransmission algorythm so that ARP requests are
Gleb Smirnoff [Tue, 8 Nov 2005 12:05:57 +0000 (12:05 +0000)]
Rework ARP retransmission algorythm so that ARP requests are
retransmitted without suppression, while there is demand for
such ARP entry. As before, retransmission is rate limited to
one packet per second. Details:
  - Remove net.link.ether.inet.host_down_time
  - Do not set/clear RTF_REJECT flag on route, to
    avoid rt_check() returning error. We will generate error
    ourselves.
  - Return EWOULDBLOCK on first arp_maxtries failed
    requests , and return EHOSTDOWN/EHOSTUNREACH
    on further requests.
  - Retransmit ARP request always, independently from return
    code. Ratelimit to 1 pps.

18 years agoFix minor white space nit introduced in 1.102: use spaces, not tabs.
Robert Watson [Tue, 8 Nov 2005 09:53:28 +0000 (09:53 +0000)]
Fix minor white space nit introduced in 1.102: use spaces, not tabs.

18 years agoAdd code to test queued SIGCHLD.
David Xu [Tue, 8 Nov 2005 09:19:44 +0000 (09:19 +0000)]
Add code to test queued SIGCHLD.

18 years agoAdd support for queueing SIGCHLD same as other UNIX systems did.
David Xu [Tue, 8 Nov 2005 09:09:26 +0000 (09:09 +0000)]
Add support for queueing SIGCHLD same as other UNIX systems did.

For each child process whose status has been changed, a SIGCHLD instance
is queued, if the signal is stilling pending, and process changed status
several times, signal information is updated to reflect latest process
status. If wait() returns because the status of a child process is
available, pending SIGCHLD signal associated with the child process is
discarded. Any other pending SIGCHLD signals remain pending.

The signal information is allocated at the same time when proc structure
is allocated, if process signal queue is fully filled or there is a memory
shortage, it can still send the signal to process.

There is a booting time tunable kern.sigqueue.queue_sigchild which
can control the behavior, setting it to zero disables the SIGCHLD queueing
feature, the tunable will be removed if the function is proved that it is
stable enough.

Tested on: i386 (SMP and UP)