1. 03 12月, 2012 2 次提交
  2. 16 11月, 2012 1 次提交
  3. 13 9月, 2012 4 次提交
  4. 25 8月, 2012 1 次提交
  5. 24 8月, 2012 3 次提交
  6. 18 8月, 2012 2 次提交
    • Z
      libata: enable SATA disk fua detection on default · 91895b78
      Zheng Liu 提交于
      Currently, SATA disk fua detection is disabled on default because most of
      devices don't support this feature at that time.  With the development of
      technology, more and more SATA disks support this feature.  So now we can enable
      this detection on default.
      
      Although fua detection is defined as a kernel module parameter, it is too hard
      to set its value because it must be loaded and set before system starts up.
      That needs to modify initrd file.  So it is inconvenient for administrator who
      needs to manage a huge number of servers.
      Signed-off-by: NZheng Liu <wenqing.lz@taobao.com>
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      91895b78
    • J
      [libata] new quirk, lift bridge limits for Buffalo DriveStation Quattro · 04d0f1b8
      Jeff Garzik 提交于
      Michael Eitelwein writes:
      
      I have an external SATA drive that was slowed down by bridge limits. I
      found a solution in a thread on this list posted in 2008: It introduces
      whitelist entries in libata-core.c for devices with well working bridges
      (e.g. email on Fri, 31 Oct 2008 01:45:27 -0400).
      
      I added my device to this whitelist in a custom built kernel and it
      works fine for weeks now. How can I have this device added on the
      whitelist within the official kernel? Is this whitelist mechanism still
      supported or is there a smarter way to achieve whitelisting?
      
      I added the following whitelist entry for my Buffalo DriveStation
      Quattro "BUFFALO HD-QSU2/R5":
      
              /* Devices that do not need bridging limits applied */
              { "MTRON MSP-SATA*",            NULL,   ATA_HORKAGE_BRIDGE_OK, },
              { "BUFFALO HD-QSU2/R5",         NULL,   ATA_HORKAGE_BRIDGE_OK, },
      Reported-by: NMichael Eitelwein <michael@eitelwein.net>
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      04d0f1b8
  7. 26 7月, 2012 1 次提交
  8. 20 7月, 2012 1 次提交
  9. 29 6月, 2012 3 次提交
  10. 23 5月, 2012 1 次提交
    • P
      [libata] Add " 2GB ATA Flash Disk"/"ADMA428M" to DMA blacklist · d70e551c
      Prarit Bhargava 提交于
      A user has several systems with a couple of models of flash disks with IDE
      connectors.  These disks work fine in 2.6.18-ish kernels but corrupt data on
      new kernels.
      
      The difference appears to be with the default I/O method used by the IDE
      controller driver between the kernels.  In the older kernels, the
      configuration is very conservative and the driver stays in PIO mode.  With
      new kernels, the ata driver (pata_serverworks) attempts to use UDMA/66
      which the drive claims to support.  This mode, however, does not appear to
      work in DMA mode.  The drive does work correctly and no corruption is
      seen if the kernel parameter "libata.force=5:pio0,6:pio0" is used to force
      the driver to use PIO instead of DMA mode.
      
      Blacklist these drives.  Unfortunately the model name of the drive is very
      generic, " 2GB ATA Flash Disk", but the revision is specific, "ADMA428M".
      Signed-off-by: NPrarit Bhargava <prarit@redhat.com>
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      d70e551c
  11. 08 5月, 2012 1 次提交
  12. 04 5月, 2012 1 次提交
    • T
      libata: init ata_print_id to 0 · a78f57af
      Tero Roponen 提交于
      When comparing the dmesg between 3.4-rc3 and 3.4-rc4 I found the
      following differences:
      
       -ata1: SATA max UDMA/133 abar m2048@0xf9fff000 port 0xf9fff100 irq 47
       -ata2: SATA max UDMA/133 abar m2048@0xf9fff000 port 0xf9fff180 irq 47
       -ata3: DUMMY
       +ata2: SATA max UDMA/133 abar m2048@0xf9fff000 port 0xf9fff100 irq 47
       +ata3: SATA max UDMA/133 abar m2048@0xf9fff000 port 0xf9fff180 irq 47
        ata4: DUMMY
        ata5: DUMMY
       -ata6: SATA max UDMA/133 abar m2048@0xf9fff000 port 0xf9fff380 irq 47
       +ata6: DUMMY
       +ata7: SATA max UDMA/133 abar m2048@0xf9fff000 port 0xf9fff380 irq 47
      
      The change of numbering comes from commit 85d6725b ("libata:
      make ata_print_id atomic") that changed lines like
      
      	ap->print_id = ata_print_id++;
      		to
      	ap->print_id = atomic_inc_return(&ata_print_id);
      
      As the latter behaves like ++ata_print_id, we must initialize
      it to zero to start the numbering from one.
      Signed-off-by: NTero Roponen <tero.roponen@gmail.com>
      Acked-by: NDan Williams <dan.j.williams@intel.com>
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      a78f57af
  13. 13 4月, 2012 1 次提交
  14. 01 3月, 2012 1 次提交
  15. 18 1月, 2012 1 次提交
  16. 09 1月, 2012 5 次提交
  17. 15 10月, 2011 1 次提交
  18. 03 10月, 2011 1 次提交
  19. 24 7月, 2011 4 次提交
    • T
      libata: report link resume failure as KERN_WARNING instead of ERR · 38941c95
      Tejun Heo 提交于
      Link resume failure in itself isn't an error condition and may happen
      regularly depending on hardware configuration.  Reporting it as
      KERN_ERR makes the condition unnecessarily prominent (e.g. reported
      during boot).  Use KERN_WARNING instead.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Reported-by: NDavid Shaw <dshaw@jabberwocky.com>
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      38941c95
    • J
      ata: Add and use ata_print_version_once · 06296a1e
      Joe Perches 提交于
      Use a single mechanism to show driver version.
      Reduces text a tiny bit too.
      
      Remove uses of static int printed_version
      Add and use ata_print_version(const struct device *, const char *ver)
      and ata_print_version_once.
      
      $ size drivers/ata/built-in.*
         text	   data	    bss	    dec	    hex	filename
       544969	  73893	 116584	 735446	  b38d6	drivers/ata/built-in.allyesconfig.ata.o
       543870	  73893	 116592	 734355	  b34ad	drivers/ata/built-in.allyesconfig.print_once.o
       141328	  14689	   4220	 160237	  271ed	drivers/ata/built-in.defconfig.ata.o
       141212	  14689	   4220	 160121	  27179	drivers/ata/built-in.defconfig.print_once.o
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      06296a1e
    • J
      ata: Convert ata_<foo>_printk(KERN_<LEVEL> to ata_<foo>_<level> · a9a79dfe
      Joe Perches 提交于
      Saves text by removing nearly duplicated text format strings by
      creating ata_<foo>_printk functions and printf extension %pV.
      
      ata defconfig size shrinks ~5% (~8KB), allyesconfig ~2.5% (~13KB)
      
      Format string duplication comes from:
      
       #define ata_link_printk(link, lv, fmt, args...) do { \
             if (sata_pmp_attached((link)->ap) || (link)->ap->slave_link)    \
                     printk("%sata%u.%02u: "fmt, lv, (link)->ap->print_id,   \
                            (link)->pmp , ##args); \
             else \
                     printk("%sata%u: "fmt, lv, (link)->ap->print_id , ##args); \
             } while(0)
      
      Coalesce long formats.
      
      $ size drivers/ata/built-in.*
         text	   data	    bss	    dec	    hex	filename
       544969	  73893	 116584	 735446	  b38d6	drivers/ata/built-in.allyesconfig.ata.o
       558429	  73893	 117864	 750186	  b726a	drivers/ata/built-in.allyesconfig.dev_level.o
       141328	  14689	   4220	 160237	  271ed	drivers/ata/built-in.defconfig.ata.o
       149567	  14689	   4220	 168476	  2921c	drivers/ata/built-in.defconfig.dev_level.o
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      a9a79dfe
    • J
      ata: Convert dev_printk(KERN_<LEVEL> to dev_<level>( · a44fec1f
      Joe Perches 提交于
      Saves a bit of text as the call takes fewer args.
      
      Coalesce a few formats.
      Convert a few bare printks to pr_cont.
      
      $ size drivers/ata/built-in.o*
         text	   data	    bss	    dec	    hex	filename
       558429	  73893	 117864	 750186	  b726a	drivers/ata/built-in.o.allyesconfig.new
       559574	  73893	 117888	 751355	  b76fb	drivers/ata/built-in.o.allyesconfig.old
       149567	  14689	   4220	 168476	  2921c	drivers/ata/built-in.o.defconfig.new
       149851	  14689	   4220	 168760	  29338	drivers/ata/built-in.o.defconfig.old
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      a44fec1f
  20. 24 6月, 2011 1 次提交
  21. 20 5月, 2011 1 次提交
  22. 24 4月, 2011 2 次提交
  23. 31 3月, 2011 1 次提交