Commit graph

577902 commits

Author SHA1 Message Date
Linux Build Service Account
ff25044ed2 Merge "msm: kgsl: Fix pt NULL pointer dereference" 2016-11-15 04:07:29 -08:00
Linux Build Service Account
1f68dcac66 Merge "qcom-charger: WA for cc2 removal with medium and high rd" 2016-11-15 04:07:28 -08:00
Linux Build Service Account
59c99dc4e4 Merge "qcom-charger: WA for typec cc2 sink removal with rdstd" 2016-11-15 04:07:27 -08:00
Linux Build Service Account
c67b4632c7 Merge "ARM: dts: msm: add new mapping table for memlat" 2016-11-15 04:07:26 -08:00
Linux Build Service Account
4c014824b9 Merge "leds: qpnp-flash-v2: Add support for programming led clamp currents" 2016-11-15 04:07:25 -08:00
Linux Build Service Account
d05c65bf95 Merge "msm: pcie: remove PCIe PHY and PARF dump in linkdown" 2016-11-15 04:07:24 -08:00
Linux Build Service Account
453afb1876 Merge "ARM: dts: msm: correct subtype of MSMCOBALT V2 QRD SKUK device" 2016-11-15 04:07:23 -08:00
Linux Build Service Account
0476d57171 Merge "qpnp-smb2: increase VCONN softstart" 2016-11-15 04:07:22 -08:00
Ashay Jaiswal
215e0e73a2 ARM: dts: msm: enable RPM regulator device node for MSMFALCON
Some RPM regulator nodes are in disable state, enable all
RPM regulator device nodes.

CRs-Fixed: 1077493
Change-Id: I32fff5344329fe8c266f6a80c950eabca9c2d4cb
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
2016-11-15 14:10:59 +05:30
Anirudh Ghayal
b154d78e5d leds: qpnp-flash: Fix the mask in the flash prepare API
Use the correct LED_OPTIONS mask to enable all the supported
flash prepare APIs.

CRs-Fixed: 1090029
Change-Id: I66f6de42b106fa2027285e7393b6f9fc143d00d8
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2016-11-15 12:53:36 +05:30
Linux Build Service Account
c93c8b05cc Merge "clk: qcom: Remove initial configuration from PLL enable function" 2016-11-14 21:54:06 -08:00
Linux Build Service Account
5587de21d7 Merge "msm: kgsl: Fix overflow in sharedmem cache range operation function" 2016-11-14 21:54:05 -08:00
Linux Build Service Account
4ca0cdc68e Merge "ARM: dts: msm: Support only dummy clocks for falcon/triton rumi" 2016-11-14 21:54:04 -08:00
Linux Build Service Account
f0e762f601 Merge "Revert "ARM: dts: msm: disable L1 and L1ss for PCIe on msmcobalt"" 2016-11-14 21:54:04 -08:00
Linux Build Service Account
b3530c432e Merge "ARM: dts: msm: Add slimbus instance entries for msmfalcon" 2016-11-14 21:54:03 -08:00
Linux Build Service Account
c594ba7b36 Merge "usb: host: skip xHCI power management upon port suspend" 2016-11-14 21:54:02 -08:00
Linux Build Service Account
30f6933a15 Merge "sched: core: Skip migrating tasks that aren't enqueued on dead_rq" 2016-11-14 21:54:02 -08:00
Linux Build Service Account
525dda257a Merge "ASoC: msm: q6dspv2: use correct variable type to store ION buff size" 2016-11-14 21:54:01 -08:00
Linux Build Service Account
375c04e745 Merge "ASoC: compress: Fix compress capture stream handling" 2016-11-14 21:54:00 -08:00
Linux Build Service Account
3d17c56b28 Merge "ASoC: soc: prevent risk of buffer overflow" 2016-11-14 21:53:59 -08:00
Linux Build Service Account
a4bd3599a0 Merge "mdss: display-port: fix link rate calculation" 2016-11-14 21:53:58 -08:00
Linux Build Service Account
1f3e1e0986 Merge "clk: msm: mdss: fix divider configuration for 5.4 Ghz link rate" 2016-11-14 21:53:57 -08:00
Linux Build Service Account
cda3134eb1 Merge "drivers: soc: increase glink tx buffer count" 2016-11-14 21:53:56 -08:00
Linux Build Service Account
0452dc8a41 Merge "msm: ipa: Address overlap fix" 2016-11-14 21:53:55 -08:00
Linux Build Service Account
5ba98eaeb9 Merge "soc: qcom: glink: Fix incorrect call to deinit function" 2016-11-14 21:53:53 -08:00
Linux Build Service Account
966b870283 Merge "ARM: dts: msm: Enable memory allocation for diag on triton" 2016-11-14 21:53:53 -08:00
Linux Build Service Account
571ab67930 Merge "ASoC: wcd9335: Add 24bit record support" 2016-11-14 21:53:52 -08:00
cyizhao
0169c1eee3 ARM: dts: msm: Enable the haptics in QRD SKUK and vr1
Enable haptics for QRD SKUK and VR1 to make vibrator working

CRs-Fixed: 1089954
Change-Id: I0718cd7d76669fb8743a59a322ac2a5eaa7c45f6
Signed-off-by: cyizhao <cyizhao@codeaurora.org>
2016-11-15 13:20:19 +08:00
Venkatesh Yadav Abbarapu
8903ec9f3d pinctrl: qcom: msmfalcon: Split function groups based on mirrors
Split functions into groups corresponding to mirrorA and
mirrorB. This will help identify which function is selected.

Change-Id: Iefcb4a4b595ef0778e983a1902a5897cf292705f
Signed-off-by: Venkatesh Yadav Abbarapu <vabbar@codeaurora.org>
2016-11-15 10:42:15 +05:30
Subbaraman Narayanamurthy
104ce58784 leds: qpnp-flash-v2: change from dev_*() to pr_*() for logging
Currently, dev_*() variants are used in the flashv2 LED driver
for logging. However, it spews the kernel log because of the
device name being longer. Logging with device name is also not
really needed. Move to using pr_*() variants. Add a pr_fmt() to
help that by adding a function name which will be more useful.

Change-Id: I42503ccd2b2dcc62c5c868132d202b9698c9d216
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-11-14 19:52:52 -08:00
Subbaraman Narayanamurthy
ef5d639067 leds: qpnp-flash-v2: Add support for configuring OTST thresholds
Add support for configuring the three thermal mitigation
thresholds from device tree.

CRs-Fixed: 1060212
Change-Id: Iafb7915e196a18b5f8076dda8fb06a4bd71a8e6e
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-11-14 19:52:52 -08:00
Subbaraman Narayanamurthy
5c312a4f74 leds: qpnp-flash-v2: Add support for thermal derate features
Add support to configure thermal debounce, hysteresis and
ramp down rates from device tree.

CRs-Fixed: 1060212
Change-Id: Iabe79bae5f9471c3c6128ed21efd04de00739daa
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-11-14 19:52:32 -08:00
Subbaraman Narayanamurthy
98ac2b9cfa leds: qpnp-flash-v2: add support to read pmic revid
There are some features which needs to be enabled based on the
PMIC. PMIC information such as subtype, revision can be obtained
from revid peripheral. Hence add support to read pmic revid.

Change-Id: Ie7a94f59e58b8f1b0816afda2496449694629205
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-11-14 18:44:28 -08:00
cyizhao
9a39434a1b ARM: dts: msm: Add battery profile for FG in QRD SKUK and vr1
Add battery profile for these two devices to make sure FG could load it
and work as expected.

CRs-Fixed: 1086571
Change-Id: Id89f54f58bb2d5f7294c0244ab0ba39e90b5ecac
Signed-off-by: cyizhao <cyizhao@codeaurora.org>
2016-11-14 18:15:48 -08:00
cyizhao
7035df4058 ARM: dts: msm: update the battery data for cobalt
FG profile data is updated for cobalt battery according to the new
battery characterization process.

CRs-Fixed: 1086571
Change-Id: Id0a74bc74e5ef1fc08af63ace50ab4774820597c
Signed-off-by: cyizhao <cyizhao@codeaurora.org>
2016-11-15 10:09:37 +08:00
Rohit Gupta
360bc82486 qcom-cpufreq: skip frequencies that round to same rate
Since not all frequencies line up between speed bins,
the common cpufreq table sometimes has frequencies
that round up the same actual frequency.

Fix this by skipping those frequencies.

Change-Id: I0516cc67a1343150f3d1f838b9d9b329e8e1e498
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
2016-11-14 16:34:04 -08:00
Olav Haugan
8bf3523cf7 core_ctl: Export boost function
Export core control boost function to make it accessible to kernel
modules.

Change-Id: I94359afa433ad57dd5bfeae3cb78a1f196cd02fe
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2016-11-14 16:28:03 -08:00
Shiraz Hashim
da02aa08ee defconfig: msm: update mmap randomness for all targets
CTS malloc tests on Android 'N' expects higher entropy in
mmap returned address. Present value of mmap random bits
is not providing enough variations for 32 bit tasks.

Increase mmap_rnd_bits for 32bit and mmap_rnd_compat_bits
for 64bit targets to value of 16.

Change-Id: Ibf6463467f28221470619b4f43ece062d41ae6b8
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
2016-11-14 16:04:41 -08:00
Oleg Perelet
d25293ff0e ARM: dts: msm: Remove min svs level for A540 in msmcobaltv2
Per hardware requirements update dtsi file to remove
min svs power level.

CRs-Fixed: 1085733
Change-Id: I066804e9f8bc527d58dd5199664a5756a0f3d298
Signed-off-by: Oleg Perelet <operelet@codeaurora.org>
2016-11-14 15:49:46 -08:00
Patrick Daly
2d083baf33 soc: qcom: secure_buffer: Fix an uninitialized variable
Ensure variables are set before the are used to prevent random behavior.

Change-Id: Ib31e5aca648c0f442afe4cbe576ad79786fe6427
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
2016-11-14 15:00:09 -08:00
Susheel Khiani
e5f6efadcd iommu/arm-smmu: Fix uninitialized use of variable error
There are couple of instances where we are declaring
variable without proper initialization and we
might end up returning these uninitialized
variables. Fix this by initializing them during
declaration.

Change-Id: Icd5b504c35683e94383d2cefd186f66000478e82
Signed-off-by: Susheel Khiani <skhiani@codeaurora.org>
2016-11-14 14:59:14 -08:00
Skylar Chang
dd650a2835 msm: ipa3: retry on IPA_HW_CONS_DISABLE_CMD_GSI_STOP_FAILURE
When IPA uC fails to stop a GSI channel with GSI STOP_IN_PROG
state, apps needs to sleep for 1ms and retry.

Change-Id: I9e6022ab996861d3d78721aadea9e6116ded4e0f
CRs-Fixed: 1087474
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-11-14 14:53:08 -08:00
Deepak Katragadda
45430a0c76 Revert "clk: msm: clock-gpu-cobalt: Update the graphics core clock frequency"
This reverts commit bfebb79e7c ("clk: msm: clock-gpu-cobalt:
Update the graphics core clock frequency") since we now want
to enable scaling the graphics core clock upto 710 MHz on
MSMCOBALT v2.

Change-Id: I2715197a2b5cbe41da5b1983ff3066fa5d42c483
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-11-14 13:46:35 -08:00
Ram Chandrasekar
73a2595feb driver: thermal: msm_thermal: Enable Reliability algorithm
The reliability algorithm has a dependency for OSM to be initialized
before it is enabled.

Enable reliability algorithm in the LMH DCVSh hardware for both the
clusters from KTM. KTM is enabled, only after OSM populates the OPP
table. So this solves the dependency.

Change-Id: I4a382915a6c3a6b9d445ec1f5d57fb499a011f1a
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2016-11-14 14:46:06 -07:00
Nicholas Troast
bb2c232a14 iio: adc: qcom-tadc: cast raw ADC readings before conversion
Currently the code depends on implicit type conversion when converting
ADC readings. Make the type conversions explicit.

Change-Id: I09b5d4cd219b0a53559176525d9b501e5a6dc0c9
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-11-14 12:49:58 -08:00
Nicholas Troast
c74e83d44c ARM: dts: msm: update TADC ibatt scale for MSMCOBALT
Currently when the battery is charging (sinking current) the ibatt is
positive. Change the scale polarity so that ibatt is negative when
the battery is charging.

Change-Id: I431dcc766df94adb7ee85d4cb32d9181a74d871a
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-11-14 12:49:30 -08:00
Nicholas Troast
e57352646f qpnp-smb2: allow parallel charging during supplemental mode
PMI8998 register 0x1690 BIT(2) is incorrectly documented. This bit enables
a feature to disable the parallel charger via STAT when the PMI is
supplementing a system load using the battery. This feature is not
recommended since SW is limiting the power that the parallel charger can
draw based on the input power available, and the default power
distribution ensures that 50% of the available input power is allocated to
the PMI. Disable this feature.

Change-Id: I1e5400eb64b6b61076617b5b26fc750c6e8d0270
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-11-14 12:13:00 -08:00
David Collins
31cac5b597 ARM: dts: msm: update APC0/APC1/GFX aging allowed revisions for msm8998v2
Update the qcom,allow-aging-voltage-adjustment property for
VDD_APC0, VDD_APC1, and VDD_GFX CPR regulators in order to match
hardware fusing.  Aging fuses will be blown for VDD_APC0 and
VDD_APC1 on parts with local CPR revision 4 and for VDD_GFX on
parts with global CPR revision 3.

Also update the open-loop and closed-loop voltage adjustments so
that the maximum 15 mV aging margin is applied on all parts in
which aging adjustments are not enabled.

Lastly, enable open-loop aging adjustment for VDD_GFX so that
the aging voltage margin is added back into the open-loop voltage
as needed at runtime.

Change-Id: I481abdd54ce1e75bdebf908a61d6b484b377f55a
CRs-Fixed: 1081084
Signed-off-by: David Collins <collinsd@codeaurora.org>
2016-11-14 12:08:51 -08:00
Subash Abhinov Kasiviswanathan
2d9b2acc39 net: rmnet_data: Handle buffer bloat for TCP scenarios
After commit 605ad7f184 ("tcp: refine TSO autosizing"), kernel
throttles uplink TCP data in case there is not sufficient amount
of socket buffer available due to delayed release of buffers
through TX completions in the physical net device.

Work around this by orphaning the socket buffer. This makes the
kernel assume that more packets can be sent in this scenario.
Out of band signaling and flow controlling at qdisc / HTB layer
should guarantee no issue for flow control.

Throughput difference for IPv4 TCP UL -

Before change : 143Mbps
After change  : 146Mbps

CRs-Fixed: 1088104
Change-Id: I251ed7938c29e08954d4c81d3041cb235a39d266
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
2016-11-14 12:49:05 -07:00
Nicholas Troast
8931ef2e5c qpnp-smb2: clear the ICL override during probe
When PD negotiates a higher input current limit the ICL override bit will
be set. If a reboot happens then the ICL override will still be set after
the reboot. Clear the ICL override during probe to ensure that the correct
ICL is honored since PD is neither enabled nor has it negotiated a higher
ICL yet.

Change-Id: Iaa5f221d530721f7ff4a413a609192baf98ff359
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-11-14 11:12:29 -08:00