Commit graph

440480 commits

Author SHA1 Message Date
Sudheer Papothi e26b6ab560 ASoC: wcd-mbhc: reduce insert and remove debounce on wcd9335
Reduce insert and remove debounce value on wcd9335 to 96msec
to improve device switch latency during audio playback usecase.
Change sets the insert and remove debounce to 96msec.

Change-Id: I62a4e29af050da3b6be4afc1267b1b03f786c63e
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2015-12-17 02:16:20 -08:00
Linux Build Service Account 6d6cf90f16 Merge "ARM: dts: msm: affine to little cores when busy on 8976" 2015-12-16 13:17:24 -08:00
Linux Build Service Account dc13208569 Merge "ASoC: wcd9335: Clear TX HOLD for ANC input MUX'es" 2015-12-16 13:17:19 -08:00
Linux Build Service Account 73bdbfef3c Merge "ASoC: wcd9335: Change RX disconnect port sequence" 2015-12-15 22:01:59 -08:00
Linux Build Service Account baab8d4f2a Merge "soundwire: Disable ports in both banks after playback usecase" 2015-12-15 22:01:59 -08:00
Linux Build Service Account e960032081 Merge "mmc: sdhci-msm: Enable enhanced strobe support for host" 2015-12-15 22:01:55 -08:00
Linux Build Service Account 84a2e346b5 Merge "memshare: Release the memory only if no allocation is done" 2015-12-15 22:01:51 -08:00
Linux Build Service Account 71ddf5daed Merge "sched: Export sched_setscheduler_nocheck()" 2015-12-15 22:01:48 -08:00
Linux Build Service Account 0455b4cbde Merge "msm: sps: output BAM register dump to IPC log only" 2015-12-15 22:01:47 -08:00
Linux Build Service Account a98912efa5 Merge "usb_bam: Add support for dumping usbbam registers during panic" 2015-12-15 22:01:47 -08:00
Linux Build Service Account d354fdc30b Merge "Send only BIND and LISTEN events." 2015-12-15 22:01:43 -08:00
Asutosh Das 660c8cd451 ARM: dts: msm: affine to little cores when busy on 8976
In CQ mode, there is no way to distinguish between
READ or WRITE request. Hence, acquire the QoS lock
for little cluster for the entire period of transfer.
This would result in a slight performance improvement
in single threaded transfers.

CRs-fixed: 891366
Change-Id: I9185393250cc0b4bfe8a6f337f834c760b4ebed3
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
2015-12-15 12:35:14 +05:30
Phani Kumar Uppalapati a651e3c85f ASoC: wcd9335: Clear TX HOLD for ANC input MUX'es
Clear TX HOLD when ANC is enabled and decimator
10 to 13 are selected.

Change-Id: I18c1ddeacc59c1ae7d88daf371c84140c0459693
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2015-12-14 09:11:51 -08:00
Sudheer Papothi 3801154abf soundwire: Disable ports in both banks after playback usecase
Soundwire hardware has two banks for configuring soundwire
slave ports. After playback is stopped, disable soundwire slave
ports in both banks to avoid any port collisions during the start
of next playback on other slave device.

Change-Id: I5cfd1d985a1ca5fd7b4020d7e14697642f207501
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2015-12-14 06:03:38 -08:00
Phani Kumar Uppalapati 1a968d5fc2 ASoC: wcd9335: Change RX disconnect port sequence
Change RX disconnect port sequence so as to avoid
slimbus underflow and audio mute issues during
playback.

Change-Id: I0260e61b78e3bcfe422896dc60b15af84be424a4
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2015-12-14 05:58:18 -08:00
Linux Build Service Account 244d90076c Merge "dma-mapping: Exclude remap functions when arch does not use DMA" 2015-12-14 05:17:38 -08:00
Linux Build Service Account 555247c6b6 Merge "x86, kaslr: randomize module base load address" 2015-12-14 05:17:37 -08:00
Linux Build Service Account c10e3c591c Merge "net: ipv4: tcp: Get tcpi_count via file_count() not direct access" 2015-12-14 05:17:36 -08:00
Linux Build Service Account fa5a02585c Merge "time: alarmtimer: include lpm-levels for MSM targets only" 2015-12-14 05:17:35 -08:00
Linux Build Service Account 8897a9d2ef Merge "um: Handle tracehook_report_syscall_entry() result" 2015-12-14 05:17:34 -08:00
Linux Build Service Account 24624984da Merge "Revert "defconfig: msm8952/msm8976: enable CONFIG_IRQ_TIME_ACCOUNTING"" 2015-12-14 05:17:33 -08:00
Linux Build Service Account f04aae3c62 Merge "ASoC: msm: fix indefinite wait in compress drain" 2015-12-11 18:49:17 -08:00
Linux Build Service Account 6ed85c52df Merge "qcom: core_ctl_helper: Add wrapper for CPU hotplug" 2015-12-11 18:49:16 -08:00
Linux Build Service Account f87a3e26f2 Merge "ARM: dts: Modify GPU power level for msm8976" 2015-12-11 18:49:14 -08:00
Linux Build Service Account 2e5f51b9f2 Merge "mmc: block: stop BKOPs before handling RPMB and ioctl" 2015-12-11 18:49:13 -08:00
Linux Build Service Account 25d745773b Merge "Revert "ARM: unwinder: fix excessive logging issue"" 2015-12-11 18:49:12 -08:00
Linux Build Service Account 9ea57bec36 Merge "ARM: dts: msm: defer touch resume on msm8952 QRD and msm8976 QRD" 2015-12-11 18:49:11 -08:00
Linux Build Service Account 3512879e40 Merge "input: ft5x06: defer touch resume to workqueue" 2015-12-11 18:49:10 -08:00
Linux Build Service Account e4eb8354ac Merge "msm: mdss: Fixed secure display control scm call id" 2015-12-11 18:49:10 -08:00
Junjie Wu b7537b11b7 sched: Export sched_setscheduler_nocheck()
Export sched_setscheduler_nocheck() so that external kernel modules
can use it.

Change-Id: Ib50f537f5aef50c365ba63fb8ffce05bc1c7c431
Signed-off-by: Junjie Wu <junjiew@codeaurora.org>
2015-12-10 02:17:36 -08:00
Susheel Yadagiri 8f2bc9e0e0 Send only BIND and LISTEN events.
DPM is interested in only BIND and LISTEN events.

Change-Id: Iae11027945b981538f9c16ae9d5cd1ecf88a3743
Signed-off-by: Susheel Yadagiri <syadagir@codeaurora.org>
2015-12-09 23:39:38 -08:00
Linux Build Service Account 8a5275d726 Merge "ASoC: msm: qdsp6v2: extend wakelock hook to all misc drivers" 2015-12-09 19:02:37 -08:00
Lingutla Chandrasekhar 737850c2ad time: alarmtimer: include lpm-levels for MSM targets only
lpm-level headers required only when CONFIG_MSM_PM is set.

To compile msm kernel for other targets (arch=um), add config
check to include lpm levels.

Change-Id: Ia1bd51da4952e56b945a5e51a3b1ff8aaa643cd5
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
2015-12-09 16:19:38 +05:30
Kees Cook b205d6f7b1 x86, kaslr: randomize module base load address
Randomize the load address of modules in the kernel to make kASLR
effective for modules.  Modules can only be loaded within a particular
range of virtual address space.  This patch adds 10 bits of entropy to
the load address by adding 1-1024 * PAGE_SIZE to the beginning range
where modules are loaded.

The single base offset was chosen because randomizing each module
load ends up wasting/fragmenting memory too much. Prior approaches to
minimizing fragmentation while doing randomization tend to result in
worse entropy than just doing a single base address offset.

Example kASLR boot without this change, with a single module loaded:
---[ Modules ]---
0xffffffffc0000000-0xffffffffc0001000           4K     ro     GLB x  pte
0xffffffffc0001000-0xffffffffc0002000           4K     ro     GLB NX pte
0xffffffffc0002000-0xffffffffc0004000           8K     RW     GLB NX pte
0xffffffffc0004000-0xffffffffc0200000        2032K                   pte
0xffffffffc0200000-0xffffffffff000000        1006M                   pmd
 ---[ End Modules ]---

Example kASLR boot after this change, same module loaded:
---[ Modules ]---
0xffffffffc0000000-0xffffffffc0200000           2M                   pmd
0xffffffffc0200000-0xffffffffc03bf000        1788K                   pte
0xffffffffc03bf000-0xffffffffc03c0000           4K     ro     GLB x  pte
0xffffffffc03c0000-0xffffffffc03c1000           4K     ro     GLB NX pte
0xffffffffc03c1000-0xffffffffc03c3000           8K     RW     GLB NX pte
0xffffffffc03c3000-0xffffffffc0400000         244K                   pte
0xffffffffc0400000-0xffffffffff000000        1004M                   pmd
---[ End Modules ]---

Signed-off-by: Andy Honig <ahonig@google.com>
Link: http://lkml.kernel.org/r/20140226005916.GA27083@www.outflux.net
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Git-commit: e2b32e6785138d92d2a40e0d0473575c8c7310a2
[clingulta@codeaurora.org: resolve trivial merge conflicts, caused by
 commit 'a37ad2682' for arch=um]
Change-Id: I44dadf731c8becd301d57ee38f869fe646b383ed
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
2015-12-08 23:47:16 -08:00
Anamika Yadav 10e03d3d40 Revert "defconfig: msm8952/msm8976: enable CONFIG_IRQ_TIME_ACCOUNTING"
This reverts commit c26eab7280

Change-Id: I753ac2e6cdde575782b834e2c56ece4710871648
Signed-off-by: Yadav Anamika <anamik@codeaurora.org>
2015-12-08 23:17:38 -08:00
Yan He d7e8f473a1 msm: sps: output BAM register dump to IPC log only
Outputting BAM register dump to kernel log could consume
significant resource when the amount of registers is big. The
change here is to output BAM register dump to IPC log only as long
as IPC logging is enabled in the build.

Change-Id: Ibbd31bb2e97785008117c56da250beddbd75d958
Signed-off-by: Yan He <yanhe@codeaurora.org>
2015-12-08 21:26:31 -08:00
Sahitya Tummala a863aaaa2f mmc: sdhci-msm: Enable enhanced strobe support for host
Enable enhanced strobe support for host so that if card
supports it, then core layer will detect the card in this
mode.

Change-Id: Id1d5a4251acbb980f195053a2414907274f0ca6c
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
2015-12-09 10:42:30 +05:30
Ritesh Harjani f712dc5972 mmc: sdhci-msm: Add checks to know if card supports strobe
This patch adds checks in msm host driver to check if card
also supports enhanced strobe before changing strobe specific
host configuration.

Change-Id: Iab4833e80600c4ad89b16c76b52e917f885eea0e
Signed-off-by: Ritesh Harjani <riteshh@codeaurora.org>
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
2015-12-09 10:42:30 +05:30
Ritesh Harjani 8400722dc2 mmc: sdhci-msm: Configure CMDEN_HS400_INPUT_MASK_CNT for cmdq
When sending CMD during data in HS400 Enhanced Strobe mode,
the command that is being sent is also sampled internally on
CMDIN line by the RCLK that is toggling due to the data traffic.
To mask this <false> CMDIN a new mask is introduced throughout
the CMD transmission time. This mask is controlled by
HC_VENDOR_SPECIFIC_FUNC3.CMDEN_HS400_INPUT_MASK_CNT register.
The default reset value of this register is 2.

Before running CMDQ transfers in HS400 Enhanced Strobe mode,
SW should write 3 to
HC_VENDOR_SPECIFIC_FUNC3.CMDEN_HS400_INPUT_MASK_CNT register.

Change-Id: If0467855e23cb93e57a4581b375885136902835d
Signed-off-by: Ritesh Harjani <riteshh@codeaurora.org>
2015-12-09 10:42:29 +05:30
Ritesh Harjani 5aff2bb8eb mmc: sdhci: Notify sdhci-msm for enhanced strobe
Provide sdhci host ops of enhanced strobe to notify
sdhci-msm on enabling/disabling cmdq. This is needed
because of following:

Before running CMDQ transfers in HS400 Enhanced Strobe mode,
SW should write 3 to
HC_VENDOR_SPECIFIC_FUNC3.CMDEN_HS400_INPUT_MASK_CNT register.
Default reset value of this register is 2.

Change-Id: I987605cd21f137dea49ddf3e8db3f1f41b5b501f
Signed-off-by: Ritesh Harjani <riteshh@codeaurora.org>
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
2015-12-09 10:42:28 +05:30
Ritesh Harjani 7a99a2e25c mmc: cmdq_hci: Notify sdhci for enhanced strobe
Provide cmdq_host ops of enhanced strobe to notify
sdhci on enabling/disabling cmdq. This is needed
because of following:

Before running CMDQ transfers in HS400 Enhanced Strobe mode,
SW should write 3 to
HC_VENDOR_SPECIFIC_FUNC3.CMDEN_HS400_INPUT_MASK_CNT register.
Default reset value of this register is 2.

Change-Id: I36ead91ca8c9aeed967f120f8bdc3d2180af7746
Signed-off-by: Ritesh Harjani <riteshh@codeaurora.org>
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
2015-12-09 10:42:28 +05:30
Sahitya Tummala 8fc53b5ae1 mmc: sdhci-msm: Add hs400 enhanced strobe mode support to host
This adds hs400 enhanced strobe mode(emmc 5.1 feature)
support to sdhci-msm platform host.

Change-Id: Id35e0b9e47ea725202c8e4a3ca479d52cc872920
Signed-off-by: Ritesh Harjani <riteshh@codeaurora.org>
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
2015-12-09 10:42:24 +05:30
Vijayavardhan Vennapusa fb92292bd4 usb_bam: Add support for dumping usbbam registers during panic
On some platforms, RMNET and RNDIS interfaces uses BAM2BAM
over IPA for data path. We might need USB BAM registers for
analyzing data stall issues, which results in target crash.
Hence add support for registering panic notifier callback
and also dumping USB BAM registers in callback when it is called
during panic.

Change-Id: I96c52e27307340c8ec5ae0f1f9e20cae0c7bd5bb
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2015-12-08 21:00:46 -08:00
Ritesh Harjani 468464d9b0 mmc: sdhci: Add hs400 enhanced strobe mode support to host
This adds hs400 enhanced strobe mode(emmc 5.1 feature)
support to sdhci host.

Change-Id: Ib65905fa263553842cd55f38edccc135cac4bcf9
Signed-off-by: Ritesh Harjani <riteshh@codeaurora.org>
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
2015-12-09 09:18:03 +05:30
Sahitya Tummala 36354b8cb4 mmc: core: Add hs400 enhanced strobe mode support
This adds hs400 enhanced strobe mode support
in mmc core layer which is emmc 5.1 feature.

Change-Id: Ifa80d8ed1544212629193f58f05db4bd0e163adc
Signed-off-by: Ritesh Harjani <riteshh@codeaurora.org>
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
2015-12-09 09:18:03 +05:30
Prakash Kamliya e0ba7449a4 ARM: dts: Modify GPU power level for msm8976
Keep optimum powerlevels for msm8976 to help
performance and power.

Change-Id: Ie387152c37b433b330fa360de15ddddbb11d2876
Signed-off-by: Prakash Kamliya <pkamliya@codeaurora.org>
2015-12-07 04:31:31 -08:00
Linux Build Service Account 84a71d3cfe Merge "mmc: block: workaround for timeout issue with some vendor devices" 2015-12-04 12:44:23 -08:00
Linux Build Service Account 5a42580d46 Merge "ARM: dts: msm: correct stereo wsa speaker setting for 8976 devices" 2015-12-04 12:44:22 -08:00
Linux Build Service Account b5154c4552 Merge "ASoC: msm8x16-wcd: Fix hph pop in switching usecase" 2015-12-04 12:44:22 -08:00
Linux Build Service Account bec5b28b9c Merge "soundwire: put soundwire in suspend state when system is idle" 2015-12-04 12:44:21 -08:00