drm/amd/display: Rename dcn_validate_bandwidth to dcn10_validate_bandwidth
authorZhan Liu <Zhan.Liu@amd.com>
Tue, 9 Nov 2021 18:30:38 +0000 (13:30 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Nov 2021 19:06:52 +0000 (14:06 -0500)
[Why]
Rename function name so it aligns with other resource
function names being used by dcn10.

[How]
Rename function name for consistency.

Reviewed-by: Ahmad Othman <Ahmad.Othman@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Zhan Liu <Zhan.Liu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c
drivers/gpu/drm/amd/display/dc/inc/dcn_calcs.h

index 6b248cd2a461c686a2b0305cc49237a25dba70ba..c8b0a2f05b4d4bfd9bd9a95522451412d43b139d 100644 (file)
@@ -763,7 +763,7 @@ unsigned int get_highest_allowed_voltage_level(uint32_t chip_family, uint32_t hw
        return 4;
 }
 
-bool dcn_validate_bandwidth(
+bool dcn10_validate_bandwidth(
                struct dc *dc,
                struct dc_state *context,
                bool fast_validate)
index c50427bfab77221b0253983207459d4c67e0ea4f..d342c04f5f30026dfb24be83df259ecf4ad825ba 100644 (file)
@@ -2626,7 +2626,7 @@ static void dcn10_update_dchubp_dpp(
                /* new calculated dispclk, dppclk are stored in
                 * context->bw_ctx.bw.dcn.clk.dispclk_khz / dppclk_khz. current
                 * dispclk, dppclk are from dc->clk_mgr->clks.dispclk_khz.
-                * dcn_validate_bandwidth compute new dispclk, dppclk.
+                * dcn10_validate_bandwidth compute new dispclk, dppclk.
                 * dispclk will put in use after optimize_bandwidth when
                 * ramp_up_dispclk_with_dpp is called.
                 * there are two places for dppclk be put in use. One location
@@ -2640,7 +2640,7 @@ static void dcn10_update_dchubp_dpp(
                 * for example, eDP + external dp,  change resolution of DP from
                 * 1920x1080x144hz to 1280x960x60hz.
                 * before change: dispclk = 337889 dppclk = 337889
-                * change mode, dcn_validate_bandwidth calculate
+                * change mode, dcn10_validate_bandwidth calculate
                 *                dispclk = 143122 dppclk = 143122
                 * update_dchubp_dpp be executed before dispclk be updated,
                 * dispclk = 337889, but dppclk use new value dispclk /2 =
index 0090550d4aeeea77cb73c03043f041dbb54634cd..19a2dd619ec75d4876e03c598efe06746b7a8d0d 100644 (file)
@@ -1314,7 +1314,7 @@ static const struct resource_funcs dcn10_res_pool_funcs = {
        .destroy = dcn10_destroy_resource_pool,
        .link_enc_create = dcn10_link_encoder_create,
        .panel_cntl_create = dcn10_panel_cntl_create,
-       .validate_bandwidth = dcn_validate_bandwidth,
+       .validate_bandwidth = dcn10_validate_bandwidth,
        .acquire_idle_pipe_for_layer = dcn10_acquire_idle_pipe_for_layer,
        .validate_plane = dcn10_validate_plane,
        .validate_global = dcn10_validate_global,
index 806f3041db1419ca505c5b842768f22f1da289c3..337c0161e72da17e2fbb1355e7f5f93ba0d9f0eb 100644 (file)
@@ -619,7 +619,7 @@ struct dcn_ip_params {
 };
 extern const struct dcn_ip_params dcn10_ip_defaults;
 
-bool dcn_validate_bandwidth(
+bool dcn10_validate_bandwidth(
                struct dc *dc,
                struct dc_state *context,
                bool fast_validate);