OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
7 years agodefconfig: msm: Turn on ESOC configs
Satya Durga Srinivasu Prabhala [Fri, 24 Feb 2017 18:32:12 +0000 (10:32 -0800)]
defconfig: msm: Turn on ESOC configs

Enable support for ESOC drivers.

Change-Id: Ie10f7b74fa7d06c7fcc93bf6eaa23889fc533b86
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
7 years agoMerge "ARM: dts: msm: Add device tree settings for A540 DRM on msm8998"
Linux Build Service Account [Wed, 1 Mar 2017 10:23:05 +0000 (02:23 -0800)]
Merge "ARM: dts: msm: Add device tree settings for A540 DRM on msm8998"

7 years agoMerge "ARM: dts: msm: enable ESD, ULPS and partial update on sdm630"
Linux Build Service Account [Wed, 1 Mar 2017 10:23:04 +0000 (02:23 -0800)]
Merge "ARM: dts: msm: enable ESD, ULPS and partial update on sdm630"

7 years agoMerge "sched: Print aggregation status in sched_get_busy trace event"
Linux Build Service Account [Wed, 1 Mar 2017 10:23:03 +0000 (02:23 -0800)]
Merge "sched: Print aggregation status in sched_get_busy trace event"

7 years agoMerge "USB: u_data_ipa: Fix pm_runtime_get/put() mismatch"
Linux Build Service Account [Wed, 1 Mar 2017 10:23:03 +0000 (02:23 -0800)]
Merge "USB: u_data_ipa: Fix pm_runtime_get/put() mismatch"

7 years agoMerge "esoc: Add check for possible null pointer returns"
Linux Build Service Account [Wed, 1 Mar 2017 10:23:01 +0000 (02:23 -0800)]
Merge "esoc: Add check for possible null pointer returns"

7 years agoMerge "USB: composite: Release spinlock before WARN()"
Linux Build Service Account [Wed, 1 Mar 2017 10:23:00 +0000 (02:23 -0800)]
Merge "USB: composite: Release spinlock before WARN()"

7 years agoMerge "soc: qcom: sysmon-qmi: fix object corruption due to use after free"
Linux Build Service Account [Wed, 1 Mar 2017 10:22:59 +0000 (02:22 -0800)]
Merge "soc: qcom: sysmon-qmi: fix object corruption due to use after free"

7 years agoMerge "msm: mhi_rmnet: If failed, do not retry to queue UL buffers"
Linux Build Service Account [Wed, 1 Mar 2017 10:22:58 +0000 (02:22 -0800)]
Merge "msm: mhi_rmnet: If failed, do not retry to queue UL buffers"

7 years agoMerge "power: bcl: Serialize frequency mitigation request from BCL events"
Linux Build Service Account [Wed, 1 Mar 2017 10:22:57 +0000 (02:22 -0800)]
Merge "power: bcl: Serialize frequency mitigation request from BCL events"

7 years agoMerge "ASoC: wsa881x: remove retry logic in swr_startup"
Linux Build Service Account [Wed, 1 Mar 2017 10:22:56 +0000 (02:22 -0800)]
Merge "ASoC: wsa881x: remove retry logic in swr_startup"

7 years agoMerge "ARM: dts: msm: Add PBS client node for PM660"
Linux Build Service Account [Wed, 1 Mar 2017 10:22:55 +0000 (02:22 -0800)]
Merge "ARM: dts: msm: Add PBS client node for PM660"

7 years agoMerge "regulator: qpnp-oledb: Add lab_vreg_ok notifier callback"
Linux Build Service Account [Wed, 1 Mar 2017 10:22:54 +0000 (02:22 -0800)]
Merge "regulator: qpnp-oledb: Add lab_vreg_ok notifier callback"

7 years agoMerge "defconfig: sdm630: Disable CONFIG_ICNSS_DEBUG"
Linux Build Service Account [Wed, 1 Mar 2017 10:22:53 +0000 (02:22 -0800)]
Merge "defconfig: sdm630: Disable CONFIG_ICNSS_DEBUG"

7 years agoMerge "defconfig: enable ARMV8-CE on sdm660"
Linux Build Service Account [Wed, 1 Mar 2017 10:22:52 +0000 (02:22 -0800)]
Merge "defconfig: enable ARMV8-CE on sdm660"

7 years agoMerge "defconfig: msm: Enable ARM64_STRICT_BREAK_BEFORE_MAKE flag"
Linux Build Service Account [Wed, 1 Mar 2017 10:22:51 +0000 (02:22 -0800)]
Merge "defconfig: msm: Enable ARM64_STRICT_BREAK_BEFORE_MAKE flag"

7 years agoMerge "coresight-tpdm: fix multiple datasets allocation issue"
Linux Build Service Account [Wed, 1 Mar 2017 10:22:51 +0000 (02:22 -0800)]
Merge "coresight-tpdm: fix multiple datasets allocation issue"

7 years agoMerge "ARM: dts: msm: Add thermistor support for PM660"
Linux Build Service Account [Wed, 1 Mar 2017 10:22:50 +0000 (02:22 -0800)]
Merge "ARM: dts: msm: Add thermistor support for PM660"

7 years agoMerge "ARM: dts: msm: Add GPU power level speed bins for SDM630"
Linux Build Service Account [Wed, 1 Mar 2017 10:22:49 +0000 (02:22 -0800)]
Merge "ARM: dts: msm: Add GPU power level speed bins for SDM630"

7 years agoMerge "icnss: Vote for hardware resources"
Linux Build Service Account [Wed, 1 Mar 2017 10:22:48 +0000 (02:22 -0800)]
Merge "icnss: Vote for hardware resources"

7 years agoMerge "ASoC: msm8998: Add fractional sampling rate support for HDMI"
Linux Build Service Account [Wed, 1 Mar 2017 10:22:46 +0000 (02:22 -0800)]
Merge "ASoC: msm8998: Add fractional sampling rate support for HDMI"

7 years agoMerge "f_gsi: Don't reconfigure USB GSI eps multiple time with cable connect case"
Linux Build Service Account [Wed, 1 Mar 2017 10:22:45 +0000 (02:22 -0800)]
Merge "f_gsi: Don't reconfigure USB GSI eps multiple time with cable connect case"

7 years agoMerge "f_gsi: Don't send end xfer command when USB is into U3 state"
Linux Build Service Account [Wed, 1 Mar 2017 10:22:44 +0000 (02:22 -0800)]
Merge "f_gsi: Don't send end xfer command when USB is into U3 state"

7 years agoMerge "ARM: dts: msm: Update SDCC LPM latencies for sdm660"
Linux Build Service Account [Wed, 1 Mar 2017 10:22:43 +0000 (02:22 -0800)]
Merge "ARM: dts: msm: Update SDCC LPM latencies for sdm660"

7 years agoMerge "msm: camera: isp: Handle array out of bounds"
Linux Build Service Account [Wed, 1 Mar 2017 10:22:43 +0000 (02:22 -0800)]
Merge "msm: camera: isp: Handle array out of bounds"

7 years agoMerge "msm: kgsl: Add GPU Cx ipeak client support on SDM660"
Linux Build Service Account [Wed, 1 Mar 2017 01:03:51 +0000 (17:03 -0800)]
Merge "msm: kgsl: Add GPU Cx ipeak client support on SDM660"

7 years agoMerge "msm: ADSPRPC: Unregister glink notification handle after SSR"
Linux Build Service Account [Wed, 1 Mar 2017 01:03:50 +0000 (17:03 -0800)]
Merge "msm: ADSPRPC: Unregister glink notification handle after SSR"

7 years agoMerge "msm: camera: isp: Do not wait w/o interruptible"
Linux Build Service Account [Wed, 1 Mar 2017 01:03:49 +0000 (17:03 -0800)]
Merge "msm: camera: isp: Do not wait w/o interruptible"

7 years agoMerge "msm: kgsl: Clean up device debugfs files on removal"
Linux Build Service Account [Wed, 1 Mar 2017 01:03:48 +0000 (17:03 -0800)]
Merge "msm: kgsl: Clean up device debugfs files on removal"

7 years agoMerge "msm: camera: jpegdma: fix compilation issues for sdm660"
Linux Build Service Account [Wed, 1 Mar 2017 01:03:47 +0000 (17:03 -0800)]
Merge "msm: camera: jpegdma: fix compilation issues for sdm660"

7 years agoMerge "msm: qpnp-haptic: Manage the state of PON regulator"
Linux Build Service Account [Wed, 1 Mar 2017 01:03:45 +0000 (17:03 -0800)]
Merge "msm: qpnp-haptic: Manage the state of PON regulator"

7 years agoMerge "msm: qpnp-haptic: add additional checks to avoid division by zero."
Linux Build Service Account [Wed, 1 Mar 2017 01:03:45 +0000 (17:03 -0800)]
Merge "msm: qpnp-haptic: add additional checks to avoid division by zero."

7 years agoMerge "msm: camera: Fix invalid access of vb2 buffer"
Linux Build Service Account [Wed, 1 Mar 2017 01:03:44 +0000 (17:03 -0800)]
Merge "msm: camera: Fix invalid access of vb2 buffer"

7 years agoMerge "msm: camera: Correct the settings for csiphy clock lane"
Linux Build Service Account [Wed, 1 Mar 2017 01:03:43 +0000 (17:03 -0800)]
Merge "msm: camera: Correct the settings for csiphy clock lane"

7 years agoMerge "ARM: dts: msm: Add stmVL53L0 device entry"
Linux Build Service Account [Wed, 1 Mar 2017 01:03:42 +0000 (17:03 -0800)]
Merge "ARM: dts: msm: Add stmVL53L0 device entry"

7 years agoMerge "msm: camera: isp: add support for CX iPeak limits management"
Linux Build Service Account [Wed, 1 Mar 2017 01:03:41 +0000 (17:03 -0800)]
Merge "msm: camera: isp: add support for CX iPeak limits management"

7 years agomsm: mhi_rmnet: If failed, do not retry to queue UL buffers
Sujeev Dias [Tue, 30 Aug 2016 02:00:03 +0000 (19:00 -0700)]
msm: mhi_rmnet: If failed, do not retry to queue UL buffers

If MHI failed to queue the buffer, do not attempt to re-queue.
Instead wait for transfer completion event and restart
the UL queue.

Change-Id: Id57db52e0eb2e5930ec228a920d109fef941389f
CRs-Fixed: 1055681
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
7 years agomhi: rmnet: Add bg worker to allocate memory
Sujeev Dias [Fri, 8 Jul 2016 00:25:53 +0000 (17:25 -0700)]
mhi: rmnet: Add bg worker to allocate memory

On memory stress conditions, host could
fails to allocate memory on atomic context.
Schedule a background worker to allocate
memory in such conditions.

CRs-Fixed: 1037593
Change-Id: Ia48b31622fcb043d31d197fab0a84ab40fc5c0ba
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
7 years agomhi: rmnet: remove debug message regarding invalid buff
Tony Truong [Sat, 5 Mar 2016 02:30:31 +0000 (18:30 -0800)]
mhi: rmnet: remove debug message regarding invalid buff

The debug message does not accurately describe the reason
for rmnet to reschedule the request.

CRs-Fixed: 1016968
Change-Id: I49fa6a0dbdd9dec7a36f5705b9e8d27bc7352286
Signed-off-by: Tony Truong <truong@codeaurora.org>
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
7 years agoARM: dts: msm: Add device tree settings for A540 DRM on msm8998
Jordan Crouse [Fri, 24 Feb 2017 15:04:17 +0000 (08:04 -0700)]
ARM: dts: msm: Add device tree settings for A540 DRM on msm8998

Enable the various settings to enable A540 DRM/GPU driver on
msm8998.

Change-Id: Ic0dedbadf7d4dbaaa75c24dde64ff13faf1283b9
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
7 years agoASoC: wsa881x: remove retry logic in swr_startup
Laxminath Kasam [Tue, 28 Feb 2017 15:15:55 +0000 (20:45 +0530)]
ASoC: wsa881x: remove retry logic in swr_startup

Avoid retry logic in swr_startup API as it results
in speaker mute on sdm660 external codec.

CRs-Fixed: 2012814
Change-Id: Ic8876fd6e62081253a46e4e896d154043d5170db
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
7 years agodefconfig: sdm630: Disable CONFIG_ICNSS_DEBUG
Hardik Kantilal Patel [Tue, 28 Feb 2017 12:59:57 +0000 (18:29 +0530)]
defconfig: sdm630: Disable CONFIG_ICNSS_DEBUG

Disable CONFIG_ICNSS_DEBUG now that solution is stable.

CRs-fixed: 2012235
Change-Id: I42dca2b723c7b3614a6d9c1c5e73ecbd6ae84a4c
Signed-off-by: Hardik Kantilal Patel <hkpatel@codeaurora.org>
7 years agoUSB: composite: Release spinlock before WARN()
Vijayavardhan Vennapusa [Fri, 24 Feb 2017 09:39:44 +0000 (15:09 +0530)]
USB: composite: Release spinlock before WARN()

if WARN() is called under spinlock, it will lead crash due to
watchdog timeout. Hence fix it by releasing spinlock before calling
WARN(). And also check cdev->config is NULL or not before calling
WARN().

Change-Id: Iebd00932b94164e9f40aa6126a2352437b1141ed
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
7 years agodefconfig: msm: Enable ARM64_STRICT_BREAK_BEFORE_MAKE flag
Srinivas Ramana [Tue, 28 Feb 2017 09:25:42 +0000 (14:55 +0530)]
defconfig: msm: Enable ARM64_STRICT_BREAK_BEFORE_MAKE flag

Enable config ARM64_STRICT_BREAK_BEFORE_MAKE to detect
break-before-make violations in set_pte and print a warning.

Change-Id: Idb7f5a7a1e46b6738659931188e143acd31a7ffa
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
7 years agocoresight-tpdm: fix multiple datasets allocation issue
Shashank Mittal [Wed, 31 Aug 2016 01:07:30 +0000 (18:07 -0700)]
coresight-tpdm: fix multiple datasets allocation issue

TPDM driver is allocating memory for TPDM datasets at two places which
leads to a memory leak issue.

Fix this issue by getting rid of one allocation call.

Change-Id: I9ac26cabe09dcbabeafd5a14aa85fc59a966d4dd
Signed-off-by: Saranya Chidura <schidura@codeaurora.org>
7 years agoARM: dts: msm: Add thermistor support for PM660
Rama Krishna Phani A [Wed, 22 Feb 2017 09:33:27 +0000 (15:03 +0530)]
ARM: dts: msm: Add thermistor support for PM660

Thermal clients will be monitoring thermistors for
temperature mitigations. Add emmc_therm support for PM660.

Change-Id: I71f109a3a99b5d962c7101f348141a4cae921a8d
Signed-off-by: Rama Krishna Phani A <rphani@codeaurora.org>
7 years agoMerge "arm64: Disable KASAN in uwwind_frame"
Linux Build Service Account [Tue, 28 Feb 2017 07:37:29 +0000 (23:37 -0800)]
Merge "arm64: Disable KASAN in uwwind_frame"

7 years agoMerge "msm: kgsl: Add efuse read capabilities for A508 GPU"
Linux Build Service Account [Tue, 28 Feb 2017 07:37:28 +0000 (23:37 -0800)]
Merge "msm: kgsl: Add efuse read capabilities for A508 GPU"

7 years agoMerge "i2c-msm-v2: Enable/Disable clocks and gpios per transfer"
Linux Build Service Account [Tue, 28 Feb 2017 07:37:27 +0000 (23:37 -0800)]
Merge "i2c-msm-v2: Enable/Disable clocks and gpios per transfer"

7 years agoMerge "qseecom: add mutex around qseecom_set_client_mem_param"
Linux Build Service Account [Tue, 28 Feb 2017 07:37:26 +0000 (23:37 -0800)]
Merge "qseecom: add mutex around qseecom_set_client_mem_param"

7 years agoMerge "msm: mdss: Allocate DMA pipe for pan display path"
Linux Build Service Account [Tue, 28 Feb 2017 07:37:26 +0000 (23:37 -0800)]
Merge "msm: mdss: Allocate DMA pipe for pan display path"

7 years agoMerge "msm: sde: Add mutex lock for debug buffer access in rotator"
Linux Build Service Account [Tue, 28 Feb 2017 07:37:25 +0000 (23:37 -0800)]
Merge "msm: sde: Add mutex lock for debug buffer access in rotator"

7 years agoMerge "msm: mdss: add support for Cx iPeak limit management"
Linux Build Service Account [Tue, 28 Feb 2017 07:37:24 +0000 (23:37 -0800)]
Merge "msm: mdss: add support for Cx iPeak limit management"

7 years agoMerge "Revert "firmware_class: Add an additional path to fw_path list""
Linux Build Service Account [Tue, 28 Feb 2017 07:37:22 +0000 (23:37 -0800)]
Merge "Revert "firmware_class: Add an additional path to fw_path list""

7 years agoMerge "soc: qcom: Notify clients in case qmi connection to service locator fails"
Linux Build Service Account [Tue, 28 Feb 2017 07:37:22 +0000 (23:37 -0800)]
Merge "soc: qcom: Notify clients in case qmi connection to service locator fails"

7 years agoMerge "f_gsi: Make usb ipa wq as freezable workqueue"
Linux Build Service Account [Tue, 28 Feb 2017 07:37:20 +0000 (23:37 -0800)]
Merge "f_gsi: Make usb ipa wq as freezable workqueue"

7 years agoMerge "msm: ipa: increment GSI command timeout"
Linux Build Service Account [Tue, 28 Feb 2017 07:37:20 +0000 (23:37 -0800)]
Merge "msm: ipa: increment GSI command timeout"

7 years agoMerge "msm: kgsl: Add placeholders for KGSL power limit functions"
Linux Build Service Account [Tue, 28 Feb 2017 07:37:19 +0000 (23:37 -0800)]
Merge "msm: kgsl: Add placeholders for KGSL power limit functions"

7 years agoMerge "msm: ipa3: Fix uninitialized variables access"
Linux Build Service Account [Tue, 28 Feb 2017 07:37:18 +0000 (23:37 -0800)]
Merge "msm: ipa3: Fix uninitialized variables access"

7 years agoMerge "msm: ipa3: Validate IPA client mapping to endpoint index"
Linux Build Service Account [Tue, 28 Feb 2017 07:37:18 +0000 (23:37 -0800)]
Merge "msm: ipa3: Validate IPA client mapping to endpoint index"

7 years agoMerge "ARM: dts: msm: Allow modem MBA to be loaded in carveout for SDM660"
Linux Build Service Account [Tue, 28 Feb 2017 07:37:16 +0000 (23:37 -0800)]
Merge "ARM: dts: msm: Allow modem MBA to be loaded in carveout for SDM660"

7 years agoMerge "ARM: dts: msm: change memlat vote for min freq on SDM630"
Linux Build Service Account [Tue, 28 Feb 2017 07:37:16 +0000 (23:37 -0800)]
Merge "ARM: dts: msm: change memlat vote for min freq on SDM630"

7 years agoMerge "ASoC: msm: Fix kernel crash in "Speaker Function" mixer control"
Linux Build Service Account [Tue, 28 Feb 2017 07:37:15 +0000 (23:37 -0800)]
Merge "ASoC: msm: Fix kernel crash in "Speaker Function" mixer control"

7 years agoMerge "defconfig: msm: Enable PBS driver support for sdm660"
Linux Build Service Account [Tue, 28 Feb 2017 07:37:14 +0000 (23:37 -0800)]
Merge "defconfig: msm: Enable PBS driver support for sdm660"

7 years agoMerge "ARM: dts: msm: Update GFX PM-QoS values for SDM660"
Linux Build Service Account [Tue, 28 Feb 2017 07:37:13 +0000 (23:37 -0800)]
Merge "ARM: dts: msm: Update GFX PM-QoS values for SDM660"

7 years agoMerge "qcom: smb138x: Average 10 die temperature samples"
Linux Build Service Account [Tue, 28 Feb 2017 07:37:12 +0000 (23:37 -0800)]
Merge "qcom: smb138x: Average 10 die temperature samples"

7 years agoMerge "qcom: smb138x: set the freq to 700Khz"
Linux Build Service Account [Tue, 28 Feb 2017 07:37:11 +0000 (23:37 -0800)]
Merge "qcom: smb138x: set the freq to 700Khz"

7 years agoARM: dts: msm: enable ESD, ULPS and partial update on sdm630
Ashish Garg [Fri, 24 Feb 2017 06:56:20 +0000 (12:26 +0530)]
ARM: dts: msm: enable ESD, ULPS and partial update on sdm630

Add the minimum and maximum fps supported and enable dynamic
fps and esd for fhd video mode panel. Enable ESD, ULPS for
NT and Truly command mode panels. Enable partial update for
truly fhd command mode panel.

Change-Id: I0fe5502d74903e13544603154e853f4b486ca7be
Signed-off-by: Ashish Garg <ashigarg@codeaurora.org>
7 years agoARM: dts: msm: Add PBS client node for PM660
Kiran Gunda [Tue, 21 Feb 2017 09:38:21 +0000 (15:08 +0530)]
ARM: dts: msm: Add PBS client node for PM660

Add PBS client node to trigger the PBS RAM event
for PM660.

Change-Id: I1be534e63d8121ac6b3cd290ba170ff15012d306
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
7 years agoregulator: qpnp-oledb: Add lab_vreg_ok notifier callback
Kiran Gunda [Mon, 13 Feb 2017 14:25:40 +0000 (19:55 +0530)]
regulator: qpnp-oledb: Add lab_vreg_ok notifier callback

OLEDB driver needs the LAB_VREG_OK status to program the PD_CTL
register after the oledb module is enabled. As this status register
is not accessible from the OLEDB driver, register a notifier callback
with LABIBB driver to get LAB_VREG_OK status.

Change-Id: I85009688a2accb6246135d22e08ee21fb8296f62
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
7 years agoi2c-msm-v2: Enable/Disable clocks and gpios per transfer
Dilip Kota [Mon, 9 May 2016 07:36:23 +0000 (13:06 +0530)]
i2c-msm-v2: Enable/Disable clocks and gpios per transfer

With QUP in shared mode, enabling and disabling the
resources in runtime pm will cause failure of
transactions over the QUP that are running on other
execution environment. To avoid the failure
enable/disable gpios and clocks of QUP per transfer.

Also move the clock prepare and unprepare calls
to runtime pm APIs from the transfer API to
reduce the latencies in the transactions.

Change-Id: Ic697cdc544405d86ec7c675922c18c00fec451a6
Signed-off-by: Dilip Kota <dkota@codeaurora.org>
Signed-off-by: Shrey Vijay <shreyv@codeaurora.org>
7 years agoARM: dts: msm: Allow modem MBA to be loaded in carveout for SDM660
Gaurav Kohli [Wed, 15 Feb 2017 11:31:00 +0000 (17:01 +0530)]
ARM: dts: msm: Allow modem MBA to be loaded in carveout for SDM660

Add sub-device node to allow mba to be able to load in carveout
memory region for SDM660.

Change-Id: I0e9932a0a779a66b7a3d4b682a60885cb7d799c5
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
7 years agosoc: qcom: sysmon-qmi: fix object corruption due to use after free
Satya Durga Srinivasu Prabhala [Tue, 21 Feb 2017 21:34:06 +0000 (13:34 -0800)]
soc: qcom: sysmon-qmi: fix object corruption due to use after free

While executing multimedia tests which include ADSP SSR testing,
below object corruption observed due to use after free condition.
Add mutex lock to fix the issue.

===============================================
BUG kmalloc-1024 (Tainted: G        W  O   ): \
Poison overwritten
-----------------------------------------------

INFO: 0xffffffc030db0cb0-0xffffffc030db0cba. \
First byte 0xff instead of 0x6b
INFO: Allocated in qmi_handle_create+0x4c/0x320 \
age=14486 cpu=4 pid=32505
alloc_debug_processing+0x138/0x18c
___slab_alloc.constprop.61+0x4ec/0x5d0
__slab_alloc.isra.58.constprop.60+0x48/0x74
kmem_cache_alloc_trace+0xd4/0x25c
qmi_handle_create+0x4c/0x320
sysmon_clnt_svc_arrive+0x34/0xe4
process_one_work+0x234/0x40c
worker_thread+0x2e0/0x410
kthread+0xf4/0xfc
ret_from_fork+0x10/0x40
INFO: Freed in qmi_handle_destroy+0x154/0x16c \
age=1159 cpu=4 pid=3784
free_debug_processing+0x290/0x368
__slab_free+0x74/0x3ac
kfree+0x21c/0x290
qmi_handle_destroy+0x154/0x16c
sysmon_clnt_svc_exit+0x20/0x30
process_one_work+0x234/0x40c
worker_thread+0x2e0/0x410
kthread+0xf4/0xfc
ret_from_fork+0x10/0x40

CRs-Fixed: 2009777
Change-Id: If3730f5f972424d49d43d552b7fd1a28e4e0b794
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
7 years agoRevert "firmware_class: Add an additional path to fw_path list"
Satya Durga Srinivasu Prabhala [Mon, 27 Feb 2017 19:27:10 +0000 (11:27 -0800)]
Revert "firmware_class: Add an additional path to fw_path list"

This reverts commit 3e47c536248f ("firmware_class: Add an
additional path to fw_path list").

Adding /firmware/images entry in fw_path is introducing selinux
denials as the access was happening under the client process
context. Removing the entry from fw_path structure.

Change-Id: I359f8defe49595a7e53558992080cb94eba42451
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
7 years agof_gsi: Don't reconfigure USB GSI eps multiple time with cable connect case
Mayank Rana [Thu, 1 Dec 2016 17:58:30 +0000 (09:58 -0800)]
f_gsi: Don't reconfigure USB GSI eps multiple time with cable connect case

Commit dbca823c25bf ("f_gsi: Don't send end xfer command when USB is
into U3 state") consolidated below usecases path for RNDIS:
1. USB RNDIS adaptor disable/enable case
2. USB RNDIS suspend/resume case
3. USB cable connect case

Due to USB GSI endpoints are getting disabled as part of above usecase
1 i.e. adaptor disable, it is required to reconfigure and re-enable USB
GSI endpoints when adaptor is enabled. USB GSI endpoints are re-configured
but not re-enabled for above usecase 3 although it is already configured
and enabled as pat of set_alt(1). Hence USB GSI endpoint are partially
configured causing no USB data transfer between USB GSI and IPA GSI which
fails IP address assignment. Fix this issue by making sure that USB GSI
endpoints are not reconfigured in above usecase 3.

CRs-Fixed: 1095920
Change-Id: I67068bac21274d715f61f9e5b83fae54e2c8e22d
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
7 years agof_gsi: Don't send end xfer command when USB is into U3 state
Mayank Rana [Thu, 6 Oct 2016 17:57:39 +0000 (10:57 -0700)]
f_gsi: Don't send end xfer command when USB is into U3 state

It is recommended to avoid sending end xfer command with USB GSI
endpoint when USB is into U3 state (i.e. bus suspended) as USB
controller may hang. USB GSI driver sends end xfer command with
suspend implementation when remote wakeup is not allowed. Hence
update IPA driver about remote wakeup status to suspend or
disconnect IPA GSI channel whereas remove sending end xfer command
to USB controller when remote wakeup is not allowed.

CRs-Fixed: 1077546
Change-Id: I3ac3714ccaf4ac9f16c26f59b9550aa825483344
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
7 years agof_gsi: Make usb ipa wq as freezable workqueue
Mayank Rana [Tue, 25 Oct 2016 22:44:11 +0000 (15:44 -0700)]
f_gsi: Make usb ipa wq as freezable workqueue

USB function driver uses usb_gadget_autopm_get() API to increments
USB controller device's PM runtime usage and child count, and also
expects that USB controller is resumed. Late suspend disables USB
controller device's PM runtime functionality by incrementing
disable_depth count and early resume enables it back once system is
resumed. This results into pm_runtime_get_sync() returning -EACCESS
when APPS is power collapsed and it is resuming due to USB bus resume
case. usb_gadget_autopm_get() API is decrementing device's PM runtime
usage count if it receives error value from pm_runtime_get_sync() API.
USB function driver doesn't check return value which results into
continuing USB operation. On next bus suspend, it decrements usage count
although it was not incremented in previous resume case which makes PM
runtime usage count negative. This can cause multiple issues as below:
1. USB bus resume may take more time causing host re-enumerating USB
gadget device
2. Unclock register access on remote wakeup case
3. USB host mode enumeration may fail due to dwc3 device usage count
is negative.

Fix this issue by making usb ipa wq as freezable workqueue which will
make sure that ipa_work_handler() work is executed only after system is
resumed and USB controller device's PM runtime is enabled.

CRs-Fixed: 10750021074383
Change-Id: I300d1a0081fafcbef3c00c63cddd49be54a651e5
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
7 years agof_gsi: Fix error handling with usb_func_ep_queue() return value
Mayank Rana [Fri, 14 Oct 2016 15:59:24 +0000 (08:59 -0700)]
f_gsi: Fix error handling with usb_func_ep_queue() return value

usb_func_ep_queue() returns -EAGAIN if usb is function suspended and
successfully remote wakeup is performed. This change fixes error
handling with USB GSI function driver to make sure caller knows that
request is actually queued or not from this context. This makes sure
that USB request is queued once USB host has resumed USB bus.

CRs-Fixed: 1033093
Change-Id: I3f3cb1b6b42530bfa93e0d4badacfe651b6bbb4c
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
7 years agomsm: ADSPRPC: Unregister glink notification handle after SSR
Sathish Ambley [Mon, 27 Feb 2017 23:49:51 +0000 (15:49 -0800)]
msm: ADSPRPC: Unregister glink notification handle after SSR

Unregister glink notification handle after SSR as otherwise it results
in the link up notification to be skipped resulting in incorrectly
completing the port open notification.

Change-Id: I668de44163a702faade1f170a74f66fb5a0c5571
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
7 years agomsm: ipa: increment GSI command timeout
Gidon Studinski [Sun, 7 Feb 2016 10:53:13 +0000 (12:53 +0200)]
msm: ipa: increment GSI command timeout

Increment GSI command timeout. This is needed since during Q6 GSI FW
authentication GSI HW is disabled and the response for the HW may be
delayed.

CRs-Fixed:
Change-Id: Ia9ed0f0163abbfd3e242c38a9aea084c1c37e8fd
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>:
7 years agoMerge "ARM: dts: msm: update dload type imem offset for SDM630"
Linux Build Service Account [Mon, 27 Feb 2017 23:16:34 +0000 (15:16 -0800)]
Merge "ARM: dts: msm: update dload type imem offset for SDM630"

7 years agoMerge "ARM: dts: msm: update dload type imem offset for SDM660"
Linux Build Service Account [Mon, 27 Feb 2017 23:16:33 +0000 (15:16 -0800)]
Merge "ARM: dts: msm: update dload type imem offset for SDM660"

7 years agoMerge "msm: kgsl: Use init_utsname() instead of ustname() for kernel build info."
Linux Build Service Account [Mon, 27 Feb 2017 23:16:33 +0000 (15:16 -0800)]
Merge "msm: kgsl: Use init_utsname() instead of ustname() for kernel build info."

7 years agoMerge "usb: gadget: f_mass_storage: Allow USB LPM upon ep disable"
Linux Build Service Account [Mon, 27 Feb 2017 23:16:32 +0000 (15:16 -0800)]
Merge "usb: gadget: f_mass_storage: Allow USB LPM upon ep disable"

7 years agoMerge "soc: qcom: spcom: propagate response timeout error"
Linux Build Service Account [Mon, 27 Feb 2017 23:16:31 +0000 (15:16 -0800)]
Merge "soc: qcom: spcom: propagate response timeout error"

7 years agoMerge "clk: msm: clock-mmss-8998: Update frequency plan for byte/pixel clock"
Linux Build Service Account [Mon, 27 Feb 2017 23:16:30 +0000 (15:16 -0800)]
Merge "clk: msm: clock-mmss-8998: Update frequency plan for byte/pixel clock"

7 years agoMerge "usb: pd: Avoid buffer overrun during msg_rx"
Linux Build Service Account [Mon, 27 Feb 2017 23:16:29 +0000 (15:16 -0800)]
Merge "usb: pd: Avoid buffer overrun during msg_rx"

7 years agoqseecom: add mutex around qseecom_set_client_mem_param
Zhen Kong [Mon, 27 Feb 2017 21:41:07 +0000 (13:41 -0800)]
qseecom: add mutex around qseecom_set_client_mem_param

Add mutex around qseecom_set_client_mem_param to prevent an
ioctl thread modifying and corrupting data which is being
processed by another ioctl in the other thread

Change-Id: I0cfb8afab4001c2913be693dfe44c761b9568893
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
7 years agoesoc: Add check for possible null pointer returns
Hanumant Singh [Wed, 11 May 2016 21:59:37 +0000 (14:59 -0700)]
esoc: Add check for possible null pointer returns

The call to kasprintf() can fail, with a failure to
allocate memory. Handle the condition appropriately.

CRs-Fixed: 1014400
Change-Id: I83d3a6c8bdfd7a104b88a3bedd50f49faeecd97a
Signed-off-by: Hanumant Singh <hanumant@codeaurora.org>
7 years agoesoc: mdm-dbg: Add a debug request engine for external mdm
Hanumant Singh [Tue, 11 Aug 2015 04:23:16 +0000 (21:23 -0700)]
esoc: mdm-dbg: Add a debug request engine for external mdm

Add a stub request engine for debugging external modem.

Change-Id: I6360831f21f83fcd25df72492b1d57b30a7d2197
Signed-off-by: Hanumant Singh <hanumant@codeaurora.org>
Signed-off-by: Bruce Levy <blevy@codeaurora.org>
[satyap@codeaurora.org: fix checkpatch issue]
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
7 years agosoc: qcom: pil-loaders: move pil loading of ADSP, SLPI & CDSP to workqueue
Satya Durga Srinivasu Prabhala [Sat, 18 Feb 2017 03:17:45 +0000 (19:17 -0800)]
soc: qcom: pil-loaders: move pil loading of ADSP, SLPI & CDSP to workqueue

When pil loading done through user space helper, there is a possibility
that signal could be pending on thread that initiated the pil, which would
lead to pil failure. To avoid this issue, move pil loading for ADSP, SLPI
and CDSP to separate workqueue in respective loader drivers.

Change-Id: Ie60a7eba7c52ac1565ce166d0e367379cce0b03e
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
7 years agoqcom: smb138x: Average 10 die temperature samples
Abhijeet Dharmapurikar [Wed, 22 Feb 2017 03:40:38 +0000 (19:40 -0800)]
qcom: smb138x: Average 10 die temperature samples

Averaging 10 die temperature samples reduces error caused by
a trim issue.

Change-Id: Ie0b9477c121df92544280b8e322c2205c680f6eb
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
7 years agoqcom: smb138x: set the freq to 700Khz
Abhijeet Dharmapurikar [Mon, 27 Feb 2017 19:05:28 +0000 (11:05 -0800)]
qcom: smb138x: set the freq to 700Khz

700Khz is not a harmonic of the digital clock and is optimal enough
for all vbus ranges. Running the smb in the non harmonic freq range
is required for correct TDIE adc reporting.

Change-Id: Ib70d64cd72b7408474fd64df287f6404d3749764
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
7 years agomsm: kgsl: Add placeholders for KGSL power limit functions
Jordan Crouse [Fri, 24 Feb 2017 15:39:38 +0000 (08:39 -0700)]
msm: kgsl: Add placeholders for KGSL power limit functions

Add placeholders for the KGSL power limit functions if
CONFIG_QCOM_KGSL is not enabled in the kernel config.

Change-Id: Ic0dedbad15b54cd8c3eba1b0649cb23193dbc16c
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
7 years agoMerge "defconfig: enable drm/kms driver in mediabox config"
Linux Build Service Account [Mon, 27 Feb 2017 15:44:40 +0000 (07:44 -0800)]
Merge "defconfig: enable drm/kms driver in mediabox config"

7 years agoMerge "drm/msm: Revert "drm/msm/sde: fix color component order""
Linux Build Service Account [Mon, 27 Feb 2017 15:44:39 +0000 (07:44 -0800)]
Merge "drm/msm: Revert "drm/msm/sde: fix color component order""

7 years agomsm: ipa3: Fix uninitialized variables access
Ghanim Fodi [Sun, 26 Feb 2017 19:45:59 +0000 (21:45 +0200)]
msm: ipa3: Fix uninitialized variables access

Kernel compilation warning is generated due to
these uninitialized variables access. This change
fixes them by initializing the variables.

Change-Id: Ifae04fe5e4d1b9a0c2c399a3c6746c38dea5c4cc
CRs-fixed: 2004062
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
7 years agomsm: ipa3: Validate IPA client mapping to endpoint index
Ghanim Fodi [Mon, 27 Feb 2017 14:39:25 +0000 (16:39 +0200)]
msm: ipa3: Validate IPA client mapping to endpoint index

ipa3_get_ep_mapping() is used to map an IPA client to
IPA endpoint index. The index is used as array index.
This change validates that the returned index is
within the valid range.

CRs-fixed: 2012203
Change-Id: I25df8d0c9b60a5290f2457dd2ed77f2c7e78b46f
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
7 years agodefconfig: msm: Enable PBS driver support for sdm660
Kiran Gunda [Thu, 16 Feb 2017 11:14:35 +0000 (16:44 +0530)]
defconfig: msm: Enable PBS driver support for sdm660

PBS driver triggers the PBS event specified by the client
driver to execute the PBS RAM configuration. Enable it for
sdm660 targets.

Change-Id: I95c70295805d31506c864546b763bef8a5e7b4bf
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
7 years agomsm: kgsl: Add GPU Cx ipeak client support on SDM660
Rajesh Kemisetti [Tue, 21 Feb 2017 07:48:28 +0000 (13:18 +0530)]
msm: kgsl: Add GPU Cx ipeak client support on SDM660

To handle Cx peak current limit on SDM660, GPU needs
to call Cx ipeak driver APIs when it switches between
threshold points.

Cx ipeak driver will throttle cDSP frequency if all
the clients are running at their respective threshold
frequencies to limit Cx peak current.

Change-Id: I5ffcf1a42523072d2b8b7bc0022eb3cc067acbb9
Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>