| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Dont poll for ATA_IDLE on a detached channel in suspend.
Add support for the Serverworks HT1000 chip.
Finally fix support for the newer MCP51/MCP55 nVidia chipsets.
Add support for the ICH8 and ESB2 chips, also add a few other missing ICH7 partsUpdate JMicron support to also work with chips where the PATA and SATA
parts are on individual PCI functions.
Add support for VIA 8237A.
Add support for AHCI on the VIA VT8251.
Dont call free on non-alloc'd items.
Notes:
svn path=/stable/6/; revision=161897
|
| |
|
|
|
|
|
|
| |
Make the ATAPI sense data accessible when using the ioctl interface
Approved by: re@ (scottl)
Notes:
svn path=/stable/6/; revision=157480
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Only use the channel in the request given to ata_completed if its
still present.
Only look for ICRC and CORR errors on ATA devices not ATAPI.
Get rid of all the "long long"/"maxint" casting around in printf's.
On all our platforms intmax == int64_t so simply using %j to print
int64_t's is safe all over, and doesn't pullute the code.
Update atapi-fd to support direct devices such as disks.
ATAUSB will need to hook into the delayed boot identify to have
interrupts running, so externalize it.
Add USB modes.
Approved by: re@ (mux)
Notes:
svn path=/stable/6/; revision=156535
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Bring ATA up to -current standards:
Fix SiS SATA support, the SATA registers was off.
Update the ICH7 support so it deals better with chips without AHCI.
Unbreak hotplug support on the ICH6 and ICH7 chipsets.
Add support for VIA VT8251 southbridge.
Add new nVidia nForce4 chips.
Add support for the Marvell 88SX[56]0[48][01] series of SATA chips.
Fix the promise modesetting for old chips.
Get rid of the advertising clause in the copyright.
Add support for using DMA on dump, greatly speeds up the dump process.
When IOCATAGPARM is called, update the capabilities page that is stored
in the kernel and return the new values.
Fix rebuilds of arrays that got stuck.
Add dump support in ataraid.
Add support for for reading and writing SiS metadata.
Add support for writing VIA metadata.
Add support for writing Intel metadata.
Correct calculation of RAID0 sizes on VIA RAID arrays.
Update Intel MatrixRAID support to be able to pick up RAID0+1 (RAID10)
Notes:
svn path=/stable/6/; revision=154802
|
| |
|
|
|
|
|
|
|
|
| |
Properly react to allocation failures.
Correct the former patch to the way it would have looked after review.
Approved by: re@ (scottl)
Notes:
svn path=/stable/6/; revision=151268
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
When breaking up a large request into smaller ones for the strategy
routine, create all the child bio objects before starting the
requests, rather than starting them as created. This closes a race
whereby some number of child operations could complete before the
rest were ever created, and prematurely freeing the parent bio.
This fixes the panics installing in VMWare and qemu
Approved by: re (scottl@)
Notes:
svn path=/stable/6/; revision=151185
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add support for working around controllers that cannot do DMA in 48bit.
The workaround use PIO mode above ~137GB to allow using the disk.
Add the Acer chips with rev < 0xc4 as first candidate.
Add support for the Promise PDC4071[89] chips on the Fasttrak TX4300.
Docs kindly provided by Promise.
Apply fix for "pr82261 DMA-support on Sparc64 broken"
Use the bio field instead of the driver field as intended.
Dont set default mode to ATA_DMA_MAX on devices not capable of DMA.
Approved by: re@ (scottl)
Notes:
svn path=/stable/6/; revision=149461
|
| |
|
|
|
|
|
|
|
| |
The most prominent part is that its now possible to issue ata_requests
directly to say acd0, instead of going through the cumbersome /dev/ata
device.
Notes:
svn path=/head/; revision=146266
|
| |
|
|
|
|
|
|
|
|
| |
new HW that has new and different demands.
Fix a few nits in former commit in this cleanup crusade.
Sponsored by: pair.com
Notes:
svn path=/head/; revision=145818
|
| |
|
|
|
|
|
|
|
|
| |
all way through the code down the layers, instead of the mix'n'match that
resulted from the conversion done earlier.
Sponsored by: pair.com
Notes:
svn path=/head/; revision=145713
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This allows to attach to the children (ATA devices) even without a
driver being attached. This allows atapi-cam to do its work both
with and without the pure ATAPI driver being present.
ATA patches by /me
ATAPI-cam pathes by Thomas
Notes:
svn path=/head/; revision=145102
|
| |
|
|
|
|
|
|
| |
controller device. This helps when there is no controller parent
to a channel (PPC port).
Notes:
svn path=/head/; revision=144397
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
o ATA is now fully newbus'd and split into modules.
This means that on a modern system you just load "atapci and ata"
to get the base support, and then one or more of the device
subdrivers "atadisk atapicd atapifd atapist ataraid".
All can be loaded/unloaded anytime, but for obvious reasons you
dont want to unload atadisk when you have mounted filesystems.
o The device identify part of the probe has been rewritten to fix
the problems with odd devices the old had, and to try to remove
so of the long delays some HW could provoke. Also probing is done
without the need for interrupts, making earlier probing possible.
o SATA devices can be hot inserted/removed and devices will be created/
removed in /dev accordingly.
NOTE: only supported on controllers that has this feature:
Promise and Silicon Image for now.
On other controllers the usual atacontrol detach/attach dance is
still needed.
o Support for "atomic" composite ATA requests used for RAID.
o ATA RAID support has been rewritten and and now supports these
metadata formats:
"Adaptec HostRAID"
"Highpoint V2 RocketRAID"
"Highpoint V3 RocketRAID"
"Intel MatrixRAID"
"Integrated Technology Express"
"LSILogic V2 MegaRAID"
"LSILogic V3 MegaRAID"
"Promise FastTrak"
"Silicon Image Medley"
"FreeBSD PseudoRAID"
o Update the ioctl API to match new RAID levels etc.
o Update atacontrol to know about the new RAID levels etc
NOTE: you need to recompile atacontrol with the new sys/ata.h,
make world will take care of that.
NOTE2: that rebuild is done differently from the old system as
the rebuild is now done piggybacked on read requests to the
array, so atacontrol simply starts a background "dd" to rebuild
the array.
o The reinit code has been worked over to be much more robust.
o The timeout code has been overhauled for races.
o Support of new chipsets.
o Lots of fixes for bugs found while doing the modulerization and
reviewing the old code.
Missing or changed features from current ATA:
o atapi-cd no longer has support for ATAPI changers. Todays its
much cheaper and alot faster to copy those CD images to disk
and serve them from there. Besides they dont seem to be made
anymore, maybe for that exact reason.
o ATA RAID can only read metadata from all the above metadata formats,
not write all of them (Promise and Highpoint V2 so far). This means
that arrays can be picked up from the BIOS, but they cannot be
created from FreeBSD. There is more to it than just the missing
write metadata support, those formats are not unique to a given
controller like Promise and Highpoint formats, instead they exist
for several types, and even worse, some controllers can have
different formats and its impossible to tell which one.
The outcome is that we cannot reliably create the metadata of those
formats and be sure the controller BIOS will understand it.
However write support is needed to update/fail/rebuild the arrays
properly so it sits fairly high on the TODO list.
o So far atapicam is not supported with these changes. When/if this
will change is up to the maintainer of atapi-cam so go there for
questions.
HW donated by: Webveveriet AS
HW donated by: Frode Nordahl
HW donated by: Yahoo!
HW donated by: Sentex
Patience by: Vife and my boys (and even the cats)
Notes:
svn path=/head/; revision=144330
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
providing special version of CDIOCREADSUBCHANNEL ioctl(), which assumes that
result has to be placed into kernel space not user space. In the long run
more generic solution has to be designed WRT emulating various ioctl()s
that operate on userspace buffers, but right now there is only one such
ioctl() is emulated, so that it makes little sense.
MFC after: 2 weeks
Notes:
svn path=/head/; revision=141031
|
| |
|
|
|
|
|
|
|
|
|
| |
Reject certain ioctls if write permission is not indicated.
Bump geom API version.
Reported by: Ruben de Groot <mail25@bzerk.org>
Notes:
svn path=/head/; revision=138732
|
| |
|
|
| |
Notes:
svn path=/head/; revision=134242
|
| |
|
|
| |
Notes:
svn path=/head/; revision=133318
|
| |
|
|
| |
Notes:
svn path=/head/; revision=133183
|
| |
|
|
|
|
|
|
|
| |
since the args in question was all zero's.
Found by: Jimmy Olgeni <olgeni@FreeBSD.org>
Notes:
svn path=/head/; revision=130922
|
| |
|
|
|
|
|
|
|
|
|
| |
the GEOM topology.
There are still issues with not detaching from cam correctly such that
upon a device detach there's an invalid pointer dereference from the
later call to cam_rescan().
Notes:
svn path=/head/; revision=130876
|
| |
|
|
|
|
|
| |
might get trashed by autosensing.
Notes:
svn path=/head/; revision=129941
|
| |
|
|
|
|
|
| |
Take advantage of the new autosense logic.
Notes:
svn path=/head/; revision=126482
|
| |
|
|
| |
Notes:
svn path=/head/; revision=126442
|
| |
|
|
| |
Notes:
svn path=/head/; revision=126074
|
| |
|
|
|
|
|
|
|
|
| |
instead of taskqueue_swi. This shaves from 1 to 10% of the overhead.
Overhaul the locking once more, there was a few possible races that
are now closed.
Notes:
svn path=/head/; revision=125159
|
| |
|
|
|
|
|
| |
that the calling process would newer wakeup.
Notes:
svn path=/head/; revision=124720
|
| |
|
|
|
|
|
|
|
|
| |
This gives +10% performance on simple tests, so definitly worth it.
A few percent more could be had by not using M_ZERO'd alloc's, but
we then need to clear fields all over the place to be safe, and
that was deemed not worth the trouble (and it makes life dangerous).
Notes:
svn path=/head/; revision=124534
|
| |
|
|
| |
Notes:
svn path=/head/; revision=124419
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
of the leftovers from the old version that really doesn't work anymore.
Add a reset function for host-end of the ATA channel. This is needed
for the SiI3112 in order to whack it back to reality if a device
locks up the SATA interface (thereby preventing that we can reset the
device). The result is that ATA now recovers from the timeouts that
happens with the SiI3112A and more or less all disks based on old
PATA electronics with a Marvell PATA->SATA converter. This includes
lots of the popular SATA dongles and the WDC Raptor disks..
Notes:
svn path=/head/; revision=124403
|
| |
|
|
|
|
|
|
| |
On the <QSI CD-RW/DVD-ROM SBW-242> that failed causing burncd to
wait forever...
Notes:
svn path=/head/; revision=123270
|
| |
|
|
|
|
|
|
|
| |
invalid media (ie empty CD/DVD)
Approved by: re@
Notes:
svn path=/head/; revision=122973
|
| |
|
|
|
|
|
|
|
|
|
| |
TOC's for the same media!! that borks up GEOM.
Although this looks like bad HW the following patch removes the
chance for GEOM panic'ing.
Approved by: re@
Notes:
svn path=/head/; revision=122885
|
| |
|
|
|
|
|
|
|
| |
it in ata-all.c where it belongs.
Prime controller HW by always setting PIO mode first in attach.
Notes:
svn path=/head/; revision=122484
|
| |
|
|
|
|
|
| |
Found by: Peter Edwards <pmedwards@eircom.net>
Notes:
svn path=/head/; revision=122354
|
| |
|
|
| |
Notes:
svn path=/head/; revision=122203
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
GEOM was not designed to handle media that does not have
a size. Blank CD's are of that type, so cheat and set the
media size to -1. This allows burning to work, but makes
GEOM issue outofrange reads that makes the ATAPI subsystem
spew out a few warnings. GEOM should be tought about this.
GEOM was not designed to handle changing the sectorsize
between opens. Writing multitack CD's with both audio and
data tracks needs to change sector size on the fly. We
cheat here and stuff the current sectorsize into GEOM
private internals. GEOM should grow some clean way for this.
Notes:
svn path=/head/; revision=121912
|
| |
|
|
| |
Notes:
svn path=/head/; revision=121857
|
| |
|
|
| |
Notes:
svn path=/head/; revision=121208
|
| |
|
|
| |
Notes:
svn path=/head/; revision=121037
|
| |
|
|
| |
Notes:
svn path=/head/; revision=120341
|
| |
|
|
|
|
|
|
|
| |
check GONE_IN_5: We need the clone handler for root filesystem case.
Once under GEOM, we can remove the clone handler as GEOM provides one.
Notes:
svn path=/head/; revision=120318
|
| |
|
|
| |
Notes:
svn path=/head/; revision=120126
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This commit puts the relevant code snippets under #ifdef GONE_IN_5
(rather than #ifndef BURN_BRIDGES) thereby disabling the code now.
The code wil be entirely removed before 5.2 unless we find reasons
why this would be a bad idea.
Approach suggested by: imp
Notes:
svn path=/head/; revision=119994
|
| |
|
|
|
|
|
| |
so that newfs works on dvd-rw/dvd-ram again..
Notes:
svn path=/head/; revision=119989
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
For the floppy driver, use fdcontrol to manipulate density selection.
For the CD drivers, the 'a' and 'c' suffix is without actual effect and
any applications insisting on it can be satisfied with a symlink:
ln -s /dev/cd0 /dev/cd0a
Ongoing discussion may result in these pieces of code being removed before
the 5-stable branch as opposed to after.
Notes:
svn path=/head/; revision=119761
|
| |
|
|
| |
Notes:
svn path=/head/; revision=119683
|
| |
|
|
|
|
|
| |
Cosmetics.
Notes:
svn path=/head/; revision=119450
|
| |
|
|
|
|
|
| |
Also some minor style cleanups.
Notes:
svn path=/head/; revision=119418
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Restructure the way ATA/ATAPI commands are processed, use a common
ata_request structure for both. This centralises the way requests
are handled so locking is much easier to handle.
The driver is now layered much more cleanly to seperate the lowlevel
HW access so it can be tailored to specific controllers without touching
the upper layers. This is needed to support some of the newer
semi-intelligent ATA controllers showing up.
The top level drivers (disk, ATAPI devices) are more or less still
the same with just corrections to use the new interface.
Pull ATA out from under Gaint now that locking can be done in a sane way.
Add support for a the National Geode SC1100. Thanks to Soekris engineering
for sponsoring a Soekris 4801 to make this support.
Fixed alot of small bugs in the chipset code for various chips now
we are around in that corner anyways.
Notes:
svn path=/head/; revision=119404
|
| |
|
|
|
|
|
|
|
|
|
| |
Retain the mistake of not updating the devstat API for now.
Spell bioq_disksort() consistently with the remaining bioq_*().
#include <geom/geom_disk.h> where this is more appropriate.
Notes:
svn path=/head/; revision=112946
|