drm/amd/display: fix potential infinite loop in fbc path
authorRoman Li <Roman.Li@amd.com>
Tue, 5 Jun 2018 18:24:53 +0000 (14:24 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Jul 2018 21:38:39 +0000 (16:38 -0500)
commit6f66ccf0aa8f6d430d161a1ac2bc43e665d2fc59
treef6d166362f847e6fc806415c1079a546349628a9
parentd4fa93e03839c3e4e9d16020f1a3c78ae36c646a
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>
drivers/gpu/drm/amd/display/dc/dce110/dce110_compressor.c