disp: msm: sde: cache encoder_mask for vblank_work
There is a race between disable commit swap-state on display thread and vblank work on event thread which may skip applying the vblank vote if the encoder_mask has already been cleared. To avoid the race, use a cached encoder_mask that is gauranteed to be valid between the vblank_on and vblank_off calls. Also, vblank queue work is initializing a variable that's never used and msm_disable_outputs has 2 instances of pointers to old CRTC state. Remove this dead code. Change-Id: I5e4a482b8f067e272a2aef5afa08cc0e1ab89434 Signed-off-by: Steve Cohen <cohens@codeaurora.org>
This commit is contained in:
@@ -156,7 +156,6 @@ msm_disable_outputs(struct drm_device *dev, struct drm_atomic_state *old_state)
|
||||
old_conn_state, i) {
|
||||
const struct drm_encoder_helper_funcs *funcs;
|
||||
struct drm_encoder *encoder;
|
||||
struct drm_crtc_state *old_crtc_state;
|
||||
|
||||
/*
|
||||
* Shut down everything that's in the changeset and currently
|
||||
|
Reference in New Issue
Block a user