]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoadd safeguard against (bogus) null channel parameter
Sam Leffler [Sun, 29 Jun 2003 20:10:54 +0000 (20:10 +0000)]
add safeguard against (bogus) null channel parameter

21 years agoAdd vm object locking to vm_pageout_map_deactivate_pages().
Alan Cox [Sun, 29 Jun 2003 19:51:24 +0000 (19:51 +0000)]
Add vm object locking to vm_pageout_map_deactivate_pages().

21 years agoRemove pathnames.h.
Gordon Tetlow [Sun, 29 Jun 2003 19:03:52 +0000 (19:03 +0000)]
Remove pathnames.h.

Pointed out by: Mathieu Arnold <mat@mat.cc>

21 years agoTweak a couple of utilities so they compile cleanly for /rescue. Mostly
Gordon Tetlow [Sun, 29 Jun 2003 18:46:18 +0000 (18:46 +0000)]
Tweak a couple of utilities so they compile cleanly for /rescue. Mostly
path fixes.

Submitted by: Tim Kientzle <kientzle@acm.org>

21 years agoAdd /rescue bits. This basically encompasses all of bin and sbin along
Gordon Tetlow [Sun, 29 Jun 2003 18:35:37 +0000 (18:35 +0000)]
Add /rescue bits. This basically encompasses all of bin and sbin along
with a couple of bits from usr.bin in a crunchgen'd binary.

Submitted by: Tim Kientzle <kientzle@acm.org>

21 years agoAdd ${CRUNCH_CFLAGS} support for adding compile options to crunch
Gordon Tetlow [Sun, 29 Jun 2003 18:16:26 +0000 (18:16 +0000)]
Add ${CRUNCH_CFLAGS} support for adding compile options to crunch
components. This is generally considered a non-optimal solution but
it gets the job done for the /rescue case.

Submitted by: Tim Kientzle <kientzle@acm.org>

21 years agoMove path definitions to include/paths.h. This makes it easier to override
Gordon Tetlow [Sun, 29 Jun 2003 18:06:05 +0000 (18:06 +0000)]
Move path definitions to include/paths.h. This makes it easier to override
these definitions in the /rescue case.

Submitted by: Tim Kientzle <kientzle@acm.org>

21 years agoUgh. Remove debugging echo.
Mike Makonnen [Sun, 29 Jun 2003 17:59:09 +0000 (17:59 +0000)]
Ugh. Remove debugging echo.

21 years agoConvert fsck and mount to using execvP to find fsck_foo and mount_foo.
Gordon Tetlow [Sun, 29 Jun 2003 17:53:48 +0000 (17:53 +0000)]
Convert fsck and mount to using execvP to find fsck_foo and mount_foo.
This simplifies the code path and makes the default path easy to override
in the /rescue case.

Submitted by: Tim Kientzle <kientzle@acm.org>

21 years agoAdd a libc function execvP that takes the search path as an arguement.
Gordon Tetlow [Sun, 29 Jun 2003 17:33:34 +0000 (17:33 +0000)]
Add a libc function execvP that takes the search path as an arguement.
Change execvp to be a wrapper around execvP. This is necessary for some
of the /rescue pieces. It may also be more generally applicable as well.

Submitted by: Tim Kientzle <kientzle@acm.org>
Approved by: Silence on arch@

21 years agoIn order to set the MAC address on RealTek NICs, you must flip WRITECFG
Bill Paul [Sun, 29 Jun 2003 17:33:33 +0000 (17:33 +0000)]
In order to set the MAC address on RealTek NICs, you must flip WRITECFG
bit in the EEPROM mode register on. Also, the address must be written
in two 32-bit register accesses instead of 6 8-bit accesses.

Tested with my 8139B cardbus NIC.

PR: kern/35900
Submitted by: Mark Kettenis <kettenis@chello.nl>

21 years agoImplement fuword32() and suword32(). These functions are used in
Marcel Moolenaar [Sun, 29 Jun 2003 17:14:42 +0000 (17:14 +0000)]
Implement fuword32() and suword32(). These functions are used in
kern_thread.c. This is a best effort implementation.

21 years agoMake _thread_suspend work with both the old broken sigtimedwait
John Polstra [Sun, 29 Jun 2003 15:55:44 +0000 (15:55 +0000)]
Make _thread_suspend work with both the old broken sigtimedwait
implementation and the new improved one.  We now precompute the
signal set passed to sigtimedwait, using an inverted set when
necessary for compatibility with older kernels.

21 years agoBump __FreeBSD_version because the semantics of sigtimedwait and
John Polstra [Sun, 29 Jun 2003 15:51:38 +0000 (15:51 +0000)]
Bump __FreeBSD_version because the semantics of sigtimedwait and
sigwaitinfo have been corrected.  Some existing code relied on the
original broken semantics.

21 years agoUnbreak NOCRYPT buildworld.
Ruslan Ermilov [Sun, 29 Jun 2003 10:03:35 +0000 (10:03 +0000)]
Unbreak NOCRYPT buildworld.

Reviewed by: markm

21 years ago - Remove the calls to pmap_install() from pmap_object_init_pt(); they are
Alan Cox [Sun, 29 Jun 2003 06:10:32 +0000 (06:10 +0000)]
 - Remove the calls to pmap_install() from pmap_object_init_pt(); they are
   redundant.  Discussed with: marcel
 - MFi386: Add vm object locking to pmap_object_init_pt().

21 years agoImplement individual operations on static and dhcp interfaces. Previously
Mike Makonnen [Sun, 29 Jun 2003 05:34:41 +0000 (05:34 +0000)]
Implement individual operations on static and dhcp interfaces. Previously
network interfaces could only be turned on and off as a group (all
static interfaces or all dhcp interfaces).

When used to start the interface a 'long form' ifconfig output is
used to show the status of the interface, but when stopping an interface
the script will simply output the name of the interface. This is simply my
personal preference. Hopefully as this functionality matures we can
stabilize on a prefered form of output for these scripts.

A stop command to the dhclient script now explicitly releases the dhcp lease.
Behaviour at system shutdown; however, is unchanged since dhclient is not,
by default, run at that time. The client will not release its lease
at shutdown.

21 years agoo Hookup rc.d/routing and rc.d/netoptions
Mike Makonnen [Sun, 29 Jun 2003 05:15:57 +0000 (05:15 +0000)]
o Hookup rc.d/routing and rc.d/netoptions
o Ensure rc.d/network2 and rc.d/network3 are not automatically run
  during boot
o Modify script headers so rcorder(8) can put the two scripts in the
  correct sequence.

21 years agoo Repocopied routing and netoptions from network2 and network3, respectively.
Mike Makonnen [Sun, 29 Jun 2003 05:09:48 +0000 (05:09 +0000)]
o Repocopied routing and netoptions from network2 and network3, respectively.
o Change the provider names.
o Separate routing into two parts: static routing and routing options. The
  start command will run both parts, but they can be run separately using
  the static and options command, respectively:
  (/etc/rc.d/routing static; /etc/rc.d/routing options)

21 years agoXXX Copy workaround from UFS: open device for write access even if
Tim J. Robbins [Sun, 29 Jun 2003 03:05:59 +0000 (03:05 +0000)]
XXX Copy workaround from UFS: open device for write access even if
the user requests a read-only mount. This is necessary because we
don't do the VOP_OPEN again if they upgrade a read-only mount to
read-write.

Fixes lockup when creating files on msdosfs mounts that have been
mounted read-only then upgraded to read-write. The exact cause of
the lockup is not known, but it is likely to be the kernel getting
stuck in an infinite loop trying to write dirty buffers to a device
without write permission.

Reported/tested by andreas, discussed with phk.

21 years agoAllow the interrupt controller to be probed - this picks up the
Peter Grehan [Sun, 29 Jun 2003 02:05:19 +0000 (02:05 +0000)]
Allow the interrupt controller to be probed - this picks up the
Heathrow PIC, while not affecting the OpenPIC.

21 years agoModify the xl_reset() routine slightly so that, if we're using memory
Bill Paul [Sun, 29 Jun 2003 01:38:57 +0000 (01:38 +0000)]
Modify the xl_reset() routine slightly so that, if we're using memory
mapped I/O mode, we pause for .1 seconds after issuing the reset command
before trying to poll the 'command busy' bit in the status register.
With my 3c575C cardbus NIC, my Sony Picturebook locks up when it tries
to read the status register immediately after the reset. This appears
to be a problem only with certain NICs on certain hardware, but the
added delay should not hurt cards that already work.

This bug seems to have been brought to light by the fact that the xl
driver now defaults to memory mapped I/O mode instead of programmed
I/O mode like it used to. With PIO mode, the delay isn't needed and
everything works (which is why this NIC worked with 5.0-RELEASE but
not 5.1). I suspect that what's happening is that when the chip is
reset, it takes a little while for the memory-mapped decoding logic
to recover. Trying to access the chip's registers during this period
causes an error condition of some kind that wedges the system.

21 years agoAdd ath(4) devices. Also try to be more specific with respect to
Bruce A. Mah [Sun, 29 Jun 2003 01:12:57 +0000 (01:12 +0000)]
Add ath(4) devices.  Also try to be more specific with respect to
what variant of 802.11 is supported by some other devices.

21 years agoTeach fmtcheck(3) about the flags a, A, F, G, t, and z.
David Schultz [Sun, 29 Jun 2003 01:11:31 +0000 (01:11 +0000)]
Teach fmtcheck(3) about the flags a, A, F, G, t, and z.

21 years agoStart to fill in amd64 hardware notes based on info from peter.
Bruce A. Mah [Sun, 29 Jun 2003 01:10:45 +0000 (01:10 +0000)]
Start to fill in amd64 hardware notes based on info from peter.

Translators should be warned that this is somewhat of a moving
target, and so might want to consider holding off working on
this document.

21 years agoThe move to _retire() a thread in the GC instead of in the thread's
Mike Makonnen [Sun, 29 Jun 2003 00:12:40 +0000 (00:12 +0000)]
The move to _retire() a thread in the GC instead of in the thread's
exit function has invalidated the need for _spin[un]lock_pthread().
The _spin[un]lock() functions can now dereference curthread without
the danger that the ldtentry containing the pointer to the thread
has been cleared out from under them.

21 years agoHiten's patchset for section four manpages, slightly edited by me.
Ruslan Ermilov [Sat, 28 Jun 2003 23:53:39 +0000 (23:53 +0000)]
Hiten's patchset for section four manpages, slightly edited by me.

21 years agoAdd code to keep going if you're really intent on fingering someone, but
Juli Mallett [Sat, 28 Jun 2003 23:11:41 +0000 (23:11 +0000)]
Add code to keep going if you're really intent on fingering someone, but
can't use utmp(5).

21 years agoSynchronize usage() and SYNOPSIS, and fix them (flags are not
Ruslan Ermilov [Sat, 28 Jun 2003 22:30:46 +0000 (22:30 +0000)]
Synchronize usage() and SYNOPSIS, and fix them (flags are not
optional here).  Sort options.  Print the file name on error.

21 years agoPunctuation.
Ruslan Ermilov [Sat, 28 Jun 2003 22:18:45 +0000 (22:18 +0000)]
Punctuation.

21 years agomdoc(7) fix: Use the normal AT&T macro (.At) rather than its
Ruslan Ermilov [Sat, 28 Jun 2003 22:12:30 +0000 (22:12 +0000)]
mdoc(7) fix: Use the normal AT&T macro (.At) rather than its
internal string in the macro context.

21 years ago - Construct a cpu topology map for Hyper Threading systems so that ULE may
Jeff Roberson [Sat, 28 Jun 2003 22:07:42 +0000 (22:07 +0000)]
 - Construct a cpu topology map for Hyper Threading systems so that ULE may
   take advantage of them.

21 years ago - Add structures for defining cpu topologies more complex than SMP.
Jeff Roberson [Sat, 28 Jun 2003 22:06:19 +0000 (22:06 +0000)]
 - Add structures for defining cpu topologies more complex than SMP.
   smp_topology may be left NULL by architectures which have vanilla SMP
   setups.

21 years agoRemove GIANT_REQUIRED from kmem_malloc().
Alan Cox [Sat, 28 Jun 2003 22:04:52 +0000 (22:04 +0000)]
Remove GIANT_REQUIRED from kmem_malloc().

21 years agoSmall fixes for the IOMMU code:
Thomas Moestl [Sat, 28 Jun 2003 21:52:16 +0000 (21:52 +0000)]
Small fixes for the IOMMU code:

1.) Handle maximum segment sizes which are smaller than the IOMMU page
    size by splitting up pages across multiple segments if needed; this case
    was previously unimplemented, and would cause panics.
2.) KASSERT that the physical address is in range; remove a KASSERT that
    has become pointless.
3.) Add a comment describing what remains to be fixed in the IOMMU code;
    I plan to address these issues soon.

Desired by: dwhite (1)

21 years agoMFi386
Alan Cox [Sat, 28 Jun 2003 21:21:04 +0000 (21:21 +0000)]
MFi386
 Add vm object locking to pmap_object_init_pt().

21 years ago - Add vm object locking to vm_pageout_clean().
Alan Cox [Sat, 28 Jun 2003 20:07:54 +0000 (20:07 +0000)]
 - Add vm object locking to vm_pageout_clean().

21 years agoDon't use fuword() and suword() on struct members of type int. This
Marcel Moolenaar [Sat, 28 Jun 2003 19:45:15 +0000 (19:45 +0000)]
Don't use fuword() and suword() on struct members of type int. This
happens to work on 32-bit platforms as sizeof(long)=sizeof(int), but
wrecks all kinds of havoc (garbage reads, corrupting writes and
misaligned loads/stores) on 64-bit architectures.
The fix for now is to use fuword32() and suword32() and change the
type of the applicable int fields to int32. This is to make it
explicit that we depend on these fields being 32-bit. We may want
to revisit this later.

Reviewed by: deischen

21 years agoDon't map LINUX_POSIX_VDISABLE to _POSIX_VDISABLE and vice versa for
Marcel Moolenaar [Sat, 28 Jun 2003 19:32:07 +0000 (19:32 +0000)]
Don't map LINUX_POSIX_VDISABLE to _POSIX_VDISABLE and vice versa for
the VMIN and VTIME members of the c_cc array. These members are not
special control characters. By not excluding these members we
changed the noncanonical mode input processing when both members
were 0 on entry (=LINUX_POSIX_VDISABLE) as we would remap them to 255
(=_POSIX_VDISABLE). See termios(4) case A for how that screws up
your terminal I/O.

PR: 23173
Originator: Bjarne Blichfeldt <bbl@dk.damgaard.com>
Patch by: Boris Nikolaus <bn@dali.tellique.de> (original submission)
  Philipp Mergenthaler <philipp.mergenthaler@stud.uni-karlsruhe.de>
Reminders by: Joseph Holland King <gte743n@cad.gatech.edu>
MFC after: 5 days

21 years agoutmp.ut_time is not a time_t, do not pass a pointer to it to pr_attime().
Peter Wemm [Sat, 28 Jun 2003 19:11:42 +0000 (19:11 +0000)]
utmp.ut_time is not a time_t, do not pass a pointer to it to pr_attime().

21 years agobring in ath-specific test tool; more to follow
Sam Leffler [Sat, 28 Jun 2003 18:26:23 +0000 (18:26 +0000)]
bring in ath-specific test tool; more to follow

21 years agocorrect bus-isicty of D-Link cards
Sam Leffler [Sat, 28 Jun 2003 17:59:37 +0000 (17:59 +0000)]
correct bus-isicty of D-Link cards

Submitted by: Stefan =?iso-8859-1?Q?E=DFer?= <se@freebsd.org>

21 years agoupdate to new 802.11 support
Sam Leffler [Sat, 28 Jun 2003 17:57:30 +0000 (17:57 +0000)]
update to new 802.11 support

21 years agoCatch up with the English version:
Hiroki Sato [Sat, 28 Jun 2003 17:45:25 +0000 (17:45 +0000)]
Catch up with the English version:

1.159 -> 1.162 hardware/common/dev.sgml

21 years agoMerge the following from the English version:
Hiroki Sato [Sat, 28 Jun 2003 17:38:02 +0000 (17:38 +0000)]
Merge the following from the English version:

1.5   -> 1.6   hardware/Makefile
(new) -> 1.1   hardware/amd64/Makefile
(new) -> 1.1   hardware/amd64/article.sgml
(new) -> 1.1   hardware/amd64/proc-amd64.sgml
1.4   -> 1.5   hardware/common/hw.ent
1.5   -> 1.6   relnotes/Makefile
(new) -> 1.1   relnotes/amd64/Makefile
(new) -> 1.1   relnotes/amd64/article.sgml

21 years agoAdd reference to CAM.
Hidetoshi Shimokawa [Sat, 28 Jun 2003 15:43:27 +0000 (15:43 +0000)]
Add reference to CAM.

21 years agoname union.
Hajimu UMEMOTO [Sat, 28 Jun 2003 15:37:04 +0000 (15:37 +0000)]
name union.

21 years agoRemove a stale comment, fix indentation.
Luigi Rizzo [Sat, 28 Jun 2003 14:23:22 +0000 (14:23 +0000)]
Remove a stale comment, fix indentation.

21 years agowhitespace fix
Luigi Rizzo [Sat, 28 Jun 2003 14:16:53 +0000 (14:16 +0000)]
whitespace fix

21 years agoenable interrupt routing for mcpcia based systems
Bernd Walter [Sat, 28 Jun 2003 13:47:23 +0000 (13:47 +0000)]
enable interrupt routing for mcpcia based systems

Reviewed by: mjacob, gallatin

21 years agoMFi386: revision 1.566.
Yoshihiro Takahashi [Sat, 28 Jun 2003 12:35:46 +0000 (12:35 +0000)]
MFi386: revision 1.566.

21 years agoFix several problems related to resume:
Hidetoshi Shimokawa [Sat, 28 Jun 2003 11:11:36 +0000 (11:11 +0000)]
Fix several problems related to resume:
- Initialize fc->status to process bus reset correctly after resume.
- Initialize AT ring buffer pointer.
- Requeue stdma to stfree for active IR buffer.
- Stop DMA before suspend for safe.
- Set powerstate after resume.

21 years agoo Use a daemon thread to monitor signal events in kernel, if pending
David Xu [Sat, 28 Jun 2003 09:55:02 +0000 (09:55 +0000)]
o Use a daemon thread to monitor signal events in kernel, if pending
  signals were changed in kernel, it will retrieve the pending set and
  try to find a thread to dispatch the signal. The dispatching process
  can be rolled back if the signal is no longer in kernel.

o Create two functions _thr_signal_init() and _thr_signal_deinit(),
  all signal action settings are retrieved from kernel when threading
  mode is turned on, after a fork(), child process will reset them to
  user settings by calling _thr_signal_deinit(). when threading mode
  is not turned on, all signal operations are direct past to kernel.

o When a thread generated a synchoronous signals and its context returned
  from completed list, UTS will retrieve the signal from its mailbox and try
  to deliver the signal to thread.

o Context signal mask is now only used when delivering signals, thread's
  current signal mask is always the one in pthread structure.

o Remove have_signals field in pthread structure, replace it with
  psf_valid in pthread_signal_frame. when psf_valid is true, in context
  switch time, thread will backout itself from some mutex/condition
  internal queues, then begin to process signals. when a thread is not
  at blocked state and running, check_pending indicates there are signals
  for the thread, after preempted and then resumed time, UTS will try to
  deliver signals to the thread.

o At signal delivering time, not only pending signals in thread will be
  scanned, process's pending signals will be scanned too.

o Change sigwait code a bit, remove field sigwait in pthread_wait_data,
  replace it with oldsigmask in pthread structure, when a thread calls
  sigwait(), its current signal mask is backuped to oldsigmask, and waitset
  is copied to its signal mask and when the thread gets a signal in the
  waitset range, its current signal mask is restored from oldsigmask,
  these are done in atomic fashion.

o Two additional POSIX APIs are implemented, sigwaitinfo() and sigtimedwait().

o Signal code locking is better than previous, there is fewer race conditions.

o Temporary disable most of code in _kse_single_thread as it is not safe
  after fork().

21 years agoUse mmap retuned value.
David Xu [Sat, 28 Jun 2003 09:48:05 +0000 (09:48 +0000)]
Use mmap retuned value.

Reviewed by: deischen

21 years agoTemporary disable rwlock based code, replace it with low level KSE locking
David Xu [Sat, 28 Jun 2003 09:47:22 +0000 (09:47 +0000)]
Temporary disable rwlock based code, replace it with low level KSE locking
code until rtld-elf and libkse can cooperate better, those code can be
restored.

Reviewed by: deischen

21 years agoWrite new thread pointer back only when success.
David Xu [Sat, 28 Jun 2003 09:41:59 +0000 (09:41 +0000)]
Write new thread pointer back only when success.

Reviewed by: deischen

21 years agoAfter thread was interrupted by signal, it should relock mutex.
David Xu [Sat, 28 Jun 2003 09:40:57 +0000 (09:40 +0000)]
After thread was interrupted by signal, it should relock mutex.

Reviewed by: deischen

21 years agoif thread is exiting, just returns. kse_thr_interrupt interface
David Xu [Sat, 28 Jun 2003 09:39:35 +0000 (09:39 +0000)]
if thread is exiting, just returns. kse_thr_interrupt interface
was changed, it needs signal parameter, pass -1 to it, it indicates to
interrupt syscall.

Reviewed by: deischen

21 years agoImplement cpu_set_upcall_kse(). Elementary testing shows that this
Marcel Moolenaar [Sat, 28 Jun 2003 09:22:25 +0000 (09:22 +0000)]
Implement cpu_set_upcall_kse(). Elementary testing shows that this
function behaves correctly in principle, but is not expected to be
100% complete. In any case, with this commit we have KSE ported
enough to start runtime testing with threaded applications and fix
whatever bugs or omissions we encounter. Yay!

21 years ago - Don't migrate to stopped cpus.
Jeff Roberson [Sat, 28 Jun 2003 09:09:33 +0000 (09:09 +0000)]
 - Don't migrate to stopped cpus.

21 years agoAdd regression tests for floating point parsing in scanf(3).
David Schultz [Sat, 28 Jun 2003 09:03:44 +0000 (09:03 +0000)]
Add regression tests for floating point parsing in scanf(3).

21 years agoUpdate to reflect changes in vfscanf.c,v 1.32. Remove bogus
David Schultz [Sat, 28 Jun 2003 09:03:25 +0000 (09:03 +0000)]
Update to reflect changes in vfscanf.c,v 1.32.  Remove bogus
documentation for %a, and document it correctly instead.
s/one of aefg/one of a, e, f, or g/

Reviewed by: standards@

21 years agoRevamp scanf's floating-point-parsing algorithm to support
David Schultz [Sat, 28 Jun 2003 09:03:05 +0000 (09:03 +0000)]
Revamp scanf's floating-point-parsing algorithm to support
[+|-]Inf, [+|-]NaN, nan(...), and hexidecimal FP constants.
While here, add %a and %A, which are aliases for %e, and
add support for long doubles.

Reviewed by: standards@

21 years agoHook grackle system controller/heathrow interrupt controller to PPC build.
Peter Grehan [Sat, 28 Jun 2003 08:53:49 +0000 (08:53 +0000)]
Hook grackle system controller/heathrow interrupt controller to PPC build.

21 years agoA module to handle the interrupt controller on Heathrow/Paddington
Peter Grehan [Sat, 28 Jun 2003 08:52:49 +0000 (08:52 +0000)]
A module to handle the interrupt controller on Heathrow/Paddington
MacIO chips, found on older Mac G3's.

21 years agoA module for the Motorola MPC106 system controller aka 'Grackle'
Peter Grehan [Sat, 28 Jun 2003 08:51:22 +0000 (08:51 +0000)]
A module for the Motorola MPC106 system controller aka 'Grackle'
found on older Mac G3's.

21 years agoo Change kse_thr_interrupt to allow send a signal to a specified thread,
David Xu [Sat, 28 Jun 2003 08:29:05 +0000 (08:29 +0000)]
o Change kse_thr_interrupt to allow send a signal to a specified thread,
  or unblock a thread in kernel, and allow UTS to specify whether syscall
  should be restarted.
o Add ability for UTS to monitor signal comes in and removed from process,
  the flag PS_SIGEVENT is used to indicate the events.
o Add a KMF_WAITSIGEVENT for KSE mailbox flag, UTS call kse_release with
  this flag set to wait for above signal event.
o For SA based thread, kernel masks all signal in its signal mask, let
  UTS to use kse_thr_interrupt interrupt a thread, and install a signal
  frame in userland for the thread.
o Add a tm_syncsig in thread mailbox, when a hardware trap occurs,
  it is used to deliver synchronous signal to userland, and upcall
  is schedule, so UTS can process the synchronous signal for the thread.

Reviewed by: julian (mentor)

21 years ago - If smp is not started yet don't try to load balance or we'll put threads
Jeff Roberson [Sat, 28 Jun 2003 08:24:42 +0000 (08:24 +0000)]
 - If smp is not started yet don't try to load balance or we'll put threads
   on cpus that aren't running yet.

21 years agoFix POSIX compatible bug for sigwaitinfo and sigtimedwait.
David Xu [Sat, 28 Jun 2003 08:03:28 +0000 (08:03 +0000)]
Fix POSIX compatible bug for sigwaitinfo and sigtimedwait.
POSIX says siginfo pointer parameter can be NULL and if the
function success, it should return signal number but not zero.
The waitset it past should be negatived before it can be
used as thread signal mask.

21 years agoAttach the amd(4) module to the i386 and pc98 builds only;
Ruslan Ermilov [Sat, 28 Jun 2003 08:01:27 +0000 (08:01 +0000)]
Attach the amd(4) module to the i386 and pc98 builds only;
untested on other platforms.

Not objected to by: scottl

21 years ago - Use an int rather than a vm_pindex_t to represent the desired page
Alan Cox [Sat, 28 Jun 2003 07:58:10 +0000 (07:58 +0000)]
 - Use an int rather than a vm_pindex_t to represent the desired page
   color in vm_page_alloc().  (This also has small performance benefits.)
 - Eliminate vm_page_select_free(); vm_page_alloc() might as well
   call vm_pageq_find() directly.

21 years agoAdd a machine depended function thread_siginfo, SA signal code
David Xu [Sat, 28 Jun 2003 06:34:08 +0000 (06:34 +0000)]
Add a machine depended function thread_siginfo, SA signal code
will use the function to construct a siginfo structure and use
the result to export to userland.

Reviewed by: julian

21 years agoo update for new 802.11 support
Sam Leffler [Sat, 28 Jun 2003 06:23:40 +0000 (06:23 +0000)]
o update for new 802.11 support
o fix channel command so channel - does what the man page says

21 years agoo update for new 802.11 support
Sam Leffler [Sat, 28 Jun 2003 06:22:23 +0000 (06:22 +0000)]
o update for new 802.11 support
o relax some error handling so other drivers (e.g. ath) are usable
o revert ap scanning logic to old scheme
o add to capability info printing for 11a and 11g

21 years ago - Throttle the inherited sleep and run time in sched_fork_kseg(). This
Jeff Roberson [Sat, 28 Jun 2003 06:19:56 +0000 (06:19 +0000)]
 - Throttle the inherited sleep and run time in sched_fork_kseg().  This
   allows us to learn the behavior of a thread much more quickly after it
   starts up.

21 years agoupdate for 802.11 support
Sam Leffler [Sat, 28 Jun 2003 06:19:37 +0000 (06:19 +0000)]
update for 802.11 support

21 years agoswitch to new 802.11 support
Sam Leffler [Sat, 28 Jun 2003 06:19:01 +0000 (06:19 +0000)]
switch to new 802.11 support

21 years agohookup ath and ath_hal to the build
Sam Leffler [Sat, 28 Jun 2003 06:18:37 +0000 (06:18 +0000)]
hookup ath and ath_hal to the build

21 years agoupdate for new 802.11 support
Sam Leffler [Sat, 28 Jun 2003 06:17:26 +0000 (06:17 +0000)]
update for new 802.11 support

21 years agoswitch to new 802.11 support
Sam Leffler [Sat, 28 Jun 2003 06:12:41 +0000 (06:12 +0000)]
switch to new 802.11 support

21 years agoremove old 802.11 support; replaced by new code in sys/net80211
Sam Leffler [Sat, 28 Jun 2003 06:09:39 +0000 (06:09 +0000)]
remove old 802.11 support; replaced by new code in sys/net80211

21 years agoenable installation of sys/net80211
Sam Leffler [Sat, 28 Jun 2003 06:08:27 +0000 (06:08 +0000)]
enable installation of sys/net80211

21 years agoCatch amd64 up with the pending busdma async callback locking. Though this
Scott Long [Sat, 28 Jun 2003 06:07:06 +0000 (06:07 +0000)]
Catch amd64 up with the pending busdma async callback locking.  Though this
mechanism might change in the near future, it's best to keep everything in
sync right now.

Reminded by: peter

21 years ago - Adjust the default maximum slice value to ~140ms. This has improved the
Jeff Roberson [Sat, 28 Jun 2003 06:04:47 +0000 (06:04 +0000)]
 - Adjust the default maximum slice value to ~140ms.  This has improved the
   nice distribution without significantly impacting interactive response.
   As a side effect it should also allow batch processes to run for a
   slightly longer period which will positively impact their performance.

21 years agoAnnounce umct to kernel build.
Scott Long [Sat, 28 Jun 2003 05:47:34 +0000 (05:47 +0000)]
Announce umct to kernel build.

21 years agoHook umct up to the module tree.
Scott Long [Sat, 28 Jun 2003 05:46:16 +0000 (05:46 +0000)]
Hook umct up to the module tree.

21 years agoAdd 'umct', a driver for MCT Corp. and Belkin F5U109 USB-Serial adapters.
Scott Long [Sat, 28 Jun 2003 05:45:55 +0000 (05:45 +0000)]
Add 'umct', a driver for MCT Corp. and Belkin F5U109 USB-Serial adapters.
This is based on the ubsa driver by Alexander Kabaev along with documentation
gleaned from the Linux mct_u232 driver.  I've had this driver sitting in my
tree for almost 6 months, and several others have found it useful.

21 years agoAdd documentation for watchdogd_enable setting.
Sean Kelly [Sat, 28 Jun 2003 04:57:38 +0000 (04:57 +0000)]
Add documentation for watchdogd_enable setting.

Approved by: jeff (mentor)

21 years agoFix a race condition in the flushing of commands that
Justin T. Gibbs [Sat, 28 Jun 2003 04:46:54 +0000 (04:46 +0000)]
Fix a race condition in the flushing of commands that
have completed across the bus but not to the host before
processing of an exception condition (busfree, bus reset,
etc.).  When flushing the controller of completed commands,
we also look for packetized commands that have completed
with good status and are stored in the "good status fifo".
The hardware will post to the good status fifo even if
data for that command is still active in a FIFO.  In
one particular failure case, a command outstanding on the
bus reconnected, transferred data into a FIFO, and provided
good status while the host driver was processing an expected
busfree event (PPR message negotiation).  This resulted in
an entry in the good status fifo that we completed, but
since the sequencer was paused, the data in the data FIFO
for this command had never been transferred to the host.
Once the busfree processing was complete, the sequencer
was unpaused, and the data completed its transfer to the
host.  In some instances, the client for the data was notified
of the completion and attempted to view the data before
it arrived.  This case only occurred during FreeBSD's
multi-target probe of the SCSI bus while some devices are
negotiating to go packetized and some devices are already
running in packetized.

The fix is to run and FIFOs active with a context in the
good status fifo to completion before completing the command
to the SCSI layer.  This requies duplicating the FIFO rundown
operations in the host driver that would usually be handled
by the firmware, but there is no other alternative.

Don't blindly shutdown the SCB dma engine when restarting
the sequencer.  We may be killing an operation that is
not supposed to be cancelled.  The cases where we need to
shutdown these dma engines are already handled elsewhere in
the driver.

Fix a few more ahd_in?() -> ahd_in?_scbram() instances.

21 years ago- Fix a typo.
Sean Kelly [Sat, 28 Jun 2003 04:46:45 +0000 (04:46 +0000)]
- Fix a typo.

PR: bin/53864
Submitted by: Lukas Ertl <l.ertl@univie.ac.at>
Approved by: jeff (mentor)

21 years agoaic79xx.h:
Justin T. Gibbs [Sat, 28 Jun 2003 04:45:25 +0000 (04:45 +0000)]
aic79xx.h:
Add softc flag to indicate that we have seen at
least one selection since the last bus reset or
SE/LVD bus change.

aic79xx.c:
Fix a few style nits.

In ahd_update_pending_scbs(), only touch card registers
once we have found an SCB that needs to be updated.
This removes lots of clutter from PCI traces taken of
error recovery performed by the driver.

Short circuit the first selection iocell workaround handler
if we've run once since the last bus reset or iocell change.
This also removes clutter from PCI traces.

Note if completions are pending in the qoutfifo when we dump
card state.

21 years agoUse clr instead of an explicit mov from ALLZEROS
Justin T. Gibbs [Sat, 28 Jun 2003 04:44:10 +0000 (04:44 +0000)]
Use clr instead of an explicit mov from ALLZEROS
to clear SCB_FIFO_USE_COUNT.  This is just a
syntactic change.

21 years agoImplement ahd_inq_scbram() and change the implemention
Justin T. Gibbs [Sat, 28 Jun 2003 04:43:19 +0000 (04:43 +0000)]
Implement ahd_inq_scbram() and change the implemention
of ahd_inl_scbram to use ahd_inw_scbram instead of
ahd_inb_scbram().

21 years agoCorrect a typo in a comment.
Justin T. Gibbs [Sat, 28 Jun 2003 04:42:11 +0000 (04:42 +0000)]
Correct a typo in a comment.

Add a comment in ahd_clear_critical_sections() about
our need to leave ENBUSFREE set in SIMODE1 while single
stepping.

Re-arrange some delay loops so that we always perform
a read after any register write and before the delay.
This should make the delay loop more accurate.

When completing message processing for a packetized
commention, return the controller to a state where
invalid non-packetized phases will still cause protocol
violations.  These are the same operations as those
performed in the clear_target_state routine in the
firmware.

Now that we have a chip with working ABORTPENDING
support (the 7901B), comment out the automatic use
of this feature until we can adequately test it.
The previous checkin updated the bug mask for the
7901B so this code was exercised.

When resetting the bus, perform an ahd_flush_device_writes()
call so that our reset assertion delay is acurately
timed from when the reset bit is written to the controller.

21 years agoaic79xx.seq:
Justin T. Gibbs [Sat, 28 Jun 2003 04:40:46 +0000 (04:40 +0000)]
aic79xx.seq:
Remove an old comment that no longer applies.

Fix a jump in our unexpected non-packetized phase
handler to use an explicit lable.  The old code
had a hardcoded jump offset that was off by one
instruction.

21 years agoaic79xx.h:
Justin T. Gibbs [Sat, 28 Jun 2003 04:39:49 +0000 (04:39 +0000)]
aic79xx.h:
Add a 7901A specific feature definition.

aic79xx_pci.c:
Split out the general aic790X setup into it's own
setup handler that works on single and dual controllers.
Adjust all other PCI setup handlers to initialize the
chips basic features and type before calling the generic
handler.

Turn off a few Rev B workarounds that are not required
on the 7901B.

21 years agoTurn ips back on.
Peter Wemm [Fri, 27 Jun 2003 23:11:22 +0000 (23:11 +0000)]
Turn ips back on.

21 years agoFix pointer/int warnings so this compiles on amd64. The driver wants
Peter Wemm [Fri, 27 Jun 2003 23:10:58 +0000 (23:10 +0000)]
Fix pointer/int warnings so this compiles on amd64.  The driver wants
to store an int in the bio->bio_driver1 (a void *).  It is big enough,
but you have to match the int sizes first before doing the cast.

Glanced at by:  scottl

21 years agoTidy up leftover lazy_switch instrumentation that is no longer needed.
Peter Wemm [Fri, 27 Jun 2003 22:39:14 +0000 (22:39 +0000)]
Tidy up leftover lazy_switch instrumentation that is no longer needed.
This cleans up some #ifdef hell.

21 years ago*groan*. I can't win today. Fix manual transcription error so that the
Peter Wemm [Fri, 27 Jun 2003 22:20:18 +0000 (22:20 +0000)]
*groan*.  I can't win today.  Fix manual transcription error so that the
PAE ifdef is correct.

Pointy hat assigned by:  kan