Commit 5c4a6d62 authored by Wyatt Wood's avatar Wyatt Wood Committed by Alex Deucher

drm/amd/display: Remove unused values from psr struct

[Why]
Taking up unnecessary space.

[How]
Remove unused values from psr struct.
Signed-off-by: default avatarWyatt Wood <wyatt.wood@amd.com>
Reviewed-by: default avatarNicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent bd2d7067
...@@ -159,10 +159,6 @@ static bool dmub_psr_copy_settings(struct dmub_psr *dmub, ...@@ -159,10 +159,6 @@ static bool dmub_psr_copy_settings(struct dmub_psr *dmub,
copy_settings_data->mpcc_inst = pipe_ctx->plane_res.mpcc_inst; copy_settings_data->mpcc_inst = pipe_ctx->plane_res.mpcc_inst;
if (pipe_ctx->plane_res.hubp)
copy_settings_data->hubp_inst = pipe_ctx->plane_res.hubp->inst;
else
copy_settings_data->hubp_inst = 0;
if (pipe_ctx->plane_res.dpp) if (pipe_ctx->plane_res.dpp)
copy_settings_data->dpp_inst = pipe_ctx->plane_res.dpp->inst; copy_settings_data->dpp_inst = pipe_ctx->plane_res.dpp->inst;
else else
...@@ -178,18 +174,9 @@ static bool dmub_psr_copy_settings(struct dmub_psr *dmub, ...@@ -178,18 +174,9 @@ static bool dmub_psr_copy_settings(struct dmub_psr *dmub,
// Misc // Misc
copy_settings_data->psr_level = psr_context->psr_level.u32all; copy_settings_data->psr_level = psr_context->psr_level.u32all;
copy_settings_data->hyst_frames = psr_context->timehyst_frames;
copy_settings_data->hyst_lines = psr_context->hyst_lines;
copy_settings_data->phy_type = psr_context->phyType;
copy_settings_data->aux_repeat = psr_context->aux_repeats;
copy_settings_data->smu_optimizations_en = psr_context->allow_smu_optimizations; copy_settings_data->smu_optimizations_en = psr_context->allow_smu_optimizations;
copy_settings_data->skip_wait_for_pll_lock = psr_context->skipPsrWaitForPllLock;
copy_settings_data->frame_delay = psr_context->frame_delay; copy_settings_data->frame_delay = psr_context->frame_delay;
copy_settings_data->smu_phy_id = psr_context->smuPhyId;
copy_settings_data->num_of_controllers = psr_context->numberOfControllers;
copy_settings_data->frame_cap_ind = psr_context->psrFrameCaptureIndicationReq; copy_settings_data->frame_cap_ind = psr_context->psrFrameCaptureIndicationReq;
copy_settings_data->phy_num = psr_context->frame_delay & 0x7;
copy_settings_data->link_rate = psr_context->frame_delay & 0xF;
dc_dmub_srv_cmd_queue(dc->dmub_srv, &cmd.psr_copy_settings.header); dc_dmub_srv_cmd_queue(dc->dmub_srv, &cmd.psr_copy_settings.header);
dc_dmub_srv_cmd_execute(dc->dmub_srv); dc_dmub_srv_cmd_execute(dc->dmub_srv);
......
...@@ -216,7 +216,6 @@ struct dmub_rb_cmd_dpphy_init { ...@@ -216,7 +216,6 @@ struct dmub_rb_cmd_dpphy_init {
struct dmub_cmd_psr_copy_settings_data { struct dmub_cmd_psr_copy_settings_data {
uint16_t psr_level; uint16_t psr_level;
uint8_t hubp_inst;
uint8_t dpp_inst; uint8_t dpp_inst;
uint8_t mpcc_inst; uint8_t mpcc_inst;
uint8_t opp_inst; uint8_t opp_inst;
...@@ -225,17 +224,8 @@ struct dmub_cmd_psr_copy_settings_data { ...@@ -225,17 +224,8 @@ struct dmub_cmd_psr_copy_settings_data {
uint8_t digbe_inst; uint8_t digbe_inst;
uint8_t dpphy_inst; uint8_t dpphy_inst;
uint8_t aux_inst; uint8_t aux_inst;
uint8_t hyst_frames;
uint8_t hyst_lines;
uint8_t phy_num;
uint8_t phy_type;
uint8_t aux_repeat;
uint8_t smu_optimizations_en; uint8_t smu_optimizations_en;
uint8_t skip_wait_for_pll_lock;
uint8_t frame_delay; uint8_t frame_delay;
uint8_t smu_phy_id;
uint8_t num_of_controllers;
uint8_t link_rate;
uint8_t frame_cap_ind; uint8_t frame_cap_ind;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment