OSDN Git Service

drm/amd/display: Add Underflow Asserts to dc
authorThomas Lim <Thomas.Lim@amd.com>
Mon, 29 Apr 2019 20:05:42 +0000 (16:05 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Jun 2019 17:50:50 +0000 (12:50 -0500)
commit9ed43ef84d9d1e668acdf43c95510fb7b11f8d71
treed0dc025bc14ff29faf26f5b044e53a14b3943421
parent11cd74cdb98aa6f4d6f54a0082dd28e0d4743746
drm/amd/display: Add Underflow Asserts to dc

[Why]
For debugging underflow issues it can be useful to have asserts when the
underflow initially occurs.

[How]
Read the underflow status registers after actions that have a high risk
of causing underflow and assert that no underflow occurred. If underflow
occurred, clear the bit.

Signed-off-by: Thomas Lim <Thomas.Lim@amd.com>
Reviewed-by: Eric Yang <eric.yang2@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dc.h
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.h
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c
drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h