10 years agoMerge from vendor branch BIND:
Simon Schubert [Tue, 24 Jul 2007 22:12:17 +0000 (22:12 +0000)]
Merge from vendor branch BIND:
Properly import bind-9.3.4-p1 sources.

10 years agoProperly import bind-9.3.4-p1 sources.
Simon Schubert [Tue, 24 Jul 2007 22:12:17 +0000 (22:12 +0000)]
Properly import bind-9.3.4-p1 sources.

10 years agoMerge from vendor branch BIND:
Matthew Dillon [Tue, 24 Jul 2007 21:11:26 +0000 (21:11 +0000)]
Merge from vendor branch BIND:
Update to 9.3.4-P1 with key id generation security fix.

10 years agoUpdate to 9.3.4-P1 with key id generation security fix.
Matthew Dillon [Tue, 24 Jul 2007 21:11:26 +0000 (21:11 +0000)]
Update to 9.3.4-P1 with key id generation security fix.

10 years agoRelease engineering: Update version information in HEAD to reflect 1.11
Matthew Dillon [Tue, 24 Jul 2007 20:38:21 +0000 (20:38 +0000)]
Release engineering: Update version information in HEAD to reflect 1.11

10 years agorelease engineering: Add a slip tag for 1.10 and add an example cvsup
Matthew Dillon [Tue, 24 Jul 2007 20:16:37 +0000 (20:16 +0000)]
release engineering: Add a slip tag for 1.10 and add an example cvsup
file for 1.10.

10 years agoAdd logic to allow the first hog partition to specify a base offset. This
Matthew Dillon [Tue, 24 Jul 2007 19:48:44 +0000 (19:48 +0000)]
Add logic to allow the first hog partition to specify a base offset.  This
fixes a partition-too-large error when creating a hog partition with a
non-zero base offset.

10 years agoBump DragonFly_version and create a subvers-DEVELOPMENT file for HEAD for
Matthew Dillon [Tue, 24 Jul 2007 19:47:15 +0000 (19:47 +0000)]
Bump DragonFly_version and create a subvers-DEVELOPMENT file for HEAD for
1.11.  This will be the last rev before 2.0.

10 years agoMinor checkpt usage() patch.
Matthew Dillon [Tue, 24 Jul 2007 19:44:18 +0000 (19:44 +0000)]
Minor checkpt usage() patch.

Submitted-by: "Max Herrgaard" <herrgaard@gmail.com>
10 years agoThe maximum numbers of CPUs is 31, not 32.
Sascha Wildner [Tue, 24 Jul 2007 14:02:10 +0000 (14:02 +0000)]
The maximum numbers of CPUs is 31, not 32.

Submitted-by: Max Herrgaard <herrgaard@gmail.com>
10 years agoSynchronize the syslink manual page with the system call.
Matthew Dillon [Mon, 23 Jul 2007 23:08:02 +0000 (23:08 +0000)]
Synchronize the syslink manual page with the system call.

10 years agoClarify two usage cases for umtx.2
Matthew Dillon [Mon, 23 Jul 2007 23:04:21 +0000 (23:04 +0000)]
Clarify two usage cases for umtx.2

10 years agoRemove a duplicate SUBDIR +=
Matthew Dillon [Mon, 23 Jul 2007 23:03:34 +0000 (23:03 +0000)]
Remove a duplicate SUBDIR +=

10 years agodssetmask() was being called too early, causing the disk layer to believe
Matthew Dillon [Mon, 23 Jul 2007 19:53:34 +0000 (19:53 +0000)]
dssetmask() was being called too early, causing the disk layer to believe
the disk was open when in fact it was not, in certain cases where the
disk open fails.

10 years agoSCSI CD devices do not support raw mode accesses (yet). This fixes
Matthew Dillon [Mon, 23 Jul 2007 19:45:30 +0000 (19:45 +0000)]
SCSI CD devices do not support raw mode accesses (yet).  This fixes
/dev/cd0's minor number.

10 years agoAdd assertions for 0-length transfers and panic if one is attempted.
Matthew Dillon [Mon, 23 Jul 2007 19:26:09 +0000 (19:26 +0000)]
Add assertions for 0-length transfers and panic if one is attempted.
Properly track the open count on the underlying device.

10 years agoIncorporate the device DMA limitations into the request transfer size
Matthew Dillon [Mon, 23 Jul 2007 19:24:11 +0000 (19:24 +0000)]
Incorporate the device DMA limitations into the request transfer size

Reported-by: "Max Herrgaard" <herrgaard@gmail.com>
10 years agoWhen CAM creates the disk layer, set the underlying raw device's
Matthew Dillon [Mon, 23 Jul 2007 19:20:43 +0000 (19:20 +0000)]
When CAM creates the disk layer, set the underlying raw device's
si_iosize_max to MAXPHYS.  For now assume that underlying real scsi
devices are not further limited.

Note that NATA's CAM layer will chain I/Os coming from the CAM subsytem
which are too large.

10 years agoDo not loop forever doing 0-sized I/Os if si_iosize_max is 0. Instead
Matthew Dillon [Mon, 23 Jul 2007 19:19:11 +0000 (19:19 +0000)]
Do not loop forever doing 0-sized I/Os if si_iosize_max is 0.  Instead
generate a warning and assume MAXPHYS.

Reported-by: "Max Herrgaard" <herrgaard@gmail.com>
10 years agoThe disk layer must not inherit the D_TRACKCLOSE flag from the underlying
Matthew Dillon [Mon, 23 Jul 2007 18:59:51 +0000 (18:59 +0000)]
The disk layer must not inherit the D_TRACKCLOSE flag from the underlying
device as this will confuse the disk layer's tracking of opens and closes.

This bug caused the disk layer to lose track of which slices and partitions
were open when a slice or partition was opened multiple times.

10 years agoMake vinum use libedit instead of libreadline.
Simon Schubert [Sun, 22 Jul 2007 22:46:09 +0000 (22:46 +0000)]
Make vinum use libedit instead of libreadline.

Submitted-by: pavalos@
10 years agoChange comment to reflect that X11BASE moved.
Simon Schubert [Sun, 22 Jul 2007 22:01:23 +0000 (22:01 +0000)]
Change comment to reflect that X11BASE moved.

10 years agoPkgsrc defaults to modular Xorg and /usr/pkg nowadays.
Simon Schubert [Sun, 22 Jul 2007 21:59:36 +0000 (21:59 +0000)]
Pkgsrc defaults to modular Xorg and /usr/pkg nowadays.

10 years agoProperly initialize next_cpu to 0 when '-l map' is used for the default
Matthew Dillon [Sun, 22 Jul 2007 20:04:00 +0000 (20:04 +0000)]
Properly initialize next_cpu to 0 when '-l map' is used for the default
case, with no starting cpu specified.  Only check the string pointer returned
from strtol() when strtol() is actually called.

10 years agoTemporarily hack around an interrupt race against device detach by
Matthew Dillon [Sun, 22 Jul 2007 18:53:19 +0000 (18:53 +0000)]
Temporarily hack around an interrupt race against device detach by
giving the interrupt time to clear after removing it.  This race will be
fixed generally after the 1.10.0 release.

10 years agoFix function name.
Sascha Wildner [Sat, 21 Jul 2007 17:45:54 +0000 (17:45 +0000)]
Fix function name.

10 years agoRemove the requirement that calls to vn_strategy() be limited to the
Matthew Dillon [Fri, 20 Jul 2007 17:21:54 +0000 (17:21 +0000)]
Remove the requirement that calls to vn_strategy() be limited to the
DMA capabilities of the underlying device.  In particular this fixes issues
with NATA which does not break up large requests when operating on hardware
with limited DMA capabilities.  The old ATA driver did break up requests.

vn_strategy() -> spec_strategy().  spec_strategy(), which converts vnode
strategy calls to device strategy calls, now checks the maximum DMA
capability of the device and breaks up large requests to fit.

Old IDE hardware often can't even transfer a whole 64KB of data and there
are many subsystems in the kernel which assume that >= 64KB can be transfered
in a single I/O.   Subsystems include: The pageout code, the buffer clustering
code, AIO, and the swapin/swapout code.

Reported-by: YONETANI Tomokazu <qhwt+dfly@les.ath.cx>
10 years agoAdd quriks for my motherboard so that the microphone input will work.
Simon Schubert [Thu, 19 Jul 2007 21:23:10 +0000 (21:23 +0000)]
Add quriks for my motherboard so that the microphone input will work.

10 years agoLet the user know if they attempt to start a vkernel with vm.vkernel_enable
Joe Talbott [Thu, 19 Jul 2007 20:18:00 +0000 (20:18 +0000)]
Let the user know if they attempt to start a vkernel with vm.vkernel_enable
set to 0.

10 years agoMake ath(4) and ath_rate(4) depend on wlan(4).
Sepherosa Ziehau [Thu, 19 Jul 2007 12:40:35 +0000 (12:40 +0000)]
Make ath(4) and ath_rate(4) depend on wlan(4).

Reported-by: Francis Gudin <fgudin@nerim.net>
10 years agoBe a little more verbose when reporting unmount errors.
Matthew Dillon [Thu, 19 Jul 2007 01:16:39 +0000 (01:16 +0000)]
Be a little more verbose when reporting unmount errors.

10 years agoAllocate the full SCB pool at driver attach.
Peter Avalos [Thu, 19 Jul 2007 00:23:04 +0000 (00:23 +0000)]
Allocate the full SCB pool at driver attach.

Obtained-from: FreeBSD

10 years agoShould use machine/limits.h, not cpu/limits.h.
Peter Avalos [Wed, 18 Jul 2007 21:48:34 +0000 (21:48 +0000)]
Should use machine/limits.h, not cpu/limits.h.

10 years agoregen
Sepherosa Ziehau [Wed, 18 Jul 2007 11:55:39 +0000 (11:55 +0000)]

10 years agoMore Broadcom 43xx PCI IDs.
Sepherosa Ziehau [Wed, 18 Jul 2007 11:54:57 +0000 (11:54 +0000)]
More Broadcom 43xx PCI IDs.

10 years agoUpdate the installer to dfuibe_installer-1.1.7nb1. Add logic to remove
Matthew Dillon [Tue, 17 Jul 2007 19:29:48 +0000 (19:29 +0000)]
Update the installer to dfuibe_installer-1.1.7nb1.  Add logic to remove
old packages which interfere with the 'check' target's use of pkg_add -n.

10 years agoUpdate for 2.2.5.
Peter Avalos [Mon, 16 Jul 2007 22:20:15 +0000 (22:20 +0000)]
Update for 2.2.5.

10 years agoMerge from vendor branch LIBARCHIVE:
Peter Avalos [Mon, 16 Jul 2007 21:52:17 +0000 (21:52 +0000)]
Merge from vendor branch LIBARCHIVE:
Import libarchive-2.2.5 which fixes a forgotten 'break'.  Without this,
hardlinks were being returned as symlinks.

10 years agoImport libarchive-2.2.5 which fixes a forgotten 'break'. Without this,
Peter Avalos [Mon, 16 Jul 2007 21:52:17 +0000 (21:52 +0000)]
Import libarchive-2.2.5 which fixes a forgotten 'break'.  Without this,
hardlinks were being returned as symlinks.

10 years agoTemporarily reenable writing to the label area for backwards compatibility.
Matthew Dillon [Mon, 16 Jul 2007 21:31:06 +0000 (21:31 +0000)]
Temporarily reenable writing to the label area for backwards compatibility.

10 years agoRename the new cvsup bootstrap kit so make nrelease knows a new one
Matthew Dillon [Mon, 16 Jul 2007 21:16:49 +0000 (21:16 +0000)]
Rename the new cvsup bootstrap kit so make nrelease knows a new one
is needed and doesn't barf on the slight differences between the new and

Suggested-by: Sascha Wildner <saw@online.de>
10 years agoFix default target architecture.
Simon Schubert [Mon, 16 Jul 2007 18:25:39 +0000 (18:25 +0000)]
Fix default target architecture.

Submitted-by: Noah Yan <noah.yan@gmail.com>
10 years agoCorrect RSSI calculation.
Sepherosa Ziehau [Mon, 16 Jul 2007 11:21:49 +0000 (11:21 +0000)]
Correct RSSI calculation.

Noticed-by: Hans Petter Selasky <hselasky@c2i.net>
10 years agoOops, add missing space.
Sascha Wildner [Sat, 14 Jul 2007 21:56:46 +0000 (21:56 +0000)]
Oops, add missing space.

10 years agoUse .Va for sysctls and tunables.
Sascha Wildner [Sat, 14 Jul 2007 21:48:16 +0000 (21:48 +0000)]
Use .Va for sysctls and tunables.

10 years agoRetire tac. tail -r does the same thing already.
Simon Schubert [Sat, 14 Jul 2007 19:14:29 +0000 (19:14 +0000)]
Retire tac.  tail -r does the same thing already.

Pointed-out-by: Emil Mikulic <emil@dmr.ath.cx>
10 years agoHook tac to the build.
Simon Schubert [Sat, 14 Jul 2007 12:00:37 +0000 (12:00 +0000)]
Hook tac to the build.

10 years agoAdd tac, a simple sed script to reverse stdin.
Simon Schubert [Sat, 14 Jul 2007 11:56:19 +0000 (11:56 +0000)]
Add tac, a simple sed script to reverse stdin.

This is from the GNU sed manual.

10 years agobusdma(9) fixes for bfe(4):
Sepherosa Ziehau [Sat, 14 Jul 2007 08:01:24 +0000 (08:01 +0000)]
busdma(9) fixes for bfe(4):
- Set low address of the top level dma tag to 1Gbytes, due to chipset limit.
- TX/RX rings need to be aligned on 4Kbytes.
- Correct dma map syncing direction.
- In bfe_txeof() and bfe_tx_ring_free(), unload dma map for all TX descs
  instead of only for the TX desc holding the mbuf.
- In bfe_start():
  o  If number of free TX desc is less then 2, set IFF_OACTIVE and leave
  o  Pass reference of mbuf pointer into bfe_encap(), since the passed in
     mbuf may be defragmented, i.e. changed.
- In bfe_encap():
  o  Assert that caller has make certain there is at least 2 free TX descs.
  o  Before setting up TX descs, count number of mbufs in the mbuf chain,
     and do defragmentation if there are not enough free TX descs.
  o  After above changes, number of free TX descs will never be less than 2
     when setting up TX descs; assert that.
  o  mbuf chain is always drained after setting up TX descs, nuke the goofy
     if (m != NULL)

Obtained-from: FreeBSD (w/ modification)
Tested-by: Jörg Anslik <joerg@anslik.de>
Approved-by: dillon@
10 years ago- When creating dma map, allocate at least one bounce page even if the
Sepherosa Ziehau [Sat, 14 Jul 2007 07:29:30 +0000 (07:29 +0000)]
- When creating dma map, allocate at least one bounce page even if the
  max size of the dma tag is less than one page.
- alloc_bounce_pages() returns number of bounce pages that have been
  allocated, not error value.
- Increase MAX_BPAGES to 1024 to cooperate with modern devices.

Tested-by: Jörg Anslik <joerg@anslik.de>
Approved-by: dillon@
10 years agoFix reference.
Sascha Wildner [Sat, 14 Jul 2007 06:58:42 +0000 (06:58 +0000)]
Fix reference.

10 years agoClean up the ioctl switch and add support for DIOCGPART which is
Matthew Dillon [Fri, 13 Jul 2007 18:55:45 +0000 (18:55 +0000)]
Clean up the ioctl switch and add support for DIOCGPART which is
needed by newfs.

Reported-by: Chris Turner <c.turner@199technologies.org>
10 years agoReparse device specifications. The slice is no longer optional.
Matthew Dillon [Fri, 13 Jul 2007 18:36:32 +0000 (18:36 +0000)]
Reparse device specifications.  The slice is no longer optional.
Also handle slice 0 specifications.

Do not try to write-enable the label area.  Any vinum headers must
occur outside any reserved label area.

10 years agopccardd was removed a long time ago.
Sascha Wildner [Fri, 13 Jul 2007 08:12:45 +0000 (08:12 +0000)]
pccardd was removed a long time ago.

10 years agoAdd some words about rtsold_{enable,flags}.
Sascha Wildner [Fri, 13 Jul 2007 07:36:26 +0000 (07:36 +0000)]
Add some words about rtsold_{enable,flags}.

10 years agoUpdate to include info on last update.
Matthew Dillon [Fri, 13 Jul 2007 07:04:39 +0000 (07:04 +0000)]
Update to include info on last update.

10 years agoSynchronous libarchive to 2.2.4 from FreeBSD, including fixes related to
Matthew Dillon [Fri, 13 Jul 2007 06:59:51 +0000 (06:59 +0000)]
Synchronous libarchive to 2.2.4 from FreeBSD, including fixes related to
FreeBSD Security Advisory FreeBSD-SA-07:05.libarchive.

10 years agoMerge from vendor branch LIBARCHIVE:
Matthew Dillon [Fri, 13 Jul 2007 06:59:51 +0000 (06:59 +0000)]
Merge from vendor branch LIBARCHIVE:
Synchronous libarchive to 2.2.4 from FreeBSD, including fixes related to
FreeBSD Security Advisory FreeBSD-SA-07:05.libarchive.

10 years agoSynchronous libarchive to 2.2.4 from FreeBSD, including fixes related to
Matthew Dillon [Fri, 13 Jul 2007 06:59:49 +0000 (06:59 +0000)]
Synchronous libarchive to 2.2.4 from FreeBSD, including fixes related to
FreeBSD Security Advisory FreeBSD-SA-07:05.libarchive.

10 years agoBe more verbose in the bad-opencount assertion.
Matthew Dillon [Fri, 13 Jul 2007 01:20:10 +0000 (01:20 +0000)]
Be more verbose in the bad-opencount assertion.

10 years agoFix LWP support on exec. exec now properly kills all LWPs.
Matthew Dillon [Thu, 12 Jul 2007 21:56:22 +0000 (21:56 +0000)]
Fix LWP support on exec.  exec now properly kills all LWPs.

10 years agoAdd an sc_maxiosize field which the ccd driver now needs.
Matthew Dillon [Thu, 12 Jul 2007 00:25:57 +0000 (00:25 +0000)]
Add an sc_maxiosize field which the ccd driver now needs.

Submitted-by: Peter Avalos <pavalos@theshell.com>
10 years agoAdd SHUTDOWN_PRI_DRIVER and move all driver shutdown functions from
Matthew Dillon [Wed, 11 Jul 2007 23:46:58 +0000 (23:46 +0000)]
Add SHUTDOWN_PRI_DRIVER and move all driver shutdown functions from
to shutdown SCSI before individual SCSI drivers shutdown.

Reported-by: Peter Avalos <pavalos@theshell.com>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue713>

10 years agoUse I/O size limits in underlying devices to govern I/O chunk
Matthew Dillon [Wed, 11 Jul 2007 23:42:16 +0000 (23:42 +0000)]
Use I/O size limits in underlying devices to govern I/O chunk
sizes.  This fixes issues with NATA which does not break up large
requests like the old ATA driver did.

Reported-by: YONETANI Tomokazu <qhwt+dfly@les.ath.cx>
10 years agoUse TAILQ_FOREACH to enhance readibility.
Peter Avalos [Wed, 11 Jul 2007 22:53:21 +0000 (22:53 +0000)]
Use TAILQ_FOREACH to enhance readibility.

10 years agoFix path.
Simon Schubert [Wed, 11 Jul 2007 21:12:50 +0000 (21:12 +0000)]
Fix path.

Noticed-by: Noah Yan <noah.yan@gmail.com>
10 years agoRemove some /usr/freebsd_pkg remains.
Sascha Wildner [Wed, 11 Jul 2007 08:21:14 +0000 (08:21 +0000)]
Remove some /usr/freebsd_pkg remains.

10 years agoBump .Dd for -l and fix markup.
Sascha Wildner [Wed, 11 Jul 2007 00:49:05 +0000 (00:49 +0000)]
Bump .Dd for -l and fix markup.

10 years agoAdd units to offset adjustment messages.
Sascha Wildner [Wed, 11 Jul 2007 00:18:00 +0000 (00:18 +0000)]
Add units to offset adjustment messages.

10 years agoAdd a wpa_supplicant rc script and bring in code to handle "WPA" in an
Sascha Wildner [Tue, 10 Jul 2007 22:36:01 +0000 (22:36 +0000)]
Add a wpa_supplicant rc script and bring in code to handle "WPA" in an
ifconfig_blah0="..." line in rc.conf. It should now be possible to bring
up a wireless interface with a line similar to:

ifconfig_iwi0="up WPA DHCP"

This commit also removes the restriction that when "DHCP" was specified,
the rest of the arguments were ignored. So the following should work now:

ifconfig_rl0="DHCP media 10baseT/UTP"

The commit also adds rc settings for interface renaming, e.g.:

ifconfig_net0="up WPA DHCP"

Obtained-from: FreeBSD

10 years agoDo not synchronously waitmsg in the unix domain socket's custom putport
Matthew Dillon [Tue, 10 Jul 2007 20:24:57 +0000 (20:24 +0000)]
Do not synchronously waitmsg in the unix domain socket's custom putport
function.  This prevents us from being able to abort an accept() when
a process takes a signal.

Clean up some other stuff.  MSGF_DONE should already be clear.

Reported-by: Peter Avalos <pavalos@theshell.com>
10 years agoAdd support to vkernel for locking virtual CPUs to real CPUs.
Joe Talbott [Tue, 10 Jul 2007 18:35:38 +0000 (18:35 +0000)]
Add support to vkernel for locking virtual CPUs to real CPUs.

Adds a '-l' option to vkernel to specify CPU locking.  The choices are:

1. No locking.
2. Lock all virtual CPUs to one real CPU.
3. Map each virtaul CPU to a real CPU starting with CPU0.  The starting CPU
   can be overridden.

10 years agoKQueueFd is declared static in sys/platform/vkernel/platform/kqueue.c and
Sascha Wildner [Tue, 10 Jul 2007 13:19:08 +0000 (13:19 +0000)]
KQueueFd is declared static in sys/platform/vkernel/platform/kqueue.c and
is only used there (fixes VKERNEL build with gcc41).

10 years agoUpdate the CCD and disklabel documentation to reflect changes in
Matthew Dillon [Mon, 9 Jul 2007 17:51:30 +0000 (17:51 +0000)]
Update the CCD and disklabel documentation to reflect changes in
requirements for CCD disks, which is basically that CCD components be
set to type 'ccd' instead of 4.2BSD.

Submitted-by: Chris Turner <c.turner@199technologies.org>
10 years agoFinally retire ports pkg_* tools.
Simon Schubert [Sun, 8 Jul 2007 22:20:04 +0000 (22:20 +0000)]
Finally retire ports pkg_* tools.

10 years ago* s/cpu/CPU/
Sascha Wildner [Sat, 7 Jul 2007 22:57:19 +0000 (22:57 +0000)]
* s/cpu/CPU/

* Bump date for -n.

* Minor mdoc cleanup.

10 years agoSync ahc(4) and ahd(4) with FreeBSD 6.
Sascha Wildner [Sat, 7 Jul 2007 18:31:59 +0000 (18:31 +0000)]
Sync ahc(4) and ahd(4) with FreeBSD 6.

10 years agoRemove trailing whitespace.
Sascha Wildner [Sat, 7 Jul 2007 17:42:48 +0000 (17:42 +0000)]
Remove trailing whitespace.

10 years agoFix comment.
Sepherosa Ziehau [Sat, 7 Jul 2007 12:25:26 +0000 (12:25 +0000)]
Fix comment.

10 years agoParameters of icu_{set,get}var() are used.
Sepherosa Ziehau [Sat, 7 Jul 2007 12:13:47 +0000 (12:13 +0000)]
Parameters of icu_{set,get}var() are used.

10 years agoUpdate README.
Sascha Wildner [Sat, 7 Jul 2007 12:01:00 +0000 (12:01 +0000)]
Update README.

10 years agoFix typo.
Peter Avalos [Sat, 7 Jul 2007 01:55:11 +0000 (01:55 +0000)]
Fix typo.

Obtained-from: FreeBSD

10 years agoFix typos.
Peter Avalos [Sat, 7 Jul 2007 01:47:51 +0000 (01:47 +0000)]
Fix typos.

Obtained-from: FreeBSD

10 years agoinitialize some variables before potential use.
Peter Avalos [Sat, 7 Jul 2007 01:36:02 +0000 (01:36 +0000)]
initialize some variables before potential use.

Obtained-from: FreeBSD

10 years ago-Wundef fix.
Peter Avalos [Sat, 7 Jul 2007 01:12:01 +0000 (01:12 +0000)]
-Wundef fix.

Obtained-from: FreeBSD

10 years ago-Wundef fix.
Peter Avalos [Sat, 7 Jul 2007 01:09:42 +0000 (01:09 +0000)]
-Wundef fix.

Obtained-from: FreeBSD

10 years ago-Wundef fixes.
Peter Avalos [Sat, 7 Jul 2007 01:06:07 +0000 (01:06 +0000)]
-Wundef fixes.

Obtained-from: FreeBSD

10 years agoUse the AHC_DISABLE_PCI_PERR flag to silence parity error reporting on
Peter Avalos [Sat, 7 Jul 2007 00:49:51 +0000 (00:49 +0000)]
Use the AHC_DISABLE_PCI_PERR flag to silence parity error reporting on
chips where setting the FAILDIS bit is not effective.  While here,
try again to make it clear that reported parity errors indicate
a failure of some PCI device *other than* the aic7xxx controller.

Obtained-from: FreeBSD

10 years agoEnhance diagnostic printfs for the chains of free lists used to
Peter Avalos [Sat, 7 Jul 2007 00:37:46 +0000 (00:37 +0000)]
Enhance diagnostic printfs for the chains of free lists used to
avoid SCB ID collissions to non-packetized targets.

Obtained-from: FreeBSD

10 years agoCorrect bug that caused the completed "recovery" scb to have its
Peter Avalos [Sat, 7 Jul 2007 00:28:32 +0000 (00:28 +0000)]
Correct bug that caused the completed "recovery" scb to have its
timer reset rather than the timer of an SCB still pending on the
controller after recovery completed.  This should correct timeout

Obtained-from: FreeBSD

10 years agoSet allow_memio to 1 if fetching the allow_memio hint fails. This
Peter Avalos [Sat, 7 Jul 2007 00:10:39 +0000 (00:10 +0000)]
Set allow_memio to 1 if fetching the allow_memio hint fails.  This
is the default behavior according the the bootverbose printf in the
failure case.

Obtained-from: FreeBSD

10 years agoremove useless ptr check; cur_column can never be null.
Peter Avalos [Fri, 6 Jul 2007 23:51:23 +0000 (23:51 +0000)]
remove useless ptr check; cur_column can never be null.

Obtained-from: FreeBSD

10 years agoUse BUS_PROBE_DEFAULT for pci probe return value.
Peter Avalos [Fri, 6 Jul 2007 23:48:20 +0000 (23:48 +0000)]
Use BUS_PROBE_DEFAULT for pci probe return value.

Obtained-from: FreeBSD

10 years agoAllow print_reg() to be called with a NULL column.
Peter Avalos [Fri, 6 Jul 2007 23:44:54 +0000 (23:44 +0000)]
Allow print_reg() to be called with a NULL column.

Obtained-from: FreeBSD

10 years agoAfter lwkt_waitmsg/lwkt_waitport splitting, the second parameter of
Sepherosa Ziehau [Fri, 6 Jul 2007 11:59:03 +0000 (11:59 +0000)]
After lwkt_waitmsg/lwkt_waitport splitting, the second parameter of
lwkt_waitport() is tsleep flags instead of msg pointer.

10 years agoMake SEE ALSO section a bit nicer.
Sascha Wildner [Fri, 6 Jul 2007 11:22:23 +0000 (11:22 +0000)]
Make SEE ALSO section a bit nicer.

10 years agoQuick mdoc cleanup of the new usched_set(2) manual page.
Sascha Wildner [Fri, 6 Jul 2007 07:09:44 +0000 (07:09 +0000)]
Quick mdoc cleanup of the new usched_set(2) manual page.

10 years agoOn Rev. B silicon, we disabled the enhanced busfree detection logic to
Peter Avalos [Fri, 6 Jul 2007 06:35:41 +0000 (06:35 +0000)]
On Rev. B silicon, we disabled the enhanced busfree detection logic to
close holes in detecting busfrees that occur after a packetized target
transitions to a non-packetized phase.  The most common case where this
occurs is when a target is externally reset so the controller believes
a packetzied negotiation agreement is still in effect.  Unfortunately,
disabling this feature seems to cause problems for the 7901B.  Re-enable
ehanced busfree detection for this part.

Obtained-from: FreeBSD

10 years ago Explicitly initialize timedout_scb lists, use SCB_TAG for all access
Peter Avalos [Fri, 6 Jul 2007 06:27:00 +0000 (06:27 +0000)]
  Explicitly initialize timedout_scb lists, use SCB_TAG for all access
      to the hardware_scb->tag field, limit max lun reported to CAM to 63,
      return after a panic to silence a warning.

Obtained-from: FreeBSD

10 years agoAdd some useful target mode diagnostics for incoming commands
Peter Avalos [Fri, 6 Jul 2007 06:09:20 +0000 (06:09 +0000)]
Add some useful target mode diagnostics for incoming commands
under the AHC_SHOW_TQIN debug flag.

Obtained-from: FreeBSD