OSDN Git Service

drm/msm/sde: move current performance setting to crtc object
authorAlan Kwong <akwong@codeaurora.org>
Thu, 8 Jun 2017 14:26:46 +0000 (10:26 -0400)
committerGerrit - the friendly Code Review server <code-review@localhost>
Wed, 18 Oct 2017 02:20:33 +0000 (19:20 -0700)
commit931577c62638e205271eb302e93d6a8c368711aa
treea03a2690b8e587f271349469657e7e7b492ac090
parentcf2cb1c388d1038952f776e2b36837c8e3695a49
drm/msm/sde: move current performance setting to crtc object

Current performance setting is maintained in crtc state, and its
update is synchronized to commit cycle. However, the setting may be
committed to clock and bandwidth driver out of sync with respect to
commit cycle, e.g. update at end of frame while another commit is
validating. As a result, requested settings may be missed and result
in older settings being used. Move current performance setting
to crtc object, from crtc state, so it can be updated at the
same time as the setting is committed to clock and bandwidth
driver.

CRs-Fixed: 2048612
Change-Id: I0c3047e8e806460105eaba5d46145798bd98d721
Signed-off-by: Alan Kwong <akwong@codeaurora.org>
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
drivers/gpu/drm/msm/sde/sde_core_perf.c
drivers/gpu/drm/msm/sde/sde_crtc.c
drivers/gpu/drm/msm/sde/sde_crtc.h