msm_fb: hdmi: HDMI high sleep current

High current is observed during sleep. HDMI PHY needs
to be reset before going into sleep.

CRs-fixed: 336972
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
(cherry picked from commit 56dfb682a5bf274842140716333c791d010e38ef)

Change-Id: Icd6d98db6848993e8b3f554d7f86843a483dcd6c
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>
msm_fb: display: decrease file->f_count when play
video:msm: Add support for updating Histogram LUT using MDP_PP ioctl
video:msm: Add IGC LUT functionality to PP IOCTL
msm_fb: display: change perf level for 720p landscape video
msm_fb: display: fix no resume after suspend for cmd mode panels
msm_fb: display: clear mixer blending cache during resume
msm_fb: display: wait for vsync staging down in overlay unset
msm_fb: display: perform mixer flush on every commit
msm_fb: display: perform staging updates on a single vsync
msm_fb: display: fix underrun seen with big src coordinates
msm_fb: display: set max clk level when more than 2 pipes used
msm_fb: display: perform bus scaling updates when idle
msm_fb: display: enable unstage caching for command panel
msm_fb: display: fix underrun seen due to scaling accuracy
msm_fb: display: set mdp perf_level to low level after playing video
msm_fb: display: add overlay1 writeback enable and disable
msm_fb: display: add mdp overlay1 writeback
msm_fb: display: initialize is_flag variable
msm_fb: hdmi: check for multiple hpd on/off calls
msm_fb: display: Change perf level for VGA video
msm_fb: display: flush base layer pipe when solid fill is enabled
msm_fb: display: call mdp_pipe_ctrl() with correct block name
msm_fb: HDMI: Video Quantization Ranges changed
msm_fb: display: Remove base layer for DSI command mode during suspend
msm_fb: display: check dtv_pipe before unset it
msm_fb: Handle flags for updating AR GC lookup table (LUT)
msm_fb: Restructure PCC and AR-GC code for clean implementation
msm_fb: display: clean dsi fifo during dsi_off
msm_fb: display: disable mdp flip when enabling mdp solid fill

Conflicts:

	drivers/video/msm/hdmi_msm.c
	drivers/video/msm/mdp4_overlay.c
msm_fb: HDMI: Fix bug in mutex handling
msm_fb: display: Unstage pipe from Mixer0 H/W on each unset call for 8660
msm_fb: display: Assign proper destination rectangles to mdp blit
msm_fb: HDMI: Disable HDCP interrupts when starting deauthentication
msm_fb: display: fix underrun when conecting wifi display
msm_fb: display: fix dsi_irq race condition
msm_fb: HDMI: Fix for HW reset issue on HDCP Reauth
msm_fb: Clean up the fix for error in y-offset check in FB driver
msm_fb: Fix error in y-offset check logic in FB driver
msm_fb: Clean up of frame buffer 4KB alignment changes
msm_fb: Make buffers aligned to 4K page boundary

msm_fb: hdmi: CEC re-transmission improvements.
msm_fb: display: Call footswitch control from overlay dtv on/off
msm_fb: display: Enable mixer1 writeback for video downscale use cases

Conflicts:

	drivers/video/msm/mdp4_overlay.c
msm_fb: display: Dynamic boot support for HDMI as primary display
msm: display: boot parameter support for HDMI primary display
msm_fb: display: Remove boot parameter parse support

Conflicts:

	arch/arm/mach-msm/board-msm8x60_s7pro.c
msm_fb: hdmi: Disable 1.1_FEATURE
msm_fb: display: Unstage mixer staging on next commit for video use case
include: Add new histogram IOCTL parameters
video: msm: Add Histogram collection framework for MDP blocks
msm_fb: display: Wait for external vsync before turning off DTV
msm_fb: display: Add IOMMU support to MDP and rotator driver
msm: display: Add proper flags for secure/non-secure writeback buffers
msm: display: Reset BG_alpha register while alpha blending
msm_fb: display: Enable pre-multiplied alpha for MDP303
msm_fb: display: Unstage video from primary mixer H/W on unset
msm_fb: display: enable MDP interrupts base on panel interface
msm_fb: display: add dtv_pipe null check before dereferenc it
msm_fb: display: switch mdp mode without turning off timing generator
msm_fb: display: increase mdp upscaling range
msm_fb: Correct mdp_iommu array size to avoid scribbling
msm_fb: display: remove mixer1 waiting4vsync when staging down the pipe
msm_fb: display: Fix color swap issues in MDP4 and Rotator drivers
msm_fb: HDMI: Do not add HDCP reauth timer during probe
msm_fb: display: Clear background solid fill on closing video pipe
msm_fb: display: Update video format on fps change
msm_fb: hdmi: 3D configurations in HDMI

Conflicts:

	drivers/video/msm/mdp4_overlay_dtv.c
msm-fb: display: Perf changes for mdp composition
msm_fb: display: perform data flush for each data path separately
msm_fb: Check for Histogram NULL while queuing work
msm_fb: display: Add pre-multiplied alpha support for MDP4.
msm_fb: display: remove mdp_lut_enable call to avoid hang issue
msm_fb: display: set pipe src and dst size same in solid fill mode
msm_fb: Display: Fix Dithering issue for rgb565 format
CAF: gpu: ion
 fmem: Do not place fmem at the top of memory
  gpu: ion: Add ION support for fmem
  fmem: Add reserved_size to fmem
  gpu: ion: Add check for cached kernel mappings
  gpu: ion: Remove protection of heap on first alloc
  msm: copper: Add support for ION
  gpu: ion: Limit scope of local functions
  gpu: ion: Add EXPORT_SYMBOL to functions
  msm: board-8660: Add ION heap for Audio
  msm: board: Reduce kernel EBI reserved size
  msm_fb: display: Cleanup log messages for ION buffer management
  gpu: ion: Replace strncpy with strlcpy
  msm: board-8064: Add ION heap for Audio
  msm: board-8064: Add new heap for qse comm
  msm: board-8064: Add support for adjacent heaps
  msm: board-8064: Handle unstable section overflow
  msm: board-8064: Fix overflow in memory calc.
  vidc: check for ION flags.

CAF: gpu: ion: Change from uncached to buffered mapping
gpu: ion: Move MFC heap to different address
gpu: ion: set dma_address for contiguous heaps in ion_map_dma()
gpu: ion: Add support for IOMMU in CP heap
gpu: ion: Add missing argument to iommu map func
gpu: ion: Do not allow cached IOMMU mappings.
gpu: ion: Add cache operations to IOMMU heap
gpu: ion: Add map_dma support in IOMMU heap
gpu: ion: Lower IOMMU heap priority
gpu: ion: Add API to do cache operations
gpu: ion: Allow smaller mappings
gpu: ion: Delay unmapping from IOMMU.
gpu: ion: Map a range into the IOMMU
iommu: Fix flags passed to iommu map functions.
gpu: ion: Map everything into IOMMU with 64K pages.
gpu: ion: Fix incorrect argument to map call
gpu: ion: Fix fragmentation message log condition
gpu: ion: Use standard cache routines

Conflicts:

	drivers/gpu/msm/kgsl_iommu.c
msm: iommu: use sg_dma_address() in iommu_map_range()
msm: Add new partition for IOMMU video domain
msm: Disable use of the IOMMU
msm: Define 4 domains for IOMMU
msm: Make IOMMU domains unique
msm_fb: hdmi: CEC Message queue flush

CEC message queue should be flushed when CEC
function is enabled. If there are residue CEC
message, they might cause collision at message
queue.

CRs-fixed: 338811
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
(cherry picked from commit 60b26064afb48a5f82c2d0a0a135e0a63d32910c)

Change-Id: I4ad8432a711d9ed1abe7a54d352ae4ed2ce34a5e
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>
video: msm: PCC/GC config register protection

PCC/GC configuration registers are shared with other features. This patch
makes sure that the other features implementations don't overwrite the
existing settings for PCC/GC.

CRs-Fixed: 345395
Signed-off-by: Carl Vanderlip <carlv@codeaurora.org>
(cherry picked from commit 65fe6e713f7ca6b662c2cf4ce7335e22ca371118)

Change-Id: I47cde2931586e3a70a2f6e26f751d5becc20627a
Signed-off-by: Ram Kumar Chakravarthy Chebathini <rcheba@codeaurora.org>
video: msm: writeback: Stop providing buffers to mdp in stopping state

After writeback_stop() is called, we continue providing buffers to mdp
until the free queue is completely exhausted.  However, client can
deallocate buffers immediately after writeback_stop() is called, this
will trigger page faults from mdp accessing invalid buffers.

Change-Id: I007c10b3b9a4ddeca49b7e38ff04833a26560931
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
Signed-off-by: Ramakrishna Prasad N <crpn@codeaurora.org>
video: msm: Add QSEED API to MDP_PP IOCTL

Add the ability to program the QSEED Table 1 coefficients to the features
supported by the MSMFB_MDP_PP IOCTL

Doesn't support table2 writes currently, however, the code to write to them
is already present.

QSEED support is currently only configurable via a tuneable parameter that
maps to a small subset of possible  QSEED settings. By moving to the
MSMFB_MDP_PP IOCTL, QSEEDs tables will be able to programmed to any value
requested by userspace. This also allows for future expasion of the QSEED
feature by allowing dynamic loading of the table2 coefficients (rather than
only configuring them at init).

CRs-Fixed: 351256
Signed-off-by: Carl Vanderlip <carlv@codeaurora.org>
(cherry picked from commit e01bb5a4944eea27e87ca00a869105185c13664d)

Change-Id: I533a5db95bf83b796323d0b948abf59dc5a1ed60
Signed-off-by: Ram Kumar Chakravarthy Chebathini <rcheba@codeaurora.org>
msm_fb: display: Remove chicken bit config during video playback

Remove the chicket bit configuration and overlay status check
for MDP 4.0 v2.1 hardware version

CRs-Fixed: 313524
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
Signed-off-by: Mayank Chopra <makchopra@codeaurora.org>
(cherry picked from commit c0399fc8064b7e09bf41b9213faabc448ea95707)

Change-Id: Ie283ba9a947d4e0e743684b2a2c7f332c487dcaf
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>
msm_fb: Provide IOCTL to configure QSEED tables

Provide sub-operation for MSMFB_MDP_PP IOCTL to configure QSEED tables.
QSEED is used for smoothing, sharpening and scaling of content on video
pipes in MDP.

CRs-Fixed: 351256
Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org>
(cherry picked from commit 67726da111c4e6e10d21a3759f9f96ae0fefb2c2)

Change-Id: Ic79ed8b8cf3ea945c6f00ebbdf9d3a7886bcd3c0
Signed-off-by: Ram Kumar Chakravarthy Chebathini <rcheba@codeaurora.org>
msm_fb: display: add writeback mode for mddi on 7x30

Add support for BLT mode in the MDP4.0 overlay architecture while
downscaling to more than half of the source dimensions to avoid
underrun issues.

CRs-Fixed: 313524
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
Signed-off-by: Mayank Chopra <makchopra@codeaurora.org>
(cherry picked from commit 33a7d7226c7ab243fe6f3192b5f007435c451c5b)

Change-Id: Ib4086606131db62c8e54b44265ebfbb8f5df91bd
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>