OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
6 years agoath10k: fix the invalid STA disconnect after wow resume
Sarada Prasanna Garnayak [Fri, 2 Mar 2018 09:00:30 +0000 (14:30 +0530)]
ath10k: fix the invalid STA disconnect after wow resume

Clear the previous wakeup reason data and reset the wakeup
reason event field to avoid the STA disconnect with invalid
wow event.

CRs-Fixed: 2199100
Change-Id: If45b5ae6e6f93ab9068b59a5e31f46b829363936
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
6 years agoMerge "soc: qcom: scm_qcpe: Derive HAB id from HAB vmid dt node"
Linux Build Service Account [Mon, 5 Mar 2018 22:12:24 +0000 (14:12 -0800)]
Merge "soc: qcom: scm_qcpe: Derive HAB id from HAB vmid dt node"

6 years agoMerge "msm: kgsl: Limit the maximum number of contexts"
Linux Build Service Account [Mon, 5 Mar 2018 22:12:22 +0000 (14:12 -0800)]
Merge "msm: kgsl: Limit the maximum number of contexts"

6 years agoMerge "msm: mdss: Fix scalar LUT handling"
Linux Build Service Account [Mon, 5 Mar 2018 22:12:21 +0000 (14:12 -0800)]
Merge "msm: mdss: Fix scalar LUT handling"

6 years agomsm: kgsl: Limit the maximum number of contexts
Harshdeep Dhatt [Tue, 12 Dec 2017 21:56:20 +0000 (14:56 -0700)]
msm: kgsl: Limit the maximum number of contexts

Enforce a limit of 200 contexts per process. This is done so
that a process cannot use up all the available contexts and
prevent other processes from starving.

Change-Id: I6eda123128381a213315561cd42335e0944f1f55
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
Signed-off-by: Archana Obannagari <aobann@codeaurora.org>
6 years agomsm: kgsl: Increase memstore size
Harshdeep Dhatt [Tue, 12 Dec 2017 18:35:51 +0000 (11:35 -0700)]
msm: kgsl: Increase memstore size

Increase the memstore size to 32k. Memstore has for long
been limited to 200 contexts and now it will be 814.

Change-Id: I1287669f0be38afe13ff8e386f5296e8f4e77627
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
Signed-off-by: Archana Obannagari <aobann@codeaurora.org>
6 years agosoc: qcom: scm_qcpe: Derive HAB id from HAB vmid dt node
Amit Blay [Thu, 1 Mar 2018 09:59:55 +0000 (11:59 +0200)]
soc: qcom: scm_qcpe: Derive HAB id from HAB vmid dt node

Derive the QCPE HAB id from the HAB vmid DTS node, rather
than have it hard coded into the driver.

Change-Id: I29ec7647890f8bc194d31f0402c5ed314572462f
Signed-off-by: Amit Blay <ablay@codeaurora.org>
6 years agoMerge "msm: kgsl: Correct memory type update in IOCTL_KGSL_GPUOBJ_SET_INFO"
Linux Build Service Account [Sat, 3 Mar 2018 07:05:09 +0000 (23:05 -0800)]
Merge "msm: kgsl: Correct memory type update in IOCTL_KGSL_GPUOBJ_SET_INFO"

6 years agoMerge "ARM: dts: msm: Add support for modem test tools on msm8996 vplatform"
Linux Build Service Account [Sat, 3 Mar 2018 07:05:08 +0000 (23:05 -0800)]
Merge "ARM: dts: msm: Add support for modem test tools on msm8996 vplatform"

6 years agoMerge "soc: qcom: hab: clean the pr_fmt redefined build warning"
Linux Build Service Account [Sat, 3 Mar 2018 07:05:07 +0000 (23:05 -0800)]
Merge "soc: qcom: hab: clean the pr_fmt redefined build warning"

6 years agoMerge "defconfig: msm: Enable FW loader user space helper for GVM"
Linux Build Service Account [Sat, 3 Mar 2018 07:05:05 +0000 (23:05 -0800)]
Merge "defconfig: msm: Enable FW loader user space helper for GVM"

6 years agomsm: kgsl: Correct memory type update in IOCTL_KGSL_GPUOBJ_SET_INFO
Deepak Kumar [Fri, 23 Feb 2018 11:01:46 +0000 (16:31 +0530)]
msm: kgsl: Correct memory type update in IOCTL_KGSL_GPUOBJ_SET_INFO

A bad user can pass memory type parameter value greater than 255.
Limit the memory type value to valid range before updating memory
descriptor flags to avoid incorrect flag update.

Change-Id: I23ce69584d1e2c9969583461ee942c5046e7cdbc
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
6 years agoARM: dts: msm: Add support for modem test tools on msm8996 vplatform
Ramachandran Venkataramani [Mon, 19 Feb 2018 21:10:06 +0000 (13:10 -0800)]
ARM: dts: msm: Add support for modem test tools on msm8996 vplatform

Add smdpkt and glinkpkt devices with the SSR handlers to
support PC based tools to test the modem and adsp.

Change-Id: I2a77f6d01ad13b9c061eacbf4d08af12d8e183a7
Signed-off-by: Ramachandran Venkataramani <ramavenk@codeaurora.org>
6 years agodiag: Add conditional check for len in dci_process_ctrl_status()
Sreelakshmi Gownipalli [Mon, 29 Jan 2018 21:17:13 +0000 (13:17 -0800)]
diag: Add conditional check for len in dci_process_ctrl_status()

Add correct conditional check for len in dci_process_ctrl_status() to
prevent buffer overflow.

Change-Id: Id73ed1c8b104428eceef0544ce2858160cc08fd2
Signed-off-by: Sreelakshmi Gownipalli <sgownipa@codeaurora.org>
6 years agodefconfig: msm: Enable FW loader user space helper for GVM
Ferry Zhou [Tue, 27 Feb 2018 03:00:50 +0000 (11:00 +0800)]
defconfig: msm: Enable FW loader user space helper for GVM

WLAN firmware files are located at non-standard firmware path.
So, enable user space helper to load firmware from non-standard
fs paths like /vendor/firmware and /firmware/image etc.

Change-Id: I60bbc89953ad66dabd76badc4f2117a06f5f0cc7
Signed-off-by: Ferry Zhou <tianguiz@codeaurora.org>
6 years agomsm: mdss: Fix scalar LUT handling
Animesh Kishore [Fri, 23 Feb 2018 12:34:28 +0000 (18:04 +0530)]
msm: mdss: Fix scalar LUT handling

Add lock to serialize access between userspace
and kernel. Fix error handling for LUT allocation.

Change-Id: Ie86a8eb3e2a11852ae16d87ebc851afb6566732f
Signed-off-by: Animesh Kishore <animeshk@codeaurora.org>
6 years agoMerge "DBA: add VREG sequence in power on / off sequence"
Linux Build Service Account [Wed, 28 Feb 2018 06:06:14 +0000 (22:06 -0800)]
Merge "DBA:  add VREG sequence in power on / off sequence"

6 years agoMerge "msm: kgsl: Fix reading lm_sequence in _execute_reg_sequence()"
Linux Build Service Account [Wed, 28 Feb 2018 06:06:12 +0000 (22:06 -0800)]
Merge "msm: kgsl: Fix reading lm_sequence in _execute_reg_sequence()"

6 years agoMerge "ASoC: wcd934x-dsp-cntl: Limit array size of val"
Linux Build Service Account [Wed, 28 Feb 2018 06:06:11 +0000 (22:06 -0800)]
Merge "ASoC: wcd934x-dsp-cntl: Limit array size of val"

6 years agomsm: kgsl: Fix reading lm_sequence in _execute_reg_sequence()
Archana Sriram [Fri, 9 Feb 2018 12:20:19 +0000 (17:50 +0530)]
msm: kgsl: Fix reading lm_sequence in _execute_reg_sequence()

Added proper checks while reading lm_sequence array so that it
is not accessed beyond lm_size.

CRs-Fixed: 2175951
Change-Id: I639b07fba275aad0f62cc03fa11201c126e24812
Signed-off-by: Archana Sriram <apsrir@codeaurora.org>
6 years agosoc: qcom: hab: clean the pr_fmt redefined build warning
Yong Ding [Mon, 26 Feb 2018 09:32:11 +0000 (17:32 +0800)]
soc: qcom: hab: clean the pr_fmt redefined build warning

In include/linux/printk.h, pr_fmt is programmed in such
below way.
#ifndef pr_fmt
#define pr_fmt(fmt) fmt
#endif
And in hab.h, there is a customized pr_fmt definition. To
avoid its redefinition warning, it should be undefed before
the customized one if it already exists. And such warning
happens in building khab.c now.

Change-Id: Ia7a58bc32c7205ac27767f9738271ddce8fef339
Signed-off-by: Yong Ding <yongding@codeaurora.org>
6 years agoMerge "ARM: dts: qcom: Remove lpm performance index for sdm660"
Linux Build Service Account [Tue, 27 Feb 2018 03:08:43 +0000 (19:08 -0800)]
Merge "ARM: dts: qcom: Remove lpm performance index for sdm660"

6 years agoMerge "Revert "ARM: dts: msm: Enable ACD functionality for SDM660 silver cluster""
Linux Build Service Account [Tue, 27 Feb 2018 03:08:42 +0000 (19:08 -0800)]
Merge "Revert "ARM: dts: msm: Enable ACD functionality for SDM660 silver cluster""

6 years agoMerge "f_audio_source: Implement get_alt() support"
Linux Build Service Account [Tue, 27 Feb 2018 03:08:41 +0000 (19:08 -0800)]
Merge "f_audio_source: Implement get_alt() support"

6 years agoMerge "cnss2: Check pcie link state when resume"
Linux Build Service Account [Mon, 26 Feb 2018 14:11:56 +0000 (06:11 -0800)]
Merge "cnss2: Check pcie link state when resume"

6 years agoMerge "trace: ipc_logging: fix compile error when disable ipc_logging"
Linux Build Service Account [Mon, 26 Feb 2018 14:11:54 +0000 (06:11 -0800)]
Merge "trace: ipc_logging: fix compile error when disable ipc_logging"

6 years agoMerge "msm: camera_v2: Define new mcros for result success"
Linux Build Service Account [Mon, 26 Feb 2018 14:11:53 +0000 (06:11 -0800)]
Merge "msm: camera_v2: Define new mcros for result success"

6 years agof_audio_source: Implement get_alt() support
Vijayavardhan Vennapusa [Thu, 8 Feb 2018 07:54:05 +0000 (13:24 +0530)]
f_audio_source: Implement get_alt() support

Implement get_alt() callback which is required to support multiple
alternate settings of audio_source interface.

Change-Id: Id857af047759687ae2d626839b2dd31ad59db452
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
6 years agoARM: dts: qcom: Remove lpm performance index for sdm660
Tirupathi Reddy [Fri, 12 Jan 2018 04:44:37 +0000 (10:14 +0530)]
ARM: dts: qcom: Remove lpm performance index for sdm660

Do not use a fixed OSM performance index for sdm660 CPU
clusters while entering certain low power modes.

CRs-Fixed: 2171214
Change-Id: I4cdcd1f950174ce5570d9546590e6d135d42b426
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
6 years agoRevert "ARM: dts: msm: Enable ACD functionality for SDM660 silver cluster"
Tirupathi Reddy [Fri, 12 Jan 2018 03:59:06 +0000 (09:29 +0530)]
Revert "ARM: dts: msm: Enable ACD functionality for SDM660 silver cluster"

This reverts commit 791e28b55c04a0c786d64dd8e8a2083b9a225a10.
Disable ACD functionality for SDM660 silver cluster
to address stability issues.

CRs-Fixed: 2171214
Change-Id: Id598c7348e656bf01a21510a27d68fb8beb08fbb
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
6 years agoDBA: add VREG sequence in power on / off sequence
Camus Wong [Sun, 25 Feb 2018 06:57:30 +0000 (01:57 -0500)]
DBA:  add VREG sequence in power on / off sequence

VREG was enabled during init and never turn off until the bridge chip
unregister.  We need to add VREG on/off sequence into bridge chip
power on/off in order to reduce platform current draw.

Change-Id: Ib8d59665c55035c36d10d868fb256fcfaa243f84
Signed-off-by: Camus Wong <camusw@codeaurora.org>
6 years agomsm: ipa3: Fix to validate the user inputs
Mohammed Javid [Wed, 14 Feb 2018 13:21:10 +0000 (18:51 +0530)]
msm: ipa3: Fix to validate the user inputs

Miss to Validate user inputs for last entry while
sending the QMI message to modem. Adding code changes to
fix to validate user inputs for last entry.

Change-Id: If2c6c4fbfc922d56355d26a16f844fd57d4992ac
Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
6 years agodefconfig: msm: Enable configs for modem interfaces
Ramachandran Venkataramani [Mon, 19 Feb 2018 21:05:18 +0000 (13:05 -0800)]
defconfig: msm: Enable configs for modem interfaces

Add configs for sysmon, smdpkt and glinkpkt

Change-Id: I57494e41388351eebab92a350f46608358943ca2
Signed-off-by: Ramachandran Venkataramani <ramavenk@codeaurora.org>
6 years agoMerge "spmi: msm: Add virtual SPMI PMIC front end driver"
Linux Build Service Account [Fri, 23 Feb 2018 18:39:11 +0000 (10:39 -0800)]
Merge "spmi: msm: Add virtual SPMI PMIC front end driver"

6 years agomsm: camera_v2: Define new mcros for result success
Trishansh Bhardwaj [Thu, 22 Feb 2018 10:14:20 +0000 (15:44 +0530)]
msm: camera_v2: Define new mcros for result success

Defines below macros.
 MSM_CAMERA_CMD_SUCCESS
 MSM_CAMERA_BUF_MAP_SUCCESS

Change-Id: Ied4cf83a129dacbcaa2acb83d3dbcd10e2d5d886
Signed-off-by: Trishansh Bhardwaj <tbhardwa@codeaurora.org>
6 years agoMerge "diag: Validate copying length against source buffer length"
Linux Build Service Account [Fri, 23 Feb 2018 11:07:59 +0000 (03:07 -0800)]
Merge "diag: Validate copying length against source buffer length"

6 years agoMerge "input: misc: hbtp_input: fix list corruption in completion queue"
Linux Build Service Account [Thu, 22 Feb 2018 21:00:57 +0000 (13:00 -0800)]
Merge "input: misc: hbtp_input: fix list corruption in completion queue"

6 years agoinput: misc: hbtp_input: fix list corruption in completion queue
Vevek Venkatesan [Mon, 19 Feb 2018 11:15:50 +0000 (16:45 +0530)]
input: misc: hbtp_input: fix list corruption in completion queue

Fix list corruption in task completion wait queue, in hbtp_input
driver.

Change-Id: Ic9967a196a575ce8aaad62a85ecbf055cf66a6f0
Signed-off-by: Vevek Venkatesan <vevekv@codeaurora.org>
6 years agoMerge "msm: kgsl: Prevent race condition when freeing memory"
Linux Build Service Account [Thu, 22 Feb 2018 11:01:07 +0000 (03:01 -0800)]
Merge "msm: kgsl: Prevent race condition when freeing memory"

6 years agomsm: kgsl: Prevent race condition when freeing memory
Deepak Kumar [Fri, 16 Feb 2018 06:16:26 +0000 (11:46 +0530)]
msm: kgsl: Prevent race condition when freeing memory

Add a check to set the pending_free flag if it is not already
set before freeing sparse memory entry. This is required to
prevent multiple ioctl threads from freeing the same sparse
memory entry.

Change-Id: I4e2bbe6fcd98c58d36340c4f87cdff27fc1de22e
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
6 years agoMerge "cfg80211: Define new API to send reg change event"
Linux Build Service Account [Thu, 22 Feb 2018 03:26:27 +0000 (19:26 -0800)]
Merge "cfg80211: Define new API to send reg change event"

6 years agoMerge "drm/msm/sde: setup alpha and bit format on qseedv3"
Linux Build Service Account [Wed, 21 Feb 2018 14:59:19 +0000 (06:59 -0800)]
Merge "drm/msm/sde: setup alpha and bit format on qseedv3"

6 years agoMerge "drm: Add and handle new aspect ratios in DRM layer"
Linux Build Service Account [Wed, 21 Feb 2018 08:41:50 +0000 (00:41 -0800)]
Merge "drm: Add and handle new aspect ratios in DRM layer"

6 years agoMerge "drm: Add aspect ratio parsing in DRM layer"
Linux Build Service Account [Wed, 21 Feb 2018 08:41:50 +0000 (00:41 -0800)]
Merge "drm: Add aspect ratio parsing in DRM layer"

6 years agodrm/msm/sde: setup alpha and bit format on qseedv3
Dhaval Patel [Fri, 10 Feb 2017 00:06:03 +0000 (16:06 -0800)]
drm/msm/sde: setup alpha and bit format on qseedv3

Setup valid alpha and bit format on qseedv3 for
RGB formats.

Change-Id: I28d720fecab78771125c3fa533a46f58663666d7
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
6 years agodrivers: soc: Synchronize apr callback and voice svc release
smanag [Tue, 14 Nov 2017 09:27:57 +0000 (14:57 +0530)]
drivers: soc: Synchronize apr callback and voice svc release

Issue is seen when apr callback is received while voice_svc_release
is in process of freeing the driver private data.
Avoid invalid access of private data pointer by putting
the callback and release functions in the same locked context.

Change-Id: I93af13cab0a3c7e653a9bc9fa7f4f86bfa0502df
Signed-off-by: smanag <smanag@codeaurora.org>
6 years agodrm: Add and handle new aspect ratios in DRM layer
Shashank Sharma [Mon, 17 Oct 2016 12:04:40 +0000 (17:34 +0530)]
drm: Add and handle new aspect ratios in DRM layer

HDMI 2.0/CEA-861-F introduces two new aspect ratios:
- 64:27
- 256:135

This patch:
-  Adds new DRM flags for to represent these new aspect ratios.
-  Adds new cases to handle these aspect ratios while converting
from user->kernel mode or vise versa.

V2: Rebase
V3: Align macro for DRM_MODE_PICTURE_ASPECT_256_135 (Jim Bride)
V4: Added r-b from Jose.

Change-Id: Iab14d11e2a69d1ecb016edd2ad6ee8edb228f095
Signed-off-by: Shashank Sharma <shashank.sharma@intel.com>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Reviewed-by: Jose Abreu <Jose.Abreu@synopsys.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1476705880-15600-5-git-send-email-shashank.sharma@intel.com
Git-commit: a68362fe3e84fcbedd49939aa200519aa5410135
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[nbahrani@codeaurora.org: resolved msm specific merge conflicts]
Signed-off-by: Navid Bahrani <nbahrani@codeaurora.org>
6 years agodrm: Add aspect ratio parsing in DRM layer
Shashank Sharma [Mon, 17 Oct 2016 12:04:38 +0000 (17:34 +0530)]
drm: Add aspect ratio parsing in DRM layer

Current DRM layer functions don't parse aspect ratio information
while converting a user mode->kernel mode or vice versa. This
causes modeset to pick mode with wrong aspect ratio, eventually
causing failures in HDMI compliance test cases, due to wrong VIC.

This patch adds aspect ratio information in DRM's mode conversion
and mode comparision functions, to make sure kernel picks mode
with right aspect ratio (as per the VIC).

V2: Addressed review comments from Sean:
- Fix spellings/typo
- No need to handle aspect ratio none
- Add a break, for default case too
V3: Rebase
V4: Added r-b from Jose

Change-Id: I05817653b8693c875a989bdd1247e30faf71e657
Signed-off-by: Shashank Sharma <shashank.sharma@intel.com>
Signed-off-by: Lin, Jia <lin.a.jia@intel.com>
Signed-off-by: Akashdeep Sharma <akashdeep.sharma@intel.com>
Reviewed-by: Jim Bride <jim.bride@linux.intel.com>
Reviewed-by: Jose Abreu <Jose.Abreu@synopsys.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1476705880-15600-3-git-send-email-shashank.sharma@intel.com
Git-commit: 6dffd431e2296cda08e7e4f0242e02df1d1698cd
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Navid Bahrani <nbahrani@codeaurora.org>
6 years agodiag: Validate copying length against source buffer length
Hardik Arya [Wed, 17 Jan 2018 15:33:52 +0000 (21:03 +0530)]
diag: Validate copying length against source buffer length

There a possibility of out-of-bound read because of not
validating source buffer length against length that about
to be copied. The patch adds proper check for validating
length before copying data

CRs-Fixed: 2163793
Change-Id: I7c93839d0c4d83024ce23a0ce494d09dd08567a9
Signed-off-by: Hardik Arya <harya@codeaurora.org>
6 years agotrace: ipc_logging: fix compile error when disable ipc_logging
Lei wang [Mon, 12 Feb 2018 07:25:16 +0000 (15:25 +0800)]
trace: ipc_logging: fix compile error when disable ipc_logging

when disable ipc_logging, stub function use EINVAL defined
in errno.h

Change-Id: I2aff4427736df9efeeeecb98963627ba27b1aaf3
Signed-off-by: Lei wang <leiwan@codeaurora.org>
6 years agocfg80211: Define new API to send reg change event
Kiran Kumar Lokere [Sat, 20 Jan 2018 07:46:53 +0000 (23:46 -0800)]
cfg80211: Define new API to send reg change event

Define new exported cfg80211 api cfg80211_send_reg_change_event()
to send regulatory update event to user-space.

CRs-Fixed: 2183721
Change-Id: I32e12c8db22a63b9166481dfec937716fb15d855
Signed-off-by: Kiran Kumar Lokere <klokere@codeaurora.org>
6 years agoMerge "msm: kgsl: Properly remove ref count on gpuobj_sync failure"
Linux Build Service Account [Tue, 20 Feb 2018 00:07:24 +0000 (16:07 -0800)]
Merge "msm: kgsl: Properly remove ref count on gpuobj_sync failure"

6 years agomsm:ipa: Return mux id only for valid interface
Mohammed Javid [Thu, 18 Jan 2018 21:02:17 +0000 (02:32 +0530)]
msm:ipa: Return mux id only for valid interface

Value of MAX_NUM_OF_MUX_CHANNEL is greater than
number of valid interfaces. So empty interface
is also getting mux id. Return mux id only for valid
interfaces.

Change-Id: I7852df0aa0ccee781c1bf6857a4183b99194f3ee
Acked-by: Pooja Kumari <kumarip@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
6 years agoARM: dts: msm: Disable BCL for all msm8996 auto targets
Manaf Meethalavalappu Pallikunhi [Thu, 25 Jan 2018 20:04:22 +0000 (01:34 +0530)]
ARM: dts: msm: Disable BCL for all msm8996 auto targets

The auto target doesn't require battery current limit (BCL) solution.
Disable BCL devicetree node for all msm8996 auto targets.

Change-Id: I70f249de2d7d1304287a9f71a7d48f1b90fabee7
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
6 years agodefconfig: msm: Enable battery current limit module for msm8996
Manaf Meethalavalappu Pallikunhi [Thu, 25 Jan 2018 19:32:56 +0000 (01:02 +0530)]
defconfig: msm: Enable battery current limit module for msm8996

Enable battery current limit module, which can monitor the
battery current, voltage, and SoC and mitigate the CPU cluster.

Change-Id: I2ba17fe5fe76d42999f71c6197200ac90ff68877
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
6 years agoMerge "msm: secure_buffer: Add SPSS_SP_SHARED vmid"
Linux Build Service Account [Fri, 16 Feb 2018 22:41:53 +0000 (14:41 -0800)]
Merge "msm: secure_buffer: Add SPSS_SP_SHARED vmid"

6 years agoMerge "msm: camera: Add RAW12 support for meta data"
Linux Build Service Account [Fri, 16 Feb 2018 22:41:52 +0000 (14:41 -0800)]
Merge "msm: camera: Add RAW12 support for meta data"

6 years agoMerge "msm: camera: Handle actuator close before power down"
Linux Build Service Account [Fri, 16 Feb 2018 22:41:51 +0000 (14:41 -0800)]
Merge "msm: camera: Handle actuator close before power down"

6 years agoMerge "msm: kgsl: Add a check for valid frequency of RBBM timer clock"
Linux Build Service Account [Fri, 16 Feb 2018 14:14:21 +0000 (06:14 -0800)]
Merge "msm: kgsl: Add a check for valid frequency of RBBM timer clock"

6 years agomsm: kgsl: Properly remove ref count on gpuobj_sync failure
Carter Cooper [Wed, 17 Jan 2018 16:49:00 +0000 (09:49 -0700)]
msm: kgsl: Properly remove ref count on gpuobj_sync failure

The user can pass bad data into kgsl_ioctl_gpuobj_sync(). If
_copy_from_user() fails do to bad data, undo any current
references taken through this ioctl call.

Change-Id: I56195520b9dadba20ee419658fc2cbb282b8449c
Signed-off-by: Carter Cooper <ccooper@codeaurora.org>
Signed-off-by: samit vats <svats@codeaurora.org>
6 years agomsm: secure_buffer: Add SPSS_SP_SHARED vmid
Sudarshan Rajagopalan [Thu, 29 Jun 2017 00:45:57 +0000 (17:45 -0700)]
msm: secure_buffer: Add SPSS_SP_SHARED vmid

Add support for SPSS_SP_SHARED vmid. This vmid is equivalent
to TZ VM, which can be used for sharing memory with TZ with
the assign call.

Change-Id: I10b98820796e8bab7b8275f5ddf44e8814dc0fb0
Signed-off-by: Sudarshan Rajagopalan <sudaraja@codeaurora.org>
6 years agoASoC: wcd934x-dsp-cntl: Limit array size of val
Vaishnavi Kommaraju [Thu, 15 Feb 2018 13:16:30 +0000 (18:46 +0530)]
ASoC: wcd934x-dsp-cntl: Limit array size of val

Limit size of val to WCD_DSP_CNTL_MAX_COUNT to avoid stack overflow.

CRs-Fixed: 2177167
Change-Id: I5d2b91e92305d6a485b2e8f959036504f0f55b13
Signed-off-by: Vaishnavi Kommaraju <vkommara@codeaurora.org>
6 years agoMerge "icnss: Remove vote for hardware resources when FW is not down"
Linux Build Service Account [Thu, 15 Feb 2018 20:21:05 +0000 (12:21 -0800)]
Merge "icnss: Remove vote for hardware resources when FW is not down"

6 years agomsm: kgsl: Add a check for valid frequency of RBBM timer clock
Archana Obannagari [Thu, 8 Feb 2018 11:12:24 +0000 (16:42 +0530)]
msm: kgsl: Add a check for valid frequency of RBBM timer clock

rbbmtimer_clk hardwired fixed XO frequency 19.2Mhz. clock_round_rate()
for RBBM timer clock fails with -EPERM as it is fixed. So added a
check to make sure that rbbmtimer_clk clk_set_rate() has valid
frequency. This avoids warning message in the driver log.

Change-Id: I8f8bcec88e6a39e1550bb67590e6b66dba8e7a27
Signed-off-by: Archana Obannagari <aobann@codeaurora.org>
6 years agodiag: Prevent unnecessary data ready counter update
Manoj Prabhu B [Fri, 2 Feb 2018 11:24:53 +0000 (16:54 +0530)]
diag: Prevent unnecessary data ready counter update

The patch fixes unnecessary data ready counter update by
adding proper checks.

CRs-Fixed: 2180045
Change-Id: Iff34a9c6203324cd07964d69a1f525325b3a011b
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
6 years agodiag: Increment data ready only if it is first update
Sreelakshmi Gownipalli [Wed, 22 Nov 2017 20:25:39 +0000 (12:25 -0800)]
diag: Increment data ready only if it is first update

Increment data ready only if it is not incremented earlier.

Change-Id: Ia61e638bcf18e17dfe4bef15fc8ed4168b4c1891
Signed-off-by: Sreelakshmi Gownipalli <sgownipa@codeaurora.org>
6 years agoMerge "ath10k: Set fw feature flag for no 4addr hdr padding"
Linux Build Service Account [Wed, 14 Feb 2018 21:20:11 +0000 (13:20 -0800)]
Merge "ath10k: Set fw feature flag for no 4addr hdr padding"

6 years agoMerge "msm: ais: isp: Handling buffer use after getting it freed"
Linux Build Service Account [Wed, 14 Feb 2018 13:30:59 +0000 (05:30 -0800)]
Merge "msm: ais: isp: Handling buffer use after getting it freed"

6 years agoMerge "ASoC: msm: qdsp6v2: Fix memory allocation issue in afe_sidetone"
Linux Build Service Account [Wed, 14 Feb 2018 13:30:58 +0000 (05:30 -0800)]
Merge "ASoC: msm: qdsp6v2: Fix memory allocation issue in afe_sidetone"

6 years agoMerge "ASoC: msm: Upgrade Machine Driver to Support 32 Channels"
Linux Build Service Account [Wed, 14 Feb 2018 13:30:57 +0000 (05:30 -0800)]
Merge "ASoC: msm: Upgrade Machine Driver to Support 32 Channels"

6 years agoMerge "ARM: dts: msm: Disable SPI CAN controller on msm8996 CV2X boards"
Linux Build Service Account [Wed, 14 Feb 2018 13:30:56 +0000 (05:30 -0800)]
Merge "ARM: dts: msm: Disable SPI CAN controller on msm8996 CV2X boards"

6 years agoMerge "leds: qpnp-flash-v2: Fix the macro calculations"
Linux Build Service Account [Wed, 14 Feb 2018 13:30:55 +0000 (05:30 -0800)]
Merge "leds: qpnp-flash-v2: Fix the macro calculations"

6 years agoMerge "defconfig: msm: Enable PCAN-USB for msm8996"
Linux Build Service Account [Wed, 14 Feb 2018 02:52:11 +0000 (18:52 -0800)]
Merge "defconfig: msm: Enable PCAN-USB for msm8996"

6 years agoMerge "ARM: dts: msm: Remove rh850 device node from mizar"
Linux Build Service Account [Wed, 14 Feb 2018 02:52:10 +0000 (18:52 -0800)]
Merge "ARM: dts: msm: Remove rh850 device node from mizar"

6 years agoMerge "eventpoll.h: fix epoll event masks"
Linux Build Service Account [Tue, 13 Feb 2018 20:17:09 +0000 (12:17 -0800)]
Merge "eventpoll.h: fix epoll event masks"

6 years agoMerge "USB: gadget: Replace %pM with %pm"
Linux Build Service Account [Tue, 13 Feb 2018 20:17:08 +0000 (12:17 -0800)]
Merge "USB: gadget: Replace %pM with %pm"

6 years agoMerge "SDE: HDMI: Disable HPD if non-pluggable flag is set"
Linux Build Service Account [Tue, 13 Feb 2018 20:17:06 +0000 (12:17 -0800)]
Merge "SDE: HDMI: Disable HPD if non-pluggable flag is set"

6 years agoMerge "DRM: DBA: Adding hardware power sequence to DBA power off code"
Linux Build Service Account [Tue, 13 Feb 2018 20:17:05 +0000 (12:17 -0800)]
Merge "DRM: DBA: Adding hardware power sequence to DBA power off code"

6 years agoMerge "DRM: SDE: Avoid vblank request to the same state"
Linux Build Service Account [Tue, 13 Feb 2018 20:17:04 +0000 (12:17 -0800)]
Merge "DRM: SDE:  Avoid vblank request to the same state"

6 years agoASoC: msm: qdsp6v2: Fix memory allocation issue in afe_sidetone
Aditya Bavanari [Tue, 13 Feb 2018 13:54:40 +0000 (19:24 +0530)]
ASoC: msm: qdsp6v2: Fix memory allocation issue in afe_sidetone

When afe sidetone params are set, memory allocation is not
done before packing the param data. Allocate memory before
packing the param data to fix this.

CRs-Fixed: 2189218
Change-Id: I38cc5a1a948228235e178f46bfce99fa8dec3bd8
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
6 years agoUSB: gadget: Replace %pM with %pm
Ajay Agarwal [Wed, 25 Oct 2017 09:46:11 +0000 (15:16 +0530)]
USB: gadget: Replace %pM with %pm

commit c173d5504d08ca0 ("USB: gadget: Replace %pK with
%pM") modified the MAC address format specifier to %pM.
So when the host PC asks for the MAC address, the
device sends the address with colons present. Linux
Host machines cannot handle this and ECM function fails
to bind. Fix this by changing the format specifier to
%pm which removes the colons and sends the MAC address.

Change-Id: Id3eebfa371bd2cf976ee0f44e8a7b54690f43e77
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
6 years agoath10k: Set fw feature flag for no 4addr hdr padding
Rakesh Pillai [Tue, 13 Feb 2018 06:38:34 +0000 (12:08 +0530)]
ath10k: Set fw feature flag for no 4addr hdr padding

WCN3990 gives no padding for llc header in the rx pkts.
The rounding off of hdrlen causes extra bits from LLC header
being stripped off and hence the pkt is misinterpreted and
subsequently discarded.

Set the fw flag to skip the hdrlen rounding off for wcn3990.

CRs-Fixed: 2189079
Change-Id: I038791707977f0d4ee81986e6c76d86606a69d9c
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
6 years agospmi: msm: Add virtual SPMI PMIC front end driver
Yimin Peng [Thu, 8 Feb 2018 08:23:18 +0000 (16:23 +0800)]
spmi: msm: Add virtual SPMI PMIC front end driver

Add basic infrastructure for SPMI front end driver. Frontend driver
communicates with backend to service SPMI request from clients.

Change-Id: Icff567a2f224fb49f370bf760287d9d3615a3325
Signed-off-by: Yimin Peng <yiminp@codeaurora.org>
6 years agoDRM: DBA: Adding hardware power sequence to DBA power off code
Camus Wong [Mon, 5 Feb 2018 22:14:44 +0000 (17:14 -0500)]
DRM: DBA: Adding hardware power sequence to DBA power off code

Adding power off register sequence to reduce power in power off.
Adding switch GPIO sequence in power on/off call.

Change-Id: Ifbe57852a43e1b1d0f05594a84a10540cfeb6be7
Signed-off-by: Camus Wong <camusw@codeaurora.org>
6 years agoSDE: HDMI: Disable HPD if non-pluggable flag is set
Camus Wong [Fri, 29 Dec 2017 16:50:13 +0000 (11:50 -0500)]
SDE: HDMI: Disable HPD if non-pluggable flag is set

For non-pluggable display, HPD hardware should be disabled.
HPD related clocks should also shutdown during suspend.

Change-Id: I59475b07b44c2a7f1784d160263a6bca7701a702
Signed-off-by: Camus Wong <camusw@codeaurora.org>
6 years agoMerge "ARM: dts: msm: disable wdog wakeup on msm8996 vplatform"
Linux Build Service Account [Mon, 12 Feb 2018 13:01:45 +0000 (05:01 -0800)]
Merge "ARM: dts: msm: disable wdog wakeup on msm8996 vplatform"

6 years agoMerge "ASoC: msm: qdsp6v2: Add support to query AVCS version info"
Linux Build Service Account [Mon, 12 Feb 2018 13:01:44 +0000 (05:01 -0800)]
Merge "ASoC: msm: qdsp6v2: Add support to query AVCS version info"

6 years agoMerge "ASoC: msm: Update Audio Header File for 32 Channels Support"
Linux Build Service Account [Mon, 12 Feb 2018 13:01:42 +0000 (05:01 -0800)]
Merge "ASoC: msm: Update Audio Header File for 32 Channels Support"

6 years agomsm: ais: isp: Handling buffer use after getting it freed
Rahul Sharma [Mon, 12 Feb 2018 05:55:36 +0000 (11:25 +0530)]
msm: ais: isp: Handling buffer use after getting it freed

In the code, start_fetch can try to access the
buffer pointer variable after free, as the
same pointer can be freed at RELEASE_BUF call too
at the same time. Hence fixing this race condition.

Change-Id: Ifb643bace27064e1324d714aebed706b48e44b65
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
6 years agoMerge "ARM: dts: msm: refine device tree hierarchy for msm8996 vplatform"
Linux Build Service Account [Mon, 12 Feb 2018 05:34:57 +0000 (21:34 -0800)]
Merge "ARM: dts: msm: refine device tree hierarchy for msm8996 vplatform"

6 years agoARM: dts: msm: disable wdog wakeup on msm8996 vplatform
Yimin Peng [Mon, 12 Feb 2018 03:24:52 +0000 (11:24 +0800)]
ARM: dts: msm: disable wdog wakeup on msm8996 vplatform

The wdog always bites with the flag when guest virtual machine enters
into suspend.

Change-Id: Ie239dcb8a48cdaffcddf923a3114210ec5947ff9
Signed-off-by: Yimin Peng <yiminp@codeaurora.org>
6 years agoeventpoll.h: fix epoll event masks
Greg KH [Wed, 8 Mar 2017 18:03:03 +0000 (19:03 +0100)]
eventpoll.h: fix epoll event masks

[resend due to me forgetting to cc: linux-api the first time around I
posted these back on Feb 23]

From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

When userspace tries to use these defines, it complains that it needs to
be an unsigned 1 that is shifted, so libc implementations have to create
their own version.  Fix this by defining it properly so that libcs can
just use the kernel uapi header.

Change-Id: Iac4e9f2a30ef3ea444c984c9eb8d6c5edc1f8264
Reported-by: Elliott Hughes <enh@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: 6f051e4a685b768f3704c7c069aa1edee3010622
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
[schikk@codeaurora.org: resolved merge conflicts]
Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
6 years agomsm: ipa: Prevent deletion of the default route rule
Ghanim Fodi [Wed, 31 Jan 2018 12:49:37 +0000 (14:49 +0200)]
msm: ipa: Prevent deletion of the default route rule

The first APPS default routing table rule is installed
at the IPA driver initialization. To prevent routing
exception, this rule cannot be deleted by user application.
This change prevents deleting this rule.

Change-Id: Ia27434fd24a15fea5956018a1271b11bbe227df7
CRs-fixed: 2165859
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
6 years agoARM: dts: msm: refine device tree hierarchy for msm8996 vplatform
Zhiqiang Tu [Tue, 6 Feb 2018 07:08:56 +0000 (15:08 +0800)]
ARM: dts: msm: refine device tree hierarchy for msm8996 vplatform

Move the basic part and audio common part to separated device tree
include files for msm8996 virtual platform.

Change-Id: Id1847f6bbf083fb82230f6eb67d32fea401baa5d
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
6 years agoMerge "msm: ais: Synchronize v4l2 subscribe and unsubscribe event"
Linux Build Service Account [Sat, 10 Feb 2018 01:07:17 +0000 (17:07 -0800)]
Merge "msm: ais: Synchronize v4l2 subscribe and unsubscribe event"

6 years agoMerge "ARM: dts: qcom: add wdog to the baseline msm8996 vplatform"
Linux Build Service Account [Sat, 10 Feb 2018 01:07:15 +0000 (17:07 -0800)]
Merge "ARM: dts: qcom: add wdog to the baseline msm8996 vplatform"

6 years agoMerge "msm: thermal: Add support to monitor only one tsens for VDD restriction"
Linux Build Service Account [Sat, 10 Feb 2018 01:07:14 +0000 (17:07 -0800)]
Merge "msm: thermal: Add support to monitor only one tsens for VDD restriction"

6 years agoMerge "msm: ais: sensor: Fix out of bound read for region params"
Linux Build Service Account [Fri, 9 Feb 2018 16:25:36 +0000 (08:25 -0800)]
Merge "msm: ais: sensor: Fix out of bound read for region params"

6 years agoMerge "soc: qcom: hab: fix the panic in shmem device shutdown"
Linux Build Service Account [Fri, 9 Feb 2018 10:11:52 +0000 (02:11 -0800)]
Merge "soc: qcom: hab: fix the panic in shmem device shutdown"

6 years agomsm: camera: Handle actuator close before power down
Vijay kumar Tumati [Thu, 8 Feb 2018 09:38:11 +0000 (15:08 +0530)]
msm: camera: Handle actuator close before power down

In case when userspace process is killed, actuator
subdev is first closed and then power down is called.
In this sequence, we need to handle actuator states
properly to shutdown all the regulators during close.

Change-Id: I843b463a1b576971e16d1554ded20984dd0ec436
Signed-off-by: Vijay kumar Tumati <vtumati@codeaurora.org>