Commit Graph
142 Commits
Author SHA1 Message Date
Søren Schmidt 14f1d91520 Put the probe verboseness behind bootverbose
Approved by: jkh
2000-11-16 10:52:26 +00:00
Søren Schmidt 0bac9ea514 MFC:
Better handling of immediate commands, mainly to solve timeouts
in the atapi-tape code...

Approved by: jkh
2000-11-13 08:22:07 +00:00
Søren Schmidt 3796cca4ca MFC:
Only offset raid disks > 1 on the HPT, this should solve the
boot problems..
However this demands that dangerously dedicated disks use an
offset of at least 10 from the start to not overwrite the
raid config sector on the HPT...

Approved by: jkh
2000-11-13 08:21:26 +00:00
Søren Schmidt a867ada0ba MFC:
Fix the probing problems that caused lost slaves etc..

Approved by: jkh
2000-11-13 08:20:40 +00:00
Søren Schmidt 88ed042b3e MFC:
Fix the missing slave problem, rearrange reset code a bit to
allow all ATAPI devices to reset proberly.

Approved by: jkh
2000-11-09 10:47:29 +00:00
Søren Schmidt 29df81fde3 Restore the dump fix Paul Saab introduced in 1.60.2.7 and that I
accidently removed in the MFC, sorry about that...

Approwed by: jkh
2000-11-04 23:04:52 +00:00
Søren Schmidt 19f40184c5 MFC:
Fix probing of CMD646 controllers..
Dont allow DMA on broken HW.

Approved by: jkh
2000-11-04 12:33:17 +00:00
Søren Schmidt ad6901d1bc MFC:
Update the config gathering code for Promise & HPT controllers

Permission from: jkh
2000-11-01 17:54:26 +00:00
Søren Schmidt 692a63bf0b MFC:
Update the Promise RAID code, there are differences between BIOS
version unfortunately...
2000-10-30 17:35:00 +00:00
Søren Schmidt 86f2c338a8 MFC:
Fix the PCCARD ATA breakage..
This is due to a bug that has been in there since Warneer did the
PCCARD stuff, the altioaddr is not offset 8 its offset 14 from
the base address.
Also only probe the master device, no known PCCARD ATA thingies
has a slave AFAIK..
2000-10-30 09:41:28 +00:00
Doug Rabson baed605679 Fix merge breakage. 2000-10-27 21:01:49 +00:00
Søren Schmidt ed0035c34f Add support for tagged queing.
Add options ATA_ENABLE_TAGS.
Add support for ATA software RAID's (Promise Fasttrak Highpoint 370).
Dont use ivars anymore.
Fix the "resource already allocated" panic.
Up the reset pulse to 100ms.
Add support for ServerWorks ROSB4 ATA33 chipset.
Add support for CMD 648 ATA66 & CMD 649 ATA100 chipsets.
Add support for the Promise ATA100 OEM chip (pdc20265).
Add support for the Cyrix 5530.

This brings the ata driver in sync with these -current versions:

src/sys/dev/ata/ata-all.c,v 1.81 2000/10/24 13:50:22 sos Exp $
src/sys/dev/ata/ata-all.h,v 1.34 2000/10/18 18:49:42 sos Exp $
src/sys/dev/ata/ata-disk.c,v 1.86 2000/10/22 12:16:51 sos Exp $
src/sys/dev/ata/ata-disk.h,v 1.30 2000/10/13 13:04:45 sos Exp $
src/sys/dev/ata/ata-dma.c,v 1.51 2000/10/22 12:17:38 sos Exp $
src/sys/dev/ata/ata-raid.c,v 1.3 2000/10/22 12:17:57 sos Exp $
src/sys/dev/ata/ata-raid.h,v 1.2 2000/10/22 12:17:57 sos Exp $
src/sys/dev/ata/atapi-all.c,v 1.55 2000/10/15 14:18:03 phk Exp $
src/sys/dev/ata/atapi-all.h,v 1.29 2000/09/19 11:08:39 sos Exp $
src/sys/dev/ata/atapi-cd.c,v 1.66 2000/09/20 07:00:24 sos Exp $
src/sys/dev/ata/atapi-cd.h,v 1.20 2000/09/19 11:08:39 sos Exp $
src/sys/dev/ata/atapi-fd.c,v 1.53 2000/09/20 07:00:24 sos Exp $
src/sys/dev/ata/atapi-fd.h,v 1.12 2000/09/19 11:08:39 sos Exp $
src/sys/dev/ata/atapi-tape.c,v 1.45 2000/09/19 11:08:39 sos Exp $
src/sys/dev/ata/atapi-tape.h,v 1.13 2000/09/19 11:08:39 sos Exp $
2000-10-25 06:43:02 +00:00
cvs2svn 00f7c25346 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2000-10-24 20:10:26 +00:00
Paul Saab 20b859e527 MFC: Do not allocate a callout for all crashdumps. 2000-10-15 09:45:23 +00:00
Søren Schmidt 3b425e52ba Fix the lba calculation, too much -current'ness crept in, sorry... 2000-08-25 18:38:52 +00:00
Søren Schmidt 9410ca24df MFC:
Update with latest fixes from -current.

ATA100 support.
New improved probe.
Multisector setup more restrictive ata-disk.
New error recovery in ata-disk.
Remove sequence checks in atapi-cd

Brings -stable functionality up to and including following -current revisions:

$FreeBSD: src/sys/dev/ata/ata-all.c,v 1.64
$FreeBSD: src/sys/dev/ata/ata-all.h,v 1.30
$FreeBSD: src/sys/dev/ata/ata-disk.c,v 1.74
$FreeBSD: src/sys/dev/ata/ata-disk.h,v 1.27
$FreeBSD: src/sys/dev/ata/ata-dma.c,v 1.42
$FreeBSD: src/sys/dev/ata/atapi-all.c,v 1.51
$FreeBSD: src/sys/dev/ata/atapi-all.h,v 1.28
$FreeBSD: src/sys/dev/ata/atapi-cd.c,v 1.63
$FreeBSD: src/sys/dev/ata/atapi-cd.h,v 1.19
$FreeBSD: src/sys/dev/ata/atapi-fd.c,v 1.51
$FreeBSD: src/sys/dev/ata/atapi-fd.h,v 1.11
$FreeBSD: src/sys/dev/ata/atapi-tape.c,v 1.44
$FreeBSD: src/sys/dev/ata/atapi-tape.h,v 1.12
2000-08-22 08:41:29 +00:00
Peter Wemm 50f2cb88de MFC: add pmap_kenter_temporary() to replace CADDR1 for crashdump usage. 2000-08-05 00:41:22 +00:00
Peter Wemm 5fe02406b2 MFC: pmap interface optimizations, optionally physically backed SYSVSHM. 2000-08-04 22:31:11 +00:00
Paul Saab 5527912ed0 MFC: Sanitize SYSCTL_HANDLER_ARGS. 2000-08-03 00:09:44 +00:00
Peter Wemm fbca8295bd s/limitted/limited/ 2000-08-02 22:30:37 +00:00
Søren Schmidt 698fb3cecd MFC:
Update with latest fixes from -current, brings -stable functionality
up to and including following -current revisions:

ata-all.c  $FreeBSD: src/sys/dev/ata/ata-all.c,v 1.57 2000/05/28 07:51:23
ata-all.h  $FreeBSD: src/sys/dev/ata/ata-all.h,v 1.27 2000/04/09 15:08:26
ata-disk.c $FreeBSD: src/sys/dev/ata/ata-disk.c,v 1.69 2000/05/23 19:05:56
ata-dma.c  $FreeBSD: src/sys/dev/ata/ata-dma.c,v 1.38 2000/05/23 19:05:56
atapi-cd.h $FreeBSD: src/sys/dev/ata/atapi-cd.h,v 1.18 2000/05/28 07:50:19
2000-06-11 17:02:46 +00:00
Søren Schmidt 3faec93675 MFC:
Fix for the HP burners (and possibly other broken drives to)
that fails to proberly close the disk.
2000-05-03 08:57:31 +00:00
Søren Schmidt 935a4d612d MFC: Add support for ATA66 on newer revisions of the VIA 82C596 2000-05-03 08:56:40 +00:00
Søren Schmidt e4fce3019b MFC: make ATAPI CD changers work again. 2000-04-01 14:11:43 +00:00
Søren Schmidt 6bcb381c5c Remove the old DSC code, it doesn't work anymore. 2000-03-18 22:26:29 +00:00
Søren Schmidt d281aade56 MFC: make disksort do what its supposed to. 2000-03-14 20:25:13 +00:00
Jordan K. Hubbard 0b079fd92f MFC: 1.61 2000-03-13 09:17:32 +00:00
Søren Schmidt 4c435787ab Dont call ad_start unless the controller is idle.
This effectively nullified the usefullness of disksort().
2000-03-12 13:56:05 +00:00
Søren Schmidt 924f6734a5 Cosmetics.. 2000-03-10 22:10:34 +00:00
Søren Schmidt 643b70ec9d Dont call make_dev until we are sure the device is there, this prevents
panic'ing when the device is tried accessed later.
2000-03-10 08:09:53 +00:00
Søren Schmidt aaa29cf209 Fix the CD driver so that the last blocks can be read even if
a blocksize != 2k is used.
Update the timeout code to try fallback to PIO if problems
arise in DMA mode.
2000-03-05 16:52:26 +00:00
Søren Schmidt b744c0fdc6 Spell construct right. 2000-03-01 14:39:51 +00:00
Søren Schmidt 7caf73fb3c Add DVD-RAM support.
The driver constructs a fake disklabel that makes the 'a' partition
cover the entire DVD-RAM disk. This cannot be changed from the user
side. This solution was chosen because most DVD-RAM will have a
UDF (or until we have that CD9660) filesystem on it covering the
entire disk, its not really thought as a real random access device.

This might change over time, but for now this is what we have, and
it is compatible with CDROM's etc, that makes using the minidisk
subsystem less than ideal, because of !modulo BDEV_SIZE blocks.
2000-02-29 22:00:53 +00:00
Søren Schmidt 41ef40c93d Only read user data when blocksize != 2048, this "read the works"
sneaked in sometime which is not what the average user wants.
2000-02-29 16:11:18 +00:00
Søren Schmidt cb66e8d4e3 Fix the problem that caused the boot to fail when modules were loaded.
Real braino, confuses two different softc types, I wonder how this
could ever work :(
2000-02-27 12:41:07 +00:00
Søren Schmidt 1a488af60f Add (partial) support for the Cypress ATA controller.
Call intr_teardown on detach.

Always add non masterdevice from unit 2 upwards.

Update to the pccard code, at least some cards are now working,
more testing to follow.
2000-02-25 09:48:23 +00:00
Søren Schmidt 9bd1c89ad3 Add UDMA66 support to the Intel ICH chip.
Submitted by: [email protected]
2000-02-22 20:37:01 +00:00
Søren Schmidt 456b5ad253 Fix the changer code, dont wait for device ready on unload, it
wont become ready as there is no media - doh.

Update the command name reporting.
2000-02-21 18:41:05 +00:00
Søren Schmidt 47351d2774 Update the ata driver to take more advantage of newbus, this
was needed to make attach/detach of devices work, which is
needed for the PCCARD support.
(PCCARD support is still not working though, more to come on that)

Support the CMD646 chip which is used on many alphas, sadly only
in WDMA2 mode, as the silicon is broken beyond belief for UDMA modes.

Lots of cosmetic fixes here and there.

Sorry for the size of this megapatchfromhell but it was not
possible otherwise...

newbus patches based on work from: dfr (Doug Rabson)
2000-02-18 20:57:33 +00:00
Søren Schmidt 32c3d17908 That "NO DRIVER" panic fix wasn't good enough... 2000-02-11 07:37:00 +00:00
Søren Schmidt 1af69d6936 Probe cosmetics. 2000-02-08 18:38:39 +00:00
Søren Schmidt cc8baa1136 The bde script has a bug, I used a patch from it verbatim, bad idea....
Fixed...
2000-02-08 16:39:11 +00:00
Søren Schmidt e8359a57de Do refcounting of open devices (more) correctly.
count_dev funtion by phk.
2000-02-07 23:05:40 +00:00
Søren Schmidt a9ec39136b Dont panic if no sub-driver is found. 2000-02-07 22:57:11 +00:00
Søren Schmidt 77145a3388 Unbreak addump, now dumping works again. 2000-02-07 22:56:32 +00:00
Søren Schmidt 96ebd6d1fc fix support for shared IRQ's.
fix support for multiple HPT & Promise controllers.

support mixed 33/66 devices on the Promise 66 controllers.

fix the refcount stuff in the atapi drivers.

misc cleanups.
2000-02-04 10:20:22 +00:00
Søren Schmidt 4de1cbfab9 cosmetic changes only. 2000-01-29 22:38:36 +00:00
Søren Schmidt eff43d0e8a cosmetic changes only. 2000-01-29 14:10:59 +00:00
Søren Schmidt a4fec20898 Get the MEDIA_CHANGED status right here too. 2000-01-28 22:17:29 +00:00
Søren Schmidt 211a760057 Use atapi_test_ready not atapi_wait_ready, I need more sleep :( 2000-01-28 21:30:31 +00:00