1. 04 Nov, 2007 25 commits
  2. 03 Nov, 2007 15 commits
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block · b4f55508
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.dk/linux-2.6-block:
        [BLOCK] Don't allow empty barriers to be passed down to queues that don't grok them
        dm: bounce_pfn limit added
        Deadline iosched: Fix batching fairness
        Deadline iosched: Reset batch for ordered requests
        Deadline iosched: Factor out finding latter reques
      b4f55508
    • Linus Torvalds's avatar
      Merge branch 'sg' of git://git.kernel.dk/linux-2.6-block · 160acc2e
      Linus Torvalds authored
      * 'sg' of git://git.kernel.dk/linux-2.6-block:
        [SG] Get rid of __sg_mark_end()
        cleanup asm/scatterlist.h includes
        SG: Make sg_init_one() use general table init functions
      160acc2e
    • Linus Torvalds's avatar
      Merge branch 'v2.6.24-rc1-lockdep' of... · a7e1e001
      Linus Torvalds authored
      Merge branch 'v2.6.24-rc1-lockdep' of git://git.kernel.org/pub/scm/linux/kernel/git/peterz/linux-2.6-lockdep
      
      * 'v2.6.24-rc1-lockdep' of git://git.kernel.org/pub/scm/linux/kernel/git/peterz/linux-2.6-lockdep:
        lockdep: fix a typo in the __lock_acquire comment
        sched: fix unconditional irq lock
        lockdep: fixup irq tracing
      a7e1e001
    • Linus Torvalds's avatar
      Merge master.kernel.org:/pub/scm/linux/kernel/git/lethal/sh64-2.6 · 21806261
      Linus Torvalds authored
      * master.kernel.org:/pub/scm/linux/kernel/git/lethal/sh64-2.6:
        sh64: Update defconfigs.
        sh64: fix dma_cache_sync() compilation
        sh64: Move DMA macros from pci.h to scatterlist.h.
      21806261
    • Linus Torvalds's avatar
      Merge master.kernel.org:/pub/scm/linux/kernel/git/lethal/sh-2.6 · 5c27d0f1
      Linus Torvalds authored
      * master.kernel.org:/pub/scm/linux/kernel/git/lethal/sh-2.6: (24 commits)
        sh: Update r7785rp defconfig.
        sh: mach-type updates.
        sh: Fix up r7780rp highlander CF access size.
        sh: Terminate .eh_frame in VDSO with a 4-byte 0.
        sh: Correct SUBARCH matching.
        sh: Decouple 4k and soft/hardirq stacks.
        sh: Fix optimized __copy_user() movca.l usage.
        sh: Clean up SR.RB Kconfig mess.
        sh: Kill off dead ipr_irq_demux().
        sh: Make SH7750 oprofile compile again.
        sh: Provide a __read_mostly section wrapper.
        sh: linker script tidying.
        sh: Move zero page param defs somewhere sensible.
        sh: Use generic SMP_CACHE_BYTES/L1_CACHE_ALIGN.
        sh: Kill off legacy embedded ramdisk section.
        sh: Fix up early mem cmdline parsing.
        sh: Enable USBF on MS7722SE.
        sh: Add resource of USBF for SH7722.
        maple: Fix maple bus compiler warning
        sh: fix zImage build with >=binutils-2.18
        ...
      5c27d0f1
    • Linus Torvalds's avatar
      Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev · 468f8afd
      Linus Torvalds authored
      * 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev: (23 commits)
        libata: don't configure downstream links faster than the upstream link
        libata: request PHY speed configuration on SControl access failure
        libata: consider errors not associated with commands for speed down
        libata: more robust reset failure handling
        libata: cosmetic clean up / reorganization of ata_eh_reset()
        libata: fix timing computation in ata_eh_reset()
        libata: increase 128 KB / cmd limit for ATAPI tape drives
        sata_promise: fix endianess bug in ASIC PRD bug workaround
        libata: fix docbook
        make ata_scsi_lpm_get() static
        libata: suppress two warnings
        ata/sata_fsl: Remove ata_scsi_suspend/resume callbacks
        ata/sata_fsl: Remove sending LOG EXT command in sata_fsl_softreset()
        ata/sata_fsl: Move MPC8315DS link speed limit workaround to specific ifdef
        ata/sata_fsl: cleanup style problem
        ata/sata_fsl: remove unneeded sata_fsl_hardreset()
        ata/sata_fsl: remove unneeded on-stack copy of FIS
        ata/sata_fsl: cleanup needless casts to/from void __iomem *
        ata/sata_fsl: Remove unnecessary SCR cases
        ata/sata_fsl: Kill ata_sg_is_last()
        ...
      468f8afd
    • Anton Altaparmakov's avatar
      NTFS: Fix read regression. · ebab8990
      Anton Altaparmakov authored
      The regression was caused by:
              commit[a32ea1e1] Fix read/truncate race
      
      This causes ntfs_readpage() to be called for a zero i_size inode, which
      failed when the file was compressed and non-resident.
      
      Thanks a lot to Mike Galbraith for reporting the issue and tracking down
      the commit that caused the regression.
      
      Looking into it I found three bugs which the patch fixes.
      Signed-off-by: default avatarAnton Altaparmakov <aia21@cantab.net>
      Tested-by: default avatarMike Galbraith <efault@gmx.de>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      ebab8990
    • Tejun Heo's avatar
      libata: don't configure downstream links faster than the upstream link · 5270222f
      Tejun Heo authored
      There's nothing to be gained by configuring downstream links faster
      than the upstream link and such configurations cause problems on
      certain PMPs.  Limit downstream link speed by the upstream link speed.
      Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      5270222f
    • Tejun Heo's avatar
      libata: request PHY speed configuration on SControl access failure · db64bcf3
      Tejun Heo authored
      In sata_set_spd_needed(), if SControl read failed, it returned 0 and
      skipped PHY speed configuration.  However, if SControl access fails,
      it's far more logical to request PHY speed configuration.  Reverse the
      logic.
      Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      db64bcf3
    • Tejun Heo's avatar
      libata: consider errors not associated with commands for speed down · dfcc173d
      Tejun Heo authored
      libata EH used to ignore errors not associated with commands when
      determining whether speed down is necessary or not.  This leads to the
      following problems.
      
      * Errors not associated with commands can occur indefinitely without
        libata EH taking corrective actions.
      
      * Upstream link errors don't trigger speed down when PMP is attached
        to it and commands issued to downstream device trigger errors on the
        upstream link.
      
      This patch makes ata_eh_link_autopsy() consider errors not associated
      with command for speed down.
      Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      dfcc173d
    • Tejun Heo's avatar
      libata: more robust reset failure handling · 08cf69d0
      Tejun Heo authored
      Reset failure is a critical error.  It results in disabling the link
      requiring user intervention to re-enable it.  Make reset failure
      handling more robust such that libata EH doesn't give up too early.
      
      * Temporary glitches during hardreset may lead to classification
        failure when there's no softreset available.  Retry instead of
        giving up.
      
      * Initial softreset or follow up softreset may fail classification.
        Move classification error handling block out of followup softreset
        block such that both cases are handled and retry instead of giving
        up.  Also, on the last try, give ATA class a blind shot.
      Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      08cf69d0
    • Tejun Heo's avatar
      libata: cosmetic clean up / reorganization of ata_eh_reset() · 416dc9ed
      Tejun Heo authored
      Clean up and reorganize ata_eh_reset() to ease further changes.
      
      * Cache ARRAY_SIZE(ata_eh_reset_timeouts) in @max_tries.
      * Cache link->flags in @lflags.
      * Move failure handling block to the end of the function and unnest
        both success and failure handling blocks.
      Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      416dc9ed
    • Tejun Heo's avatar
      libata: fix timing computation in ata_eh_reset() · cd955463
      Tejun Heo authored
      As jiffies changes asynchronously, it needs to be cached if unchanging
      timestamp is needed.  The code in ata_eh_reset() intended to do that
      with @now but never actually did it.  Fix it.
      Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      cd955463
    • Tony Battersby's avatar
      libata: increase 128 KB / cmd limit for ATAPI tape drives · f8d8e579
      Tony Battersby authored
      Commands sent to ATAPI tape drives via the SCSI generic (sg) driver are
      limited in the amount of data that they can transfer by the max_sectors
      value.  The max_sectors value is currently calculated according to the
      command set for disk drives, which doesn't apply to tape drives.  The
      default max_sectors value of 256 limits ATAPI tape drive commands to
      128 KB.  This patch against 2.6.24-rc1 increases the max_sectors value
      for tape drives to 65535, which permits tape drive commands to transfer
      just under 32 MB.
      
      Tested with a SuperMicro PDSME motherboard, AHCI, and a Sony SDX-570V
      SATA tape drive.
      
      Note that some of the chipset drivers also set their own max_sectors
      value, which may override the value set in libata-core.  I don't have
      any of these chipsets to test, so I didn't go messing with them.  Also,
      ATAPI devices other than tape drives may benefit from similar changes,
      but I have only tape drives and disk drives to test.
      Signed-off-by: default avatarTony Battersby <tonyb@cybernetics.com>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      f8d8e579
    • Mikael Pettersson's avatar
      sata_promise: fix endianess bug in ASIC PRD bug workaround · 03116d67
      Mikael Pettersson authored
      The original workaround for the Promise ASIC PRD bug
      contained an endianess bug which I failed to detect:
      the adjustment of the last PRD entry's length field
      applied host arithmetic to little-endian data, which
      is incorrect on big-endian machines.
      
      We have the length available in host-endian format, so
      do the adjustment on host-endian data and then convert
      and store it in the PRD entry's little-endian data field.
      
      Thanks to an anonymous reviewer for detecting this bug.
      Signed-off-by: default avatarMikael Pettersson <mikpe@it.uu.se>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      03116d67