Hi Hans,
On Fri, 2018-07-13 at 11:08 +0200, Hans de Goede wrote:
Hi,
On 13-07-18 00:27, Srinivas Pandruvada wrote:
Currently when min_power policy is selected, the partial low power
state
is not entered and link will try aggressively enter to only slumber
state.
Add a new policy which still enable DEVSLP but also try to enter
partial
low power state.
For information the difference between partial and slumber
Partial – PHY logic is powered up, and in a reduced power state.
The link
PM exit latency to active state maximum is 10 ns.
Slumber – PHY logic is powered up, and in a reduced power state.
The link
PM exit latency to active state maximum is 10 ms.
Devslp – PHY logic is powered down. The link PM exit latency from
this
state to active state maximum is 20 ms, unless otherwise specified
by
DETO.
Suggested-by: Hans de Goede <[email protected]>
Signed-off-by: Srinivas Pandruvada <[email protected]
.com>
You got this the wrong way around, when ALP
You mean ASP, as per spec in section 3.3.7 of the spec.
is not set you only get
partial,
Not exactly.
It means that the system will try to enter aggressively partial . I
have seen slumber residency also when this is reset. When "set" you
don't see any any partial. But when you reset you see both. So based on
idle duration link will transition from partial to slumber even if "not
set".
the ALP bit is active high, not active low as your commit
suggests. So the name of the new policy should be
min_power_without_asp.
The policy name I am suggesting is not the actual bit value of ASP (I
interpreted ASP as name for partial), but whether you will get to
partial or not. So I think it is better to rename to
"min_power_with_partial". User should not have to worry about the bit
value.
So user will see with the rename from "min_power_with_asp" to
"min_power_with_partial":
#cat /sys/class/scsi_host/host*/link_power_management_policy
min_power_with_partial
min_power_with_partial
min_power_with_partial
Output of test (You will see both partial and slumber)
SATA LPM Summary - Sampled: Residency (Percentage)
Disk Name , Off (%), Active (%), Partial (%), Slumber (%), Devsleep
(%), Other (%), Uninitialized (%)
--------- , -------, ----------, -----------, -----------,
------------, ---------, -----------------
INTEL SSDSCKJF180A5, 0.0 , 4.6 , 13.1 , 30.3 , 52.0
, 0.0 , 0.0
SATA LPM Summary - Sampled: Counts
Disk Name , Off, Active, Partial, Slumber, Devsleep, Other,
Uninitialized
--------- , ---, ------, -------, -------, --------, -----,
-------------
INTEL SSDSCKJF180A5, 0 , 9 , 27 , 60 , 103 , 0 , 0
# cat /sys/class/scsi_host/host*/link_power_management_policy
min_power
min_power
min_power
Output of test (You will see only slumber)
SATA LPM Summary - Sampled: Residency (Percentage)
Disk Name , Off (%), Active (%), Partial (%), Slumber (%), Devsleep
(%), Other (%), Uninitialized (%)
--------- , -------, ----------, -----------, -----------,
------------, ---------, -----------------
INTEL SSDSCKJF180A5, 0.0 , 6.8 , 0.0 , 53.8 , 39.3
, 0.0 , 0.0
SATA LPM Summary - Sampled: Counts
Disk Name , Off, Active, Partial, Slumber, Devsleep, Other,
Uninitialized
--------- , ---, ------, -------, -------, --------, -----,
-------------
INTEL SSDSCKJF180A5, 0 , 11 , 0 , 107 , 76 , 0 , 0