From: Alvin Lee <alvin.l...@amd.com>

[Why]
NV12 has lower min dcfclk

[How]
Add update in update_bounding_box

Signed-off-by: Alvin Lee <alvin.l...@amd.com>
Reviewed-by: Jun Lei <jun....@amd.com>
Acked-by: Leo Li <sunpeng...@amd.com>
---
 .../gpu/drm/amd/display/dc/dcn20/dcn20_resource.c    | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c 
b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c
index 2596d4ac6263..25515c255a3d 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c
@@ -3084,10 +3084,14 @@ void dcn20_update_bounding_box(struct dc *dc, struct 
_vcs_dpi_soc_bounding_box_s
 
        if (dc->bb_overrides.min_dcfclk_mhz > 0)
                min_dcfclk = dc->bb_overrides.min_dcfclk_mhz;
-       else
-               // Accounting for SOC/DCF relationship, we can go as high as
-               // 506Mhz in Vmin.  We need to code 507 since SMU will round 
down to 506.
-               min_dcfclk = 507;
+       else {
+               if (ASICREV_IS_NAVI12_P(dc->ctx->asic_id.hw_internal_rev))
+                       min_dcfclk = 310;
+               else
+                       // Accounting for SOC/DCF relationship, we can go as 
high as
+                       // 506Mhz in Vmin.
+                       min_dcfclk = 506;
+       }
 
        for (i = 0; i < num_states; i++) {
                int min_fclk_required_by_uclk;
-- 
2.23.0

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to