aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/ata
diff options
context:
space:
mode:
authorSøren Schmidt <sos@FreeBSD.org>2005-03-30 12:03:40 +0000
committerSøren Schmidt <sos@FreeBSD.org>2005-03-30 12:03:40 +0000
commit8ca4df3299628bad609cb74ee2f76671e07b4788 (patch)
treed973712ac291429795c126539153aec43f4cd2c1 /sys/modules/ata
parent4cb39345c04e97c604c2ed923eea4db5fa7e2632 (diff)
downloadsrc-8ca4df3299628bad609cb74ee2f76671e07b4788.tar.gz
src-8ca4df3299628bad609cb74ee2f76671e07b4788.zip
This is the much rumoured ATA mkIII update that I've been working on.
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
Notes: svn path=/head/; revision=144330
Diffstat (limited to 'sys/modules/ata')
-rw-r--r--sys/modules/ata/Makefile13
-rw-r--r--sys/modules/ata/Makefile.inc3
-rw-r--r--sys/modules/ata/ata/Makefile10
-rw-r--r--sys/modules/ata/atacam/Makefile9
-rw-r--r--sys/modules/ata/atacard/Makefile9
-rw-r--r--sys/modules/ata/atacbus/Makefile9
-rw-r--r--sys/modules/ata/atadisk/Makefile9
-rw-r--r--sys/modules/ata/ataisa/Makefile9
-rw-r--r--sys/modules/ata/atapci/Makefile9
-rw-r--r--sys/modules/ata/atapicd/Makefile9
-rw-r--r--sys/modules/ata/atapifd/Makefile9
-rw-r--r--sys/modules/ata/atapist/Makefile9
-rw-r--r--sys/modules/ata/ataraid/Makefile9
13 files changed, 116 insertions, 0 deletions
diff --git a/sys/modules/ata/Makefile b/sys/modules/ata/Makefile
new file mode 100644
index 000000000000..b01d00f4cbcd
--- /dev/null
+++ b/sys/modules/ata/Makefile
@@ -0,0 +1,13 @@
+# $FreeBSD$
+
+SUBDIR = ata
+SUBDIR += atacard
+.if ${MACHINE} == "pc98"
+SUBDIR += atacbus
+.else
+SUBDIR += ataisa
+.endif
+SUBDIR += atapci
+SUBDIR += atadisk atapicd atapifd atapist ataraid #atacam
+
+.include <bsd.subdir.mk>
diff --git a/sys/modules/ata/Makefile.inc b/sys/modules/ata/Makefile.inc
new file mode 100644
index 000000000000..265f86d1ed55
--- /dev/null
+++ b/sys/modules/ata/Makefile.inc
@@ -0,0 +1,3 @@
+# $FreeBSD$
+
+.include "../Makefile.inc"
diff --git a/sys/modules/ata/ata/Makefile b/sys/modules/ata/ata/Makefile
new file mode 100644
index 000000000000..262984e35e27
--- /dev/null
+++ b/sys/modules/ata/ata/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/ata
+
+KMOD= ata
+SRCS= ata-all.c ata-queue.c ata-lowlevel.c ata_if.c
+# ata-pci.c ata-dma.c ata-chipset.c
+SRCS+= opt_ata.h ata_if.h device_if.h bus_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ata/atacam/Makefile b/sys/modules/ata/atacam/Makefile
new file mode 100644
index 000000000000..dcaf847a3561
--- /dev/null
+++ b/sys/modules/ata/atacam/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/ata
+
+KMOD= atacam
+SRCS= ata-cam.c
+SRCS+= opt_ata.h opt_cam.h ata_if.h device_if.h bus_if.h pci_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ata/atacard/Makefile b/sys/modules/ata/atacard/Makefile
new file mode 100644
index 000000000000..1bb8b5bcddb2
--- /dev/null
+++ b/sys/modules/ata/atacard/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/ata
+
+KMOD= atacard
+SRCS= ata-card.c
+SRCS+= opt_ata.h pccarddevs.h ata_if.h device_if.h bus_if.h isa_if.h card_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ata/atacbus/Makefile b/sys/modules/ata/atacbus/Makefile
new file mode 100644
index 000000000000..2b11a89137ee
--- /dev/null
+++ b/sys/modules/ata/atacbus/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/ata
+
+KMOD= atacbus
+SRCS= ata-cbus.c
+SRCS+= opt_ata.h ata_if.h device_if.h bus_if.h isa_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ata/atadisk/Makefile b/sys/modules/ata/atadisk/Makefile
new file mode 100644
index 000000000000..c64cd3f79a07
--- /dev/null
+++ b/sys/modules/ata/atadisk/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/ata
+
+KMOD= atadisk
+SRCS= ata-disk.c
+SRCS+= opt_ata.h ata_if.h device_if.h bus_if.h pci_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ata/ataisa/Makefile b/sys/modules/ata/ataisa/Makefile
new file mode 100644
index 000000000000..b43fd2e34888
--- /dev/null
+++ b/sys/modules/ata/ataisa/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/ata
+
+KMOD= ataisa
+SRCS= ata-isa.c
+SRCS+= opt_ata.h ata_if.h device_if.h bus_if.h isa_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ata/atapci/Makefile b/sys/modules/ata/atapci/Makefile
new file mode 100644
index 000000000000..00d188bb9a8d
--- /dev/null
+++ b/sys/modules/ata/atapci/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/ata
+
+KMOD= atapci
+SRCS= ata-pci.c ata-dma.c ata-chipset.c
+SRCS+= opt_ata.h ata_if.h device_if.h bus_if.h pci_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ata/atapicd/Makefile b/sys/modules/ata/atapicd/Makefile
new file mode 100644
index 000000000000..bcc23199d653
--- /dev/null
+++ b/sys/modules/ata/atapicd/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/ata
+
+KMOD= atapicd
+SRCS= atapi-cd.c
+SRCS+= opt_ata.h ata_if.h device_if.h bus_if.h pci_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ata/atapifd/Makefile b/sys/modules/ata/atapifd/Makefile
new file mode 100644
index 000000000000..f5637480a26d
--- /dev/null
+++ b/sys/modules/ata/atapifd/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/ata
+
+KMOD= atapifd
+SRCS= atapi-fd.c
+SRCS+= opt_ata.h ata_if.h device_if.h bus_if.h pci_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ata/atapist/Makefile b/sys/modules/ata/atapist/Makefile
new file mode 100644
index 000000000000..86c19b5f7b89
--- /dev/null
+++ b/sys/modules/ata/atapist/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/ata
+
+KMOD= atapist
+SRCS= atapi-tape.c
+SRCS+= opt_ata.h ata_if.h device_if.h bus_if.h pci_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/ata/ataraid/Makefile b/sys/modules/ata/ataraid/Makefile
new file mode 100644
index 000000000000..8f41bd7425b1
--- /dev/null
+++ b/sys/modules/ata/ataraid/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../dev/ata
+
+KMOD= ataraid
+SRCS= ata-raid.c
+SRCS+= opt_ata.h ata_if.h device_if.h bus_if.h pci_if.h
+
+.include <bsd.kmod.mk>