msm_fb: hdmi: HDMI suspend resume event handling

This change makes sure that we do the proper HDMI ON settings at resume
and also send the events to user-space about current status of HPD after
resume.

CRs-Fixed: 422372
Change-Id: I8ca79fd07840b3227c9472588853b0ca2749760b
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
msm_fb: hdmi: Do not turn on HDMI if not ready

At bootup, if HPD is not configured, HDMI is not in
the state of getting turned on. This change makes sure
HDMI is not turned on/off unnecessarily which turns on
clocks as well.

CRs-Fixed: 447511
Change-Id: I074d9c463943770775b060c4a93b9120dfe9bcf0
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>

Conflicts:
	drivers/video/msm/msm_fb.c

Signed-off-by: Justin Philip <jphili@codeaurora.org>
msm_fb: hdmi: HDMI resume delay

Remove the delay in HDMI resume sequence by not waiting for HPD
to be switched on. HDMI panel will not be turned on by default
when the device resumes and would instead be turned on by HPD
sense if it is still connected.

CRs-Fixed: 440559
Change-Id: Id276dddbcebf9226e9688aa1b5dad4b281545b21
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
msm_fb: Optimize the resolution change on hdmi interface

HDMI resolution is changed twice on cable connect.
This will optimize resolution change by turning on
HDMI core only once, with best possible resolution.

Change-Id: I7f636b0c2c64eb3c661fda2a709b5480db05bd27
Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org>
Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org>
msm_fb: hdmi: Resolution modes on HDMI

    Add a new header file that lists all supported
    HDMI resolution modes and the associated timing
    information.

Change-Id: I6d4bc951d2f460977e14cee0028bcd1f8a449b06
Signed-off-by: Justin Philip <jphili@codeaurora.org>
msm_fb: hdmi: proper vic for 576p

Corrected the AVI info data with right VIC for 576p@50 16:9

CRs-Fixed: 457252
Change-Id: I8536c141823e9d8436bdd8df0038d3e203ec0c4b
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>

Conflicts:
	drivers/video/msm/hdmi_msm.c

Signed-off-by: Justin Philip <jphili@codeaurora.org>
msm_fb: hdmi: Remove supported resolution check

The change will remove the supported resolution check while turning
on the HDMI. The supported resolution is updated on parsing EDID for
VIC and matching it with default mode in HDMI. This may fail in case
the default video mode is not available in EDID of TV resulting in
HDMI turn on failure.

Also, this check is not needed because we now have the HDMI display
pipe line check which will make sure we do not turn on HDMI if it
is not supposed to be turned ON.

CRs-Fixed: 461486
Change-Id: I09ba863cb6f56c6c5d599b91516855f0540f17c3
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
msm_fb: hdmi: Proper HPD state update

On switching off the HPD, we need to update the HPD state
after the polarity has been done to set the HPD state in
hardware properly.

CRs-Fixed: 465476
Change-Id: Ic0ba7fac72b8188c86a034ba9a45107689809028
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
base: sync: increase size of sync_timeline name

This makes it possible for drivers to use a longer, more descriptive
name for a sync_timeline, which improves the readability of the
sync dump in debugfs.

Change-Id: Ifb83aebf6fd820ebb26aca2ff230ac1116e65ce9
Git-commit: cb63e61b80ec905f01cbe1c21081aa0d1fef082d
Git-repo: https://www.codeaurora.org/gitweb/quic/la/?p=kernel/msm.git
Signed-off-by: Fred Fettinger <fred.fettinger@motorola.com>
Signed-off-by: Harsh Vardhan Dwivedi <hdwivedi@codeaurora.org>
msm: kgsl: generate descriptive names for kgsl-timeline

Generate names for kgsl-timelines using the following format:
<device>-<thread name>(<tid>)-<proc name>(<pid>)-<context id>

This makes it possible to identify the context of a timeline in the
sync dump, which makes it much easier to identify which context has
a GPU timeout.

Change-Id: I0ce0614a53a93fd81094d92c9bef7053e6d416d2
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
msm_fb: Increase base fence timeout

The earlier value of 1 second caused unnecessary warnings on
heavy workloads by the GPU.

Change-Id: Ib4a5b098267251d5c63c4d8d2a2f51b339acc1d2
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
sync: Limit logging to particular fence on timeout and error

Conflicts:
	drivers/base/sync.c

Change-Id: I5bd7d62260666cdd2a32212f0e828d2d5d7d7bba
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
Merge "msm_fb: hdmi: HDMI suspend resume event handling"
Merge "msm_fb: hdmi: Do not turn on HDMI if not ready"
Merge "msm_fb: hdmi: HDMI resume delay"
Merge "msm_fb: Optimize the resolution change on hdmi interface"
Merge "msm_fb: hdmi: Resolution modes on HDMI"
Merge "msm_fb: hdmi: proper vic for 576p"
Merge "msm_fb: hdmi: Remove supported resolution check"
Merge "msm_fb: hdmi: Proper HPD state update"