Commit graph

597230 commits

Author SHA1 Message Date
Camus Wong
74f60692b1 drm/msm-hyp: overwrite hyp ioctls used by libgbm
Handle ioctls called by libgbm in the virtual kernel driver
to support front-end library and avoid modifying libgbm.

Change-Id: Ie4e567cea7338b4ba68080decf85dfa45e040dac
Signed-off-by: Camus Wong <camusw@codeaurora.org>
2018-03-06 09:54:53 -05:00
Linux Build Service Account
99b73ed59a Merge "soc: qcom: scm_qcpe: Derive HAB id from HAB vmid dt node" 2018-03-05 14:12:24 -08:00
Linux Build Service Account
b6633295ce Merge "msm: kgsl: Limit the maximum number of contexts" 2018-03-05 14:12:22 -08:00
Linux Build Service Account
307aaed1e4 Merge "msm: mdss: Fix scalar LUT handling" 2018-03-05 14:12:21 -08:00
Harshdeep Dhatt
3f5a22eca9 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>
2018-03-05 01:17:09 -08:00
Harshdeep Dhatt
b67de7b731 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>
2018-03-05 12:10:15 +05:30
Amit Blay
552c3a28c9 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>
2018-03-04 10:06:03 +02:00
Linux Build Service Account
a337c17ceb Merge "msm: kgsl: Correct memory type update in IOCTL_KGSL_GPUOBJ_SET_INFO" 2018-03-02 23:05:09 -08:00
Linux Build Service Account
6e7aa98702 Merge "ARM: dts: msm: Add support for modem test tools on msm8996 vplatform" 2018-03-02 23:05:08 -08:00
Linux Build Service Account
1826c38271 Merge "soc: qcom: hab: clean the pr_fmt redefined build warning" 2018-03-02 23:05:07 -08:00
Linux Build Service Account
37a1744d91 Merge "defconfig: msm: Enable FW loader user space helper for GVM" 2018-03-02 23:05:05 -08:00
Deepak Kumar
d567b416ed 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>
2018-03-02 09:47:11 -08:00
Ramachandran Venkataramani
55ebadeee8 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>
2018-03-01 17:38:42 -08:00
Sreelakshmi Gownipalli
94cda67dae 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>
2018-03-01 11:07:39 -08:00
Ferry Zhou
a65186b18a 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>
2018-02-28 22:58:41 -08:00
Animesh Kishore
4c2dad03b7 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>
2018-02-28 12:12:16 +05:30
Linux Build Service Account
07ec991ea1 Merge "DBA: add VREG sequence in power on / off sequence" 2018-02-27 22:06:13 -08:00
Linux Build Service Account
56042f19f4 Merge "msm: kgsl: Fix reading lm_sequence in _execute_reg_sequence()" 2018-02-27 22:06:12 -08:00
Linux Build Service Account
ee190b500c Merge "ASoC: wcd934x-dsp-cntl: Limit array size of val" 2018-02-27 22:06:11 -08:00
Archana Sriram
b8ba9c35c2 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>
2018-02-26 22:43:21 -08:00
Yong Ding
7fc5b94897 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>
2018-02-26 19:19:13 -08:00
Linux Build Service Account
a6ff4b8ab4 Merge "ARM: dts: qcom: Remove lpm performance index for sdm660" 2018-02-26 19:08:43 -08:00
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
d9fe3d83fa 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>
2018-02-25 21:16:41 -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
Camus Wong
d61aa3623d 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>
2018-02-25 16:54:44 -08:00
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