From: Taimur Hassan <[email protected]>

[Why & How]
Update DMUB related command structure.

Acked-by: Tom Chung <[email protected]>
Signed-off-by: Taimur Hassan <[email protected]>
Signed-off-by: Ray Wu <[email protected]>
---
 .../gpu/drm/amd/display/dmub/inc/dmub_cmd.h   | 24 +++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h 
b/drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h
index a4043c5f22ea..ef576640de5b 100644
--- a/drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h
+++ b/drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h
@@ -1759,6 +1759,30 @@ enum dmub_gpint_command {
         *       1 - Enable panel polarity
         */
        DMUB_GPINT__PANEL_POLARITY_DEBUG_ENABLE = 140,
+       /**
+        * DESC: Reset the boot-time cumulative PHY-off residency counter.
+        * PARAMS: [7:0] panel_inst
+        * RETURN: 0 (ACK)
+        */
+       DMUB_GPINT__REPLAY_RESET_CUMULATIVE_RESIDENCY = 141,
+       /**
+        * DESC: Query boot-time cumulative PHY-off residency, low 32 bits 
(microseconds).
+        * PARAMS: [7:0] panel_inst
+        * RETURN: Lower 32 bits of accumulated PHY-off time in microseconds.
+        */
+       DMUB_GPINT__REPLAY_GET_CUMULATIVE_RESIDENCY_US_LO = 142,
+       /**
+        * DESC: Query boot-time cumulative PHY-off residency, high 32 bits 
(microseconds).
+        * PARAMS: [7:0] panel_inst
+        * RETURN: Upper 32 bits of accumulated PHY-off time in microseconds.
+        */
+       DMUB_GPINT__REPLAY_GET_CUMULATIVE_RESIDENCY_US_HI = 143,
+       /**
+        * DESC: Compute + log cumulative PHY-off residency snapshot; return 
milli-percent.
+        * PARAMS: [7:0] panel_inst
+        * RETURN: Residency in milli-percent (0-100000). Also emits DMUB trace 
log.
+        */
+       DMUB_GPINT__REPLAY_SNAPSHOT_CUMULATIVE_RESIDENCY = 144,
 };
 
 /**
-- 
2.43.0

Reply via email to