Commit 69ff8845 authored by Anthony Koo's avatar Anthony Koo Committed by Alex Deucher

drm/amd/display: add config for sending VSIF

Signed-off-by: default avatarAnthony Koo <Anthony.Koo@amd.com>
Reviewed-by: default avatarAric Cyr <Aric.Cyr@amd.com>
Acked-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 4c1fa363
...@@ -4680,6 +4680,7 @@ void set_freesync_on_stream(struct amdgpu_display_manager *dm, ...@@ -4680,6 +4680,7 @@ void set_freesync_on_stream(struct amdgpu_display_manager *dm,
aconnector->min_vfreq * 1000000; aconnector->min_vfreq * 1000000;
config.max_refresh_in_uhz = config.max_refresh_in_uhz =
aconnector->max_vfreq * 1000000; aconnector->max_vfreq * 1000000;
config.vsif_supported = true;
} }
mod_freesync_build_vrr_params(dm->freesync_module, mod_freesync_build_vrr_params(dm->freesync_module,
......
...@@ -492,7 +492,7 @@ void mod_freesync_build_vrr_infopacket(struct mod_freesync *mod_freesync, ...@@ -492,7 +492,7 @@ void mod_freesync_build_vrr_infopacket(struct mod_freesync *mod_freesync,
/* Check if Freesync is supported. Return if false. If true, /* Check if Freesync is supported. Return if false. If true,
* set the corresponding bit in the info packet * set the corresponding bit in the info packet
*/ */
if (!vrr->supported) if (!vrr->supported || !vrr->send_vsif)
return; return;
if (dc_is_hdmi_signal(stream->signal)) { if (dc_is_hdmi_signal(stream->signal)) {
...@@ -634,6 +634,7 @@ void mod_freesync_build_vrr_params(struct mod_freesync *mod_freesync, ...@@ -634,6 +634,7 @@ void mod_freesync_build_vrr_params(struct mod_freesync *mod_freesync,
return; return;
in_out_vrr->state = in_config->state; in_out_vrr->state = in_config->state;
in_out_vrr->send_vsif = in_config->vsif_supported;
if (in_config->state == VRR_STATE_UNSUPPORTED) { if (in_config->state == VRR_STATE_UNSUPPORTED) {
in_out_vrr->state = VRR_STATE_UNSUPPORTED; in_out_vrr->state = VRR_STATE_UNSUPPORTED;
......
...@@ -78,6 +78,7 @@ enum mod_vrr_state { ...@@ -78,6 +78,7 @@ enum mod_vrr_state {
struct mod_freesync_config { struct mod_freesync_config {
enum mod_vrr_state state; enum mod_vrr_state state;
bool vsif_supported;
bool ramping; bool ramping;
bool btr; bool btr;
unsigned int min_refresh_in_uhz; unsigned int min_refresh_in_uhz;
...@@ -103,6 +104,7 @@ struct mod_vrr_params_fixed_refresh { ...@@ -103,6 +104,7 @@ struct mod_vrr_params_fixed_refresh {
struct mod_vrr_params { struct mod_vrr_params {
bool supported; bool supported;
bool send_vsif;
enum mod_vrr_state state; enum mod_vrr_state state;
uint32_t min_refresh_in_uhz; uint32_t min_refresh_in_uhz;
......
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