From c1589c6f917d5321e69a5afd047ade14af73ad8c Mon Sep 17 00:00:00 2001 From: Xiang Wang Date: Mon, 4 Dec 2023 15:25:01 -0800 Subject: [PATCH] Add GPU_LOAD_UP GPU_LOAD_DOWN session hints Bug: 284324521 Test: n/a Change-Id: Iedf0a037939096cae1719a4fbbbc1eece53d2564 --- .../current/android/hardware/power/SessionHint.aidl | 2 ++ power/aidl/android/hardware/power/SessionHint.aidl | 13 +++++++++++++ 2 files changed, 15 insertions(+) diff --git a/power/aidl/aidl_api/android.hardware.power/current/android/hardware/power/SessionHint.aidl b/power/aidl/aidl_api/android.hardware.power/current/android/hardware/power/SessionHint.aidl index 9c1f381543..cb377191bd 100644 --- a/power/aidl/aidl_api/android.hardware.power/current/android/hardware/power/SessionHint.aidl +++ b/power/aidl/aidl_api/android.hardware.power/current/android/hardware/power/SessionHint.aidl @@ -39,4 +39,6 @@ enum SessionHint { CPU_LOAD_RESET = 2, CPU_LOAD_RESUME = 3, POWER_EFFICIENCY = 4, + GPU_LOAD_UP = 5, + GPU_LOAD_DOWN = 6, } diff --git a/power/aidl/android/hardware/power/SessionHint.aidl b/power/aidl/android/hardware/power/SessionHint.aidl index a172e12746..ae91061c60 100644 --- a/power/aidl/android/hardware/power/SessionHint.aidl +++ b/power/aidl/android/hardware/power/SessionHint.aidl @@ -52,4 +52,17 @@ enum SessionHint { * power hint session is noncritical despite its CPU intensity. */ POWER_EFFICIENCY = 4, + + /** + * This hint indicates an increase in GPU workload intensity. It means that + * this hint session needs extra GPU resources to meet the target duration. + * This hint must be sent before reporting the actual duration to the session. + */ + GPU_LOAD_UP = 5, + + /** + * This hint indicates a decrease in GPU workload intensity. It means that + * this hint session can reduce GPU resources and still meet the target duration. + */ + GPU_LOAD_DOWN = 6, }