OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
7 years agoMerge "defconfig: msm: Add MSMTRITON in msmfalcon defconfig"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:46 +0000 (11:18 -0800)]
Merge "defconfig: msm: Add MSMTRITON in msmfalcon defconfig"

7 years agoMerge "crypto: msm: enable hw crypto driver for msmtriton"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:46 +0000 (11:18 -0800)]
Merge "crypto: msm: enable hw crypto driver for msmtriton"

7 years agoMerge "arm: qcom: Add support for msmtriton chipset"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:45 +0000 (11:18 -0800)]
Merge "arm: qcom: Add support for msmtriton chipset"

7 years agoMerge "ARM: dts: msm: Disable clock gating on msmcobalt"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:44 +0000 (11:18 -0800)]
Merge "ARM: dts: msm: Disable clock gating on msmcobalt"

7 years agoMerge "ASoC: wcd934x: Update surge recovery for version 1.1"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:43 +0000 (11:18 -0800)]
Merge "ASoC: wcd934x: Update surge recovery for version 1.1"

7 years agoMerge "qcedev: Validate Source and Destination addresses"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:42 +0000 (11:18 -0800)]
Merge "qcedev: Validate Source and Destination addresses"

7 years agoMerge "msm: mdss: Enable secure display and camera feature for msmcobalt"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:41 +0000 (11:18 -0800)]
Merge "msm: mdss: Enable secure display and camera feature for msmcobalt"

7 years agoMerge "msm: mdss: Add support for secure camera"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:40 +0000 (11:18 -0800)]
Merge "msm: mdss: Add support for secure camera"

7 years agoMerge "msm: mdss: add multiple partial update support"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:38 +0000 (11:18 -0800)]
Merge "msm: mdss: add multiple partial update support"

7 years agoMerge "msm: mdss: fix 32-bit compilation issues for MDSS DP driver"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:37 +0000 (11:18 -0800)]
Merge "msm: mdss: fix 32-bit compilation issues for MDSS DP driver"

7 years agoMerge "msm: mdss: Dynamic resolution switch with DSC on/off"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:36 +0000 (11:18 -0800)]
Merge "msm: mdss: Dynamic resolution switch with DSC on/off"

7 years agoMerge "mdss: Fix solid fill unpack pattern"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:36 +0000 (11:18 -0800)]
Merge "mdss: Fix solid fill unpack pattern"

7 years agoMerge "ARM: dts: msm: update VDD_GFX CPR aging and loop parameters for msmcobalt"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:35 +0000 (11:18 -0800)]
Merge "ARM: dts: msm: update VDD_GFX CPR aging and loop parameters for msmcobalt"

7 years agoMerge "ANDROID: binder: Add strong ref checks"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:34 +0000 (11:18 -0800)]
Merge "ANDROID: binder: Add strong ref checks"

7 years agoMerge "cgroup: Disable IRQs while holding css_set_lock"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:33 +0000 (11:18 -0800)]
Merge "cgroup: Disable IRQs while holding css_set_lock"

7 years agoMerge "msm: msm_bus: limit max chars read by sscanf"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:32 +0000 (11:18 -0800)]
Merge "msm: msm_bus: limit max chars read by sscanf"

7 years agoMerge "soc: qcom: Initialize structure with default values"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:31 +0000 (11:18 -0800)]
Merge "soc: qcom: Initialize structure with default values"

7 years agoMerge "qseecom: whitelist support for kernel client and listener"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:30 +0000 (11:18 -0800)]
Merge "qseecom: whitelist support for kernel client and listener"

7 years agoMerge "msm: vidc: Print secure info for a session"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:27 +0000 (11:18 -0800)]
Merge "msm: vidc: Print secure info for a session"

7 years agoMerge "qpnp-smb2: force HVDCP to 5V before reboot"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:26 +0000 (11:18 -0800)]
Merge "qpnp-smb2: force HVDCP to 5V before reboot"

7 years agoMerge "ARM: dts: msm: Enable ACD on msmcobalt v2"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:23 +0000 (11:18 -0800)]
Merge "ARM: dts: msm: Enable ACD on msmcobalt v2"

7 years agoMerge "msm: kgsl: Add MEMDESC_MAPPED back to for legacy mappings"
Linux Build Service Account [Tue, 8 Nov 2016 19:18:22 +0000 (11:18 -0800)]
Merge "msm: kgsl: Add MEMDESC_MAPPED back to for legacy mappings"

7 years agoMerge "drivers: soc: implement notify_tx_abort()"
Linux Build Service Account [Tue, 8 Nov 2016 06:29:11 +0000 (22:29 -0800)]
Merge "drivers: soc: implement notify_tx_abort()"

7 years agoMerge "ASoC: msm: q6dspv2: wake up tasks when ADSP goes down"
Linux Build Service Account [Tue, 8 Nov 2016 06:29:10 +0000 (22:29 -0800)]
Merge "ASoC: msm: q6dspv2: wake up tasks when ADSP goes down"

7 years agoMerge "sched/hmp: Fix memory leak when task fork fails"
Linux Build Service Account [Tue, 8 Nov 2016 06:29:08 +0000 (22:29 -0800)]
Merge "sched/hmp: Fix memory leak when task fork fails"

7 years agoMerge "sched/hmp: Use GFP_KERNEL for top task memory allocations"
Linux Build Service Account [Tue, 8 Nov 2016 06:29:07 +0000 (22:29 -0800)]
Merge "sched/hmp: Use GFP_KERNEL for top task memory allocations"

7 years agoMerge "coresight: set appropriate clock rate for coresight devices"
Linux Build Service Account [Tue, 8 Nov 2016 06:29:06 +0000 (22:29 -0800)]
Merge "coresight: set appropriate clock rate for coresight devices"

7 years agoMerge "msm: ADSPRPC: Use secure session device while freeing memory"
Linux Build Service Account [Tue, 8 Nov 2016 06:29:05 +0000 (22:29 -0800)]
Merge "msm: ADSPRPC: Use secure session device while freeing memory"

7 years agoMerge "qpnp-fg-gen3: extend profile integrity word usage"
Linux Build Service Account [Tue, 8 Nov 2016 06:29:05 +0000 (22:29 -0800)]
Merge "qpnp-fg-gen3: extend profile integrity word usage"

7 years agoMerge "qpnp-fg-gen3: expose a fake battery SOC for debug board"
Linux Build Service Account [Tue, 8 Nov 2016 06:29:04 +0000 (22:29 -0800)]
Merge "qpnp-fg-gen3: expose a fake battery SOC for debug board"

7 years agoMerge "ASoC: pcm: change capture_active to unsigned int"
Linux Build Service Account [Tue, 8 Nov 2016 06:29:04 +0000 (22:29 -0800)]
Merge "ASoC: pcm: change capture_active to unsigned int"

7 years agoMerge "ARM: dts: msm: Add camera dtsi file for msmcobalt qrd skuk board"
Linux Build Service Account [Tue, 8 Nov 2016 06:29:03 +0000 (22:29 -0800)]
Merge "ARM: dts: msm: Add camera dtsi file for msmcobalt qrd skuk board"

7 years agoMerge "msm: kgsl: Allow mempools to configure from the device tree"
Linux Build Service Account [Tue, 8 Nov 2016 06:29:02 +0000 (22:29 -0800)]
Merge "msm: kgsl: Allow mempools to configure from the device tree"

7 years agoMerge "defconfig: msm: Add support for GCC clocks"
Linux Build Service Account [Tue, 8 Nov 2016 06:29:01 +0000 (22:29 -0800)]
Merge "defconfig: msm: Add support for GCC clocks"

7 years agoMerge "clk: qcom: gcc: Cleanup code for GCC clocks"
Linux Build Service Account [Tue, 8 Nov 2016 06:29:01 +0000 (22:29 -0800)]
Merge "clk: qcom: gcc: Cleanup code for GCC clocks"

7 years agoMerge "soc: qcom: pil: Using devm_ioremap for mapping restart reg of modem"
Linux Build Service Account [Tue, 8 Nov 2016 06:29:00 +0000 (22:29 -0800)]
Merge "soc: qcom: pil: Using devm_ioremap for mapping restart reg of modem"

7 years agoMerge "defconfig: msm: update msmfalcon defconfigs"
Linux Build Service Account [Tue, 8 Nov 2016 06:28:59 +0000 (22:28 -0800)]
Merge "defconfig: msm: update msmfalcon defconfigs"

7 years agoMerge "ASoC: add 352800Hz into the pcm known rates"
Linux Build Service Account [Tue, 8 Nov 2016 06:28:59 +0000 (22:28 -0800)]
Merge "ASoC: add 352800Hz into the pcm known rates"

7 years agoMerge "msm: ipa: fix division by 0 for DMA pipes"
Linux Build Service Account [Tue, 8 Nov 2016 06:28:58 +0000 (22:28 -0800)]
Merge "msm: ipa: fix division by 0 for DMA pipes"

7 years agoMerge "drivers: mfd: Fix 32-bit audio compile"
Linux Build Service Account [Tue, 8 Nov 2016 06:28:57 +0000 (22:28 -0800)]
Merge "drivers: mfd: Fix 32-bit audio compile"

7 years agosched/hmp: Fix memory leak when task fork fails
Syed Rameez Mustafa [Fri, 4 Nov 2016 01:13:08 +0000 (18:13 -0700)]
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>
7 years agosched/hmp: Use GFP_KERNEL for top task memory allocations
Syed Rameez Mustafa [Wed, 2 Nov 2016 01:13:36 +0000 (18:13 -0700)]
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>
7 years agosched/hmp: Use improved information for frequency notifications
Syed Rameez Mustafa [Wed, 2 Nov 2016 00:30:20 +0000 (17:30 -0700)]
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>
7 years agosched/hmp: Remove capping when reporting load to the cpufreq governor
Syed Rameez Mustafa [Wed, 2 Nov 2016 00:34:01 +0000 (17:34 -0700)]
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>
7 years agoqpnp-fg-gen3: extend profile integrity word usage
Subbaraman Narayanamurthy [Thu, 27 Oct 2016 01:12:10 +0000 (18:12 -0700)]
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>
7 years agoqpnp-fg-gen3: expose a fake battery SOC for debug board
Subbaraman Narayanamurthy [Thu, 3 Nov 2016 19:02:52 +0000 (12:02 -0700)]
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>
7 years agoqpnp-smb2: force HVDCP to 5V before reboot
Nicholas Troast [Fri, 28 Oct 2016 18:02:03 +0000 (11:02 -0700)]
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>
7 years agomsm: ADSPRPC: Use secure session device while freeing memory
Sathish Ambley [Mon, 7 Nov 2016 18:11:51 +0000 (10:11 -0800)]
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>
7 years agodefconfig: msm: Add support for GCC clocks
Taniya Das [Mon, 7 Nov 2016 09:13:40 +0000 (14:43 +0530)]
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>
7 years agoclk: qcom: gcc: Cleanup code for GCC clocks
Taniya Das [Mon, 7 Nov 2016 09:07:39 +0000 (14:37 +0530)]
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>
7 years agomsm: kgsl: Allow mempools to configure from the device tree
Hareesh Gundu [Fri, 21 Oct 2016 14:11:24 +0000 (19:41 +0530)]
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>
7 years agosoc: qcom: pil: Using devm_ioremap for mapping restart reg of modem
Gaurav Kohli [Thu, 20 Oct 2016 09:17:53 +0000 (14:47 +0530)]
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>
7 years agodefconfig: msm: update msmfalcon defconfigs
Neeraj Upadhyay [Fri, 28 Oct 2016 10:32:01 +0000 (16:02 +0530)]
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>
7 years agoASoC: pcm: change capture_active to unsigned int
Walter Yang [Fri, 4 Nov 2016 13:48:03 +0000 (21:48 +0800)]
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>
7 years agoMerge "msm: kgsl: Fix potential device NULL pointer dereferences"
Linux Build Service Account [Sat, 5 Nov 2016 14:35:32 +0000 (07:35 -0700)]
Merge "msm: kgsl: Fix potential device NULL pointer dereferences"

7 years agoMerge "ARM: dts: msm: update ICNSS DT node for msmcobalt interposer"
Linux Build Service Account [Sat, 5 Nov 2016 14:35:30 +0000 (07:35 -0700)]
Merge "ARM: dts: msm: update ICNSS DT node for msmcobalt interposer"

7 years agoMerge "ARM: dts: msm: update bus bandwidth vote for msmcobalt ufs"
Linux Build Service Account [Sat, 5 Nov 2016 05:22:11 +0000 (22:22 -0700)]
Merge "ARM: dts: msm: update bus bandwidth vote for msmcobalt ufs"

7 years agoMerge "sched: prevent race between disable window statistics and task grouping"
Linux Build Service Account [Sat, 5 Nov 2016 05:22:10 +0000 (22:22 -0700)]
Merge "sched: prevent race between disable window statistics and task grouping"

7 years agoMerge "regulator: cprh-kbss-regulator: update temp sensor ID for msmcobalt"
Linux Build Service Account [Sat, 5 Nov 2016 05:22:09 +0000 (22:22 -0700)]
Merge "regulator: cprh-kbss-regulator: update temp sensor ID for msmcobalt"

7 years agoMerge "ARM: dts: msm: Add ADC nodes for pmfalcon"
Linux Build Service Account [Sat, 5 Nov 2016 05:22:08 +0000 (22:22 -0700)]
Merge "ARM: dts: msm: Add ADC nodes for pmfalcon"

7 years agoMerge "diag: Fix race condition while closing SMD"
Linux Build Service Account [Sat, 5 Nov 2016 05:22:07 +0000 (22:22 -0700)]
Merge "diag: Fix race condition while closing SMD"

7 years agoMerge "diag: Add mutex protection while closing SMD"
Linux Build Service Account [Sat, 5 Nov 2016 05:22:06 +0000 (22:22 -0700)]
Merge "diag: Add mutex protection while closing SMD"

7 years agoMerge "msm: ext_display: update hpd and notify logic"
Linux Build Service Account [Sat, 5 Nov 2016 05:22:03 +0000 (22:22 -0700)]
Merge "msm: ext_display: update hpd and notify logic"

7 years agoMerge "ASoC: msmcobalt: Update ignore suspend for MAD_CPE out widgets"
Linux Build Service Account [Sat, 5 Nov 2016 05:22:02 +0000 (22:22 -0700)]
Merge "ASoC: msmcobalt: Update ignore suspend for MAD_CPE out widgets"

7 years agoMerge "Merge remote-tracking branch 'msm4.4/tmp-da9a92f' into msm-4.4"
Linux Build Service Account [Sat, 5 Nov 2016 05:22:01 +0000 (22:22 -0700)]
Merge "Merge remote-tracking branch 'msm4.4/tmp-da9a92f' into msm-4.4"

7 years agomsm: kgsl: Fix potential device NULL pointer dereferences
Hareesh Gundu [Fri, 30 Sep 2016 09:30:32 +0000 (15:00 +0530)]
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>
7 years agosched: prevent race between disable window statistics and task grouping
Joonwoo Park [Fri, 4 Nov 2016 00:26:32 +0000 (17:26 -0700)]
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>
7 years agoARM: dts: msm: update bus bandwidth vote for msmcobalt ufs
Venkat Gopalakrishnan [Tue, 25 Oct 2016 23:22:04 +0000 (16:22 -0700)]
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>
7 years agomsm: ipa: fix division by 0 for DMA pipes
Skylar Chang [Tue, 1 Nov 2016 23:48:30 +0000 (16:48 -0700)]
msm: ipa: fix division by 0 for DMA pipes

For DMA pipes, bufer size is 0. This commit fixes a
division by 0 in kernel when connecting DMA pipes.

Change-Id: I11551594e5115e71aa116cc7238953205a4118c3
CRs-Fixed: 1085266
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
7 years agoARM: dts: msm: Add ADC nodes for pmfalcon
Sriharsha Allenki [Fri, 7 Oct 2016 13:14:09 +0000 (18:44 +0530)]
ARM: dts: msm: Add ADC nodes for pmfalcon

Clients of VADC_HC and BTM include reading voltage phone
power, system thermistors for thermal mitigation such as
msm_therm, case_therm, XO therm. Round robin ADC (RRADC)
provides clients ability to read supported channels from
PMfalcon RRADC such as battery ID, battery thermistors,
DCIN and USBIN voltage and current. Add the supported VADC,
BTM and RR ADC channels for the msmfalcon platforms.

Change-Id: I1b8bf9762642e0af73d7ac7fa51c974b93fd4b31
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
7 years agoASoC: add 352800Hz into the pcm known rates
Walter Yang [Fri, 4 Nov 2016 06:21:01 +0000 (14:21 +0800)]
ASoC: add 352800Hz into the pcm known rates

Add 352800Hz into pcm known rates to match with the sound
sample rate macro definitions.

CRs-Fixed: 1082850
Change-Id: Iedd78288f71ddcaa9fcb2f63bd3b73be2c0006dd
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
7 years agoqcedev: Validate Source and Destination addresses
AnilKumar Chimata [Wed, 31 Aug 2016 08:38:16 +0000 (14:08 +0530)]
qcedev: Validate Source and Destination addresses

Source and Destination addresses passed by user space apps/clients
are validated independent of type of operation to mitigate kernel
address space exploitation.

Change-Id: I9ecb0103d7a73eedb2e0d1db1d5613b18dd77e59
Signed-off-by: AnilKumar Chimata <anilc@codeaurora.org>
7 years agoARM: dts: msm: Disable clock gating on msmcobalt
Vamsi Krishna Samavedam [Thu, 3 Nov 2016 21:53:36 +0000 (14:53 -0700)]
ARM: dts: msm: Disable clock gating on msmcobalt

Disable clock gating to avoid ISOC packet drop during Super Speed
U1/U2 mode.

CRs-Fixed: 1085388
Change-Id: I11caee63b7d99f1a2c7f563cb5e1478c9e8ac90a
Signed-off-by: Vamsi Krishna Samavedam <vskrishn@codeaurora.org>
7 years agoARM: dts: msm: update ICNSS DT node for msmcobalt interposer
Sarada Prasanna Garnayak [Thu, 3 Nov 2016 09:24:19 +0000 (14:54 +0530)]
ARM: dts: msm: update ICNSS DT node for msmcobalt interposer

The msmcobalt interposer target has interposed with pm_falcon pmic.
Remove the pm_cobalt regulator handler reference, clock and smmu
memory address and offset from the ICNSS DT node. Allow ICNSS DT
node compilation for msmcobalt interposer target.

CRs-Fixed: 1085547
Change-Id: I4aa1b9876bf1afd9b895d89dc5c4323ba3a3f661
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
7 years agoANDROID: binder: Add strong ref checks
Arve Hjønnevåg [Tue, 2 Aug 2016 22:40:39 +0000 (15:40 -0700)]
ANDROID: binder: Add strong ref checks

Prevent using a binder_ref with only weak references where a strong
reference is required.

BUG: 30445380

Signed-off-by: Arve Hjønnevåg <arve@android.com>
Git-repo: https://android.googlesource.com/kernel/msm.git
Git-commit: 5e2a2bc89956ae1c739854403408059144b23c28
Signed-off-by: Ravi Kumar Siddojigari <rsiddoji@codeaurora.org>
Change-Id: I66c15b066808f28bd27bfe50fd0e03ff45a09fca
Signed-off-by: Ravi Kumar Siddojigari <rsiddoji@codeaurora.org>
7 years agomsm: msm_bus: limit max chars read by sscanf
David Dai [Thu, 3 Nov 2016 22:00:43 +0000 (15:00 -0700)]
msm: msm_bus: limit max chars read by sscanf

Current bus_floor_vote_store_api does not limit/check
the size of the string in input, allowing stack overflow.
Specify the max number of characters read allowable to
the size of destination buffer.

CRs-Fixed: 1050455
Change-Id: Idd409e3e38cfb01b28fa24543112d6bb206314ff
Signed-off-by: David Dai <daidavid1@codeaurora.org>
7 years agoASoC: msmcobalt: Update ignore suspend for MAD_CPE out widgets
Vidyakumar Athota [Thu, 3 Nov 2016 21:12:37 +0000 (14:12 -0700)]
ASoC: msmcobalt: Update ignore suspend for MAD_CPE out widgets

Ignore suspend flag is not set for "MAD_CPE" out widgets, causing
device not to go into suspend state during voice activation. Set
ignore suspend flag to allow suspend during SVA use case.

Change-Id: I18b7cb311e793c820da10990c47f472f7a0d0944
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
7 years agoASoC: msm: q6dspv2: wake up tasks when ADSP goes down
Banajit Goswami [Wed, 2 Nov 2016 19:55:27 +0000 (12:55 -0700)]
ASoC: msm: q6dspv2: wake up tasks when ADSP goes down

When ADSP goes down, all tasks waiting for response from
ADSP should be woken up, so that the upper layers can
proceed with the clean up. Change adds code to wake up
tasks, waiting for response from ADSP for memory related
commands, when ADSP sub-system notifier reaches ASM driver.

CRs-Fixed: 1085631
Change-Id: I0eed467aec676dd6eba71bf08aa4a45ada90133b
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
7 years agocgroup: Disable IRQs while holding css_set_lock
Daniel Bristot de Oliveira [Wed, 22 Jun 2016 20:28:41 +0000 (17:28 -0300)]
cgroup: Disable IRQs while holding css_set_lock

While testing the deadline scheduler + cgroup setup I hit this
warning.

[  132.612935] ------------[ cut here ]------------
[  132.612951] WARNING: CPU: 5 PID: 0 at kernel/softirq.c:150 __local_bh_enable_ip+0x6b/0x80
[  132.612952] Modules linked in: (a ton of modules...)
[  132.612981] CPU: 5 PID: 0 Comm: swapper/5 Not tainted 4.7.0-rc2 #2
[  132.612981] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.8.2-20150714_191134- 04/01/2014
[  132.612982]  0000000000000086 45c8bb5effdd088b ffff88013fd43da0 ffffffff813d229e
[  132.612984]  0000000000000000 0000000000000000 ffff88013fd43de0 ffffffff810a652b
[  132.612985]  00000096811387b5 0000000000000200 ffff8800bab29d80 ffff880034c54c00
[  132.612986] Call Trace:
[  132.612987]  <IRQ>  [<ffffffff813d229e>] dump_stack+0x63/0x85
[  132.612994]  [<ffffffff810a652b>] __warn+0xcb/0xf0
[  132.612997]  [<ffffffff810e76a0>] ? push_dl_task.part.32+0x170/0x170
[  132.612999]  [<ffffffff810a665d>] warn_slowpath_null+0x1d/0x20
[  132.613000]  [<ffffffff810aba5b>] __local_bh_enable_ip+0x6b/0x80
[  132.613008]  [<ffffffff817d6c8a>] _raw_write_unlock_bh+0x1a/0x20
[  132.613010]  [<ffffffff817d6c9e>] _raw_spin_unlock_bh+0xe/0x10
[  132.613015]  [<ffffffff811388ac>] put_css_set+0x5c/0x60
[  132.613016]  [<ffffffff8113dc7f>] cgroup_free+0x7f/0xa0
[  132.613017]  [<ffffffff810a3912>] __put_task_struct+0x42/0x140
[  132.613018]  [<ffffffff810e776a>] dl_task_timer+0xca/0x250
[  132.613027]  [<ffffffff810e76a0>] ? push_dl_task.part.32+0x170/0x170
[  132.613030]  [<ffffffff8111371e>] __hrtimer_run_queues+0xee/0x270
[  132.613031]  [<ffffffff81113ec8>] hrtimer_interrupt+0xa8/0x190
[  132.613034]  [<ffffffff81051a58>] local_apic_timer_interrupt+0x38/0x60
[  132.613035]  [<ffffffff817d9b0d>] smp_apic_timer_interrupt+0x3d/0x50
[  132.613037]  [<ffffffff817d7c5c>] apic_timer_interrupt+0x8c/0xa0
[  132.613038]  <EOI>  [<ffffffff81063466>] ? native_safe_halt+0x6/0x10
[  132.613043]  [<ffffffff81037a4e>] default_idle+0x1e/0xd0
[  132.613044]  [<ffffffff810381cf>] arch_cpu_idle+0xf/0x20
[  132.613046]  [<ffffffff810e8fda>] default_idle_call+0x2a/0x40
[  132.613047]  [<ffffffff810e92d7>] cpu_startup_entry+0x2e7/0x340
[  132.613048]  [<ffffffff81050235>] start_secondary+0x155/0x190
[  132.613049] ---[ end trace f91934d162ce9977 ]---

The warn is the spin_(lock|unlock)_bh(&css_set_lock) in the interrupt
context. Converting the spin_lock_bh to spin_lock_irq(save) to avoid
this problem - and other problems of sharing a spinlock with an
interrupt.

Change-Id: I2064d3c21863e50ee1a70e57f7915d04f2ba0407
Cc: Tejun Heo <tj@kernel.org>
Cc: Li Zefan <lizefan@huawei.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Juri Lelli <juri.lelli@arm.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: cgroups@vger.kernel.org
Cc: stable@vger.kernel.org # 4.5+
Cc: linux-kernel@vger.kernel.org
Reviewed-by: Rik van Riel <riel@redhat.com>
Reviewed-by: "Luis Claudio R. Goncalves" <lgoncalv@redhat.com>
Signed-off-by: Daniel Bristot de Oliveira <bristot@redhat.com>
Acked-by: Zefan Li <lizefan@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Git-commit: 82d6489d0fed2ec8a8c48c19e8d8a04ac8e5bb26
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[runminw@codeaurora.org: resolve trivial merge conflicts]
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
7 years agosoc: qcom: Initialize structure with default values
Puja Gupta [Thu, 3 Nov 2016 18:35:56 +0000 (11:35 -0700)]
soc: qcom: Initialize structure with default values

There is possibility for use of uninitialized variable. Hence initialize
the structure with default values.
Also fix couple of other debug logs.

CRs-Fixed: 1078904
Change-Id: I32abceba2d55c95bdb8e9b6463a39d29fb3bc7c7
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
7 years agodrivers: soc: implement notify_tx_abort()
Shiv Maliyappanahalli [Tue, 1 Nov 2016 22:17:17 +0000 (15:17 -0700)]
drivers: soc: implement notify_tx_abort()

The glink buffers used to send commands to adsp using
glink_tx() will be freed by glink using notify_tx_abort()
during remote subsystem restart. Implement notify_tx_abort()
so that the buffers can be reclaimed by APR.

Change-Id: Ibc9ce23d4ba15d0e3faa9db3e760965a7439aed8
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
7 years agomsm: mdss: Enable secure display and camera feature for msmcobalt
Abhijit Kulkarni [Thu, 18 Aug 2016 19:19:20 +0000 (12:19 -0700)]
msm: mdss: Enable secure display and camera feature for msmcobalt

Add support for secure display and camera in driver. The physical address
of the secure buffers is programmed into driver and hence there is no
need of stage 1 translation. These changes handle the detach/attach of
smmu contexts while going into and coming out of secure use case.
For secure display both the secure and unsecure contexts are detached,
while for secure camera only the secure context is detached.

CRs-Fixed: 1085143
Change-Id: Iadab43e9655a9e97cdc6661c17a73891cbc2a17f
Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
7 years agoqseecom: whitelist support for kernel client and listener
Zhen Kong [Sat, 3 Sep 2016 05:09:23 +0000 (22:09 -0700)]
qseecom: whitelist support for kernel client and listener

-- Add whitelist support for listener to send modified resp to TZ;
-- support whitelist for kernel client;
-- Change the method to check whitelist feature.

Change-Id: I0030b0008d6224cda3fdc1f80308a7e9bcfe4405
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
7 years agodrivers: mfd: Fix 32-bit audio compile
Laxminath Kasam [Thu, 3 Nov 2016 15:54:25 +0000 (21:24 +0530)]
drivers: mfd: Fix 32-bit audio compile

Add header in utils to resolve compile
issue in 32-bit mode.

Change-Id: I542b9fe014cff5a4b944eaab6034bfdb3e63a087
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
7 years agoASoC: wcd934x: Update surge recovery for version 1.1
Phani Kumar Uppalapati [Thu, 3 Nov 2016 14:30:55 +0000 (07:30 -0700)]
ASoC: wcd934x: Update surge recovery for version 1.1

Update codec headphone surge recovery sequence for
version 1.1.

Change-Id: I74a10da503622f7cd9ceb9a8b503b876e17abab4
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
7 years agoMerge "usb: pd: Avoid calling SVID disconnect if not previously connected"
Linux Build Service Account [Thu, 3 Nov 2016 13:24:06 +0000 (06:24 -0700)]
Merge "usb: pd: Avoid calling SVID disconnect if not previously connected"

7 years agoMerge "ASoC: wcd934x-dsp-cntl: Add misc device to control codec dsp"
Linux Build Service Account [Thu, 3 Nov 2016 13:24:05 +0000 (06:24 -0700)]
Merge "ASoC: wcd934x-dsp-cntl: Add misc device to control codec dsp"

7 years agoMerge "drivers: qcom: ultrasound: Lock async driver calls"
Linux Build Service Account [Thu, 3 Nov 2016 13:24:02 +0000 (06:24 -0700)]
Merge "drivers: qcom: ultrasound: Lock async driver calls"

7 years agoMerge "drivers: soc: Add new parameters for APR IPC logging"
Linux Build Service Account [Thu, 3 Nov 2016 13:24:01 +0000 (06:24 -0700)]
Merge "drivers: soc: Add new parameters for APR IPC logging"

7 years agoMerge "ASoC: msm: qdsp6v2: Change audio drivers to use %pK"
Linux Build Service Account [Thu, 3 Nov 2016 13:23:59 +0000 (06:23 -0700)]
Merge "ASoC: msm: qdsp6v2: Change audio drivers to use %pK"

7 years agoMerge "ASoC: wcd934x: Update OCP connection attempts"
Linux Build Service Account [Thu, 3 Nov 2016 13:23:58 +0000 (06:23 -0700)]
Merge "ASoC: wcd934x: Update OCP connection attempts"

7 years agoMerge "clk: Add support to vote to regulator framework from clk framework"
Linux Build Service Account [Thu, 3 Nov 2016 13:23:57 +0000 (06:23 -0700)]
Merge "clk: Add support to vote to regulator framework from clk framework"

7 years agoMerge "ASoC: msmcobalt: Initialize variable to default value"
Linux Build Service Account [Thu, 3 Nov 2016 13:23:56 +0000 (06:23 -0700)]
Merge "ASoC: msmcobalt: Initialize variable to default value"

7 years agoMerge "ASoC: msm: qdsp6v2: Index check for out of range"
Linux Build Service Account [Thu, 3 Nov 2016 13:23:55 +0000 (06:23 -0700)]
Merge "ASoC: msm: qdsp6v2: Index check for out of range"

7 years agoMerge "msm: camera: isp: Fix reset sequence on stop"
Linux Build Service Account [Thu, 3 Nov 2016 13:23:54 +0000 (06:23 -0700)]
Merge "msm: camera: isp: Fix reset sequence on stop"

7 years agoARM: dts: msm: add PMFALCON/PM2FALCON devices for msmcobalt interposer
Ashay Jaiswal [Fri, 28 Oct 2016 09:30:14 +0000 (15:00 +0530)]
ARM: dts: msm: add PMFALCON/PM2FALCON devices for msmcobalt interposer

Add PMIC devices and remove reference of PMCOBALT/PMICOBALT from all
client device nodes.

CRs-Fixed: 1083528
Change-Id: Idc0f0de7f3196d5e456d62e871c8ccfcb576fb07
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
7 years agoARM: dts: msm: Add interposer dts files for msmcobalt
Srinivas Ramana [Thu, 27 Oct 2016 05:55:23 +0000 (11:25 +0530)]
ARM: dts: msm: Add interposer dts files for msmcobalt

Add device tree support for msmcobalt interposer platform
using msmfalcon CDP/MTP.

Change-Id: Ie9eef135cdefc8d2a55f038cf9de5fc7f3656f64
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
7 years agoDocumentation: edac: Add bindings for arm64 cpu erp
Srinivas Ramana [Thu, 3 Nov 2016 06:59:35 +0000 (12:29 +0530)]
Documentation: edac: Add bindings for arm64 cpu erp

This is a snapshot from msm-3.18 upto the
commit 262b8c5814ec ("edac: cortex_arm64_edac:
modify sbe detection to use perf events") for the
arm64 cache cpu erp bindings.

Change-Id: I7313a121440bf5a455401cf73bd5ef4d6c1506cb
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
7 years agoMerge "usb: pd: Implement RX message queuing"
Linux Build Service Account [Thu, 3 Nov 2016 05:38:49 +0000 (22:38 -0700)]
Merge "usb: pd: Implement RX message queuing"

7 years agoMerge "usb: dwc3: Draw 100mA upon host bus reset"
Linux Build Service Account [Thu, 3 Nov 2016 05:38:48 +0000 (22:38 -0700)]
Merge "usb: dwc3: Draw 100mA upon host bus reset"