1. 06 May, 2008 9 commits
    • Mark Lord's avatar
      sata_mv new mv_qc_defer method · 3e4a1391
      Mark Lord authored
      The EDMA engine cannot tolerate a mix of NCQ/non-NCQ commands,
      and cannot be used for PIO at all.  So we need to prevent libata
      from trying to feed us such mixtures.
      
      Introduce mv_qc_defer() for this purpose, and use it for all chip versions.
      Signed-off-by: default avatarMark Lord <mlord@pobox.com>
      Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
      3e4a1391
    • Mark Lord's avatar
      sata_mv wait for empty+idle · 9b2c4e0b
      Mark Lord authored
      When performing EH, it is recommended to wait for the EDMA engine
      to empty out requests-in-progress before disabling EDMA.
      
      Introduce code to poll the EDMA_STATUS register for idle/empty bits
      before disabling EDMA.  For non-EH operation, this will normally exit
      without delay, other than the register read.
      
      A later series of patches may focus on eliminating this and various
      other register reads (when possible) throughout the driver,
      but for now we're focussing on solid reliablity.
      Signed-off-by: default avatarMark Lord <mlord@pobox.com>
      Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
      9b2c4e0b
    • Mark Lord's avatar
      sata_mv pci features · 616d4a98
      Mark Lord authored
      Some of the GenIIe EDMA optimizations should not be used
      for non-PCI (SOC) devices, and nor for certain configurations
      of conventional PCI (non PCI-X, PCIe) buses.
      
      Logic taken/simplified from that in the Marvell proprietary driver.
      Signed-off-by: default avatarMark Lord <mlord@pobox.com>
      Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
      616d4a98
    • Mark Lord's avatar
      sata_mv more cosmetic changes · 8e7decdb
      Mark Lord authored
      More cosmetic changes; no code changes.
      
       -- try and improve consistency of naming.
       -- add missing _OFS to tails of register offset definitions.
       -- rename mv_setup_ifctl() to mv_setup_ifcfg(), since that's what it really does.
       -- remove/move some dead comments
      Signed-off-by: default avatarMark Lord <mlord@pobox.com>
      Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
      8e7decdb
    • Alek Du's avatar
      libata: Add Intel SCH PATA driver · 07ab85de
      Alek Du authored
      This patch adds Intel SCH chipsets (AF82US15W, AF82US15L, AF82UL11L)
      PATA controller support.
      Signed-off-by: default avatarAlek Du <alek.du@intel.com>
      Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
      07ab85de
    • Tejun Heo's avatar
      ata_piix: verify SIDPR access before enabling it · cb6716c8
      Tejun Heo authored
      On certain configurations (certain macbooks), even though all the
      conditions for SIDPR access described in the datasheet are met,
      actually reading those registers just returns 0 and have no effect on
      write.  Verify SIDPR is actually working before enabling it.
      
      This is reported by Ryan Roth in bz#10512.
      Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
      Cc: Ryan Roth <ryan.roth@ch2m.com>
      Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
      cb6716c8
    • Tejun Heo's avatar
      libata: improve post-reset device ready test · 78ab88f0
      Tejun Heo authored
      Some controllers (jmb and inic162x) use 0x77 and 0x7f to indicate that
      the device isn't ready yet.  It looks like they use 0xff if device
      presence is detected but connection isn't established.  0x77 or 0x7f
      after connection is established and use the value from signature FIS
      after receiving it.
      
      This patch implements ata_check_ready(), which takes TF status value
      and determines whether the port is ready or not considering the above
      and other conditions, and use it in @check_ready() functions.  This is
      safe as both 0x77 and 0x7f aren't valid ready status value even though
      they have BSY bit cleared.
      
      This fixes hot plug detection failures which can be triggered with
      certain drives if they aren't already spun up when the data connector
      is hot plugged.
      
      Tested on sil, sil24, ahci (jmb/ich), piix and inic162x combined with
      eight drives from all major vendors.
      Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
      Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
      78ab88f0
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband · a1530636
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband:
        mlx4_core: Support creation of FMRs with pages smaller than 4K
        IB/ehca: Fix function return types
        RDMA/cxgb3: Bump up the MPA connection setup timeout.
        RDMA/cxgb3: Silently ignore close reply after abort.
        RDMA/cxgb3: QP flush fixes
        IB/ipoib: Fix transmit queue stalling forever
        IB/mlx4: Fix off-by-one errors in calls to mlx4_ib_free_cq_buf()
      a1530636
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of... · bb896afe
      Linus Torvalds authored
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mingo/linux-2.6-sched-fixes
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mingo/linux-2.6-sched-fixes:
        sched: default to n for GROUP_SCHED and FAIR_GROUP_SCHED
        sched: add optional support for CONFIG_HAVE_UNSTABLE_SCHED_CLOCK
        sched, x86: add HAVE_UNSTABLE_SCHED_CLOCK
        sched: fix cpu clock
        sched: fair-group: fix a Div0 error of the fair group scheduler
        sched: fix missing locking in sched_domains code
        sched: make clock sync tunable by architecture code
        sched: fix debugging
        sched: fix sched_info_switch not being called according to documentation
        sched: fix hrtick_start_fair and CPU-Hotplug
        sched: fix SCHED_FAIR wake-idle logic error
        sched: fix RT task-wakeup logic
        sched: add statics, don't return void expressions
        sched: add debug checks to idle functions
        sched: remove old sched doc
        sched: make rt_sched_class, idle_sched_class static
        sched: optimize calc_delta_mine()
        sched: fix normalized sleeper
      bb896afe
  2. 05 May, 2008 31 commits