drm/amd/display: Fix dcn10 cursor set position hang
authorLeo (Sunpeng) Li <sunpeng.li@amd.com>
Tue, 16 May 2017 13:55:20 +0000 (09:55 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:07:14 +0000 (18:07 -0400)
commitd3ec0562085918ba889af3d565b4104adcd4947f
tree9d012538c6bd52cb73968a3459753d65aa949717
parentb802acc7f3266e43905dfeee865bf1acc4e00bce
drm/amd/display: Fix dcn10 cursor set position hang

Calling dcn10_cursor_set_position() before dcn10_cursor_set_attributes()
with invalid (0-value) attributes can cause the ASIC to hang. This fix
checks that address.quadpart is non-zero within set_position before calling
set_attributes.

Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_ipp.c