drm/amd/display: Fix exception from AUX acquire failure
authorAnthony Koo <Anthony.Koo@amd.com>
Wed, 6 Feb 2019 16:45:42 +0000 (11:45 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 May 2019 13:43:58 +0000 (06:43 -0700)
commit0f0a54bd22977544aa5224d36870d282f5a8ee5a
tree9672bfcf3cdb8524640edaa0fecf43034b971579
parent95be38a3ee7b14baeca5b7cfa539ba70bb8351ed
drm/amd/display: Fix exception from AUX acquire failure

[ Upstream commit dcf1a988678e2e39ce2b4115b8ce14d208c8c481 ]

[Why]
AUX arbitration occurs between SW and FW components.
When AUX acquire fails, it causes engine->ddc to be NULL,
which leads to an exception when we try to release the AUX
engine.

[How]
When AUX engine acquire fails, it should return from the
function without trying to continue the operation.
The upper level will determine if it wants to retry.
i.e. dce_aux_transfer_with_retries will be used and retry.

Signed-off-by: Anthony Koo <Anthony.Koo@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dc/dce/dce_aux.c