msm: mdss: refactor command mode vsync control logic

Current logic is prone to corner case when mdss_mdp_remove_vsync_handler
is called twice: once from mdss_mdp_cmd_stop and again from vsync ctrl
logic. Need to properly identify the second call and avoid resetting the
rdptr ticks which prevent from clocks being turned off properly.

Change-Id: I9eeebd0c16e67a249508980427c81fa2e339edec
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
Merge "ion: Add missing unlock on error path"
Merge "mm/compaction: Break out of loop on !PageBuddy in isolate_freepages_block"
Merge "msm: pm: Notify secure code of L2 power mode from last core only"
Merge "msm: clock: Add parent fields to gcc_ce1_clk and gcc_ce2_clk"
Merge "msm: mdss: refactor command mode vsync control logic"
ARM: dts: decrease max BW cap for low kbps to 1.1 Ghz on 8226

Decrease the max BW check to 1.1 Ghz from 1.66 Ghz as recommended
based on the new set of bandwidth calculations.

Change-Id: I409c778ceb857560c25eb71e0fb875108e8725b1
Signed-off-by: Anusha Koduru <kanusha@codeaurora.org>
ARM: dts: Increase the ib fudge factor to 2

Increase the IB FUDGE factor to avoid underruns for 8226

Change-Id: I25a4a689bf17a6f0000885c5ac2bac44cc9eefc7
Signed-off-by: Anusha Koduru <kanusha@codeaurora.org>
Merge "qpnp-adc: current: Add check for rsense and calib data"
ASoC: msm: Null dereference check added

In asm_read function we should check buffer pointer
before it is dererferenced.

CRs-Fixed: 612682
Change-Id: I1968c038e1d35381bf174000287d542441e41092
Signed-off-by: Anish Kumar <kanish@codeaurora.org>
mdp3: configure dma source when displaying new frame

During Linux Bootloader to kernel transition, kernel's first call
to overlay_set would reconfigure dma source configurations. This
reconfiguration could happen before vsync but the corresponding
call to overlay_commit would occur after the vsync. This race
condition could cause artifacts to appear on screen. This issue
only occurs on video mode panels.

Change-Id: I1c1274a9c32cb74276162e74c22ad35afef0eb7c
Signed-off-by: Terence Hampson <thampson@codeaurora.org>
Merge "msm: lpm_levels: update suspend stats counters and time"
msm: mdss: Sanitize overlay kickoff inputs

Overlay kickoff in certain situations can be called without a ctl
attached to the frame buffer device. These situations need to
be captured and logical path should return safely.

CRs-fixed: 619588
Change-Id: Ibee6b59be667b7e5c9841ffb49c67d86bde45026
Signed-off-by: Sree Sesha Aravind Vadrevu <svadrevu@codeaurora.org>
msm: vidc: configure and set hier-p layers

Firmware requires the max number of hier-p layers
to be used during the encode session to be set
in load resources state. Without this change,
firmware will not enable hier-p encoding. Also
switch to using HFI_PROPERTY_CONFIG_VENC_HIER_P_ENH_LAYER
to set the number of hier-p layers.

Change-Id: I1fbf835acdb7d0a06d33cf9c2d038fb87c10010d
Signed-off-by: Arun Menon <avmenon@codeaurora.org>
Merge "spmi: qpnp-int: add irq_ack() callback and use it inside irq_mask_ack()"
Merge "spmi: qpnp-int: use edge flow handler for edge interrupts"
Merge "spmi: qpnp-int: clear the latched status when unmasking an interrupt"
ASoC: Fix the sync problem after SSR

After SSR default registers needs to be restored. Then
we need to sync all the registers with cache values. This
fixes the problem where register values got changed
after SSR causing AAC clip playback failure.

CRs-Fixed: 579574
Change-Id: Ibb99d69425dcb16ba09cfb131b5059f666f75012
Signed-off-by: Anish Kumar <kanish@codeaurora.org>
Signed-off-by: Fred Oh <fred@codeaurora.org>
Merge "msm: mdss: Sanitize overlay kickoff inputs"
Merge "ping: always initialize ->sin6_scope_id and ->sin6_flowinfo"