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.
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.
Matthew Dillon [Tue, 24 Jul 2007 19:44:18 +0000 (19:44 +0000)]
Minor checkpt usage() patch.
Submitted-by: "Max Herrgaard" <herrgaard@gmail.com>
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>
Matthew Dillon [Mon, 23 Jul 2007 23:08:02 +0000 (23:08 +0000)]
Synchronize the syslink manual page with the system call.
Matthew Dillon [Mon, 23 Jul 2007 23:04:21 +0000 (23:04 +0000)]
Clarify two usage cases for umtx.2
Matthew Dillon [Mon, 23 Jul 2007 23:03:34 +0000 (23:03 +0000)]
Remove a duplicate SUBDIR +=
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.
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.
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.
Matthew Dillon [Mon, 23 Jul 2007 19:24:11 +0000 (19:24 +0000)]
Incorporate the device DMA limitations into the request transfer size
limit.
Reported-by: "Max Herrgaard" <herrgaard@gmail.com>
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.
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>
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.
Simon Schubert [Sun, 22 Jul 2007 22:46:09 +0000 (22:46 +0000)]
Make vinum use libedit instead of libreadline.
Submitted-by: pavalos@
Simon Schubert [Sun, 22 Jul 2007 22:01:23 +0000 (22:01 +0000)]
Change comment to reflect that X11BASE moved.
Simon Schubert [Sun, 22 Jul 2007 21:59:36 +0000 (21:59 +0000)]
Pkgsrc defaults to modular Xorg and /usr/pkg nowadays.
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.
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.
Sascha Wildner [Sat, 21 Jul 2007 17:45:54 +0000 (17:45 +0000)]
Fix function name.
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>
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.
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.
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>
Matthew Dillon [Thu, 19 Jul 2007 01:16:39 +0000 (01:16 +0000)]
Be a little more verbose when reporting unmount errors.
Peter Avalos [Thu, 19 Jul 2007 00:23:04 +0000 (00:23 +0000)]
Allocate the full SCB pool at driver attach.
Obtained-from: FreeBSD
Peter Avalos [Wed, 18 Jul 2007 21:48:34 +0000 (21:48 +0000)]
Should use machine/limits.h, not cpu/limits.h.
Sepherosa Ziehau [Wed, 18 Jul 2007 11:55:39 +0000 (11:55 +0000)]
regen
Sepherosa Ziehau [Wed, 18 Jul 2007 11:54:57 +0000 (11:54 +0000)]
More Broadcom 43xx PCI IDs.
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.
Peter Avalos [Mon, 16 Jul 2007 22:20:15 +0000 (22:20 +0000)]
Update for 2.2.5.
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.
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.
Matthew Dillon [Mon, 16 Jul 2007 21:31:06 +0000 (21:31 +0000)]
Temporarily reenable writing to the label area for backwards compatibility.
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
old.
Suggested-by: Sascha Wildner <saw@online.de>
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>
Sepherosa Ziehau [Mon, 16 Jul 2007 11:21:49 +0000 (11:21 +0000)]
Correct RSSI calculation.
Noticed-by: Hans Petter Selasky <hselasky@c2i.net>
Sascha Wildner [Sat, 14 Jul 2007 21:56:46 +0000 (21:56 +0000)]
Oops, add missing space.
Sascha Wildner [Sat, 14 Jul 2007 21:48:16 +0000 (21:48 +0000)]
Use .Va for sysctls and tunables.
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>
Simon Schubert [Sat, 14 Jul 2007 12:00:37 +0000 (12:00 +0000)]
Hook tac to the build.
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.
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@
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@
Sascha Wildner [Sat, 14 Jul 2007 06:58:42 +0000 (06:58 +0000)]
Fix reference.
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>
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.
Sascha Wildner [Fri, 13 Jul 2007 08:12:45 +0000 (08:12 +0000)]
pccardd was removed a long time ago.
Sascha Wildner [Fri, 13 Jul 2007 07:36:26 +0000 (07:36 +0000)]
Add some words about rtsold_{enable,flags}.
Matthew Dillon [Fri, 13 Jul 2007 07:04:39 +0000 (07:04 +0000)]
Update to include info on last update.
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.
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.
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.
Matthew Dillon [Fri, 13 Jul 2007 01:20:10 +0000 (01:20 +0000)]
Be more verbose in the bad-opencount assertion.
Matthew Dillon [Thu, 12 Jul 2007 21:56:22 +0000 (21:56 +0000)]
Fix LWP support on exec. exec now properly kills all LWPs.
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>
Matthew Dillon [Wed, 11 Jul 2007 23:46:58 +0000 (23:46 +0000)]
Add SHUTDOWN_PRI_DRIVER and move all driver shutdown functions from
SHUTDOWN_PRI_DEFAULT to SHUTDOWN_PRI_DRIVER. This allows the CAM subsystem
to shutdown SCSI before individual SCSI drivers shutdown.
Reported-by: Peter Avalos <pavalos@theshell.com>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue713>
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>
Peter Avalos [Wed, 11 Jul 2007 22:53:21 +0000 (22:53 +0000)]
Use TAILQ_FOREACH to enhance readibility.
Simon Schubert [Wed, 11 Jul 2007 21:12:50 +0000 (21:12 +0000)]
Fix path.
Noticed-by: Noah Yan <noah.yan@gmail.com>
Sascha Wildner [Wed, 11 Jul 2007 08:21:14 +0000 (08:21 +0000)]
Remove some /usr/freebsd_pkg remains.
Sascha Wildner [Wed, 11 Jul 2007 00:49:05 +0000 (00:49 +0000)]
Bump .Dd for -l and fix markup.
Sascha Wildner [Wed, 11 Jul 2007 00:18:00 +0000 (00:18 +0000)]
Add units to offset adjustment messages.
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_iwi0_name="net0"
ifconfig_net0="up WPA DHCP"
Obtained-from: FreeBSD
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>
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.
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).
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>
Simon Schubert [Sun, 8 Jul 2007 22:20:04 +0000 (22:20 +0000)]
Finally retire ports pkg_* tools.
Sascha Wildner [Sat, 7 Jul 2007 22:57:19 +0000 (22:57 +0000)]
* s/cpu/CPU/
* Bump date for -n.
* Minor mdoc cleanup.
Sascha Wildner [Sat, 7 Jul 2007 18:31:59 +0000 (18:31 +0000)]
Sync ahc(4) and ahd(4) with FreeBSD 6.
Sascha Wildner [Sat, 7 Jul 2007 17:42:48 +0000 (17:42 +0000)]
Remove trailing whitespace.
Sepherosa Ziehau [Sat, 7 Jul 2007 12:25:26 +0000 (12:25 +0000)]
Fix comment.
Sepherosa Ziehau [Sat, 7 Jul 2007 12:13:47 +0000 (12:13 +0000)]
Parameters of icu_{set,get}var() are used.
Sascha Wildner [Sat, 7 Jul 2007 12:01:00 +0000 (12:01 +0000)]
Update README.
Peter Avalos [Sat, 7 Jul 2007 01:55:11 +0000 (01:55 +0000)]
Fix typo.
Obtained-from: FreeBSD
Peter Avalos [Sat, 7 Jul 2007 01:47:51 +0000 (01:47 +0000)]
Fix typos.
Obtained-from: FreeBSD
Peter Avalos [Sat, 7 Jul 2007 01:36:02 +0000 (01:36 +0000)]
initialize some variables before potential use.
Obtained-from: FreeBSD
Peter Avalos [Sat, 7 Jul 2007 01:12:01 +0000 (01:12 +0000)]
-Wundef fix.
Obtained-from: FreeBSD
Peter Avalos [Sat, 7 Jul 2007 01:09:42 +0000 (01:09 +0000)]
-Wundef fix.
Obtained-from: FreeBSD
Peter Avalos [Sat, 7 Jul 2007 01:06:07 +0000 (01:06 +0000)]
-Wundef fixes.
Obtained-from: FreeBSD
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
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
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
loops.
Obtained-from: FreeBSD
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
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
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
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
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.
Sascha Wildner [Fri, 6 Jul 2007 11:22:23 +0000 (11:22 +0000)]
Make SEE ALSO section a bit nicer.
Sascha Wildner [Fri, 6 Jul 2007 07:09:44 +0000 (07:09 +0000)]
Quick mdoc cleanup of the new usched_set(2) manual page.
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
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
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
Peter Avalos [Fri, 6 Jul 2007 05:58:26 +0000 (05:58 +0000)]
Revert to basing all timeout/timer values in ms rather than us. The switch
to us was to help out the Linux port, but really just invited overflow.
In fact, the request sense timer was overflowing prior to this change making
it much shorter than intended.
aic_osm_lib.h:
Be more careful about overflow in all timer/timeout primitives.
Obtained-from: FreeBSD
Peter Avalos [Fri, 6 Jul 2007 05:45:52 +0000 (05:45 +0000)]
aic7xxx.h:
Add constants for SPI protocol delays that are needed for
target mode.
aic7xxx.c:
Correct a target mode issue that caused an occassional
spurious REQ to be seen on the bus when performing manual
message processing (e.g. transfer rate negotiation).
Enforce phase change bus settle rules with explicit
delays when performing manual message processing in
target mode. The sequencer already did this for
"fast-path", target mode message processing.
Obtained-from: FreeBSD
Peter Avalos [Fri, 6 Jul 2007 05:40:41 +0000 (05:40 +0000)]
In the PCI error interrupt handler, specify the width of the PCI configuration
cycle using the correct argument. The location and width were reversed.
Obtained-from: FreeBSD
Peter Avalos [Fri, 6 Jul 2007 05:20:00 +0000 (05:20 +0000)]
Set AHD_BUSFREEREV_BUG in the bug field for Rev B chips, not the
feature field.
Obtained-from: FreeBSD
Peter Avalos [Fri, 6 Jul 2007 05:17:17 +0000 (05:17 +0000)]
Invert the polarity of two tests in the recovery code that could cause
the driver to issue a bus reset more quickly than intended. We want to
*wait* if we find another SCB that could be the cause of this timeout,
not proceed to a bus reset.
Obtained-from: FreeBSD
Peter Avalos [Fri, 6 Jul 2007 05:07:58 +0000 (05:07 +0000)]
Remove spurious EISA definitions left over from the initial port of the
aic7xxx driver to U320 hardware.
Obtained-from: FreeBSD