msm8974: mdss: dsi: uncached alloc for dsi buffer

Use uncached allocation for DSI buffers to avoid
cache inconsistency issues introduced with SLUB
DEBUG option enabled. With SLUB_DEBUG, the entries
in cache are somehow polluted which results in incorrect
dsi command values sent to the panel. This change avoids
cached allocation by using dma allocation instead.

Change-Id: Ib769e91d411bf856e7d2e860cff7c1188ff0236e
CRs-Fixed: 488236
Signed-off-by: Manoj Rao <manojraj@codeaurora.org>
msm: vidc: Update the minimum supported bit rate for encoder

Venus FW supports minimum bit rate of 32kbps. This change updates
the kernel driver to allow the clients to configure bit rate from
32kbps to 160mbps.

Change-Id: I1663275a5f8affcdad545d1e7e73ab7c5d229ebe
CRs-Fixed: 494836
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
msm: mdss: correctly retrieve panel framerate for command mode

Framerate is populated for DSI panels including video mode and command
mode. Retrieve this framerate for command mode panel.

Change-Id: If005dc9aa8383d2afe5beb1123797460ceba027a
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
msm: vidc: (Re-)Centralise event notifications

kernel_event_queue needs to be woken up each time v4l2_queue_event_fh is
called.  Helper function to facilitate this was private within common.c.
This commit makes it available to rest of the driver.

Change-Id: Ide050d06841857e00ea7f7ecacd6a2101c8a4115
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
msm: mdss: Avoid null pointer deref in writeback terminate

Writeback terminate can be called without the allocation of ctl
especially when a file descriptor needs to be closed for ioctl
failures.

CRs-fixed: 489296
Change-Id: I907d3f9ba1825829b3198f66c918071e59d37968
Signed-off-by: Sree Sesha Aravind Vadrevu <svadrevu@codeaurora.org>
cpufreq: ondemand: Fix store_powersave_bias() race with hotplug

store_powersave_bias() assumes that CPUs will not be taken offline or
brought online while executing its for_each_online_cpu() loops. Fix
this race by blocking hotplug while executing in these loop.

CRs-Fixed: 494407
Change-Id: I0d5520444ec21a8d9b12fb73c06ac8442449fa85
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
cpufreq: ondemand: Fix locking in store_powersave_bias

store_powersave_bias() assumes that dbs_info->cur_policy will
not change while it is executing. If it does, memory corruption
can potentially result. Fix this by acquiring the dbs_lock.

Most noticeably, this resolves timer-related list corruptions
encountered when queue_delayed_work_on() is called from within
store_powersave_bias() while a CPU is being hotplugged in and
out.

CRs-Fixed: 494407
Change-Id: I0fd5cbef6834545274cad9481e574ec50b37b871
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
Merge "msm: wfd: Clean up code in mdp subdevice"
Merge "arm/dt: msm8974: Add SMBB boost regulator support for flash"
Merge "leds: leds-qpnp: Utilize SMBB Boost Regulator for flash LED"
Merge "msm: vidc: Set V4L2_BUF_FLAG_KEYFRAME for IDR frames also"
Merge "mdss: display: return proper value at wfd wait4comp"
Merge "ASoC: msm: qdsp6v2: fix wait_event_timeout return value check"
Merge "ASoC: msm: qdsp6v2: fix improper usage of atomic operations"
Merge "ASoC: msm: qdsp6v2: deliver correct return value"
Merge "ASoC: msm: qdsp6v2: fix possible race condition"
Merge "ASoC: msm: qdsp6v2: fix broken unmap memory regions"
Merge "usb: ehci-msm-hsic: fix runtime suspend when IPA not used"
Merge "power: qpnp-charger: check base address in qpnp_chg_write/read"
Merge "msm: ipc: Load default subsystem under appropriate scenario"