diff options
author | Ethan Bitnun <etbitnun@amd.com> | 2024-01-26 11:24:52 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-02-07 12:26:23 -0500 |
commit | 461bf81a10163601ae271aecc680aa2c6a9f6bcb (patch) | |
tree | 398acc253662ca85db61ee10c8702654faff145c /drivers/gpu | |
parent | 1b5b72b4d67c1e72c4fc19151fd669acecc92faa (diff) | |
download | linux-stable-461bf81a10163601ae271aecc680aa2c6a9f6bcb.tar.gz linux-stable-461bf81a10163601ae271aecc680aa2c6a9f6bcb.tar.bz2 linux-stable-461bf81a10163601ae271aecc680aa2c6a9f6bcb.zip |
drm/amd/display: Add delay before logging clks from hw
Add a small delay before reading clks from hw, to ensure correct values
are used for logging.
Reviewed-by: Alvin Lee <alvin.lee2@amd.com>
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Ethan Bitnun <etbitnun@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c b/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c index 8fa0aae941c3..e64e45e4c833 100644 --- a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c +++ b/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c @@ -509,6 +509,8 @@ static void dcn32_auto_dpm_test_log( } } + msleep(5); + mall_ss_size_bytes = context->bw_ctx.bw.dcn.mall_ss_size_bytes; dispclk_khz_reg = REG_READ(CLK1_CLK0_CURRENT_CNT); // DISPCLK |