Commit graph

586933 commits

Author SHA1 Message Date
Linux Build Service Account
3d449c081c Merge "ion: change data type of source_vm* variable to int" 2017-04-06 22:31:56 -07:00
Linux Build Service Account
c079ecdc4e Merge "wil6210: missing reinit_completion in HALP voting" 2017-04-06 22:31:43 -07:00
Linux Build Service Account
5da4139c92 Merge "wil6210: use print_hex_dump_debug instead of print_hex_dump_bytes" 2017-04-06 22:31:38 -07:00
Linux Build Service Account
6319cf033b Merge "ASoC: msm: update TDM slot mapping and FE DAI array" 2017-04-06 14:33:16 -07:00
Linux Build Service Account
bce56352aa Merge "seemp: fix code analysis issues" 2017-04-06 14:33:15 -07:00
Linux Build Service Account
89364febeb Merge "msm: pcie: update mask and linkdown check in PCIe read/write API" 2017-04-06 14:33:14 -07:00
Linux Build Service Account
61bae6eff7 Merge "msm: pcie: expand PCIe boot option" 2017-04-06 14:33:13 -07:00
Linux Build Service Account
f825071893 Merge "msm-core: Fix uninitialized sampling work" 2017-04-06 14:33:13 -07:00
Linux Build Service Account
8dbe64734d Merge "soc: qcom: glink_pkt: Add mutex in glink_pkt_read" 2017-04-06 14:33:11 -07:00
Linux Build Service Account
7b572c28b1 Merge "wil6210: prevent access to 11AD device if resume fails" 2017-04-06 14:33:11 -07:00
Linux Build Service Account
5a0cfd1234 Merge "Revert "sd: Fix rw_max for devices that report an optimal xfer size"" 2017-04-06 14:33:10 -07:00
Linux Build Service Account
ebc1fa334d Merge "spi: spi_qsd: Disable packing for unaliged non DMA mode transfers" 2017-04-06 14:33:09 -07:00
Linux Build Service Account
6c5cc8bddc Merge "cpu-hotplug: Always use real time scheduling when hotplugging a CPU" 2017-04-06 14:33:08 -07:00
Linux Build Service Account
94a297b730 Merge "binder: use group leader instead of open thread" 2017-04-06 14:33:07 -07:00
Linux Build Service Account
d7dac6fbf0 Merge "pps-gpio: Timestamp alignment with boottime" 2017-04-06 14:33:06 -07:00
Honghao Liu
3f148d954b ASoC: msm: update TDM slot mapping and FE DAI array
Update TDM slot mapping and add hostless FE DAI for customized
sound card on automotive platform.

CRs-fixed: 2024584
Change-Id: I08c2765972405e6dfbbcd6d2590109e119b92423
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
2017-04-06 11:08:59 -07:00
Yida Wang
d45e41bf0c seemp: fix code analysis issues
Fix code analysis issues related to seemp, such as, variables might
be used uninitialized, and array may use index values larger than its
size.

Change-Id: Ic537ece4d00ac3d72d679359b60999df473f8710
Signed-off-by: Yida Wang <yidaw@codeaurora.org>
2017-04-06 11:28:55 -04:00
Linux Build Service Account
41941e18ba Merge "sched/debug: Make the "Preemption disabled at ..." message more useful" 2017-04-06 05:39:40 -07:00
Linux Build Service Account
4594178f22 Merge "leds: qpnp-flash-v2: Fix pinctrl configuration" 2017-04-06 05:39:39 -07:00
Linux Build Service Account
48dc2c760d Merge "msm: vidc: Re-calculate buffer requirement" 2017-04-06 05:39:38 -07:00
Linux Build Service Account
67e7d195f1 Merge "msm: vidc: Prioritize debugfs timeout control over dtsi entry" 2017-04-06 05:39:37 -07:00
Linux Build Service Account
19b4666123 Merge "ARM: dts: msm: add support for sharp wuxga split link panel" 2017-04-06 05:39:36 -07:00
Linux Build Service Account
b1ddc9f5e3 Merge "msmcortex: Enable PPP related defconfigs" 2017-04-06 05:39:35 -07:00
Mukesh Kumar Savaliya
cbea40b0e1 spi: spi_qsd: Disable packing for unaliged non DMA mode transfers
SPI core has a characterstic that it always sends data in FIFO word size
when we compress the data and fill the FIFO. This helps to improve the
overall througput but sometimes for the data transfers which is not
aligned to FIFO Word [i.e 4] it pads extra bytes and sends out which can
mislead spi slave device.

Do not enable packing if it's a FIFO mode transfer and data size is not
aligned to FIFO word size.

Change-Id: I28f4e3e38db4b882f229c00aa54aabdc72d2c139
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
2017-04-06 04:43:05 -07:00
Maulik Shah
ea093498dd msm-core: Fix uninitialized sampling work
Sampling work can be accessed by do_sampling kthread
before init. Fix this by initializing sampling work before
using.

Change-Id: I790ce50fcddbcd08861e31fea9bde839d6fbb7cc
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2017-04-06 16:51:48 +05:30
Naresh Munagala
08f9cd2ae7 pps-gpio: Timestamp alignment with boottime
GPS driver which makes use of PPS timestamp expects time
with respect to boot time. Existing pps_get_ts function
doesn't return time from the boot so replaced this function
with get_monotonic_boottime function which returns elapsed time
from the boot.

Change-Id: I8f656a1c4ef43f6314d4ab295a177125bcc8195e
CRs-Fixed: 1012438
Signed-off-by: Naresh Munagala <nareshm@codeaurora.org>
2017-04-06 01:48:33 -07:00
Mukesh Kumar Savaliya
d0aa676fad spi: spi_qsd: Merge back throughput improvements done for small transfers
These changes will merge back the enhancemnts done to improve the medium
side transfers. This was reverted temporarily till the fix identified.

Change-Id: Ib7ac92ecefe7ca3ff9f03716c51dc31b8322ee33
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
2017-04-06 11:35:07 +05:30
Sayali Lokhande
7e83faf328 Revert "sd: Fix rw_max for devices that report an optimal xfer size"
This reverts 'commit 9814eb7549 ("sd: Fix rw_max for devices
that report an optimal xfer size")'.
Max sectors limit for request queue(q->limits.max_sectors) is reduced
from 1024 to 16 sectors by above commit and causing performance impact
(reduced by upto 50%). Hence revert the change to fix the performance
issue observed on 8998.

Change-Id: I9abd2be6c90922ea9de818912f405e0d292a62b8
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
2017-04-06 10:12:38 +05:30
Linux Build Service Account
c19af183fc Merge "clk: mdss: adjust PLL disable sequence to avoid glitch" 2017-04-05 20:21:33 -07:00
Linux Build Service Account
6728c13839 Merge "scsi: ufs: fix error handing during hibern8 enter" 2017-04-05 20:21:32 -07:00
Linux Build Service Account
66f971f385 Merge "msm: ipa: continue probe on ipc log failure" 2017-04-05 20:21:32 -07:00
Linux Build Service Account
f79238754a Merge "msm: mhi_rmnet: add support for shutdown and system error notification" 2017-04-05 20:21:30 -07:00
Linux Build Service Account
50ae8d5cff Merge "leds: qpnp-flash-v2: Fix some issues" 2017-04-05 20:21:29 -07:00
Linux Build Service Account
38cb972517 Merge "usb: gadget: gsi: Fix incorrect repsonse available notifications" 2017-04-05 20:21:29 -07:00
Linux Build Service Account
0afdb965c7 Merge "icnss: Make driver register asynchronous to probe" 2017-04-05 20:21:28 -07:00
Linux Build Service Account
2e1b1eb1e5 Merge "ASoC: wcd934x: add null check for soundwire control data" 2017-04-05 20:21:27 -07:00
Linux Build Service Account
ad7c7b10d1 Merge "smb138x: support usbin-usbin with external rsense" 2017-04-05 20:21:26 -07:00
Martijn Coenen
9036bcc59e binder: use group leader instead of open thread
The binder allocator assumes that the thread that
called binder_open will never die for the lifetime of
that proc. That thread is normally the group_leader,
however it may not be. Use the group_leader instead
of current.

Bug: 35707103
Test: Created test case to open with temporary thread

Change-Id: Id693f74b3591f3524a8c6e9508e70f3e5a80c588
Signed-off-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Martijn Coenen <maco@android.com>
Git-commit: 359795138d
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2017-04-05 16:51:17 -07:00
Abhinav Kumar
3a757d0376 clk: mdss: adjust PLL disable sequence to avoid glitch
Adjust the PLL disable sequence as per the latest HW
programming guidelines to ensure there will not be any
stray clock glitches when PLL is turned OFF abruptly.

Change-Id: I6df35bbe18b0c42b43f38b9dd85c3502b2038928
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-04-05 16:48:34 -07:00
Abhinav Kumar
b2e934426e clk: mdss: re-program PLL registers to power-on-reset value
When the supply to PLL digital domain is turned off,
it can result in certain PLL registers to get corrupted.

Make sure to re-program the PLL registers to the
power-on-reset value before starting to program the PLL again
to ensure that it locks reliably.

Change-Id: I63cac884cf11eae60b187f83654f5922a3342d66
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-04-05 16:46:27 -07:00
Subhash Jadavani
a115b29aaa scsi: ufs: fix error handing during hibern8 enter
During clock gating (ufshcd_gate_work()), we first put the link hibern8 by
calling ufshcd_uic_hibern8_enter() and if ufshcd_uic_hibern8_enter()
returns success (0) then we gate all the clocks.
Now let’s zoom in to what ufshcd_uic_hibern8_enter() does internally:
It calls __ufshcd_uic_hibern8_enter() which on detecting the LINERESET,
initiates the full recovery and puts the link back to highest HS gear and
returns success (0) to ufshcd_uic_hibern8_enter() which is the issue as
link is still in active state due to recovery!
Now ufshcd_uic_hibern8_enter() returns success to ufshcd_gate_work() and
hence it goes ahead with gating the UFS clock while link is still in active
state hence I believe controller would raise UIC error interrupts. But when
we service the interrupt, clocks might have already been disabled!

This change fixes for this by returning failure from
__ufshcd_uic_hibern8_enter() if recovery succeeds as link is still not in
hibern8, upon receiving the error ufshcd_hibern8_enter() would initiate
retry to put the link state back into hibern8.

Change-Id: Ib550fb791fa4c582b8f2d317a7f5f7594acb0872
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
2017-04-05 16:42:41 -07:00
Syed Rameez Mustafa
cbc3fee7f7 cpu-hotplug: Always use real time scheduling when hotplugging a CPU
CPU hotplug operations take place in preemptible context. This leaves
the hotplugging thread at the mercy of overall system load and CPU
availability. If the hotplugging thread does not get an opportunity
to execute after it has already begun a hotplug operation, CPUs can
end up being stuck in a quasi online state. In the worst case a CPU
can be stuck in a state where the migration thread is parked while
another task is executing and changing affinity in a loop. This
combination can result in unbounded execution time for the running
task until the hotplugging thread gets the chance to run to complete
the hotplug operation.

Fix the said problem by ensuring that hotplug can only occur from
threads belonging to the RT sched class. This allows the hotplugging
thread priority on the CPU no matter what the system load or the
number of available CPUs are. If a SCHED_NORMAL task attempts to
hotplug a CPU, we temporarily elevate it's scheduling policy to RT.
Furthermore, we disallow hotplugging operations to begin if the
calling task belongs to the idle and deadline classes or those that
use the SCHED_BATCH policy.

Change-Id: Idbb1384626e6ddff46c0d2ce752eee68396c78af
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
2017-04-05 16:34:13 -07:00
Sujeev Dias
371e2918df msm: mhi_rmnet: add support for shutdown and system error notification
Add support to handle system error and shutdown notification
from MHI host.

CRs-Fixed: 2022936
Change-Id: Id36097dffd7571490d7d53d2e496bfe024702a42
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-04-05 13:59:33 -07:00
Linux Build Service Account
a3851309db Merge "msm: mdss: dp: fix notifications for link training tests" 2017-04-05 12:17:10 -07:00
Linux Build Service Account
d850fccd93 Merge "ARM: dts: msm: Update MDSS max mixer/pipe width for sdm630" 2017-04-05 12:17:09 -07:00
Linux Build Service Account
bfdd19a48e Merge "crypto: msm: Use appropriate logging function" 2017-04-05 12:17:08 -07:00
Linux Build Service Account
9e160e7f8b Merge "qcom: smb1351: update CHARGING_ENABLE reporting logic" 2017-04-05 12:17:04 -07:00
Linux Build Service Account
8f91cc1fa4 Merge "power_supply: add HW_CURRENT_MAX power_supply property" 2017-04-05 12:17:03 -07:00
Linux Build Service Account
6e2c59ad47 Merge "ARM: dts: msm: add regulators and clk in icnss device node for sdm630" 2017-04-05 12:17:02 -07:00
Linux Build Service Account
c9b6da0d6c Merge "sdm660: ADSPRPC: Null check file session ctx during mmap create" 2017-04-05 12:17:01 -07:00