Commit graph

597205 commits

Author SHA1 Message Date
Linux Build Service Account
8dfc7eb43e Merge "Revert "ARM: dts: msm: Enable ACD functionality for SDM660 silver cluster"" 2018-02-26 19:08:42 -08:00
Linux Build Service Account
33ed817ce4 Merge "f_audio_source: Implement get_alt() support" 2018-02-26 19:08:40 -08:00
Linux Build Service Account
17c46a0478 Merge "cnss2: Check pcie link state when resume" 2018-02-26 06:11:55 -08:00
Linux Build Service Account
d21e44ba84 Merge "trace: ipc_logging: fix compile error when disable ipc_logging" 2018-02-26 06:11:54 -08:00
Linux Build Service Account
301289fc38 Merge "msm: camera_v2: Define new mcros for result success" 2018-02-26 06:11:53 -08:00
Vijayavardhan Vennapusa
d7bff7723d 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>
2018-02-26 02:38:50 -08:00
Tirupathi Reddy
5a07b7336a Revert "ARM: dts: msm: Enable ACD functionality for SDM660 silver cluster"
This reverts commit 791e28b55c.
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>
2018-02-26 10:38:10 +05:30
Mohammed Javid
c2c950b468 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>
2018-02-25 03:58:38 -08:00
Ramachandran Venkataramani
8e13fa3873 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>
2018-02-23 17:26:47 -08:00
Linux Build Service Account
8be37176ca Merge "spmi: msm: Add virtual SPMI PMIC front end driver" 2018-02-23 10:39:10 -08:00
Trishansh Bhardwaj
789eccbec6 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>
2018-02-23 16:50:27 +05:30
Linux Build Service Account
d633b247ea Merge "diag: Validate copying length against source buffer length" 2018-02-23 03:07:59 -08:00
Linux Build Service Account
867bd83b1f Merge "input: misc: hbtp_input: fix list corruption in completion queue" 2018-02-22 13:00:57 -08:00
Vevek Venkatesan
aef3e26918 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>
2018-02-22 18:52:12 +05:30
Linux Build Service Account
5553c6cbbb Merge "msm: kgsl: Prevent race condition when freeing memory" 2018-02-22 03:01:07 -08:00
Deepak Kumar
c4e16abf94 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>
2018-02-21 21:27:29 -08:00
Linux Build Service Account
795ffc9a3b Merge "cfg80211: Define new API to send reg change event" 2018-02-21 19:26:27 -08:00
Linux Build Service Account
3f33435ef1 Merge "drm/msm/sde: setup alpha and bit format on qseedv3" 2018-02-21 06:59:18 -08:00
Linux Build Service Account
4bf5a81b41 Merge "drm: Add and handle new aspect ratios in DRM layer" 2018-02-21 00:41:50 -08:00
Linux Build Service Account
c72ffa8177 Merge "drm: Add aspect ratio parsing in DRM layer" 2018-02-21 00:41:49 -08:00
Dhaval Patel
ed6956bb2f 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>
2018-02-20 19:06:49 -08:00
smanag
6ff791a34d 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>
2018-02-20 18:01:58 -08:00
Shashank Sharma
0d6471ef67 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>
2018-02-20 14:20:37 -08:00
Shashank Sharma
87d2f08811 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>
2018-02-20 14:03:34 -08:00
Hardik Arya
63b076dbd0 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>
2018-02-20 15:13:44 +05:30
Lei wang
c14beab390 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>
2018-02-20 00:52:39 -08:00
Kiran Kumar Lokere
98d5572dd2 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>
2018-02-19 22:39:51 -08:00
Linux Build Service Account
a961632a48 Merge "msm: kgsl: Properly remove ref count on gpuobj_sync failure" 2018-02-19 16:07:24 -08:00
Mohammed Javid
d0ad541f26 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>
2018-02-19 03:12:49 -08:00
Manaf Meethalavalappu Pallikunhi
835bbf01f4 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>
2018-02-18 11:54:05 -08:00
Manaf Meethalavalappu Pallikunhi
354770e7c5 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>
2018-02-18 11:53:23 -08:00
Linux Build Service Account
b8cb4d63cb Merge "msm: secure_buffer: Add SPSS_SP_SHARED vmid" 2018-02-16 14:41:53 -08:00
Linux Build Service Account
035b037e74 Merge "msm: camera: Add RAW12 support for meta data" 2018-02-16 14:41:52 -08:00
Linux Build Service Account
47aeb59367 Merge "msm: camera: Handle actuator close before power down" 2018-02-16 14:41:50 -08:00
Linux Build Service Account
5b91f0e883 Merge "msm: kgsl: Add a check for valid frequency of RBBM timer clock" 2018-02-16 06:14:20 -08:00
Carter Cooper
4ae2e3bd18 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>
2018-02-16 15:22:12 +05:30
Sudarshan Rajagopalan
b07c54bfd1 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>
2018-02-16 01:35:43 -08:00
Linux Build Service Account
38edeeedb5 Merge "icnss: Remove vote for hardware resources when FW is not down" 2018-02-15 12:21:04 -08:00
Archana Obannagari
bb5ab9b337 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>
2018-02-15 17:23:33 +05:30
Manoj Prabhu B
26f01d728e 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>
2018-02-15 13:32:53 +05:30
Sreelakshmi Gownipalli
29ab15b994 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>
2018-02-14 23:18:40 -08:00
Linux Build Service Account
1abb9c9f07 Merge "ath10k: Set fw feature flag for no 4addr hdr padding" 2018-02-14 13:20:10 -08:00
Linux Build Service Account
c8ca44d520 Merge "msm: ais: isp: Handling buffer use after getting it freed" 2018-02-14 05:30:59 -08:00
Linux Build Service Account
c69f889e85 Merge "ASoC: msm: qdsp6v2: Fix memory allocation issue in afe_sidetone" 2018-02-14 05:30:58 -08:00
Linux Build Service Account
26c7349d3a Merge "ASoC: msm: Upgrade Machine Driver to Support 32 Channels" 2018-02-14 05:30:57 -08:00
Linux Build Service Account
2788d67a50 Merge "ARM: dts: msm: Disable SPI CAN controller on msm8996 CV2X boards" 2018-02-14 05:30:56 -08:00
Linux Build Service Account
a31a1a0c2e Merge "leds: qpnp-flash-v2: Fix the macro calculations" 2018-02-14 05:30:54 -08:00
Linux Build Service Account
68f5ca4182 Merge "defconfig: msm: Enable PCAN-USB for msm8996" 2018-02-13 18:52:11 -08:00
Linux Build Service Account
e467eef0ec Merge "ARM: dts: msm: Remove rh850 device node from mizar" 2018-02-13 18:52:09 -08:00
Linux Build Service Account
a7dbc5dea2 Merge "eventpoll.h: fix epoll event masks" 2018-02-13 12:17:09 -08:00