ASoC: msm: qdsp6v2: add support for dynamic TTY mode change

DSP supports enabling/disabling and changing between TTY modes
while a call is already ongoing. Add support in voice drivers
to enable and switch between different TTY modes.

Change-Id: Idf3372fc3d0205f706584e8b3652dc5e39b4ceef
CRs-fixed: 608183
Signed-off-by: Narsinga Rao Chella <nrchella@codeaurora.org>
Merge "ASoC: msm: qdsp6v2: add support for dynamic TTY mode change"
staging: binder: add vm_fault handler

An issue was observed when a userspace task exits.
The page which hits error here is the zero page.
In binder mmap, the whole of vma is not mapped.
On a task crash, when debuggerd reads the binder regions,
the unmapped areas fall to do_anonymous_page in handle_pte_fault,
due to the absence of a vm_fault handler. This results in
zero page being mapped. Later in zap_pte_range, vm_normal_page
returns zero page in the case of VM_MIXEDMAP and it results in the
error.

BUG: Bad page map in process mediaserver  pte:9dff379f pmd:9bfbd831
page:c0ed8e60 count:1 mapcount:-1 mapping:  (null) index:0x0
page flags: 0x404(referenced|reserved)
addr:40c3f000 vm_flags:10220051 anon_vma:  (null) mapping:d9fe0764 index:fd
vma->vm_ops->fault:   (null)
vma->vm_file->f_op->mmap: binder_mmap+0x0/0x274
CPU: 0 PID: 1463 Comm: mediaserver Tainted: G        W    3.10.17+ #1
[<c001549c>] (unwind_backtrace+0x0/0x11c) from [<c001200c>] (show_stack+0x10/0x14)
[<c001200c>] (show_stack+0x10/0x14) from [<c0103d78>] (print_bad_pte+0x158/0x190)
[<c0103d78>] (print_bad_pte+0x158/0x190) from [<c01055f0>] (unmap_single_vma+0x2e4/0x598)
[<c01055f0>] (unmap_single_vma+0x2e4/0x598) from [<c010618c>] (unmap_vmas+0x34/0x50)
[<c010618c>] (unmap_vmas+0x34/0x50) from [<c010a9e4>] (exit_mmap+0xc8/0x1e8)
[<c010a9e4>] (exit_mmap+0xc8/0x1e8) from [<c00520f0>] (mmput+0x54/0xd0)
[<c00520f0>] (mmput+0x54/0xd0) from [<c005972c>] (do_exit+0x360/0x990)
[<c005972c>] (do_exit+0x360/0x990) from [<c0059ef0>] (do_group_exit+0x84/0xc0)
[<c0059ef0>] (do_group_exit+0x84/0xc0) from [<c0066de0>] (get_signal_to_deliver+0x4d4/0x548)
[<c0066de0>] (get_signal_to_deliver+0x4d4/0x548) from [<c0011500>] (do_signal+0xa8/0x3b8)

Add a vm_fault handler which returns VM_FAULT_SIGBUS, and prevents the
wrong fallback to do_anonymous_page.

CRs-Fixed: 673147
Change-Id: I43730a51b6c819538b46c5e4dc5c96c8a384098d
Signed-off-by: Vinayak Menon <vinayakm.list@gmail.com>
Patch-mainline: linux-arm-kernel @ 06/02/14, 18:17
Signed-off-by: Vignesh Radhakrishnan <vigneshr@codeaurora.org>
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Merge "staging: binder: add vm_fault handler"
ASoC: wcd9306: fix the NULL pointer dereference in the tapan codec

During the close of the AFE port the AIF1 PB widget will be closed
which access the core variable.
If the core is not initialized yet it will result in the kernel panic.
Fix by adding the check for the core structure to be initialized.

CRs-Fixed: 635790
Change-Id: Ic057e2eb75b25dbc55aa06cbce2b49aca0b1b25f
Signed-off-by: Aviral Gupta <aviralg@codeaurora.org>
Merge "ASoC: wcd9306: fix the NULL pointer dereference in the tapan codec"
defconfig: Enable ESP match target

Configuration change to enable ESP match target in iptables to
provide the ability to match packets based on the SPI (Security
Parameters Index) value in the ESP (Encapsulating Security Payload)
header.

CRs-Fixed: 700799
Change-Id: Iee635760d79946c480342d30e73d44f9756c0324
Acked-by: Sireesh Gavini <sgavini@qti.qualcomm.com>
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
mmc: core: Fix power class config for HS400

Use the correct power class field from the extended CSD register
for HS400 mode as defined in the eMMC5.0 specification.

CRs-fixed: 690341
Change-Id: Ie10e35941fd3c6ee49c686f721bf5af6fcd74862
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
Merge "defconfig: Enable ESP match target"
Merge "mmc: core: Fix power class config for HS400"
Revert "msm: mdss: protect command mode BW votes by tracking HW/SW states."

This reverts commit 03f77edd9125b25821cc1ce3b5cf6323e6466dd8.

Change-Id: I3cdc75c46d053d040d72b42d74bb58e91604e365
Signed-off-by: Anusha Koduru <kanusha@codeaurora.org>
Revert "msm: mdss: release mdp bandwidth voting for command mode when idle"

This reverts commit 964efc22d11732daf996dd07d7c930c523200143.

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

This reverts commit 9c444be54c29b01e7d15decee6b3bb50a7596435.

Change-Id: I527dd245ec9d0b485da1f9a4f9b5afa9f9d4621d
Signed-off-by: Anusha Koduru <kanusha@codeaurora.org>
Revert "ARM: dts: set ab fudge factor to 1"

This reverts commit 6e3919ad99595640a059628ca96b2802907a8565.

Change-Id: I8c6710731deabd76439f2dfa70c68df059869864
Signed-off-by: Anusha Koduru <kanusha@codeaurora.org>
Revert "msm: mdss: fix issue of overlapping BW for two adjacent surfaces"

This reverts commit d8bef95ffe4ac52b029a81ab3066c2c18b7fe82d.

Change-Id: I04b8295c32f50da33d0a981246d8307a706221c3
Signed-off-by: Anusha Koduru <kanusha@codeaurora.org>
ASoC: msm: qdspv2: Fix junk characters in session name

Initialize MVM session name array to zero to avoid junk
characters at the end.

Change-Id: I441e5dbeb4052c937bb99f9c4c96a91c410db553
CRs-fixed: 702741
Signed-off-by: Karthik Reddy Katta <a_katta@codeaurora.org>
msm: vidc: Add instance to instance list prior to CORE_INIT.

During CORE_INIT, driver votes for bus only if core->instances list
is not empty. Since the current video instance is added to core->instances
list after core init, driver fails to vote for bus. This causes ion_map to
hang and resets the device.

Conflicts:
	drivers/media/platform/msm/vidc/msm_vidc.c

Change-Id: Ia68a953572852db63737f30998cf10c5db151292
Signed-off-by: Srinu Gorle <sgorle@codeaurora.org>
Signed-off-by: Bhasker Komateddy <bkomat@codeaurora.org>
Merge "msm: vidc: Add instance to instance list prior to CORE_INIT."
Merge "ASoC: msm: qdspv2: Fix junk characters in session name"
media: dvb: increase SDMX shared buffer size

A shared buffer is used to encode the command and response when
sending a command to TZ via qseecom interface.
To allow increasing the number of linear buffers the shared buffer
size is increased to accommodate the command data.
In addition, add checks to detect overflow of the shared buffer.

Change-Id: Ie006d20f3841aa7e8ea2e30bd6a5b211099936af
Signed-off-by: Gilad Broner <gbroner@codeaurora.org>