Skip to content

Commit fa8a4d3

Browse files
charliu-AMDENGalexdeucher
authored andcommitted
drm/amd/display: Clear cached watermark after resume
[WHY] Driver could skip program watermarks when resume from S0i3/S4. [HOW] Clear the cached one first to make sure new value gets applied. Reviewed-by: Alvin Lee <alvin.lee2@amd.com> Reviewed-by: Roman Li <roman.li@amd.com> Signed-off-by: Charlene Liu <Charlene.Liu@amd.com> Signed-off-by: Alex Hung <alex.hung@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 199888a commit fa8a4d3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/gpu/drm/amd/display/dc/hubbub/dcn35/dcn35_hubbub.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,7 @@ static void hubbub35_init(struct hubbub *hubbub)
545545
DCHUBBUB_ARB_MAX_REQ_OUTSTAND, 256,
546546
DCHUBBUB_ARB_MIN_REQ_OUTSTAND, 256);
547547

548+
memset(&hubbub2->watermarks.a.cstate_pstate, 0, sizeof(hubbub2->watermarks.a.cstate_pstate));
548549
}
549550

550551
/*static void hubbub35_set_request_limit(struct hubbub *hubbub,

0 commit comments

Comments
 (0)