]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amd/display: [FW Promotion] Release 0.1.57.0
authorTaimur Hassan <Syed.Hassan@amd.com>
Fri, 17 Apr 2026 21:21:15 +0000 (17:21 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Apr 2026 18:30:55 +0000 (14:30 -0400)
[Why & How]
Modify some IPS related commands.

Acked-by: Alex Hung <Alex.Hung@amd.com>
Signed-off-by: Taimur Hassan <Syed.Hassan@amd.com>
Signed-off-by: Tom Chung <chiahsuan.chung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h

index fe9431cea3e5255c6f9098e8332ed2f2a8c0a4aa..7ae5f666883ddaa1f1f606d529d6bfa181c0907e 100644 (file)
@@ -1546,8 +1546,9 @@ enum dmub_gpint_command {
         * DESC: Gets IPS residency in microseconds
         * ARGS: 0 - Return IPS1 residency
         *       1 - Return IPS2 residency
-        *       2 - Return IPS1_RCG residency
+        *       2 - Return IPS0_RCG residency
         *       3 - Return IPS1_ONO2_ON residency
+        *       4 - Return IPS1_Z8_RETENTION residency
         * RETURN: Total residency in microseconds - lower 32 bits
         */
        DMUB_GPINT__GET_IPS_RESIDENCY_DURATION_US_LO = 124,
@@ -1567,17 +1568,18 @@ enum dmub_gpint_command {
         * DESC: Gets IPS residency
         * ARGS: 0 - Return IPS1 residency
         *       1 - Return IPS2 residency
-        *       2 - Return IPS1_RCG residency
+        *       2 - Return IPS0_RCG residency
         *       3 - Return IPS1_ONO2_ON residency
+        *       4 - Return IPS1_Z8_RETENTION residency
         * RETURN: Total residency in milli-percent.
         */
        DMUB_GPINT__GET_IPS_RESIDENCY_PERCENT = 127,
        /**
-        * DESC: Gets IPS1_RCG histogram counts
+        * DESC: Gets IPS0_RCG histogram counts
         * ARGS: Bucket index
         * RETURN: Total count for the bucket
         */
-       DMUB_GPINT__GET_IPS1_RCG_HISTOGRAM_COUNTER = 128,
+       DMUB_GPINT__GET_IPS0_RCG_HISTOGRAM_COUNTER = 128,
        /**
         * DESC: Gets IPS1_ONO2_ON histogram counts
         * ARGS: Bucket index
@@ -1588,8 +1590,9 @@ enum dmub_gpint_command {
         * DESC: Gets IPS entry counter during residency measurement
         * ARGS: 0 - Return IPS1 entry counts
         *       1 - Return IPS2 entry counts
-        *       2 - Return IPS1_RCG entry counts
-        *       3 - Return IPS2_ONO2_ON entry counts
+        *       2 - Return IPS0_RCG entry counts
+        *       3 - Return IPS1_ONO2_ON entry counts
+        *       4 - Return IPS1_Z8_RETENTION entry counts
         * RETURN: Entry counter for selected IPS mode
         */
        DMUB_GPINT__GET_IPS_RESIDENCY_ENTRY_COUNTER = 130,
@@ -1597,8 +1600,9 @@ enum dmub_gpint_command {
         * DESC: Gets IPS inactive residency in microseconds
         * ARGS: 0 - Return IPS1_MAX residency
         *       1 - Return IPS2 residency
-        *       2 - Return IPS1_RCG residency
+        *       2 - Return IPS0_RCG residency
         *       3 - Return IPS1_ONO2_ON residency
+        *       4 - Return IPS1_Z8_RETENTION residency
         * RETURN: Total inactive residency in microseconds - lower 32 bits
         */
        DMUB_GPINT__GET_IPS_INACTIVE_RESIDENCY_DURATION_US_LO = 131,
@@ -1606,8 +1610,9 @@ enum dmub_gpint_command {
         * DESC: Gets IPS inactive residency in microseconds
         * ARGS: 0 - Return IPS1_MAX residency
         *       1 - Return IPS2 residency
-        *       2 - Return IPS1_RCG residency
+        *       2 - Return IPS0_RCG residency
         *       3 - Return IPS1_ONO2_ON residency
+        *       4 - Return IPS1_Z8_RETENTION residency
         * RETURN: Total inactive residency in microseconds - upper 32 bits
         */
        DMUB_GPINT__GET_IPS_INACTIVE_RESIDENCY_DURATION_US_HI = 132,
@@ -1615,8 +1620,9 @@ enum dmub_gpint_command {
         * DESC: Gets IPS residency in microseconds
         * ARGS: 0 - Return IPS1 residency
         *       1 - Return IPS2 residency
-        *       2 - Return IPS1_RCG residency
+        *       2 - Return IPS0_RCG residency
         *       3 - Return IPS1_ONO2_ON residency
+        *       4 - Return IPS1_Z8_RETENTION residency
         * RETURN: Total residency in microseconds - upper 32 bits
         */
        DMUB_GPINT__GET_IPS_RESIDENCY_DURATION_US_HI = 133,
@@ -6513,7 +6519,7 @@ struct dmub_rb_cmd_assr_enable {
 enum ips_residency_mode {
        IPS_RESIDENCY__IPS1_MAX,
        IPS_RESIDENCY__IPS2,
-       IPS_RESIDENCY__IPS1_RCG,
+       IPS_RESIDENCY__IPS1_RCG, // refers to IPS0 + RCG
        IPS_RESIDENCY__IPS1_ONO2_ON,
        IPS_RESIDENCY__IPS1_Z8_RETENTION,
        IPS_RESIDENCY__PG_ONO_LAST_SEEN_IN_IPS,