include: msm_ion: Use old ioctls

Our proprietary camera HAL could be calling these, so switch back to the old ioctls to avoid a possible mismatch.

Signed-off-by: Sultanxda <sultanxda@gmail.com>
gpu: ion: Restore old Ion functionality (non-dmabuf)

Our proprietary camera libraries were not designed for the new Ion API. Currently, with dma-buf, the kernel crashes when using the camera (crashes when trying to free Ion handle).

Restore old Ion functionality to maintain compatibility with our proprietary camera blobs. ion_import_dma_buf now emulates ion_import_fd.

Signed-off-by: Sultanxda <sultanxda@gmail.com>
Revert "video: msm: 8x60: need to kick the pixel clock a bit more to get display working again"

This reverts commit d978b044be404ab6ec01dd50c14b726a2f88825c.
video: msm: Remove mdp4_video_enhance dependency headers
deleted:    drivers/video/msm/mdp4_video_tuning.h
deleted:    drivers/video/msm/mdp4_video_tuning_HD720.h
deleted:    drivers/video/msm/mdp4_video_tuning_Q1.h

Signed-off-by: cholokei <leesl0416@naver.com>
video: msm: Add more changes from Samsung
c233866216ed67573ea48b10ba789ebd13b56a79
modified:   drivers/video/msm/mdp4.h
modified:   drivers/video/msm/mdp4_overlay_dtv.c
modified:   drivers/video/msm/mdp4_util.c
modified:   drivers/video/msm/msm_fb.c

Signed-off-by: cholokei <leesl0416@naver.com>
msm_fb: disable unsupported footswitch call

Change-Id: I04006e498bb9b9eb17b914a7447bd35629053b07
msm: display: command mode panel release fence

For command mode panel, release fence should be signaled after the buffer is
sent to the panel.  For performance consideration, allow one more commit to be
queued.  Keep the second kick off as short as enough.

Change-Id: I19af075ebf480d3e81b46b1cd2ef21a2893f143e
Signed-off-by: Ken Zhang <kenz@codeaurora.org>
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
Signed-off-by: Iliyan Malchev <malchev@google.com>

Conflicts:
	drivers/video/msm/mdp4.h
msm: mdp: Change msmfb kworker to kthread

This worker can be a longer running task depending on the number
of frames queued, hence change it to a thread.

Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
Change-Id: Iebf7e95d0486ac43aa6a12d70442936600c0249a
msm: mdp: Update sync pt. behaviour

Add a retire fence and clean up the existing release fence
implementation

Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
Change-Id: Iecf7e95d0786ac43aa6a12d70442936600c0249a
mdp4_overlay: Fix glitches caused by ion_iommu_map() failure for (2, 2)

Run ion_unmap_iommu() in a loop until ion_map_iommu() for (domain 2, partition 2) is successful.

Signed-off-by: Sultanxda <sultanxda@gmail.com>
video: msm: Add multiplier to MDP bandwidth calculation

 * We have major underruns on 8660 without higher bandwidth. Scale it by
   2x to achieve a solid framerate with no underrun.

Change-Id: Iabf9cb12696452a8b51aa818b8e5d6682bac7ed5
video: msm: Allow timeouts for LCDC operations

Change-Id: I8d0de8e460828aa02a6a8b2ff733aab3e64f59d2
msm: mdp4: Enable release fence for LCDC panels

Makes graphics smoother.

Signed-off-by: Sultanxda <sultanxda@gmail.com>
msm: mdp: Disable early suspend only for the MDP driver

Early suspend is deprecated in the framework but disabling it
completely can affect other subsystems. Disabling only for the
MDP driver.

Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
msm: mdp: Disable early suspend locally

undefing at the header level could mess with other components.

Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>