Skip to content

ata: ahci: Enable DEVSLP by default on SLP_S0 support

Srinivas Pandruvada linux-ide lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ata: ahci: Support state with min power but Partial low power statedrivers/ata/libahci.c drivers/ata/libata-core.c drivers/ata/libata-scsi.c +1 more+8 -20 replies
2/2ata: ahci: Enable DEVSLP by default on x86 with SLP_S0drivers/ata/ahci.c+29 -41 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] ata: ahci: Enable DEVSLP by default on SLP_S0 support

One of the requirement for modern x86 system to enter lowest power mode (SLP_S0) is SATA IP block to be off. This is true even during when platform is suspended to idle and not only in opportunistic (runtime) suspend.
This series is to enable DEVSLP by default.

-current (non-rfc) series
Implemented suggestions from Hans
- no override of policy set via module param
- Overide lpm policy per host not global policy
- changed the new policy name to "min_power_with_partial"

rfc-v2
- As suggested by Hans, it is possible to have ASP with DEVSLP, so add a new state.
- Removed usage of mem_sleep_current, instead just rely on low power idle flag. Don't feel good to EXPORT from core suspend code.
- Depending host policy to decide if we enable DEVSLP by default.

Srinivas Pandruvada (2):
ata: ahci: Support state with min power but Partial low power state
ata: ahci: Enable DEVSLP by default on x86 with SLP_S0

 drivers/ata/ahci.c        | 33 +++++++++++++++++++++++++++++----
 drivers/ata/libahci.c     |  6 +++++-
 drivers/ata/libata-core.c |  1 +
 drivers/ata/libata-scsi.c |  1 +
 include/linux/libata.h    |  3 ++-
 5 files changed, 38 insertions(+), 6 deletions(-)
Signature · 1 line
2.17.1