Commit graph

578929 commits

Author SHA1 Message Date
Linux Build Service Account
421c7867d1 Merge "soc: qcom: glink: Add pending remote done packets to intent purge" 2016-12-19 00:44:42 -08:00
Linux Build Service Account
0bdc62e764 Merge "mm: cma: check the max limit for cma allocation" 2016-12-19 00:44:41 -08:00
Linux Build Service Account
5965df008a Merge "ARM: dts: msm: Add qcom,msm-imem-diag-dload node on msmfalcon/msmtriton" 2016-12-19 00:44:41 -08:00
Linux Build Service Account
08c0ea3598 Merge "defconfig: msmfalcon: enable host CDC-ECM class support" 2016-12-19 00:44:40 -08:00
Linux Build Service Account
1e762c1ec1 Merge "msm: vidc: remove redundant init_completion() calls" 2016-12-19 00:44:39 -08:00
Linux Build Service Account
bdd4cbfb26 Merge "msm: camera: isp: Fix HVX streaming after crash" 2016-12-19 00:44:38 -08:00
Linux Build Service Account
98c2870e09 Merge "msm: sensor: fixing errors due to csiphy clock release" 2016-12-19 00:44:38 -08:00
Linux Build Service Account
c95f04487e Merge "ARM: dts: msm: Add cpp src clock rates configuration for msm8996" 2016-12-19 00:44:37 -08:00
Linux Build Service Account
53bcc4875b Merge "msm: vidc: Add port information to flush_done event" 2016-12-19 00:44:36 -08:00
Linux Build Service Account
95fc2dedfd Merge "usb: gadget: composite: Add spinlock protection for usb string descriptor" 2016-12-19 00:44:35 -08:00
Linux Build Service Account
d763842b90 Merge "msm: rdbg: Add snapshot of remote debugger driver" 2016-12-19 00:44:34 -08:00
Linux Build Service Account
7afb1a9d65 Merge "msm: sensor: Fix to read the parameters from slave info" 2016-12-19 00:44:33 -08:00
Linux Build Service Account
2d28ff0953 Merge "clk: qcom: add common clock framework support for MDSS PLL" 2016-12-18 14:48:01 -08:00
Linux Build Service Account
4d86efbfe8 Merge "ARM: dts: msm: Remove write of acc register for MSMFalcon/Triton/8998" 2016-12-18 14:48:00 -08:00
Linux Build Service Account
f58596e5e4 Merge "soc: qcom: pil-q6v5: Update the reset sequence for qdspv62.1.2/1.5" 2016-12-18 14:47:59 -08:00
Linux Build Service Account
4639e34368 Merge "ARM: dts: msm: Move boot_rom_ahb_clk to proxy voted for msm8998" 2016-12-18 14:47:58 -08:00
Linux Build Service Account
4eadfaf5f8 Merge "msm: kgsl: Add Bind objects to dispatcher draw queue" 2016-12-18 14:47:58 -08:00
Linux Build Service Account
7a9eaaea15 Merge "soc: qcom: pil: Initialize variable to avoid invalid access" 2016-12-18 14:47:57 -08:00
Taniya Das
01fd9333a3 qcom: scm: Support register r6 to pass the session id
Non-atomic scm call which could be interrupted, trustzone will store
the session id in a register(r6) which will be used when trustzone resumes
the call.
To avoid r6 being used by compiler, HLOS now uses it to send a zero before
making scm call.

Change-Id: I2927efe04fd019d551aae5e6548da3fb5c18b655
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-12-16 13:28:56 -08:00
Sameer Thalappil
58a7b9f532 icnss: Do not collect MSA0 dump during Modem WDOG bite
During modem WDOG bite scenarios, error handlers are not executed
in modem. So Adrastea may not be in reset when SSR notifications
are received in HLOS. Remapping MSA0 during SSR could cause SMMU
fault at Adrastea, as it may be still accessing it. Skip collecting
MSA0 dump in WDOG bite scenarios.

CRs-Fixed: 1102057
Change-Id: I9082d4d40b70d0ca8cc8fbc6aadf14b2f0aedd0c
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
2016-12-16 11:53:16 -08:00
Satya Durga Srinivasu Prabhala
ef124ecde2 soc: qcom: ssr: add crash status to know why subsys crashed
In some specific cases, clients may want to know why subsystem
crashed, for example, in case of watch dog bite, subsystem may not
be able to execute error handling. Which would need different code
paths to be exercised on the apps processor.

Change-Id: I073733b8a56b57f14906b25cba08012c2f0b414a
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2016-12-16 10:53:56 -08:00
Ard Biesheuvel
4600adf60e arm64: kaslr: fix breakage with CONFIG_MODVERSIONS=y
As it turns out, the KASLR code breaks CONFIG_MODVERSIONS, since the
kcrctab has an absolute address field that is relocated at runtime
when the kernel offset is randomized.

This has been fixed already for PowerPC in the past, so simply wire up
the existing code dealing with this issue.

Change-Id: Ib01e32f2c5cd3d6feff6321a897ed8d276bc3be3
Cc: <stable@vger.kernel.org>
Fixes: f80fb3a3d508 ("arm64: add support for kernel ASLR")
Tested-by: Timur Tabi <timur@codeaurora.org>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Git-commit: 9c0e83c371cf4696926c95f9c8c77cd6ea803426
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2016-12-16 10:50:18 -08:00
Vinayak Menon
cfc8db22ae mm: vmpressure: make vmpressure window variable
Right now the vmpressure window is of constant size 2MB, which
works well with the following exceptions.
1) False vmpressure triggers are seen when the RAM size is greater
than 3GB. This results in lowmemorykiller, which uses vmpressure
events, killing tasks unnecessarily.
2) Vmpressure events are received late under memory pressure. This
behaviour is seen prominently in <=2GB RAM targets. This results in
lowmemorykiller kicking in late to kill tasks resulting in avoidable
page cache reclaim.

The problem analysis shows that the issue is with the constant size
of the vmpressure window which does not adapt to the varying memory
conditions. This patch recalculates the vmpressure window size at
the end of each window. The chosen window size is proportional to
the total of free and cached memory at that point.

Change-Id: I7e9ef4ddd82e2c2dd04ce09ec8d58a8829cfb64d
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
2016-12-16 20:25:45 +05:30
Raju P.L.S.S.S.N
2352f5e1b4 ARM: dts: msm: Enable APSS-RPM communication for msmfalcon
Remove rpm-standalone flag under rpm_bus to allow communication
between APPS and RPM processors for msmfalcon.

Change-Id: I1736dc8a2a34ece02aaec70c867c7a0993fa82c7
Signed-off-by: Raju P.L.S.S.S.N <rplsssn@codeaurora.org>
2016-12-16 17:18:35 +05:30
Sandeep Panda
6a21dcc9bf clk: qcom: add common clock framework support for MDSS PLL
Model and configure MDSS DSI PLL using upstream clock framework
APIs. Add changes to define and register vco, divider, mux clcoks
as per common clock infrastructure.

Change-Id: Idc51070e2bb36d1a757d2714d2875a99901321a7
Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
2016-12-16 15:51:27 +05:30
Vic Wei
fe4987d544 smb-lib : Fix incorrect VALID_INPUT_POWER_SOURCE_BIT check
In smblib_get_prop_usb_online() and smblib_get_prop_dc_online(),
used incorrect VALID_INPUT_POWER_SOURCE_BIT check. Now change
to VALID_INPUT_POWER_SOURCE_STS_BIT check.

Change-Id: I70489775b2a99afff8b26366758834a98b1ffb30
Signed-off-by: Vic Wei <vwei@codeaurora.org>
CRs-Fixed: 1102132
2016-12-15 22:50:02 -08:00
Sahitya Tummala
8599d43e8a ARM: dts: msm: Add remote fs device node on msmfalcon
It is needed to enable remote file system on modem processor, which
needs access to store data onto eMMC/UFS device.

The shared memory size used by modem and apps for this purpose is 2MB
on msmfalcon.

Change-Id: Id0cdd7f27b42c261966bb5e92d8229fa234445c4
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
2016-12-16 06:50:32 +05:30
Abhijeet Dharmapurikar
7210624955 smb-lib: report FULL regardless of charger presence
For a full battery, the driver currently reports battery full
only when the charger is online and switches back to reporting
discharging when charger is removed.

This is incorrect because a user might reinsert the charger
seeing discharging status right after he removes it only to
realize that the battery is full after he plugs it back.

So allow the full status to be reported even when no charger is
online.

Change-Id: I0c31e2fbe984420a6754e923cfc3abe77bc54991
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2016-12-15 17:00:45 -08:00
Harry Yang
841179fa16 ARM: dts: msm: set boost current threshold on PMI8998
A boost current threshold will be referenced in deciding
optimal boost switching frequency for efficiency.

CRs-Fixed: 1095917
Change-Id: I1e738e66cdfb72305dd4256dc0a6e05b03de585e
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2016-12-15 00:00:41 -08:00
Harry Yang
e18221c7d0 qcom-charger: set optimal boost switching frequency
Currently, the default boost switching frequency is fixed at 800KHz,
which shows low efficiency in low USB load.

To improve it, only use the default 800KHz when boost current goes
above 100mA; otherwise, switch to 2MHz.

CRs-Fixed: 1095917
Change-Id: Iebb62303febfb78738ada4553fdb9b9eb4810ed5
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2016-12-14 23:59:57 -08:00
Syed Rameez Mustafa
3366a508ff Revert "sched/cputime: Fix steal time accounting vs. CPU hotplug"
This reverts commit 2a8225ef46
("sched/cputime: Fix steal time accounting vs. CPU hotplug").

The commit introduces a bug in scheduler book-keeping whereby if a CPU
is hotplugged out for a small duration of time, subsequent time spent
executing tasks gets mis-attributed to interrupts. This in turn results
in unfair scheduling whereby a task can keep executing for a very long
time without any update to it's vruntime. This revert has no side
effects for msm based systems.

Change-Id: Ibb506824c4223551bceb449594ac99f9dfd8064b
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
2016-12-14 14:56:27 -08:00
Runmin Wang
cf58ac692b defconfig: msm: disable AIO support for msm8998
Disable the aio interface as we do not use this for performance
benefits.

Change-Id: Ibbe1845c673f3a422b013d17492790c79c78d076
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2016-12-14 11:07:41 -08:00
Harry Yang
cfd44286e5 qcom-charger: smblib: drop the BOOST PFM Threshold change
The original change to set 200mV boost PFM threshold at request
of a HW workaround is no longer needed, set as default now in
SBL.  Remove it.

CRs-Fixed: 1095917
Change-Id: I4e041dafa83d935a5c16c96bea7a3ea488e80d87
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2016-12-14 10:52:37 -08:00
Gaurav Kohli
f03bf11b39 ARM: dts: msm: Remove write of acc register for MSMFalcon/Triton/8998
Remove the write of acc strap register by default value during Q6 reset
as per Hardware Programming Guide.

Change-Id: Id5b8aaae0783893290e95626b394841a7d3808a3
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
2016-12-14 17:22:21 +05:30
Gaurav Kohli
19740f9d53 soc: qcom: pil-q6v5: Update the reset sequence for qdspv62.1.2/1.5
Update the reset sequence to read each write while enabling QDSP6 memory
bank one at a time. This will make sure whether write is complete or not.
Also add logs during Mss shutdown, It will help to debug Mss restart
and shutdown case.

Change-Id: I9f2cb058a7e59b573fc64662ee7b5bff49b18ea7
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
2016-12-14 01:02:53 -08:00
Kuirong Wang
9286838256 ASoC: msm8998: add asm loopback FE DAI
Add asm loopback FE DAI to support the audio asm loopback
use case for msm8998 platform.

CRs-Fixed: 1099656
Change-Id: Ia1c6d8dfd75eb21cde8de7b9bfcab4e4277e339f
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
2016-12-13 17:56:03 -08:00
Kuirong Wang
73c975d6fd ARM: dts: msm: update speaker left and right GPIOs for APQ8998
Update speaker left and right GPIOs for APQ8998 platform since it
uses different GPIOs from MSM8998 platform.

CRs-Fixed: 1099656
Change-Id: Idecd865b7a11e4cd30737f5d800673c87807592c
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
2016-12-13 17:32:17 -08:00
Linux Build Service Account
3162449f7d Merge "USB: dwc3: msm: Fail probe if core-clk-rate is not passed from dts" 2016-12-13 12:18:07 -08:00
Linux Build Service Account
2b66512ac3 Merge "USB: dwc3-msm: Check endpoint status and request queued or not first" 2016-12-13 12:18:06 -08:00
Linux Build Service Account
b574f42cd7 Merge "USB: dwc3-msm: Initialize DBM ep before BAM pipe reset" 2016-12-13 12:18:05 -08:00
Linux Build Service Account
0aaea76517 Merge "ARM: msm: dts: Add regulator changes for msm8998-v2.1-interposer" 2016-12-13 12:18:05 -08:00
Linux Build Service Account
4cfe3d17f6 Merge "ARM: dts: msm: Add bluetooth node for msmfalcon" 2016-12-13 12:18:04 -08:00
Linux Build Service Account
1dcf06662e Merge "ARM: dts: msm: add camera focus and snapshot nodes for MSMFALCON" 2016-12-13 12:18:03 -08:00
Linux Build Service Account
a9d2a4230a Merge "ARM: dts: msm: Add GPU mempools properties for msmfalcon" 2016-12-13 12:18:02 -08:00
Linux Build Service Account
41a3d6a427 Merge "clk: qcom: Update fmax tables and few frequencies clocks of MSMfalcon" 2016-12-13 12:18:02 -08:00
Linux Build Service Account
7acd465532 Merge "defconfig: arm64: msm: Enable USB RMNET & RNDIS using IPA over BAM2BAM" 2016-12-13 12:18:01 -08:00
Linux Build Service Account
f25d55e62e Merge "qpnp-fg-gen3: Use the correct property name to get fastcharge current" 2016-12-13 12:18:00 -08:00
Linux Build Service Account
127197b2bf Merge "ARM: dts: msm: rename battery profile used for msm8998 QRD" 2016-12-13 12:17:59 -08:00
Linux Build Service Account
6243ed9ad2 Merge "usb: dwc3-msm: Set PROP_BOOST_CURRENT for direct attach devices" 2016-12-13 12:17:59 -08:00
Linux Build Service Account
d18c993351 Merge "icnss: Remove dev reference" 2016-12-13 12:17:58 -08:00