mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-08 07:21:27 +00:00
drm/amd/display: fix potential infinite loop in fbc path
- Fixing integer overflow bug in wait_for_fbc_state_changed() - Correct the max value of retries for the corresponding warning Signed-off-by: Roman Li <Roman.Li@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Acked-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
d4fa93e038
commit
6f66ccf0aa
1 changed files with 2 additions and 2 deletions
|
@ -143,7 +143,7 @@ static void wait_for_fbc_state_changed(
|
|||
struct dce110_compressor *cp110,
|
||||
bool enabled)
|
||||
{
|
||||
uint16_t counter = 0;
|
||||
uint32_t counter = 0;
|
||||
uint32_t addr = mmFBC_STATUS;
|
||||
uint32_t value;
|
||||
|
||||
|
@ -158,7 +158,7 @@ static void wait_for_fbc_state_changed(
|
|||
counter++;
|
||||
}
|
||||
|
||||
if (counter == 10) {
|
||||
if (counter == 1000) {
|
||||
DC_LOG_WARNING("%s: wait counter exceeded, changes to HW not applied",
|
||||
__func__);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue