cvs commit: src/sys/sys ata.h src/sys/conf files kmod.mk options src/sys/dev/ata ata-all.c ata-all.h ata-card.c ata-cbus.c ata-chipset.c ata-commands.h ata-disk.c ata-disk.h ata-dma.c ata-isa.c ata-lowlevel.c ata-pci.c ata-pci.h ata-queue.c ...

Søren Schmidt sos at FreeBSD.org
Wed Mar 30 04:03:41 PST 2005


sos         2005-03-30 12:03:40 UTC

  FreeBSD src repository

  Modified files:
    sys/sys              ata.h 
    sys/conf             files kmod.mk options 
    sys/dev/ata          ata-all.c ata-all.h ata-card.c ata-cbus.c 
                         ata-chipset.c ata-commands.h ata-disk.c 
                         ata-disk.h ata-dma.c ata-isa.c 
                         ata-lowlevel.c ata-pci.c ata-pci.h 
                         ata-queue.c ata-raid.c ata-raid.h 
                         atapi-cd.c atapi-cd.h atapi-fd.c 
                         atapi-fd.h atapi-tape.c atapi-tape.h 
    sys/modules          Makefile 
    sbin/atacontrol      atacontrol.c 
  Added files:
    sys/modules/ata      Makefile Makefile.inc 
    sys/modules/ata/ata  Makefile 
    sys/modules/ata/atacam Makefile 
    sys/modules/ata/atacard Makefile 
    sys/modules/ata/atacbus Makefile 
    sys/modules/ata/atadisk Makefile 
    sys/modules/ata/ataisa Makefile 
    sys/modules/ata/atapci Makefile 
    sys/modules/ata/atapicd Makefile 
    sys/modules/ata/atapifd Makefile 
    sys/modules/ata/atapist Makefile 
    sys/modules/ata/ataraid Makefile 
  Log:
  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)
  
  Revision  Changes      Path
  1.33      +34 -14      src/sbin/atacontrol/atacontrol.c
  1.1011    +1 -0        src/sys/conf/files
  1.186     +3 -2        src/sys/conf/kmod.mk
  1.497     +0 -6        src/sys/conf/options
  1.236     +410 -677    src/sys/dev/ata/ata-all.c
  1.88      +283 -296    src/sys/dev/ata/ata-all.h
  1.30      +10 -27      src/sys/dev/ata/ata-card.c
  1.16      +43 -45      src/sys/dev/ata/ata-cbus.c
  1.99      +797 -513    src/sys/dev/ata/ata-chipset.c
  1.3       +98 -97      src/sys/dev/ata/ata-commands.h
  1.183     +241 -228    src/sys/dev/ata/ata-disk.c
  1.50      +16 -18      src/sys/dev/ata/ata-disk.h
  1.133     +64 -61      src/sys/dev/ata/ata-dma.c
  1.24      +11 -24      src/sys/dev/ata/ata-isa.c
  1.55      +347 -186    src/sys/dev/ata/ata-lowlevel.c
  1.92      +90 -67      src/sys/dev/ata/ata-pci.c
  1.38      +308 -288    src/sys/dev/ata/ata-pci.h
  1.43      +233 -117    src/sys/dev/ata/ata-queue.c
  1.82      +3047 -1392  src/sys/dev/ata/ata-raid.c
  1.28      +575 -234    src/sys/dev/ata/ata-raid.h
  1.174     +620 -694    src/sys/dev/ata/atapi-cd.c
  1.44      +232 -236    src/sys/dev/ata/atapi-cd.h
  1.98      +248 -250    src/sys/dev/ata/atapi-fd.c
  1.24      +36 -40      src/sys/dev/ata/atapi-fd.h
  1.95      +347 -283    src/sys/dev/ata/atapi-tape.c
  1.23      +98 -102     src/sys/dev/ata/atapi-tape.h
  1.435     +1 -0        src/sys/modules/Makefile
  1.1       +13 -0       src/sys/modules/ata/Makefile (new)
  1.1       +3 -0        src/sys/modules/ata/Makefile.inc (new)
  1.1       +10 -0       src/sys/modules/ata/ata/Makefile (new)
  1.1       +9 -0        src/sys/modules/ata/atacam/Makefile (new)
  1.1       +9 -0        src/sys/modules/ata/atacard/Makefile (new)
  1.1       +9 -0        src/sys/modules/ata/atacbus/Makefile (new)
  1.1       +9 -0        src/sys/modules/ata/atadisk/Makefile (new)
  1.1       +9 -0        src/sys/modules/ata/ataisa/Makefile (new)
  1.1       +9 -0        src/sys/modules/ata/atapci/Makefile (new)
  1.1       +9 -0        src/sys/modules/ata/atapicd/Makefile (new)
  1.1       +9 -0        src/sys/modules/ata/atapifd/Makefile (new)
  1.1       +9 -0        src/sys/modules/ata/atapist/Makefile (new)
  1.1       +9 -0        src/sys/modules/ata/ataraid/Makefile (new)
  1.24      +18 -9       src/sys/sys/ata.h


More information about the cvs-src mailing list