net: wwan: t7xx: Change PM_AUTOSUSPEND_MS to 5000
Subsystems (5)
PATCH 1/1 net: wwan: t7xx: Change PM_AUTOSUSPEND_MS to 5000
From: Jack Wu <[email protected]>
Because optimizing the power consumption of t7XX,
change auto suspend time to 5000.
The Tests uses a script to loop through the power_state of t7XX.
(for example: /sys/bus/pci/devices/0000\:72\:00.0/power_state)
* If Auto suspend is 20 seconds,
test script show power_state have 0~5% of the time was in D3 state when host don't have data packet transmission.
* Changed auto suspend time to 5 seconds,
test script show power_state have 50%~80% of the time was in D3 state when host don't have data packet transmission.
--- drivers/net/wwan/t7xx/t7xx_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wwan/t7xx/t7xx_pci.c +1 -1
@@ -48,7 +48,7 @@#define T7XX_INIT_TIMEOUT 20#define PM_SLEEP_DIS_TIMEOUT_MS 20#define PM_ACK_TIMEOUT_MS 1500 -#define PM_AUTOSUSPEND_MS 20000 +#define PM_AUTOSUSPEND_MS 5000#define PM_RESOURCE_POLL_TIMEOUT_US 10000#define PM_RESOURCE_POLL_STEP_US 100
Signature · 1 line
2.34.1
Quoted 9 lines · On Wed, Nov 06, 2024 at 06:40:05PM +0800, [email protected] wrote:
From: Jack Wu <[email protected]>
Because optimizing the power consumption of t7XX,
change auto suspend time to 5000.The Tests uses a script to loop through the
power_stateof t7XX.
(for example: /sys/bus/pci/devices/0000\:72\:00.0/power_state)
Quoted 7 lines
* If Auto suspend is 20 seconds,
test script showpower_statehave 0~5% of the time was in D3 state when host don't have data packet transmission.* Changed auto suspend time to 5 seconds,
test script showpower_statehave 50%~80% of the time was in D3 state when host don't have data packet transmission.
Please add the justification for changing this globally, that you tested a number of different machines using the t7xx and they all benefited from this.
Andrew
---
pw-bot: cr
Quoted 1 line · On Wed, Nov 06, 2024 at 06:40:05PM +0800, [email protected] wrote:
From: Jack Wu <[email protected]>
FYI: The net-next should be inside the [] with PATCH:
[PATCH net-next]
Use --subject-prefix= with git format-patch.
You should also put the patch version in there:
[PATCH net-next v42]
Andrew