OSDN Git Service

drm/amd/display: wait for set pipe mcp command completion
authorJosip Pavic <Josip.Pavic@amd.com>
Thu, 12 Sep 2019 19:40:08 +0000 (15:40 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 11 Oct 2019 00:32:32 +0000 (19:32 -0500)
commit15caeabc5787c15babad7ee444afe9c26df1c8b3
treeb7beb47e1ab3960e1333f53bc9cc4874e7c4da0d
parent486cc0ee550e619660926e162f68e96a64702216
drm/amd/display: wait for set pipe mcp command completion

[Why]
When the driver sends a pipe set command to the DMCU FW, it does not wait
for the command to complete. This can lead to unpredictable behavior if,
for example, the driver were to request a pipe disable to the FW via MCP,
then power down some hardware before the firmware has completed processing
the command.

[How]
Wait for the DMCU FW to finish processing set pipe commands

Signed-off-by: Josip Pavic <Josip.Pavic@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@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/dce/dce_abm.c