1. 03 4月, 2008 8 次提交
  2. 30 3月, 2008 1 次提交
  3. 22 3月, 2008 5 次提交
  4. 19 3月, 2008 1 次提交
    • L
      IDE: Make taskfile interface more robust wrt unexpected end-of-command · 6c3c3158
      Linus Torvalds 提交于
      Now that we handle all the special commands using REQ_TYPE_ATA_TASKFILE
      rather than using the old REQ_TYPE_ATA_CMD model, we need to also
      emulate the lack of full taskfile data that comes with the old command
      model (ie when commands are generated with the HDIO_DRIVE_CMD ioctl
      rather than using the HDIO_DRIVE_TASK[FILE] ioctls).
      
      In particular, this means that we should handle command completion the
      more relaxed way that the old drive_cmd_intr() code did.  It allows
      commands to finish early even if they don't use up all the data that we
      thought we had for them.
      
      This fixes a regression seen by Anders Eriksson where some SMART
      commands sent by smartd would cause a boot-time system hang on his
      machine because the IDE command handling code didn't realize that the
      command had completed.
      Tested-by: NAnders Eriksson <aeriksson@fastmail.fm>
      Cc: Jens Axboe <jens.axboe@oracle.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Acked-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      6c3c3158
  5. 08 3月, 2008 4 次提交
  6. 27 2月, 2008 12 次提交
  7. 24 2月, 2008 1 次提交
    • R
      PM: Introduce PM_EVENT_HIBERNATE callback state · 3a2d5b70
      Rafael J. Wysocki 提交于
      During the last step of hibernation in the "platform" mode (with the
      help of ACPI) we use the suspend code, including the devices'
      ->suspend() methods, to prepare the system for entering the ACPI S4
      system sleep state.
      
      But at least for some devices the operations performed by the
      ->suspend() callback in that case must be different from its operations
      during regular suspend.
      
      For this reason, introduce the new PM event type PM_EVENT_HIBERNATE and
      pass it to the device drivers' ->suspend() methods during the last phase
      of hibernation, so that they can distinguish this case and handle it as
      appropriate.  Modify the drivers that handle PM_EVENT_SUSPEND in a
      special way and need to handle PM_EVENT_HIBERNATE in the same way.
      
      These changes are necessary to fix a hibernation regression related
      to the i915 driver (ref. http://lkml.org/lkml/2008/2/22/488).
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      Acked-by: NPavel Machek <pavel@ucw.cz>
      Tested-by: NJeff Chua <jeff.chua.linux@gmail.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      3a2d5b70
  8. 22 2月, 2008 1 次提交
  9. 19 2月, 2008 7 次提交