From: Taimur Hassan <[email protected]>

Updated DMUB interface
- Add OEM visual debug flags
- Updated HW lock pending error
- Add new DMUB_CMD__NBIF_AZ_PME_RESTORE command

Reviewed-by: Alex Hung <[email protected]>
Signed-off-by: Taimur Hassan <[email protected]>
Signed-off-by: George Zhang <[email protected]>
---
 .../gpu/drm/amd/display/dmub/inc/dmub_cmd.h   | 50 ++++++++++++++++++-
 1 file changed, 48 insertions(+), 2 deletions(-)

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 af621b8552e1..5d534b91bc33 100644
--- a/drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h
+++ b/drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h
@@ -582,7 +582,14 @@ union replay_debug_flags {
                 */
                uint32_t enable_sub_feature_visual_confirm : 1;
 
-               uint32_t reserved : 16;
+               /**
+                * 0x10000 (bit 16)
+                * @enable_oem_visual_confirm: Enable OEM visual confirm
+                * Black = state 0, Blue = state non-zero, Green = frame 
skipping active
+                */
+               uint32_t enable_oem_visual_confirm : 1;
+
+               uint32_t reserved : 15;
        } bitfields;
 
        uint32_t u32All;
@@ -743,7 +750,14 @@ union pr_debug_flags {
                 */
                uint32_t force_hubp_on : 1;
 
-               uint32_t reserved : 24;
+               /**
+                * 0x100 (bit 8)
+                * @enable_oem_visual_confirm: Enable OEM visual confirm
+                * Black = state 0, Blue = state non-zero
+                */
+               uint32_t enable_oem_visual_confirm : 1;
+
+               uint32_t reserved : 23;
        } bitfields;
 
        uint32_t u32All;
@@ -2048,6 +2062,11 @@ enum dmub_cmd_type {
         */
        DMUB_CMD__DC_BLS = 98,
 
+       /**
+        * Command type used to notify nbif az pme restore.
+        */
+       DMUB_CMD__NBIF_AZ_PME_RESTORE = 99,
+
        /**
         * Command type use for VBIOS shared commands.
         */
@@ -3637,6 +3656,28 @@ struct dmub_rb_cmd_query_hpd_state {
        struct dmub_cmd_hpd_state_query_data data;
 };
 
+/**
+ * Data passed from driver to FW in a DMUB_CMD__NBIF_AZ_PME_RESTORE command.
+ */
+struct dmub_cmd_nbif_az_pme_restore_data {
+       uint8_t az_inst; /**< Azalia codec endpoint instance */
+       uint8_t pad[3]; /**< Alignment */
+};
+
+/**
+ * Definition of a DMUB_CMD__NBIF_AZ_PME_RESTORE command.
+ */
+struct dmub_rb_cmd_nbif_az_pme_restore {
+       /**
+        * Command header.
+        */
+       struct dmub_cmd_header header;
+       /**
+        * Data passed from driver to FW in a DMUB_CMD__NBIF_AZ_PME_RESTORE 
command.
+        */
+       struct dmub_cmd_nbif_az_pme_restore_data data;
+};
+
 /**
  * struct dmub_rb_cmd_hpd_sense_notify - HPD sense notification data.
  */
@@ -7878,6 +7919,11 @@ union dmub_rb_cmd {
         * Definition of a DMUB_CMD__QUERY_HPD_STATE command.
         */
        struct dmub_rb_cmd_query_hpd_state query_hpd;
+
+       /**
+        * Definition of a DMUB_CMD__NBIF_AZ_PME_RESTORE command.
+        */
+       struct dmub_rb_cmd_nbif_az_pme_restore nbif_az_pme_restore;
        /**
         * Definition of a DMUB_CMD__SECURE_DISPLAY command.
         */
-- 
2.55.0

Reply via email to