Skip to content

Commit b8d9d5f

Browse files
Tom Chungalexdeucher
authored andcommitted
drm/amd/display: Change some variable name of psr
Panel Replay feature may also use the same variable with PSR. Change the variable name and make it not specify for PSR. Reviewed-by: Leo Li <[email protected]> Signed-off-by: Tom Chung <[email protected]> Signed-off-by: Hamza Mahfooz <[email protected]> Signed-off-by: Alex Deucher <[email protected]> (cherry picked from commit c7fafb7) Cc: [email protected] # 6.11+
1 parent 2d5404c commit b8d9d5f

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6762,7 +6762,7 @@ create_stream_for_sink(struct drm_connector *connector,
67626762
if (stream->out_transfer_func.tf == TRANSFER_FUNCTION_GAMMA22)
67636763
tf = TRANSFER_FUNC_GAMMA_22;
67646764
mod_build_vsc_infopacket(stream, &stream->vsc_infopacket, stream->output_color_space, tf);
6765-
aconnector->psr_skip_count = AMDGPU_DM_PSR_ENTRY_DELAY;
6765+
aconnector->sr_skip_count = AMDGPU_DM_PSR_ENTRY_DELAY;
67666766

67676767
}
67686768
finish:
@@ -9028,7 +9028,7 @@ static void amdgpu_dm_commit_planes(struct drm_atomic_state *state,
90289028
* during the PSR-SU was disabled.
90299029
*/
90309030
if (acrtc_state->stream->link->psr_settings.psr_version >= DC_PSR_VERSION_SU_1 &&
9031-
acrtc_attach->dm_irq_params.allow_psr_entry &&
9031+
acrtc_attach->dm_irq_params.allow_sr_entry &&
90329032
#ifdef CONFIG_DRM_AMD_SECURE_DISPLAY
90339033
!amdgpu_dm_crc_window_is_activated(acrtc_state->base.crtc) &&
90349034
#endif
@@ -9263,27 +9263,27 @@ static void amdgpu_dm_commit_planes(struct drm_atomic_state *state,
92639263
}
92649264
}
92659265

9266-
/* Decrement skip count when PSR is enabled and we're doing fast updates. */
9266+
/* Decrement skip count when SR is enabled and we're doing fast updates. */
92679267
if (acrtc_state->update_type == UPDATE_TYPE_FAST &&
92689268
acrtc_state->stream->link->psr_settings.psr_feature_enabled) {
92699269
struct amdgpu_dm_connector *aconn =
92709270
(struct amdgpu_dm_connector *)acrtc_state->stream->dm_stream_context;
92719271

9272-
if (aconn->psr_skip_count > 0)
9273-
aconn->psr_skip_count--;
9272+
if (aconn->sr_skip_count > 0)
9273+
aconn->sr_skip_count--;
92749274

9275-
/* Allow PSR when skip count is 0. */
9276-
acrtc_attach->dm_irq_params.allow_psr_entry = !aconn->psr_skip_count;
9275+
/* Allow SR when skip count is 0. */
9276+
acrtc_attach->dm_irq_params.allow_sr_entry = !aconn->sr_skip_count;
92779277

92789278
/*
9279-
* If sink supports PSR SU, there is no need to rely on
9280-
* a vblank event disable request to enable PSR. PSR SU
9279+
* If sink supports PSR SU/Panel Replay, there is no need to rely on
9280+
* a vblank event disable request to enable PSR/RP. PSR SU/RP
92819281
* can be enabled immediately once OS demonstrates an
92829282
* adequate number of fast atomic commits to notify KMD
92839283
* of update events. See `vblank_control_worker()`.
92849284
*/
92859285
if (acrtc_state->stream->link->psr_settings.psr_version >= DC_PSR_VERSION_SU_1 &&
9286-
acrtc_attach->dm_irq_params.allow_psr_entry &&
9286+
acrtc_attach->dm_irq_params.allow_sr_entry &&
92879287
#ifdef CONFIG_DRM_AMD_SECURE_DISPLAY
92889288
!amdgpu_dm_crc_window_is_activated(acrtc_state->base.crtc) &&
92899289
#endif
@@ -9294,7 +9294,7 @@ static void amdgpu_dm_commit_planes(struct drm_atomic_state *state,
92949294
500000000)
92959295
amdgpu_dm_psr_enable(acrtc_state->stream);
92969296
} else {
9297-
acrtc_attach->dm_irq_params.allow_psr_entry = false;
9297+
acrtc_attach->dm_irq_params.allow_sr_entry = false;
92989298
}
92999299

93009300
mutex_unlock(&dm->dc_lock);

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ struct amdgpu_dm_connector {
727727
/* Cached display modes */
728728
struct drm_display_mode freesync_vid_base;
729729

730-
int psr_skip_count;
730+
int sr_skip_count;
731731
bool disallow_edp_enter_psr;
732732

733733
/* Record progress status of mst*/

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ static void amdgpu_dm_crtc_vblank_control_worker(struct work_struct *work)
269269
if (vblank_work->stream && vblank_work->stream->link) {
270270
amdgpu_dm_crtc_set_panel_sr_feature(
271271
vblank_work, vblank_work->enable,
272-
vblank_work->acrtc->dm_irq_params.allow_psr_entry ||
272+
vblank_work->acrtc->dm_irq_params.allow_sr_entry ||
273273
vblank_work->stream->link->replay_settings.replay_feature_enabled);
274274
}
275275

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq_params.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ struct dm_irq_params {
3333
struct mod_vrr_params vrr_params;
3434
struct dc_stream_state *stream;
3535
int active_planes;
36-
bool allow_psr_entry;
36+
bool allow_sr_entry;
3737
struct mod_freesync_config freesync_config;
3838

3939
#ifdef CONFIG_DEBUG_FS

0 commit comments

Comments
 (0)