Commit graph

577428 commits

Author SHA1 Message Date
Linux Build Service Account
7ae255717a Merge "msm: vidc: Print secure info for a session" 2016-11-08 11:18:27 -08:00
Linux Build Service Account
0b672e32a0 Merge "qpnp-smb2: force HVDCP to 5V before reboot" 2016-11-08 11:18:25 -08:00
Linux Build Service Account
54525872ba Merge "ARM: dts: msm: Enable ACD on msmcobalt v2" 2016-11-08 11:18:23 -08:00
Linux Build Service Account
93529fd59f Merge "msm: kgsl: Add MEMDESC_MAPPED back to for legacy mappings" 2016-11-08 11:18:22 -08:00
Linux Build Service Account
cd316285c5 Merge "drivers: soc: implement notify_tx_abort()" 2016-11-07 22:29:10 -08:00
Linux Build Service Account
ec7b10c39a Merge "ASoC: msm: q6dspv2: wake up tasks when ADSP goes down" 2016-11-07 22:29:09 -08:00
Linux Build Service Account
e6db870831 Merge "sched/hmp: Fix memory leak when task fork fails" 2016-11-07 22:29:08 -08:00
Linux Build Service Account
93b6c4955a Merge "sched/hmp: Use GFP_KERNEL for top task memory allocations" 2016-11-07 22:29:07 -08:00
Linux Build Service Account
2e7559c2bb Merge "coresight: set appropriate clock rate for coresight devices" 2016-11-07 22:29:06 -08:00
Linux Build Service Account
a1029ef3e5 Merge "msm: ADSPRPC: Use secure session device while freeing memory" 2016-11-07 22:29:05 -08:00
Linux Build Service Account
a42da00388 Merge "qpnp-fg-gen3: extend profile integrity word usage" 2016-11-07 22:29:04 -08:00
Linux Build Service Account
688bc66ff7 Merge "qpnp-fg-gen3: expose a fake battery SOC for debug board" 2016-11-07 22:29:04 -08:00
Linux Build Service Account
2300a2a8f5 Merge "ASoC: pcm: change capture_active to unsigned int" 2016-11-07 22:29:03 -08:00
Linux Build Service Account
7115eafa5b Merge "ARM: dts: msm: Add camera dtsi file for msmcobalt qrd skuk board" 2016-11-07 22:29:02 -08:00
Linux Build Service Account
21a4717e4f Merge "msm: kgsl: Allow mempools to configure from the device tree" 2016-11-07 22:29:02 -08:00
Linux Build Service Account
2047ab822d Merge "defconfig: msm: Add support for GCC clocks" 2016-11-07 22:29:01 -08:00
Linux Build Service Account
c98650b20a Merge "clk: qcom: gcc: Cleanup code for GCC clocks" 2016-11-07 22:29:00 -08:00
Linux Build Service Account
65f1a53da4 Merge "soc: qcom: pil: Using devm_ioremap for mapping restart reg of modem" 2016-11-07 22:29:00 -08:00
Linux Build Service Account
758544f23c Merge "defconfig: msm: update msmfalcon defconfigs" 2016-11-07 22:28:59 -08:00
Linux Build Service Account
cd30687897 Merge "ASoC: add 352800Hz into the pcm known rates" 2016-11-07 22:28:58 -08:00
Linux Build Service Account
8592867f6f Merge "msm: ipa: fix division by 0 for DMA pipes" 2016-11-07 22:28:57 -08:00
Linux Build Service Account
300fd3f33b Merge "drivers: mfd: Fix 32-bit audio compile" 2016-11-07 22:28:56 -08:00
Syed Rameez Mustafa
b9b63b0c62 sched/hmp: Fix memory leak when task fork fails
The scheduler allocates memory for the task load structures during
fork. It then relies to sched_exit() to be called to free that memory.
However, if the fork itself fails at any point after the allocation,
the memory is left unclaimed forever. Fix this memory leak by freeing
the allocated memory under error conditions.

Change-Id: I14a8290c9fcc4174ec80560e9f9d7bcdb119761f
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
2016-11-07 14:46:22 -08:00
Syed Rameez Mustafa
576259be4a sched/hmp: Use GFP_KERNEL for top task memory allocations
Task load structure allocations can consume a lot of memory as the
number of tasks begin to increase. Also they might exhaust the atomic
memory pool pretty quickly if a workload starts spawning lots of
threads in a short amount of time thus increasing the possibility of
failed allocations. Move the call to init_new_task_load() outside
atomic context and start using GFP_KERNEL for allocations. There is
no need for this allocation to be in atomic context.

Change-Id: I357772e10bf8958804d9cd0c78eda27139054b21
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
2016-11-07 14:46:21 -08:00
Syed Rameez Mustafa
ecd8f7800f sched/hmp: Use improved information for frequency notifications
Recent changes to scheduler guided frequency have started reporting
the maximum of the cpu load and the load of the top task on a CPU
to the governor. Use the same information to determine whether a
notification is necessary or not.

Change-Id: I1928c6cd0509952443a912ef54e0d72d5f75955d
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
2016-11-07 14:46:20 -08:00
Syed Rameez Mustafa
54052c3658 sched/hmp: Remove capping when reporting load to the cpufreq governor
Capping load when reporting to the governor was important prior to new
scheduler guided frequency changes as intra-cluster migrations would
sometimes lead to CPU loads well in excess of 100%. With the new top
task approach however, load greater than 100% is no longer possible
except for the same conditions that were previously exempted (i.e.
inter-cluster migrations and frequency aggregation).

Change-Id: I3e4f5e39ec9ae7eeaba9a567efd245a7aec1b7ad
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
2016-11-07 14:46:19 -08:00
Subbaraman Narayanamurthy
5652fdc60b qpnp-fg-gen3: extend profile integrity word usage
Currently, profile integrity register is using only bit 0 to
indicate whether the profile is loaded or not. Now that the
profile can be loaded and/or fuel gauge can be restarted by the
bootloader, extend the usage of that word by using other bits
to provide more information. This is to aid the debugging.

Change-Id: Ib04ab10998de2f57b05cd976c3e9c8a1e2f4c574
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-11-07 14:32:09 -08:00
Subbaraman Narayanamurthy
e5f967c5a9 qpnp-fg-gen3: expose a fake battery SOC for debug board
When a debug board is present, battery ID will be something like
7 Kohms. Expose a fake battery SOC when this is detected. This
will help avoiding the device shutdown if a low battery voltage
is seen by FG and state of charge goes to 0.

Change-Id: I750b2adfb00f12960f74bd552a5896f66ecaece6
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-11-07 14:32:08 -08:00
Nicholas Troast
ab23ab8211 qpnp-smb2: force HVDCP to 5V before reboot
When the MSM resets the USB data lines are pulled low. If an HVDCP adapter
is attached and operating at >5V, and the phone reboots then the HVDCP
adapter will be in a bad state and the USB input will be suspended. Fix
this by forcing the HVDCP adapter to 5V in the shutdown path.

Change-Id: I953d42418f90398bd4248f8b761cf63943ce5532
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-11-07 12:39:38 -08:00
Sathish Ambley
2295550247 msm: ADSPRPC: Use secure session device while freeing memory
Make sure that the secure session device is used while freeing the
buffer that was allocated from secure memory.

Change-Id: I07802c21c661fe18fb2fda70980b04f646408d7d
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
2016-11-07 10:11:51 -08:00
Taniya Das
00a15f8275 defconfig: msm: Add support for GCC clocks
GCC clock controller is required to be enabled for all peripheral clocks
supported by global clock controller.

Change-Id: I11c6cc7f09b403a09bdf65a14f7b9d327c5d9613
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-11-07 14:54:00 +05:30
Taniya Das
cea92c6266 clk: qcom: gcc: Cleanup code for GCC clocks
The fmax & num_fmax have been updated to reflect the new variable names and
also fall back to branch clocks clock_ops for hardware branch clocks for
now until the new ops are available.

Change-Id: I8b86ebbabe37bb86bd20eafe9501c4677f21a553
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-11-07 14:37:42 +05:30
Hareesh Gundu
0f6ff69a01 msm: kgsl: Allow mempools to configure from the device tree
Add driver support to configure mempools from the device tree.
This will enable mempools to configure per device specific and
reduces the high kgsl memory usage based on configuration.

CRs-Fixed: 1064046
Change-Id: I0a7e36b7e1fef9d42a4c0fe33d69a4debf15af2f
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
2016-11-07 13:04:21 +05:30
Gaurav Kohli
c56339c969 soc: qcom: pil: Using devm_ioremap for mapping restart reg of modem
GCC region has been mapped by regmap instead of devm_ioremap_resource.
So to map modem restart register which is part of gcc region requires
devm_ioremap otherwise mapping error occurs.

Change-Id: I1d97d8ef831e3a91df47eebf22e1156d0a3712ae
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
2016-11-06 22:58:07 -08:00
Neeraj Upadhyay
2d3f9b1ffd defconfig: msm: update msmfalcon defconfigs
Bring in updates from msmcortex defconfigs to msmfalcon's.

Change-Id: Iedbae0d4738c7badf3d4faf60f43e8c8bdab51e1
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2016-11-06 20:13:53 -08:00
Walter Yang
d0e976a886 ASoC: pcm: change capture_active to unsigned int
In combo usecase there are 2 front-end dai's with
same codec dai, for example, multi-phrase ADSP SVA detection.
Using a single bit as the counter causes the counter to roll
over to 0 during combo usecase.
To resolve this, change counter to unsigned int from single bit.

CRs-Fixed: 1086127
Change-Id: I2dd07bd967b7d4fb4878b6d65bd0f011c6b15bdd
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
2016-11-07 11:32:05 +08:00
Linux Build Service Account
85d7e134cc Merge "msm: kgsl: Fix potential device NULL pointer dereferences" 2016-11-05 07:35:31 -07:00
Linux Build Service Account
2b28b1372c Merge "ARM: dts: msm: update ICNSS DT node for msmcobalt interposer" 2016-11-05 07:35:29 -07:00
Linux Build Service Account
ef1311a1e8 Merge "ARM: dts: msm: update bus bandwidth vote for msmcobalt ufs" 2016-11-04 22:22:10 -07:00
Linux Build Service Account
6d25dab1ba Merge "sched: prevent race between disable window statistics and task grouping" 2016-11-04 22:22:09 -07:00
Linux Build Service Account
3bc988427d Merge "regulator: cprh-kbss-regulator: update temp sensor ID for msmcobalt" 2016-11-04 22:22:08 -07:00
Linux Build Service Account
9d601a126f Merge "ARM: dts: msm: Add ADC nodes for pmfalcon" 2016-11-04 22:22:08 -07:00
Linux Build Service Account
f2fedb98bd Merge "diag: Fix race condition while closing SMD" 2016-11-04 22:22:06 -07:00
Linux Build Service Account
115a8ef46d Merge "diag: Add mutex protection while closing SMD" 2016-11-04 22:22:06 -07:00
Linux Build Service Account
9454b9f32d Merge "msm: ext_display: update hpd and notify logic" 2016-11-04 22:22:02 -07:00
Linux Build Service Account
68afff6f34 Merge "ASoC: msmcobalt: Update ignore suspend for MAD_CPE out widgets" 2016-11-04 22:22:01 -07:00
Linux Build Service Account
8e9e0fd780 Merge "Merge remote-tracking branch 'msm4.4/tmp-da9a92f' into msm-4.4" 2016-11-04 22:22:00 -07:00
Hareesh Gundu
71963395a5 msm: kgsl: Fix potential device NULL pointer dereferences
Ensure that device pointer isn't NULL before using it in
kgsl_snapshot_save_frozen_objs().

Change-Id: I676dfa5567b1d09427e3e7691045fabc71b53d43
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
2016-11-04 21:46:22 -07:00
Joonwoo Park
dfb9634d03 sched: prevent race between disable window statistics and task grouping
Change of colocation group requires to finish CPU busy time accounting
prior to its operation by calling update_task_ravg().  However when
window statistics accounting is disabled, update_task_ravg() acts as
nop and results in incorrect CPU time accounting.

Disallow colocation group change while window statistics accounting is
disabled in order to prevent race between reset_all_window_stats() and
colocation grouping functions.

Change-Id: I6dfa20b8d8b0ae7ccc94119bf9cf14c5e11a1cf7
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
2016-11-04 17:25:30 -07:00
Venkat Gopalakrishnan
359e6bb764 ARM: dts: msm: update bus bandwidth vote for msmcobalt ufs
The bandwidth vote determines the bus throughput needed for a
given running UFS gear frequency. For high throughput use cases
the current interface speed based votes may not be sufficient to
achieve peak user level throughput, as it doesn't count for other
system level latencies in the data path. Hence vote higher but
making sure the system stays in nominal voltage corner.

Change-Id: I95cda7e33288df7099826b37c2f436c5a33792e8
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
2016-11-04 15:13:10 -07:00