1. 19 9月, 2017 1 次提交
    • H
      libata: Add new med_power_with_dipm link_power_management_policy setting · f4ac6476
      Hans de Goede 提交于
      As described by Matthew Garret quite a while back:
      https://mjg59.dreamwidth.org/34868.html
      
      Intel CPUs starting with the Haswell generation need SATA links to power
      down for the "package" part of the CPU to reach low power-states like
      PC7 / P8 which bring a significant power-saving with them.
      
      The default max_performance lpm policy does not allow for these high
      PC states, both the medium_power and min_power policies do allow this.
      
      The min_power policy saves significantly more power, but there are some
      reports of some disks / SSDs not liking min_power leading to system
      crashes and in some cases even data corruption has been reported.
      
      Matthew has found a document documenting the default settings of
      Intel's IRST Windows driver with which most laptops ship:
      https://www-ssl.intel.com/content/dam/doc/reference-guide/sata-devices-implementation-recommendations.pdf
      
      Matthew wrote a patch changing med_power to match those defaults, but
      that never got anywhere as some people where reporting issues with the
      patch-set that patch was a part of.
      
      This commit is another attempt to make the default IRST driver settings
      available under Linux, but instead of changing medium_power and
      potentially introducing regressions, this commit adds a new
      med_power_with_dipm setting which is identical to the existing
      medium_power accept that it enables dipm on top, which makes it match
      the Windows IRST driver settings, which should hopefully be safe to
      use on most devices.
      
      The med_power_with_dipm setting is close to min_power, except that:
      a) It does not use host-initiated slumber mode (ASP not set),
         but it does allow device-initiated slumber
      b) It does not enable DevSlp mode
      
      On my T440s test laptop I get the following power savings when idle:
      medium_power		0.9W
      med_power_with_dipm	1.2W
      min_power		1.2W
      Suggested-by: NMatthew Garrett <mjg59@srcf.ucam.org>
      Cc: Matthew Garrett <mjg59@srcf.ucam.org>
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: NTejun Heo <tj@kernel.org>
      f4ac6476
  2. 08 9月, 2017 1 次提交
  3. 29 8月, 2017 3 次提交
  4. 11 7月, 2017 1 次提交
    • D
      libata: Cleanup ata_read_log_page() · 7cfdfdc8
      Damien Le Moal 提交于
      The warning message "READ LOG DMA EXT failed, trying unqueued" in
      ata_read_log_page() as well as the macro name ATA_HORKAGE_NO_NCQ_LOG
      are confusing: the command READ LOG DMA EXT is not an queued NCQ command
      unless it is encapsulated in a RECEIVE FPDMA QUEUED command.
      From ACS-4 READ LOG DMA EXT description:
      
      "The device processes the READ LOG DMA EXT command in the NCQ feature
      set environment (see 4.13.6) if the READ LOG DMA EXT command is
      encapsulated in a RECEIVE FPDMA QUEUED command (see 7.30) with the
      inputs encapsulated as shown in 7.23.6."
      
      To avoid confusion, fix the warning messsage to mention switching to PIO and
      not "unqueued" and rename the macro ATA_HORKAGE_NO_NCQ_LOG to
      ATA_HORKAGE_NO_DMA_LOG.
      Signed-off-by: NDamien Le Moal <damien.lemoal@wdc.com>
      Reviewed-by: NHannes Reinecke <hare@suse.com>
      Signed-off-by: NTejun Heo <tj@kernel.org>
      7cfdfdc8
  5. 27 6月, 2017 1 次提交
  6. 06 6月, 2017 5 次提交
  7. 01 6月, 2017 1 次提交
  8. 16 5月, 2017 2 次提交
  9. 14 3月, 2017 2 次提交
  10. 07 1月, 2017 4 次提交
  11. 14 12月, 2016 1 次提交
    • A
      ata: avoid probing NCQ Prio Support if not explicitly requested · 9f56eca3
      Adam Manzanares 提交于
      Previously, when the ata device was being initialized we were
      probing for NCQ prio support by checking the identify information
      and also checking the log page that holds information about ncq prio
      support.
      
      This caused an error on an Intel HBA so the code is now updated to
      only probe for NCQ prio support when the sysfs variable controlling
      NCQ prio support is enabled.
      
      tj: Update formatting, switch to spin_[un]lock_irq() and update
          locking a bit, use REVALIDATE instead of RESET, and return -EIO
          instead of -EINVAL on config failure.
      Signed-off-by: NAdam Manzanares <adam.manzanares@wdc.com>
      Signed-off-by: NTejun Heo <tj@kernel.org>
      9f56eca3
  12. 24 10月, 2016 1 次提交
  13. 20 10月, 2016 3 次提交
  14. 19 7月, 2016 2 次提交
  15. 14 7月, 2016 2 次提交
  16. 12 7月, 2016 1 次提交
  17. 20 6月, 2016 1 次提交
    • S
      leds: convert IDE trigger to common disk trigger · eb25cb99
      Stephan Linz 提交于
      This patch converts the IDE specific LED trigger to a generic disk
      activity LED trigger. The libata core is now a trigger source just
      like before the IDE disk driver. It's merely a replacement of the
      string ide by disk.
      
      The patch is taken from http://dev.gentoo.org/~josejx/ata.patch and is
      widely used by any ibook/powerbook owners with great satisfaction.
      Likewise, it is very often used successfully on different ARM platforms.
      
      Unlike the original patch, the existing 'ide-disk' trigger is still
      available for backward compatibility. That reduce the amount of patches
      in affected device trees out of the mainline kernel. For further
      development, the new name 'disk-activity' should be used.
      
      Cc: Joseph Jezak <josejx@gentoo.org>
      Cc: Jörg Sommer <joerg@alea.gnuu.de>
      Cc: Richard Purdie <rpurdie@rpsys.net>
      Signed-off-by: NStephan Linz <linz@li-pro.net>
      Signed-off-by: NJacek Anaszewski <j.anaszewski@samsung.com>
      eb25cb99
  18. 10 5月, 2016 4 次提交
  19. 14 4月, 2016 1 次提交
  20. 05 4月, 2016 3 次提交