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

21 years agoMake LAZY_SWITCH work with PAE
Peter Wemm [Fri, 27 Jun 2003 22:13:30 +0000 (22:13 +0000)]
Make LAZY_SWITCH work with PAE

21 years agoWhitespace cleanups (verified with MD5 1832ce5ede6c58c844dfb53fd48f0eea).
Nate Lawson [Fri, 27 Jun 2003 21:57:42 +0000 (21:57 +0000)]
Whitespace cleanups (verified with MD5 1832ce5ede6c58c844dfb53fd48f0eea).
Also clarify a macro expansion with an XXX.  I will be fixing access to
Acpi Global Lock in a subsequent commit.

21 years agoFix the false IPIs on smp when using LAZY_SWITCH caused by pmap_activate()
Peter Wemm [Fri, 27 Jun 2003 21:50:52 +0000 (21:50 +0000)]
Fix the false IPIs on smp when using LAZY_SWITCH caused by pmap_activate()
not releasing the pm_active bit in the old pmap.

21 years agoCheck crypto driver capabilities and if the driver operates synchronously
Sam Leffler [Fri, 27 Jun 2003 20:10:03 +0000 (20:10 +0000)]
Check crypto driver capabilities and if the driver operates synchronously
mark crypto requests with ``callback immediately'' to avoid doing a context
switch to return crypto results.  This completes the work to eliminate
context switches for using software crypto via the crypto subsystem (with
symmetric crypto ops).

21 years agoAdd support to eliminate a context switch per crypto op when using the
Sam Leffler [Fri, 27 Jun 2003 20:07:10 +0000 (20:07 +0000)]
Add support to eliminate a context switch per crypto op when using the
software crypto device:

o record crypto device capabilities in each session id
o add a capability that indicates if the crypto driver operates synchronously
o tag the software crypto driver as operating synchronously

This commit also introduces crypto session id macros that cleanup their
construction and querying.

21 years agoSimple read-modify-write operations on a vm object's flags, ref_count, and
Alan Cox [Fri, 27 Jun 2003 18:52:49 +0000 (18:52 +0000)]
Simple read-modify-write operations on a vm object's flags, ref_count, and
shadow_count can now rely on its mutex for synchronization.  Remove one use
of Giant from vm_map_insert().

21 years agoSort the list of PCI ID's in numerical order and fix a whitespace bogon.
John Baldwin [Fri, 27 Jun 2003 18:17:06 +0000 (18:17 +0000)]
Sort the list of PCI ID's in numerical order and fix a whitespace bogon.

21 years agoCreate compatibility links for libc_r on ia64 to prevent build-time
Marcel Moolenaar [Fri, 27 Jun 2003 18:07:47 +0000 (18:07 +0000)]
Create compatibility links for libc_r on ia64 to prevent build-time
breakages. Note that runtime compatibility is not guaranteed. Future
changes to setjmp/longjmp in libc will break threaded applications
linked against libc_r.so.5 on ia64. We pull our "tier 2" card once
more...

Reviewed by: ru

21 years agoremove extra whitespace and blank lines
Luigi Rizzo [Fri, 27 Jun 2003 17:18:14 +0000 (17:18 +0000)]
remove extra whitespace and blank lines

21 years agoMerge the following from the English version:
Hiroki Sato [Fri, 27 Jun 2003 17:15:20 +0000 (17:15 +0000)]
Merge the following from the English version:

1.575 -> 1.580 relnotes/common/new.sgml

21 years agoFix a bug where a truncate operation involving truncate() or ftruncate() on
Tom Rhodes [Fri, 27 Jun 2003 15:46:38 +0000 (15:46 +0000)]
Fix a bug where a truncate operation involving truncate() or ftruncate() on
an MSDOSFS file system either failed, silently corrupted the file, or
sometimes corrupted the neighboring file.

PR: 53695
Submitted by: Ariff Abdullah <skywizard@MyBSD.org.my> (original version)
MFC: 3 days

21 years agoCorrect a misspelled name of time_hi_and_version.
Yaroslav Tykhiy [Fri, 27 Jun 2003 13:41:29 +0000 (13:41 +0000)]
Correct a misspelled name of time_hi_and_version.

21 years agoPrevent probing the secondary channel on CMD646 controllers if the
Peter Grehan [Fri, 27 Jun 2003 10:11:54 +0000 (10:11 +0000)]
Prevent probing the secondary channel on CMD646 controllers if the
channel has been disabled by BIOS. This prevents a bus timeout
machine check on B&W G3 PowerMacs, which have a primary-only CMD646
on the motherboard.

Approved by: sos
Obtained from: NetBSD

21 years agoFix this to build on alpha. Build test successful.
Sean Kelly [Fri, 27 Jun 2003 08:35:05 +0000 (08:35 +0000)]
Fix this to build on alpha. Build test successful.

Suggested fix from: tjr

21 years agoDo the first and mostly mechanical step of adding mutex support to the
Scott Long [Fri, 27 Jun 2003 08:31:48 +0000 (08:31 +0000)]
Do the first and mostly mechanical step of adding mutex support to the
bus_dma async callback scheme.  Note that sparc64 does not seem to do
async callbacks.  Note that ia64 callbacks might not be MPSAFE at the
moment.  Note that powerpc doesn't seem to do async callbacks due to
the implementation being incomplete.

Reviewed by: mostly silence on arch@

21 years agoo disconnect libc_r from the build on ia64. The library is now
Marcel Moolenaar [Fri, 27 Jun 2003 07:41:51 +0000 (07:41 +0000)]
o  disconnect libc_r from the build on ia64. The library is now
   obsolete. The intend is to add glue to either libthr or
   libpthread to create the necessary compat links.
o  Hook libpthread to the build on ia64. This is slightly out of
   order, because the kernel still doesn't have all the support,
   but that's not a problem in this case.

21 years agoImplement _ia64_save_context() and _ia64_restore_context(). Both
Marcel Moolenaar [Fri, 27 Jun 2003 06:15:13 +0000 (06:15 +0000)]
Implement _ia64_save_context() and _ia64_restore_context(). Both
functions are derived from the swapctx() and restorectx() (resp)
from sys/ia64/ia64/context.s. The code is expected to be 99%
correct, but has not yet been tested.

Note that with these functions operating on mcontext_t, we also
created the foundation upon which we can implement getcontext(2)
and setcontext(2) replacements. It's not guaranteed that the use
of these syscalls and _ia64_{save|restore}_context() on the same
uicontext_t is actually going to work. Replacing the syscalls is
now trivially achieved.

This commit completes the ia64 port of libpthread itself (modulo
testing and bugfixes).

21 years agorevise copyright notices per discussion with Atsushi Onoe <onoe@sm.sony.co.jp>
Sam Leffler [Fri, 27 Jun 2003 05:13:52 +0000 (05:13 +0000)]
revise copyright notices per discussion with Atsushi Onoe <onoe@sm.sony.co.jp>

21 years agoFinish the deorbital burn of the i386-only a.out toolchain.
David E. O'Brien [Fri, 27 Jun 2003 03:59:46 +0000 (03:59 +0000)]
Finish the deorbital burn of the i386-only a.out toolchain.

21 years agoCommit amd64 MD release documentation stubs and hook up to the build.
Bruce A. Mah [Fri, 27 Jun 2003 03:50:36 +0000 (03:50 +0000)]
Commit amd64 MD release documentation stubs and hook up to the build.
Content will be filled in later as needed, but this should unbreak
the doc part of an amd64 release build.

Requested by: peter

21 years agofix NIS+ YP compat mode
John W. De Boskey [Fri, 27 Jun 2003 03:37:44 +0000 (03:37 +0000)]
fix NIS+ YP compat mode

PR: bin/52792
Submitted by: TOMITA Yoshinori <yoshint@flab.fujitsu.co.jp>

21 years agoRemove check to see if the get resource for the second resource
Warner Losh [Fri, 27 Jun 2003 03:25:43 +0000 (03:25 +0000)]
Remove check to see if the get resource for the second resource
succeeds.  There is a difference between how OLDCARD and NEWCARD deal
with their resources, and this code exposes that difference.  I'm not
sure which behavior is correct, and will need to look into that in
more detail.  However, it appears that we go ahead and allocate the
right thing in both cases that I have access to (CF cards, CDROM, and
external ata enclosures), so go ahead and ignore the failure to get
the resource for the other rid.  There's already another check to make
sure that the actual allocation works correctly, and that should be
sufficient to catch cases that don't work.

Submitted by: wpaul and iedowse

21 years agofix typo
Sam Leffler [Fri, 27 Jun 2003 02:53:00 +0000 (02:53 +0000)]
fix typo

Submitted by: "Norman Diamond \(ITS\)" <n_diamond@its.jp>

21 years agoReturn support needed by dstumbler:
Sam Leffler [Fri, 27 Jun 2003 00:49:04 +0000 (00:49 +0000)]
Return support needed by dstumbler:

o add back rx monitor support
o make WI_RID_SCAN_RES DTRT
o fix a bug handling zero-length RID requests (used by dstumbler to set
  a zero-length SSID)
o make RID_SCAN_REQ DTRT
o add back WI_RID_OWN_SSID
o fix wi_scan_ap to take a channel mask and txrate (for prism cards)

These changes fix dstumbler -o (monitor mode).  A minor change to dstumbler
is needed to get normal AP scanning mode to work right; this is preferred to
modifying the driver.

PR: kern/53187
Reviewed by: Bruce M Simpson <bms@spc.org>

21 years ago- Use fwohci_poll() instead of fwohci_intr() to process the first bus reest.
Hidetoshi Shimokawa [Fri, 27 Jun 2003 00:27:33 +0000 (00:27 +0000)]
- Use fwohci_poll() instead of fwohci_intr() to process the first bus reest.
- Wait 2 cycles before starting the process for fast machines.

21 years agotypo
Sam Leffler [Thu, 26 Jun 2003 23:48:56 +0000 (23:48 +0000)]
typo

Submitted by: Peter Wemm <peter@wemm.org>