OSDN Git Service

drm/amd/display: release spinlock before committing updates to stream
authorShirish S <shirish.s@amd.com>
Tue, 26 Jun 2018 04:02:39 +0000 (09:32 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 27 Jun 2018 19:35:53 +0000 (14:35 -0500)
commit4de9f38bb2cce3a4821ffb8a83d6b08f6e37d905
tree4fb926bcbb205c244d571ffc8942e7670e73b3cc
parent62d5b8e33b774128c93baac35a4347a6cfb64434
drm/amd/display: release spinlock before committing updates to stream

Currently, amdgpu_do_flip() spinlocks crtc->dev->event_lock and
releases it only after committing updates to the stream.

dc_commit_updates_for_stream() should be moved out of
spinlock for the below reasons:

1. event_lock is supposed to protect access to acrct->pflip_status _only_
2. dc_commit_updates_for_stream() has potential sleep's
   and also its not appropriate to be  in an atomic state
   for such long sequences of code.

Signed-off-by: Shirish S <shirish.s@amd.com>
Suggested-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c