msm: kgsl: Remove extra call to sync_fence_put()

sync_fence_put is called twice and cause NULL pointer dereference.

Change-Id: Ia29e676af28d9040d1ba1ee8669f1306cc8b4035
Signed-off-by: Alex Wong <waiw@codeaurora.org>
Signed-off-by: Sakshi Agrawal <sakshia@codeaurora.org>
msm: mdp: Use a waitqueue for vsync notifications

Use a waitqueue instead of completions and make sure the vsync
show event always returns the timestamp except when it is
interrupted. This simplifies the vsync wait mechanism both here
and in userspace and avoids any unnecessary locking.

Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
perf: Treat attr.config as u64 in perf_swevent_init()

Trinity discovered that we fail to check all 64 bits of
attr.config passed by user space, resulting to out-of-bounds
access of the perf_swevent_enabled array in
sw_perf_event_destroy().

Introduced in commit b0a873ebb ("perf: Register PMU
implementations").

Signed-off-by: Tommi Rantala <tt.rantala@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: davej@redhat.com
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Link: http://lkml.kernel.org/r/1365882554-30259-1-git-send-email-tt.rantala@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Revert "mako_defconfig: enable dynamic debug"

This reverts commit 274c75d287f718f0a6ba181c01ef5ceb850c5dea.

Signed-off-by: Eric Laurent <elaurent@google.com>
prima: release v3.2.2.10

	git://codeaurora.org/external/wlan/prima.git

	38ad3d3 wlan: Release 3.2.2.10
	984e983 Configure the retry limits using .ini
	a5e5514 Fix the connection latency issue with multiple connect/disconnects.
	1e5111a Revert "wlan: Calculation of beacon interval for MCC STA+GO."
	d67b953 Revert "wlan:Block WiFi Direct GO mode on UNII-1 Band."
	2666ecb wlan: Release 3.2.2.9
	bfabb22 wlan: Calculation of beacon interval for MCC STA+GO.
	218feaa wlan:Block WiFi Direct GO mode on UNII-1 Band.
	2f4c6e6 wlan:Pass correct length for GPS vendor specific IE

Signed-off-by: Iliyan Malchev <malchev@google.com>
msm: mdp: vsync waitqueue for lcdc and dtv interfaces

This is a follow up commit to "msm: mdp: Use a waitqueue for
vsync notification". DTV and LCDC changes were not made on the
earlier commit.

Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
msm: mdp: Wait unconditionally in internal vsync waits

Do not wait for timestamp to change for internal waits as the
waitqueue can be woken up from places where the vsync timestamp
doesn't change.

Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
update net/wireless/db.txt

	http://git.kernel.org/cgit/linux/kernel/git/linville/wireless-regdb.git

	commit bb99560ff69c44c30e47416501639e37014689c3
	Author: John W. Linville <linville@tuxdriver.com>
	Date:   Wed Feb 13 14:36:58 2013 -0500
	    wireless-regdb: update regulatory.bin based on preceding changes.

Signed-off-by: Iliyan Malchev <malchev@google.com>
mako_defconfig: enable CONFIG_CFG80211_INTERNAL_REGDB

Signed-off-by: Iliyan Malchev <malchev@google.com>
prima: release v3.2.2.13

	git://codeaurora.org/external/wlan/prima.git

	6a2d645 wlan: Release 3.2.2.13
	86a42a8 wlan: ActivetoPassiveTimer is not cleard.
	4813a7c wlan: Warning messages while connecting to 5Ghz hidden SSID AP.
	aaf001f wlan: Release 3.2.2.12
	6ecd087 wlan: GO should not follow STA channel if channel is passive.
	ae1566a Fix for Corruption caused by uninitialized memory read in Wi-Fi subsystem
	85c4d4d wlan: Release 3.2.2.11
	df33fd6 wlan: Make Passive channel to Active channel when beacon is received.
	d7805b7 wlan: Pass correct  beacon interval for p2p GO
	656a3db wlan:Block WiFi Direct GO mode on UNII-1 Band.

Signed-off-by: Iliyan Malchev <malchev@google.com>
msm: mdp: Increase base fence timeout

The earlier value of 1 second caused unnecessary warnings on
heavy workloads by the GPU.

Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
msm: mako: add customized mdp_max_bw

Some HDMI use cases (notably 1080p video) need extra bandwidth.

Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
Signed-off-by: Iliyan Malchev <malchev@google.com>
msm: display: provide mdp bandwidth parameters from board file

Underrun issues can be solved by changing mdp bandwidth parameters:
max_bw, ab_factor and ib_factor. However these parameters are not
universally same for all targets, and one set of values that works for
one target could cause underruns or higher power on other
targets. This is board side change.

CRs-Fixed: 464492
Change-Id: I2a8fbb9018011ddf42dfa50b371e450e38f4351a
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
msm_fb: display: get mdp bandwidth parameters from board file

Underrun issues can be solved by changing mdp bandwidth parameters:
max_bw, ab_factor and ib_factor. However these parameters are not
universally same for all targets, and one set of values that works for
one target could cause underruns or higher power on other
targets. This change is driver change which makes those parameters
target dependent.

CRs-Fixed: 464492
Change-Id: Ib23ebc431caabbe91c7ae3bd96bb38789d7ddc90
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
ASoC: compress: Cancel delayed power down if needed

When a new stream is being opened it is necessary to cancel any delayed
power down of the audio.

[Fixed unused variable -- broonie]

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
ASoc: fix compilation error

Fix compilation error after merging commit 00642f5
from master: pop_wait is in struct snd_soc_dai
not in struct snd_soc_pcm_runtime.

Signed-off-by: Eric Laurent <elaurent@google.com>
ASoC: compress - add support for metadata apis

Compress core added metadata apis in 9727b4, so add same in ASoC

Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
timed_gpio: fix order of destruction

Signed-off-by: Iliyan Malchev <malchev@google.com>
diag_bridge: resolve use-after-free on diag_bridge_close

Signed-off-by: Iliyan Malchev <malchev@google.com>
mako_defconfig: disable CONFIG_IKCONFIG_PROC

Signed-off-by: Iliyan Malchev <malchev@google.com>