Commit graph

587867 commits

Author SHA1 Message Date
Shashank Mittal
7515bfb3f1 AndroidKernel: add support to pass build flags
Add support to pass build flags while compiling Linux kernel.

This change is required to add support in Linux kernel to use external
host executable. (example: dtc)

Usage example:
TARGET_KERNEL_MAKE_ENV := DTC_EXT=dtc$(HOST_EXECUTABLE_SUFFIX)

Change-Id: I008ca00cf9695133ff167ffdee8d8dfb89beb598
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2017-04-06 11:22:03 -07:00
Honghao Liu
f2c39e2b91 ASoC: msm: qdsp6v2: support TDM to AUX_PCM loopback for BT HFP uplink
Add route from QUAT_TDM_TX_0 to AUX_PCM_RX Port Mixer and route from
INTHFP_DL_HL to AUX_PCM_RX.

CRs-fixed: 2024590
Change-Id: I395808fe9937128f0391668132a4dffdb6c60f42
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
2017-04-06 11:09:32 -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
Raviteja Tamatam
5beb682d84 msm: mdss: add mdss smmu fault handler for sdm660
Add support to register smmu fault handler for MDSS
context banks to dump necessary debug information.

Change-Id: I955b4a33dbce0e66adee199e0a1272b25aa4392d
Signed-off-by: Raviteja Tamatam <travitej@codeaurora.org>
2017-04-06 18:53:59 +05:30
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
Ashish Garg
a6a87c4d44 ARM: dts: msm: add panel parameters for sharp wuxga panel for sdm630
Support sharp split link wuxga panel in video mode by adding
panel power supplies and phy timings for sdm630.

Change-Id: I4ab2255abc82b1c8fc3f97f6b9f29f7670c77555
Signed-off-by: Ashish Garg <ashigarg@codeaurora.org>
2017-04-06 17:14:50 +05:30
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
Govind Singh
fb1bdfec50 ath10k: synchronize restart work with FW ready indication
ath10k restart work needs to be scheduled after FW is ready
during SSR/PDR.

Synchronize restart work with FW ready indication.

Change-Id: I1cd93f4d1913e34c0714e717735c026a5c4faf1d
Signed-off-by: Govind Singh <govinds@codeaurora.org>
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2017-04-06 01:03:19 -07:00
Krishna Chaitanya Devarakonda
25c28677a1 msm: sde: map/unmap timestamp buffer for every rotator session
In the current implementation, the timestamp buffer is mapped at
the beginning of the first rotator session, and unmapped during
the rotator device remove. In sdm 660/630, there is no separate
context bank for rotator. In some cases (like secure display),
the IOMMU might be detached and reattached, invalidating the
timestamp buffer map.

Changing the timestamp buffer implementation to map/unmap for every
rotator session instead of rotator device create/remove, to handle
such cases.

Change-Id: I4fca45bdc0a1f4a8c5e54574139478d4e443685a
Signed-off-by: Krishna Chaitanya Devarakonda <kdevarak@codeaurora.org>
2017-04-06 01:01:52 -07:00
Abhinav Kumar
1dabd97b88 drm/msm: fix the display type string in SDE HDMI driver
There is a mismatch in the display type string between
userspace and HDMI driver causing the userspace to
not correctly detect the display configuration.

Fix the string to align the userspace and driver.

Change-Id: Ibb59fde833cb0be743b337fcb857c81bcbb37266
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-04-05 23:42:52 -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
Ashish Garg
9f52ca1ecb msm: mdss: add split link panel support in mdss
In split link panels, the four data lanes are split into
sublinks and the clock lane is shared among the sublink.
Add support for split link panels in mdss.

Change-Id: I40965c274a3591b0a00ca546052e7cb46967844d
Signed-off-by: Ashish Garg <ashigarg@codeaurora.org>
2017-04-06 08:49:14 +05:30
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
Subbaraman Narayanamurthy
6c3f86c0af power: qpnp-fg-gen3: Add support to configure base termination current
Add support to configure base termination current which is the
upper boundary at which fuel gauge will signal an end of charge
to the charger during discharging.

Change-Id: Ied2f89fc8e132161d55a9bfbcca6738fef164b20
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-04-05 14:24:50 -07:00
Subbaraman Narayanamurthy
82e30aafda power: qpnp-fg-gen3: Adjust ki_coeff_full_soc dynamically
When the battery temperature goes below -10 C, SOC may get stuck
to 100%. This is due to the SOC full loop adjusting down with
very high battery impedance. To mitigate this, SOC full loop has
to be frozen. Add support for it by adjusting ki_coeff_full_soc
dynamically based on battery temperature.

Change-Id: I6218568712b025bc4427770bf86d142d50f40c7b
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-04-05 14:23:51 -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
Mahesh Sivasubramanian
e9e57fce9e soc: qcom: rpm: Use GENMASK APIs to generate bit masks
The bit mask macro GEN_FIELD(24,8) causes overflow as it tries to shift by
32 bits. Using kernel's builtin GENMASK macro to avoid such overflows.

Change-Id: I614a68eb009eb8b223a4da45349124a70c0a8134
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
2017-04-05 14:29:51 -06: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
Linux Build Service Account
3016150b12 Merge "ARM: dts: msm: add regulators and clk in icnss device node for sdm660" 2017-04-05 12:17:00 -07:00
Linux Build Service Account
17e5e6be4b Merge "ARM: dts: msm: update itech and st1031ga battery profile parameters" 2017-04-05 12:16:59 -07:00
Linux Build Service Account
bbc2d362eb Merge "ARM: dts: msm: enable SDR104 workaround for MSM8998" 2017-04-05 12:16:56 -07:00
Linux Build Service Account
b8d554f7cb Merge "msm: kgsl: Use legacy PM4 check instead of adreno version" 2017-04-05 12:16:55 -07:00