defconfig: 8974: Enable sync and sw_sync

Enable sync and sw_sync configuration,
get ready for sync point support

(cherry picked from commit e95c3b9f7e682ca8a51fb6bfe095d4b5d6fe65df)

Change-Id: I1db95d6fb0de2259fcdc65e8ae8e4d1800bd62dc
Signed-off-by: Ken Zhang <kenz@codeaurora.org>
msm: mdss: sync point support

MSMFB_BUFFER_SYNC ioctl is added for hwc to pass
in buffer fence, driver creates release fence and
return to hwc.

Before display update, driver waits for the fence to
be signaled. Signal the release fence after update is done.

(cherry picked from commit 8ac3e7f6fd2b3d99813c43309496c04d215870c6)

Change-Id: I6fa3bfe0e86781bafa9c2ace90a2110b3d3a6516
Signed-off-by: Ken Zhang <kenz@codeaurora.org>
msm: mdss: Non-blocking display commit

Schedule a workqueue, do the current job in the workqueue handler.
Block the second entry if the first one has not finished

Display commit ioctl will do what pan_display
can do, addtionally has customized setting, such
as non-blocking call

(cherry picked from commit 1972c4246590a1d54f48e1eab784912e15bbd8af)

Change-Id: I77a22583546a70f6b06f77c0f091bc2ec539cfcf
Signed-off-by: Ken Zhang <kenz@codeaurora.org>
msm: mdss: rename MDP_DISPLAY_COMMIT_FLAG_COMMIT_ONLY

Rename it to MDP_DISPLAY_COMMIT_OVERLAY to align with
MDP4 change

(cherry picked from commit ecacf700869fdf594cd5ba2aae30eab9a51968be)

Change-Id: I44b4d9b1800054c6a9d1dc21ddfa8aca80e112d7
Signed-off-by: Ken Zhang <kenz@codeaurora.org>
msm: mdss: enable border fill setup

Border fill setup can be used to unset MDP pipes allocated for
framebuffer replacing it with border color fill instead of contents
fetched from memory. These pipes can then be used as overlays by
userspace apps.

Change-Id: I152dd07d867fb618cea7b72980f4bd75816e3034
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
(cherry picked from commit ad43bed51e95782097e68840673b8abf2d096058)
msm: mdss: cache panel setting in suspend state

Save panel on/off setting in suspend status to be used
when resume

Change-Id: I10a4136d987a8dee84b2d4750699bfef919c7911
Signed-off-by: Ken Zhang <kenz@codeaurora.org>
(cherry picked from commit f4ebaf886fd3b74e335d2b43fb846bebd5b24c22)
msm: mdss: Clear performance request data at turning on

MDSS needs re-request bus and clock when resuming, clear
the cached related data, as they do not reflect the hardware
status.

Change-Id: I4a4b7452f5f8d6fa586904b3badee5f6968110ea
Signed-off-by: Ken Zhang <kenz@codeaurora.org>
(cherry picked from commit 012df9f7a87799807342b9c52a3345e760fe450a)
msm: mdss: power setting protection

When mdss is in resume process, other operation needs
wait until it is done.

Change-Id: I93696bdb9a4b6ac88d88eeb32bfcede5e2f62c8e
Signed-off-by: Ken Zhang <kenz@codeaurora.org>
(cherry picked from commit d98e846e61b7b6b0d266d60def91b475c81f6db1)
msm: mdss: Return sucess when mdss is in suspend

When driver returns failure, display cannot resume, hack temporily

Change-Id: I6fb8fd65f10d3779a930fa6a445f89fc70af5c18
Signed-off-by: Ken Zhang <kenz@codeaurora.org>
(cherry picked from commit 39a4834a330f4d08ac12c3346073422fcd059bc6)
Merge commit 'AU_LINUX_ANDROID_JB_MR1_RB1.04.02.00.50.004' into HEAD

* commit 'AU_LINUX_ANDROID_JB_MR1_RB1.04.02.00.50.004':
  msm: mdss: Return sucess when mdss is in suspend
  msm: mdss: power setting protection
  msm: mdss: Clear performance request data at turning on
  msm: mdss: cache panel setting in suspend state
  msm: mdss: enable border fill setup
  msm: mdss: rename MDP_DISPLAY_COMMIT_FLAG_COMMIT_ONLY
  msm: mdss: Non-blocking display commit
  msm: mdss: sync point support
  defconfig: 8974: Enable sync and sw_sync

Change-Id: Ib26635dde883d96b81c2131f2fe44933cacbfdd3
Signed-off-by: Shashank Babu Chinta Venkata <sbchin@codeaurora.org>
Merge commit 'AU_LINUX_ANDROID_JB_MR1_RB1.04.02.00.50.008' into HEAD

* commit 'AU_LINUX_ANDROID_JB_MR1_RB1.04.02.00.50.008':
  msm: mdss: Return sucess when mdss is in suspend
  msm: mdss: power setting protection
  msm: mdss: Clear performance request data at turning on
  msm: mdss: cache panel setting in suspend state
  msm: mdss: enable border fill setup
  msm: mdss: rename MDP_DISPLAY_COMMIT_FLAG_COMMIT_ONLY
  msm: mdss: Non-blocking display commit
  msm: mdss: sync point support
  defconfig: 8974: Enable sync and sw_sync

Change-Id: I516f5569462260be5e213fbe9a839876b501356f
Signed-off-by: Shashank Babu Chinta Venkata <sbchin@codeaurora.org>
Merge commit 'AU_LINUX_ANDROID_JB_MR1_RB1.04.02.00.50.014' into HEAD

* commit 'AU_LINUX_ANDROID_JB_MR1_RB1.04.02.00.50.014':
  msm: mdss: Return sucess when mdss is in suspend
  msm: mdss: power setting protection
  msm: mdss: Clear performance request data at turning on
  msm: mdss: cache panel setting in suspend state
  msm: mdss: enable border fill setup
  msm: mdss: rename MDP_DISPLAY_COMMIT_FLAG_COMMIT_ONLY
  msm: mdss: Non-blocking display commit
  msm: mdss: sync point support
  defconfig: 8974: Enable sync and sw_sync

Change-Id: I9aa054e2697f37660eda5695dbe4001132a96250
Signed-off-by: Shashank Babu Chinta Venkata <sbchin@codeaurora.org>
Merge "Merge commit 'AU_LINUX_ANDROID_JB_MR1_RB1.04.02.00.50.014' into HEAD"
msm: camera: Fix for initial framedrop during burst mode

In burst mode, ISP captures predefined amount of frames.
The burst frame count is used to count the number of
frames recieved including dropped frame before stopped ISP.
The change add a variable to differentiate frame count
and the number of frames that need to be captured.

Change-Id: I029ece6935cc99e595827f705b245e045cca3df8
Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
(cherry picked from commit d792b5e154f72b4063ea4160c860328bdf217c9e)
msm: camera: Enhance framedrop control

Expand supported framedrop pattern to support
high frame rate features.

Change-Id: I1e8b7837985ac7be6d794eb36033e0f20c06c0a2
Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
(cherry picked from commit 1fe7fb7dcecad605aaee54fe422d73d4a82b15c6)
Merge "msm: camera: Fix for initial framedrop during burst mode"
Merge "msm: camera: Enhance framedrop control"
Update copyright to The Linux Foundation

Change-Id: I46856ffe17347777a665ff3e91e515690420660f
Signed-off-by: Shashank Babu Chinta Venkata <sbchin@codeaurora.org>
Merge "Update copyright to The Linux Foundation"
Update copyright to The Linux Foundation

Change-Id: I5403d194c3178b80ed3c188c28db26a6dd7086a8
Signed-off-by: Duy Truong <dtruong@codeaurora.org>