drm/amd/display: [FW Promotion] Release 0.1.11.0
authorTaimur Hassan <Syed.Hassan@amd.com>
Mon, 12 May 2025 00:18:48 +0000 (20:18 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 16 May 2025 17:39:04 +0000 (13:39 -0400)
Refactoring some DMUB related structs and enum.

Acked-by: Wayne Lin <wayne.lin@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 b66bd10cdc9b836bfcf0d4e7dba0ac552caaa88c..57fa05bddb4580e899937b2f1e0f9618080fe27e 100644 (file)
@@ -2139,6 +2139,11 @@ union dmub_cmd_fams2_config {
        } stream_v1; //v1
 };
 
+struct dmub_fams2_config_v2 {
+       struct dmub_cmd_fams2_global_config global;
+       struct dmub_fams2_stream_static_state_v1 stream_v1[DMUB_MAX_STREAMS]; //v1
+};
+
 /**
  * DMUB rb command definition for FAMS2 (merged SubVP, FPO, Legacy)
  */
@@ -2147,6 +2152,22 @@ struct dmub_rb_cmd_fams2 {
        union dmub_cmd_fams2_config config;
 };
 
+/**
+ * Indirect buffer descriptor
+ */
+struct dmub_ib_data {
+       union dmub_addr src; // location of indirect buffer in memory
+       uint16_t size; // indirect buffer size in bytes
+};
+
+/**
+ * DMUB rb command definition for commands passed over indirect buffer
+ */
+struct dmub_rb_cmd_ib {
+       struct dmub_cmd_header header;
+       struct dmub_ib_data ib_data;
+};
+
 /**
  * enum dmub_cmd_idle_opt_type - Idle optimization command type.
  */
@@ -2170,6 +2191,11 @@ enum dmub_cmd_idle_opt_type {
         * DCN hardware notify power state.
         */
        DMUB_CMD__IDLE_OPT_SET_DC_POWER_STATE = 3,
+
+       /**
+        * DCN notify to release HW.
+        */
+        DMUB_CMD__IDLE_OPT_RELEASE_HW = 4,
 };
 
 /**
@@ -2931,8 +2957,9 @@ enum dmub_cmd_fams_type {
         */
        DMUB_CMD__FAMS_SET_MANUAL_TRIGGER = 3,
        DMUB_CMD__FAMS2_CONFIG = 4,
-       DMUB_CMD__FAMS2_DRR_UPDATE = 5,
-       DMUB_CMD__FAMS2_FLIP = 6,
+       DMUB_CMD__FAMS2_IB_CONFIG = 5,
+       DMUB_CMD__FAMS2_DRR_UPDATE = 6,
+       DMUB_CMD__FAMS2_FLIP = 7,
 };
 
 /**
@@ -5926,8 +5953,11 @@ union dmub_rb_cmd {
         * Definition of a DMUB_CMD__PSP_ASSR_ENABLE command.
         */
        struct dmub_rb_cmd_assr_enable assr_enable;
+
        struct dmub_rb_cmd_fams2 fams2_config;
 
+       struct dmub_rb_cmd_ib ib_fams2_config;
+
        struct dmub_rb_cmd_fams2_drr_update fams2_drr_update;
 
        struct dmub_rb_cmd_fams2_flip fams2_flip;