1. 09 1月, 2012 4 次提交
    • L
      ata: add ata port runtime PM callbacks · 9ee4f393
      Lin Ming 提交于
      Add ata port runtime suspend/resume/idle callbacks.
      Set ->eh_noresume to skip the runtime PM calls on scsi host
      in the error handler to avoid dead lock.
      Acked-by: NTejun Heo <tj@kernel.org>
      Signed-off-by: NLin Ming <ming.m.lin@intel.com>
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      9ee4f393
    • L
      ata: add ata port system PM callbacks · 5ef41082
      Lin Ming 提交于
      Change ata_host_request_pm to ata_port_request_pm which performs
      port suspend/resume.
      
      Add ata port type driver which implements port PM callbacks.
      Signed-off-by: NLin Ming <ming.m.lin@intel.com>
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      5ef41082
    • L
      ata: make ata port as parent device of scsi host · 9a6d6a2d
      Lin Ming 提交于
      Currently, the device tree of ata port and scsi host looks as below,
      
              /sys/devices/pci0000:00/0000:00:1f.2    (ahci controller)
              |-- ata1                                (ata port)
              |-- host0                               (scsi host)
                 |-- target0:0:0                      (scsi target)
                     |-- 0:0:0:0                      (disk)
      
      This patch makes ata port as parent device of scsi host, then it becomes
      
              /sys/devices/pci0000:00/0000:00:1f.2    (ahci controller)
              |-- ata1                                (ata port)
                  |-- host0                           (scsi host)
                      |-- target0:0:0                 (scsi target)
                          |-- 0:0:0:0                 (disk)
      
      With this change, the ata port runtime PM is easier.
      For example, the ata port runtime suspend will happen as,
      
      disk suspend --> scsi target suspend --> scsi host suspend --> ata port
      suspend.
      Acked-by: NTejun Heo <tj@kernel.org>
      Signed-off-by: NLin Ming <ming.m.lin@intel.com>
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      9a6d6a2d
    • T
      ahci: start engine only during soft/hard resets · 7faa33da
      Tejun Heo 提交于
      This is another attempt at fixing the same problem that 270dac35
      (libata: ahci_start_engine compliant to AHCI spec) tried to solve.
      Unfortunately, 270dac35 created regressions for a lot more common
      controllers and got reverted.
      
      This specific AHCI IP block becomes a brick if the DMA engine is
      started while DRQ is set.  It is not possible to avoid the condition
      completely but the most common occurrence is caused by spurious use of
      ahci_start_engine() from ahci_start_port() during init sequence.
      
      DMA engine is started after both soft and hard resets and
      ahci_start_port() is always followed by resets, so there is no reason
      to start DMA engine from ahci_start_port().
      
      This patch removes ahci_start_engine() invocation from
      ahci_start_port().  This change makes failure path of
      ahci_port_suspend() leave engine stopped without following resets.
      This is resolved by replacing ahci_start_port() call with
      ata_port_freeze() which forces resets afterwards, which is the better
      behavior anyway.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Reported-by: NBrian Norris <computersforpeace@gmail.com>
      Reported-by: NJian Peng <jipeng2005@gmail.com>
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      7faa33da
  2. 23 12月, 2011 1 次提交
  3. 17 11月, 2011 2 次提交
  4. 11 11月, 2011 1 次提交
  5. 09 11月, 2011 5 次提交
  6. 04 11月, 2011 1 次提交
  7. 01 11月, 2011 2 次提交
  8. 15 10月, 2011 24 次提交