drm/amd/display: clean up some formats and log
authorCharlene Liu <Charlene.Liu@amd.com>
Thu, 4 Nov 2021 20:52:02 +0000 (16:52 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 17 Nov 2021 21:58:07 +0000 (16:58 -0500)
[why]
reduce az indirect register dump. need add az clock_gating control field
used in some project.

[how]
conditional output indrect register in the log.  add clock_gating feild

Reviewed-by: Sung joon Kim <Sungjoon.Kim@amd.com>
Acked-by: Anson Jacob <Anson.Jacob@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Charlene Liu <Charlene.Liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dc_link.h
drivers/gpu/drm/amd/display/dc/dce/dce_audio.c
drivers/gpu/drm/amd/display/dc/dce/dce_audio.h

index 669c162c0c02a969fd5b89df9235a4f2eca4e929..b732398dac898e4e10f69f0828d8942677ae309c 100644 (file)
@@ -302,7 +302,7 @@ enum dc_detect_reason {
        DETECT_REASON_HPD,
        DETECT_REASON_HPDRX,
        DETECT_REASON_FALLBACK,
-       DETECT_REASON_RETRAIN
+       DETECT_REASON_RETRAIN,
 };
 
 bool dc_link_detect(struct dc_link *dc_link, enum dc_detect_reason reason);
index 27218ede150a9368b25bedfd56a69ad8075ab7f3..70eaac0176242c86bd7afeba431e856f86915bd0 100644 (file)
@@ -67,9 +67,6 @@ static void write_indirect_azalia_reg(struct audio *audio,
        /* AZALIA_F0_CODEC_ENDPOINT_DATA  endpoint data  */
        REG_SET(AZALIA_F0_CODEC_ENDPOINT_DATA, 0,
                        AZALIA_ENDPOINT_REG_DATA, reg_data);
-
-       DC_LOG_HW_AUDIO("AUDIO:write_indirect_azalia_reg: index: %u  data: %u\n",
-               reg_index, reg_data);
 }
 
 static uint32_t read_indirect_azalia_reg(struct audio *audio, uint32_t reg_index)
@@ -85,9 +82,6 @@ static uint32_t read_indirect_azalia_reg(struct audio *audio, uint32_t reg_index
        /* AZALIA_F0_CODEC_ENDPOINT_DATA  endpoint data  */
        value = REG_READ(AZALIA_F0_CODEC_ENDPOINT_DATA);
 
-       DC_LOG_HW_AUDIO("AUDIO:read_indirect_azalia_reg: index: %u  data: %u\n",
-               reg_index, value);
-
        return value;
 }
 
index 5622d5e32d81896fa545b4cbe51695343f415988..dbd2cfed0603085f25a67ca3700588716afb6cc0 100644 (file)
@@ -113,6 +113,7 @@ struct dce_audio_shift {
        uint8_t DCCG_AUDIO_DTO2_USE_512FBR_DTO;
        uint32_t DCCG_AUDIO_DTO0_USE_512FBR_DTO;
        uint32_t DCCG_AUDIO_DTO1_USE_512FBR_DTO;
+       uint32_t CLOCK_GATING_DISABLE;
 };
 
 struct dce_audio_mask {
@@ -132,6 +133,7 @@ struct dce_audio_mask {
        uint32_t DCCG_AUDIO_DTO2_USE_512FBR_DTO;
        uint32_t DCCG_AUDIO_DTO0_USE_512FBR_DTO;
        uint32_t DCCG_AUDIO_DTO1_USE_512FBR_DTO;
+       uint32_t CLOCK_GATING_DISABLE;
 
 };