OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
6 years agoMerge "f2fs: Set GF_NOFS in read_cache_page_gfp while doing f2fs_quota_read"
Linux Build Service Account [Fri, 13 Apr 2018 01:21:48 +0000 (18:21 -0700)]
Merge "f2fs: Set GF_NOFS in read_cache_page_gfp while doing f2fs_quota_read"

6 years agoMerge "USB: f_accessory: Check dev pointer before decoding ctrl request"
Linux Build Service Account [Thu, 12 Apr 2018 02:18:42 +0000 (19:18 -0700)]
Merge "USB: f_accessory: Check dev pointer before decoding ctrl request"

6 years agoMerge "ath10k: enable neighbor solicitation offload in wow suspend"
Linux Build Service Account [Thu, 12 Apr 2018 02:18:41 +0000 (19:18 -0700)]
Merge "ath10k: enable neighbor solicitation offload in wow suspend"

6 years agoMerge "ARM: dts: msm: add qrng for gvm on msm8996"
Linux Build Service Account [Thu, 12 Apr 2018 02:18:40 +0000 (19:18 -0700)]
Merge "ARM: dts: msm: add qrng for gvm on msm8996"

6 years agoMerge "ais: report csid error event to user"
Linux Build Service Account [Thu, 12 Apr 2018 02:18:39 +0000 (19:18 -0700)]
Merge "ais: report csid error event to user"

6 years agof2fs: Set GF_NOFS in read_cache_page_gfp while doing f2fs_quota_read
Ritesh Harjani [Wed, 14 Mar 2018 10:16:37 +0000 (15:46 +0530)]
f2fs: Set GF_NOFS in read_cache_page_gfp while doing f2fs_quota_read

Quota code itself is serializing the operations by taking mutex_lock.
It seems a below race can happen if GF_NOFS is not used in f2fs_quota_read

__switch_to+0x88
__schedule+0x5b0
schedule+0x78
schedule_preempt_disabled+0x20
__mutex_lock_slowpath+0xdc    //mutex owner is itself
mutex_lock+0x2c
dquot_commit+0x30 //mutex_lock(&dqopt->dqio_mutex);
dqput+0xe0
__dquot_drop+0x80
dquot_drop+0x48
f2fs_evict_inode+0x218
evict+0xa8
dispose_list+0x3c
prune_icache_sb+0x58
super_cache_scan+0xf4
do_shrink_slab+0x208
shrink_slab.part.40+0xac
shrink_zone+0x1b0
do_try_to_free_pages+0x25c
try_to_free_pages+0x164
__alloc_pages_nodemask+0x534
do_read_cache_page+0x6c
read_cache_page+0x14
f2fs_quota_read+0xa4
read_blk+0x54
find_tree_dqentry+0xe4
find_tree_dqentry+0xb8
find_tree_dqentry+0xb8
find_tree_dqentry+0xb8
qtree_read_dquot+0x68
v2_read_dquot+0x24
dquot_acquire+0x5c // mutex_lock(&dqopt->dqio_mutex);
dqget+0x238
__dquot_initialize+0xd4
dquot_initialize+0x10
dquot_file_open+0x34
f2fs_file_open+0x6c
do_dentry_open+0x1e4
vfs_open+0x6c
path_openat+0xa20
do_filp_open+0x4c
do_sys_open+0x178

Change-Id: I6cc8417ad00426fd93bb42841e20217c0e44103a
Signed-off-by: Ritesh Harjani <riteshh@codeaurora.org>
6 years agoUSB: f_accessory: Check dev pointer before decoding ctrl request
Vijayavardhan Vennapusa [Wed, 4 Apr 2018 05:32:28 +0000 (11:02 +0530)]
USB: f_accessory: Check dev pointer before decoding ctrl request

In case of poweroff charging mode, accessory function instance
is not created and due to this, _acc_dev will be NULL. If target
is connected to Accessory dock in poweroff charging mode, there
is a chance dev pointer is accessed, which is NULL. Hence add a
check before processing control request and return error if it is
NULL.

Change-Id: I4f1deb9d764b8c0bd1d7837cbc43a2933167f568
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
6 years agoath10k: enable neighbor solicitation offload in wow suspend
Sarada Prasanna Garnayak [Fri, 5 Jan 2018 10:43:20 +0000 (16:13 +0530)]
ath10k: enable neighbor solicitation offload in wow suspend

In IPV6 the neighbor solicitations are used by nodes to determine
the link layer address of a neighbor and neighbor advertisements
are used by nodes to respond to a neighbor solicitation message.

During WOW suspend offload the neighbor solicitation packet handling
method to WLAN firmware, this adds support to prevent the device
wakeup by neighbor solicitation packet.

CRs-Fixed: 2217590
Change-Id: I5d860e6651b7c62223d9d00886fc386dcf647cab
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
6 years agoARM: dts: msm: add qrng for gvm on msm8996
Parai Wang [Mon, 9 Apr 2018 07:53:29 +0000 (15:53 +0800)]
ARM: dts: msm: add qrng for gvm on msm8996

Add device node qualcomm hardware random generator, so that to provide
real random number if qrng is enabled.
This is for security purpose for the application.

Change-Id: Ib359b39ec5c32cb05ed1e38c1ad377657e5c47ae
Signed-off-by: Parai Wang <fpwang@codeaurora.org>
6 years agomsm: kgsl: Enhance reading lm_sequence in _execute_reg_sequence()
Archana Sriram [Mon, 26 Mar 2018 07:44:04 +0000 (13:14 +0530)]
msm: kgsl: Enhance reading lm_sequence in _execute_reg_sequence()

Modified conditional checks to read lm_sequence so as to avoid
the possibility of pointer overflow.

CRs-Fixed: 2212443
Change-Id: I72b30e35996c40f23fc81739e27724b1188f1c05
Signed-off-by: Archana Sriram <apsrir@codeaurora.org>
6 years agoMerge "clk: msm: osm: Update maximum number of bytes to read from buffer"
Linux Build Service Account [Sun, 8 Apr 2018 14:55:03 +0000 (07:55 -0700)]
Merge "clk: msm: osm: Update maximum number of bytes to read from buffer"

6 years agoMerge "qseecom: fix issues when processing blocked listener request"
Linux Build Service Account [Sun, 8 Apr 2018 02:52:38 +0000 (19:52 -0700)]
Merge "qseecom: fix issues when processing blocked listener request"

6 years agoMerge "qseecom: block system signals when waiting for listener available"
Linux Build Service Account [Sun, 8 Apr 2018 02:52:37 +0000 (19:52 -0700)]
Merge "qseecom: block system signals when waiting for listener available"

6 years agoMerge "Revert "msm: vidc: Add support for decoder STOP command""
Linux Build Service Account [Sun, 8 Apr 2018 02:52:36 +0000 (19:52 -0700)]
Merge "Revert "msm: vidc: Add support for decoder STOP command""

6 years agoMerge "ASoC: msm: qdsp6v2: add 24b capture support for tert mi2s"
Linux Build Service Account [Sun, 8 Apr 2018 02:52:35 +0000 (19:52 -0700)]
Merge "ASoC: msm: qdsp6v2: add 24b capture support for tert mi2s"

6 years agoMerge "[drm/sde] fix uninitialized src/dst size in sde plane"
Linux Build Service Account [Sun, 8 Apr 2018 02:52:33 +0000 (19:52 -0700)]
Merge "[drm/sde] fix uninitialized src/dst size in sde plane"

6 years agoqseecom: fix issues when processing blocked listener request
Zhen Kong [Sat, 3 Feb 2018 01:21:04 +0000 (17:21 -0800)]
qseecom: fix issues when processing blocked listener request

When processing blocked listener request, ptr_app's app_blocked
flag should be set to prevent it being unloaded at this time;
Besides, need to check unblock request's scm_call response result
to see if it is blocked again; and removed redundant codes.

Change-Id: I2d72a88e9e600d6b7e944ae978b9d89a7b6db242
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
6 years agoqseecom: block system signals when waiting for listener available
Zhen Kong [Sat, 3 Feb 2018 01:21:04 +0000 (17:21 -0800)]
qseecom: block system signals when waiting for listener available

Make change to block system signals when qseecom is waiting for
a blocked listener becomes available. This will prevent qseecom
being waken up by power collapse and returning to kernel, which
may cause XPU violation as TA req/resp buffer is still XPU protected
at this time

Change-Id: Ie5ea16f11ad653937236de042afb1bb5710123e6
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
6 years ago[drm/sde] fix uninitialized src/dst size in sde plane
Camus Wong [Wed, 4 Apr 2018 15:13:02 +0000 (11:13 -0400)]
[drm/sde] fix uninitialized src/dst size in sde plane

SDE plane src/dst size is uninitialized and programmed to hw when
only color format is changed. This change will only configure hw
when src/dst size is calculated.

Change-Id: I5953f899a2c503b1d8f2577c28a67711b9ed9a67
Signed-off-by: Camus Wong <camusw@codeaurora.org>
Signed-off-by: Rahul Sharma <rahsha@codeaurora.org>
6 years agoMerge "diag: Allocate DCI memory using vzalloc instead of kzalloc"
Linux Build Service Account [Fri, 6 Apr 2018 01:47:25 +0000 (18:47 -0700)]
Merge "diag: Allocate DCI memory using vzalloc instead of kzalloc"

6 years agoMerge "icnss: Consider recovery as FW down"
Linux Build Service Account [Fri, 6 Apr 2018 01:47:24 +0000 (18:47 -0700)]
Merge "icnss: Consider recovery as FW down"

6 years agoMerge "msm: ipa2: Fix IPA kernel NULL pointer dereference"
Linux Build Service Account [Fri, 6 Apr 2018 01:47:23 +0000 (18:47 -0700)]
Merge "msm: ipa2: Fix IPA kernel NULL pointer dereference"

6 years agoMerge "fbdev: msm: check buffer size before writing to user buffer"
Linux Build Service Account [Fri, 6 Apr 2018 01:47:21 +0000 (18:47 -0700)]
Merge "fbdev: msm: check buffer size before writing to user buffer"

6 years agoMerge "xhci: plat: Avoid xhci_resume if skip_resume flag is set"
Linux Build Service Account [Fri, 6 Apr 2018 01:47:20 +0000 (18:47 -0700)]
Merge "xhci: plat: Avoid xhci_resume if skip_resume flag is set"

6 years agoais: report csid error event to user
Andy Sun [Thu, 29 Mar 2018 08:17:05 +0000 (16:17 +0800)]
ais: report csid error event to user

Enable CSID error interrupts, and sending the error status
to user mode components as v4l2 event.

Change-Id: I62a08a88ebc39e1192136ba1c9179f709f5439f5
Signed-off-by: Andy Sun <bins@codeaurora.org>
6 years agoRevert "msm: vidc: Add support for decoder STOP command"
Sanjay Singh [Wed, 4 Apr 2018 11:01:12 +0000 (16:31 +0530)]
Revert "msm: vidc: Add support for decoder STOP command"

This reverts commit 84d22be9dca ("msm: vidc: Add support for decoder
 STOP command")
There is regression for Video playback with this commit. Therefore,
it needs to be reverted.
Change-Id: Ibc4ca31c48e148063de60f59ea90d693d5657163
Signed-off-by: Sanjay Singh <sisanj@codeaurora.org>
6 years agoclk: msm: osm: Update maximum number of bytes to read from buffer
Taniya Das [Thu, 5 Apr 2018 05:29:40 +0000 (10:59 +0530)]
clk: msm: osm: Update maximum number of bytes to read from buffer

Currently the number of maximum bytes to be copied from buffer is
incorrectly using the size of buffer. Replace to use the count
which is the maximum number of bytes to be read.

Change-Id: I797c4dc0af626e347dfef43a754d0c469585ba55
Signed-off-by: Taniya Das <tdas@codeaurora.org>
6 years agomsm: ipa2: Fix IPA kernel NULL pointer dereference
Mohammed Javid [Mon, 12 Mar 2018 08:50:49 +0000 (14:20 +0530)]
msm: ipa2: Fix IPA kernel NULL pointer dereference

Add changes to fix IPA kernel NULL pointer dereference issue

Change-Id: I090d900688f13bc80616e7a3c49f7e1d6cf1be0b
Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
6 years agoicnss: Consider recovery as FW down
Sameer Thalappil [Thu, 5 Apr 2018 01:20:16 +0000 (18:20 -0700)]
icnss: Consider recovery as FW down

When WLAN driver encounters FW timeout scenarios, it may check if the
FW is down by calling icnss_is_fw_down() API. Recovery should also be
considered as FW down, as FW has not completely recovered and ready
for WLAN communication.

Change-Id: I4c9e15aacc5605dca823e2cfcbf6f87152aaa78e
CRs-Fixed: 2218795
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
6 years agofbdev: msm: check buffer size before writing to user buffer
Harsh Sahu [Fri, 23 Mar 2018 07:15:52 +0000 (00:15 -0700)]
fbdev: msm: check buffer size before writing to user buffer

Check the number of bytes to copy against the size of the
user buffer before copy to user to avoid buffer overflow.

Change-Id: Icdd3d4e755deca19fa431e903620bd9e4c701c89
Signed-off-by: Harsh Sahu <hsahu@codeaurora.org>
6 years agoMerge "slimbus: Avoid uninitialized variable access"
Linux Build Service Account [Wed, 4 Apr 2018 18:24:27 +0000 (11:24 -0700)]
Merge "slimbus: Avoid uninitialized variable access"

6 years agoMerge "msm: mdss: Fix for wrong length in copy_to_user"
Linux Build Service Account [Wed, 4 Apr 2018 18:24:25 +0000 (11:24 -0700)]
Merge "msm: mdss: Fix for wrong length in copy_to_user"

6 years agoMerge "ARM: dts: msm: remove modem region reserved on APQ8096 ADP"
Linux Build Service Account [Tue, 3 Apr 2018 21:37:37 +0000 (14:37 -0700)]
Merge "ARM: dts: msm: remove modem region reserved on APQ8096 ADP"

6 years agoMerge "usb: gsi: Don't disable endpoints as part of flow control"
Linux Build Service Account [Tue, 3 Apr 2018 21:37:35 +0000 (14:37 -0700)]
Merge "usb: gsi: Don't disable endpoints as part of flow control"

6 years agoMerge "wcnss: update the regulator parsing and config method"
Linux Build Service Account [Tue, 3 Apr 2018 21:37:32 +0000 (14:37 -0700)]
Merge "wcnss: update the regulator parsing and config method"

6 years agoMerge "input: touchscreen: Fix uninitialized variable usage in Atmel driver"
Linux Build Service Account [Tue, 3 Apr 2018 21:37:31 +0000 (14:37 -0700)]
Merge "input: touchscreen: Fix uninitialized variable usage in Atmel driver"

6 years agoMerge "msm: sde: check buffer size before writing to user buffer"
Linux Build Service Account [Tue, 3 Apr 2018 21:37:29 +0000 (14:37 -0700)]
Merge "msm: sde: check buffer size before writing to user buffer"

6 years agoMerge "u_ctrl_qti: Increase MAX_QTI_PKT_SIZE to 8K"
Linux Build Service Account [Tue, 3 Apr 2018 21:37:27 +0000 (14:37 -0700)]
Merge "u_ctrl_qti: Increase MAX_QTI_PKT_SIZE to 8K"

6 years agowcnss: update the regulator parsing and config method
Sarada Prasanna Garnayak [Tue, 3 Apr 2018 11:10:49 +0000 (16:40 +0530)]
wcnss: update the regulator parsing and config method

Use the resource managed regulator API for the wcnss
regulator parsing and configuration.

CRs-Fixed: 2214888
Change-Id: Ib376893c26bb9aa797e7e9df25cc7302a84a3726
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
6 years agowcnss: fix the wcnss power up sequence after ssr
Sarada Prasanna Garnayak [Thu, 22 Mar 2018 15:22:40 +0000 (20:52 +0530)]
wcnss: fix the wcnss power up sequence after ssr

Update the voltage regulator enable/disable status
during proxy vote and unvote request by wcnss wlan
module.

CRs-Fixed: 2211050
Change-Id: I334df98612b0915fe00d5390fbcd37c95e9f6509
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
6 years agoMerge "adv7481: Enable ADV7481 driver on Auto CDP"
Linux Build Service Account [Tue, 3 Apr 2018 08:19:59 +0000 (01:19 -0700)]
Merge "adv7481: Enable ADV7481 driver on Auto CDP"

6 years agomsm: sde: check buffer size before writing to user buffer
Harsh Sahu [Fri, 23 Mar 2018 07:29:30 +0000 (00:29 -0700)]
msm: sde: check buffer size before writing to user buffer

Check the number of bytes to copy against the size of the
user buffer before copy to user to avoid buffer overflow.

Change-Id: I95083227cfefaf1a81815296145b0c370127e061
Signed-off-by: Harsh Sahu <hsahu@codeaurora.org>
6 years agoinput: touchscreen: Fix uninitialized variable usage in Atmel driver
Venkata Prahlad Valluru [Tue, 3 Apr 2018 06:25:52 +0000 (11:55 +0530)]
input: touchscreen: Fix uninitialized variable usage in Atmel driver

Initialize variables that are passed by reference, so that
they can be used safely afterwards, irrespective of the
called function actions.

Change-Id: Ib7fa26b0682c719cabdb9cb94f206a93e3eaaf63
Signed-off-by: Venkata Prahlad Valluru <vvalluru@codeaurora.org>
6 years agoARM: dts: msm: remove modem region reserved on APQ8096 ADP
Yimin Peng [Thu, 29 Mar 2018 09:07:34 +0000 (17:07 +0800)]
ARM: dts: msm: remove modem region reserved on APQ8096 ADP

DRAM diet requires to remove reserved modem memory.

Change-Id: I919ee1b9cc003d9851a7ec92ba116020044742cf
Signed-off-by: Yimin Peng <yiminp@codeaurora.org>
6 years agodiag: Allocate DCI memory using vzalloc instead of kzalloc
Hardik Arya [Thu, 8 Mar 2018 06:20:49 +0000 (11:50 +0530)]
diag: Allocate DCI memory using vzalloc instead of kzalloc

Currently there is a possibility of kmalloc failing
when system is running low on memory condition.
The patch changes the dci memory allocation from
kzalloc to vzalloc.

CRs-Fixed: 2195818
Change-Id: I92b20d8e77ce5b2a96212f9d0757fbbff2703891
Signed-off-by: Hardik Arya <harya@codeaurora.org>
6 years agoMerge "diag: Remove hdlc status dependeny on session_info"
Linux Build Service Account [Mon, 2 Apr 2018 08:45:30 +0000 (01:45 -0700)]
Merge "diag: Remove hdlc status dependeny on session_info"

6 years agoMerge "soc: qcom: hab: refine hab driver's header files"
Linux Build Service Account [Mon, 2 Apr 2018 08:45:29 +0000 (01:45 -0700)]
Merge "soc: qcom: hab: refine hab driver's header files"

6 years agoMerge "drm: msm: fix potential NULL pointer dereference"
Linux Build Service Account [Mon, 2 Apr 2018 08:45:28 +0000 (01:45 -0700)]
Merge "drm: msm: fix potential NULL pointer dereference"

6 years agoadv7481: Enable ADV7481 driver on Auto CDP
Suprith Malligere Shankaregowda [Mon, 26 Mar 2018 19:26:09 +0000 (00:56 +0530)]
adv7481: Enable ADV7481 driver on Auto CDP

Add DTSI entries for ADV7481 on Auto CDP. This is the
HDMI-CSI conversion bridge chip. Also enable the required
CSIDs in camera sensor DTSI.

Change-Id: I972cd2cd538cddf9012fc52400b2980930f77775
Signed-off-by: Suprith Malligere Shankaregowda <supgow@codeaurora.org>
6 years agoMerge "spmi: msm: add virtual SPMI interrupt support"
Linux Build Service Account [Fri, 30 Mar 2018 19:49:52 +0000 (12:49 -0700)]
Merge "spmi: msm: add virtual SPMI interrupt support"

6 years agosoc: qcom: hab: refine hab driver's header files
Yong Ding [Thu, 29 Mar 2018 09:20:08 +0000 (17:20 +0800)]
soc: qcom: hab: refine hab driver's header files

Stuffs relevant with ioctl are only for hab driver
itself and hab clients in user space. Those hab clients
in kernel dose not need them. So here uapi/linux/habmm.h
is refined into two files as habmmid.h and hab_ioctl.h.

Change-Id: I9344e3e3fec88a042ec1915a9c0d51a28cea6e9a
Signed-off-by: Yong Ding <yongding@codeaurora.org>
6 years agoMerge "msm: pcie: Add proper check before accessing variables"
Linux Build Service Account [Fri, 30 Mar 2018 04:37:15 +0000 (21:37 -0700)]
Merge "msm: pcie: Add proper check before accessing variables"

6 years agoMerge "msm: thermal: Initialize KTM interrupt mode at kernel late init level"
Linux Build Service Account [Thu, 29 Mar 2018 09:54:12 +0000 (02:54 -0700)]
Merge "msm: thermal: Initialize KTM interrupt mode at kernel late init level"

6 years agou_ctrl_qti: Increase MAX_QTI_PKT_SIZE to 8K
Vijayavardhan Vennapusa [Wed, 14 Mar 2018 10:35:00 +0000 (16:05 +0530)]
u_ctrl_qti: Increase MAX_QTI_PKT_SIZE to 8K

increase MAX_QTI_PKT_SIZE to 8KB to handle QMI messages of bigger
length of 8KB.

Change-Id: I479794c9563ae89b9062b75031b6cdc739a0f620
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
6 years agoMerge "nf: xt_socket: Fix out-of-bounds in xt_socket_lookup_slow_v{4,6}"
Linux Build Service Account [Wed, 28 Mar 2018 22:28:09 +0000 (15:28 -0700)]
Merge "nf: xt_socket: Fix out-of-bounds in xt_socket_lookup_slow_v{4,6}"

6 years agoMerge "msm: ADSPRPC: Validate rpra to avoid Null pointer dereference"
Linux Build Service Account [Wed, 28 Mar 2018 22:28:07 +0000 (15:28 -0700)]
Merge "msm: ADSPRPC: Validate rpra to avoid Null pointer dereference"

6 years agoMerge "drm/msm: check hpd_off flag only for pluggable displays"
Linux Build Service Account [Wed, 28 Mar 2018 22:28:06 +0000 (15:28 -0700)]
Merge "drm/msm: check hpd_off flag only for pluggable displays"

6 years agoMerge "soc: qcom: ipc_router_smd_xprt: Set pointer to NULL after free"
Linux Build Service Account [Wed, 28 Mar 2018 22:28:05 +0000 (15:28 -0700)]
Merge "soc: qcom: ipc_router_smd_xprt: Set pointer to NULL after free"

6 years agoMerge "cnss2: Fix dereference before NULL check issue"
Linux Build Service Account [Wed, 28 Mar 2018 22:28:04 +0000 (15:28 -0700)]
Merge "cnss2: Fix dereference before NULL check issue"

6 years agoMerge "cnss2: Support collecting firmware dump during driver load"
Linux Build Service Account [Wed, 28 Mar 2018 22:28:02 +0000 (15:28 -0700)]
Merge "cnss2: Support collecting firmware dump during driver load"

6 years agoMerge "msm: vidc: Fix use after free issue in set_output_buffers"
Linux Build Service Account [Wed, 28 Mar 2018 22:28:01 +0000 (15:28 -0700)]
Merge "msm: vidc: Fix use after free issue in set_output_buffers"

6 years agoMerge "defconfig: Add WLAN related defconfigs for msm8996_gvmq"
Linux Build Service Account [Wed, 28 Mar 2018 22:27:59 +0000 (15:27 -0700)]
Merge "defconfig: Add WLAN related defconfigs for msm8996_gvmq"

6 years agoMerge "ARM: dts: Add qcom,cnss for WLAN on vplatform msm8996_gvmq"
Linux Build Service Account [Wed, 28 Mar 2018 22:27:59 +0000 (15:27 -0700)]
Merge "ARM: dts: Add qcom,cnss for WLAN on vplatform msm8996_gvmq"

6 years agoMerge "ARM: dts: msm: add the hab entry into the msm8996 telematics vplatform"
Linux Build Service Account [Wed, 28 Mar 2018 22:27:57 +0000 (15:27 -0700)]
Merge "ARM: dts: msm: add the hab entry into the msm8996 telematics vplatform"

6 years agoMerge "sched: Export wake_to_idle API"
Linux Build Service Account [Wed, 28 Mar 2018 22:27:56 +0000 (15:27 -0700)]
Merge "sched: Export wake_to_idle API"

6 years agoMerge "crypto: msm: reset pointer before returning from the function"
Linux Build Service Account [Wed, 28 Mar 2018 22:27:55 +0000 (15:27 -0700)]
Merge "crypto: msm: reset pointer before returning from the function"

6 years agoMerge "soc: qcom: hab: add habmm_socket_query support"
Linux Build Service Account [Wed, 28 Mar 2018 22:27:53 +0000 (15:27 -0700)]
Merge "soc: qcom: hab: add habmm_socket_query support"

6 years agoASoC: msm: qdsp6v2: add 24b capture support for tert mi2s
Derek Chen [Thu, 22 Mar 2018 17:28:58 +0000 (13:28 -0400)]
ASoC: msm: qdsp6v2: add 24b capture support for tert mi2s

Add support for 24 bits capture for Tertiary MI2S
interface in CPU DAI links.

Change-Id: I2453c5e7efb957d9c2a1fb832c1a456d0672af9a
Signed-off-by: Derek Chen <chenche@codeaurora.org>
6 years agonf: xt_socket: Fix out-of-bounds in xt_socket_lookup_slow_v{4,6}
Tejaswi Tanikella [Fri, 5 Jan 2018 07:10:48 +0000 (12:40 +0530)]
nf: xt_socket: Fix out-of-bounds in xt_socket_lookup_slow_v{4,6}

skb_header_pointer will copy data into the buffer if data is spread
across pages, else share pointer within skb->data. In
xt_socket_lookup_slow_v4, data is copied into udphdr, and later
th->doff is accessed, causing a out-of-bounds. This
access will only work if the data is not split across pages.

Copy data into tcphdr buffer for TCP packets instead.

Change-Id: Ifd6e15ece27fcf5bd02ae17571ab43f6df3ceb21
Fixes: a583636a ("inet: refactor inet[6]_lookup functions to take skb")
Signed-off-by: Tejaswi Tanikella <tejaswit@codeaurora.org>
6 years agomsm: thermal: Initialize KTM interrupt mode at kernel late init level
Manaf Meethalavalappu Pallikunhi [Fri, 9 Mar 2018 11:29:26 +0000 (16:59 +0530)]
msm: thermal: Initialize KTM interrupt mode at kernel late init level

KTM prolong KTM hotplug mitigation, cpu frequency mitigation etc. till
thermal-engine takes over. It is helping thermal runaway issues during
the boot time from KTM kernel late init level to thermal-engine
starts. Since BCL is also using KTM interface for mitigation, it
delays BCL mitigation till thermal-engine starts. Again target which
has LMH support enables Tj based mitigation very early in the boot.
So there is no risk of thermal runaway issues mentioned above.

Enable KTM interrupt mode mitigation back from kernel late init
itself. This reverts commit <07f3dcfc7f7c> ("msm: thermal: Prolong
KTM mitigation till thermal-engine takesover").

Change-Id: I7e4beaed2dd003c6ed36cc10e4bf003826fad827
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
6 years agodrm/msm: check hpd_off flag only for pluggable displays
Rahul Sharma [Fri, 23 Mar 2018 06:03:42 +0000 (11:33 +0530)]
drm/msm: check hpd_off flag only for pluggable displays

This change will wrap the 'hpd_off' flag with pluggable displays.
In non-pluggable display case 'hpd_off' flag prevents disabling
of HPD clocks and hence display subsystem doesn't got into suspend
state.

Change-Id: I28ade8fb60a60a15f1d23009de63bbf9f10c7c77
Signed-off-by: Rahul Sharma <rahsha@codeaurora.org>
Signed-off-by: Suprith Malligere Shankaregowda <supgow@codeaurora.org>
6 years agosoc: qcom: ipc_router_smd_xprt: Set pointer to NULL after free
Arun Kumar Neelakantam [Thu, 22 Mar 2018 12:11:28 +0000 (17:41 +0530)]
soc: qcom: ipc_router_smd_xprt: Set pointer to NULL after free

in_pkt pointer is holding dangling pointer address even after calling
release_pkt() which causing use-after-free.

Set the in_pkt pointer to NULL after free.

CRs-Fixed: 2210859
Change-Id: If5e01c0109c947e52f3ff269c9b2b50ac0dc2bdf
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
6 years agodefconfig: Add WLAN related defconfigs for msm8996_gvmq
Ferry Zhou [Fri, 23 Mar 2018 09:50:46 +0000 (17:50 +0800)]
defconfig: Add WLAN related defconfigs for msm8996_gvmq

The WLAN driver qcacld-3.2 depends on CNSS2, CFG80211 and ralated
defconfigs.  So, add these defconfigs to enable WLAN over PCIe in
virtual platform msm8996_gvmq.

Change-Id: I3ade33ef26bc057b96b4b283669293a43a79b101
Signed-off-by: Ferry Zhou <tianguiz@codeaurora.org>
6 years agoARM: dts: Add qcom,cnss for WLAN on vplatform msm8996_gvmq
Ferry Zhou [Fri, 23 Mar 2018 09:36:10 +0000 (17:36 +0800)]
ARM: dts: Add qcom,cnss for WLAN on vplatform msm8996_gvmq

The device tree node qcom,cnss includes all WLAN related hardware
configurations including power supply regulators and pinctrl
configuration etc.  So, add qcom,cnss into the dts of Linux/Android
virtual platform msm8996_gvmq to enable WLAN over PCIe.

Change-Id: I0dbefbeefb7c6e843e55f32a8b33c4113a3a2e6e
Signed-off-by: Ferry Zhou <tianguiz@codeaurora.org>
6 years agocnss2: Support collecting firmware dump during driver load
Yue Ma [Thu, 1 Feb 2018 20:25:47 +0000 (12:25 -0800)]
cnss2: Support collecting firmware dump during driver load

When firmware crashes during WLAN host driver loads, collects
firmware dump and proceeds with SSR as normal cases.

Change-Id: If2ac7da3c2db4b4116949d092ad53299f23c87e0
Signed-off-by: Yue Ma <yuem@codeaurora.org>
6 years agocnss2: Fix dereference before NULL check issue
Yue Ma [Tue, 27 Mar 2018 22:20:26 +0000 (15:20 -0700)]
cnss2: Fix dereference before NULL check issue

In cnss_mhi_notify_status(), NULL check should be performed before
dereference for pci_priv.

Change-Id: Iea5a6e2b8be9b07c235b02bfe02292f24da882d8
Signed-off-by: Yue Ma <yuem@codeaurora.org>
6 years agomsm: vidc: Fix use after free issue in set_output_buffers
Chinmay Sawarkar [Fri, 29 Sep 2017 22:51:51 +0000 (15:51 -0700)]
msm: vidc: Fix use after free issue in set_output_buffers

When set_buffers fails, binfo is freed and again accessed
while freeing smem memory.

CRs-Fixed: 2118860
Change-Id: Ifdd683f907862665e34d6d39d5a8634984804c01
Signed-off-by: Chinmay Sawarkar <chinmays@codeaurora.org>
Signed-off-by: Sanjay Singh <sisanj@codeaurora.org>
6 years agousb: gsi: Don't disable endpoints as part of flow control
Sriharsha Allenki [Mon, 29 May 2017 09:22:40 +0000 (14:52 +0530)]
usb: gsi: Don't disable endpoints as part of flow control

Currently GSI endpoints are disabled when host enables
flow control for RNDIS function. When these endpoints are
enabled again as part of flow control disable, no transactions
are observed on these endpoints. Fix this by not disabling the
endpoints as part of flow control enable but just stop the
active transfers on these endpoints.

Change-Id: I391a7048188b2a63e2df993fcebf7a6e78eaef14
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
6 years agoxhci: plat: Avoid xhci_resume if skip_resume flag is set
Ajay Agarwal [Mon, 19 Mar 2018 13:08:05 +0000 (18:38 +0530)]
xhci: plat: Avoid xhci_resume if skip_resume flag is set

The flag skip_resume is set when DWC3 is already runtime
suspended and prepare it for PM suspend. But if PM suspend of
DWC is not called because of some reason, then directly the PM
resume of xhci-plat is called which invokes xhci_resume when DWC
is in Low Power Mode. This leads to watchdog timeout.
Fix this issue by not calling xhci_resume if skip_resume is set.

Change-Id: I47c946c4491015edcf00602d5a525bf35e7c67ed
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
6 years agoARM: dts: msm: add the hab entry into the msm8996 telematics vplatform
Yong Ding [Mon, 26 Mar 2018 03:55:30 +0000 (11:55 +0800)]
ARM: dts: msm: add the hab entry into the msm8996 telematics vplatform

In the msm8996 telematics vplatform, only these MMID groups
for QCPE, clock, FDE and test are added into its device node.

Change-Id: Ib527a4e3a79ebf84fd6f47db66baa324eedb5300
Signed-off-by: Yong Ding <yongding@codeaurora.org>
6 years agocrypto: msm: reset pointer before returning from the function
Parai Wang [Mon, 12 Mar 2018 06:36:02 +0000 (14:36 +0800)]
crypto: msm: reset pointer before returning from the function

Reset cipher_req.creq.dst and cipher_req.creq.src pointer to NULL
before returning from the function, and initialize scatterlist
variable before using it.

Change-Id: I5d5eee06a5213a05b20bf459ef0bf0c433fadbdd
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
Signed-off-by: Parai Wang <fpwang@codeaurora.org>
6 years agodrm: msm: fix potential NULL pointer dereference
Guchun Chen [Fri, 16 Mar 2018 08:52:16 +0000 (16:52 +0800)]
drm: msm: fix potential NULL pointer dereference

Add checker before using pointers, to avoid NULL pointer
dereference happens.

CRs-Fixed: 2202957
Change-Id: I99930e1e9477130fcfceadad3f3a2ff5c9e89cda
Signed-off-by: Guchun Chen <guchunc@codeaurora.org>
6 years agoMerge "ARM: dts: msm: add audio ion vm dev node for msm8996 auto"
Linux Build Service Account [Tue, 27 Mar 2018 01:57:03 +0000 (18:57 -0700)]
Merge "ARM: dts: msm: add audio ion vm dev node for msm8996 auto"

6 years agoMerge "mm-camera2:isp2: Avoid use after free buffer"
Linux Build Service Account [Tue, 27 Mar 2018 01:57:01 +0000 (18:57 -0700)]
Merge "mm-camera2:isp2: Avoid use after free buffer"

6 years agoMerge "cnss2: msm: Enable WLAN over PCIe for GVM"
Linux Build Service Account [Tue, 27 Mar 2018 01:56:59 +0000 (18:56 -0700)]
Merge "cnss2: msm: Enable WLAN over PCIe for GVM"

6 years agoMerge "softirq: Don't defer all softirq during RT task"
Linux Build Service Account [Mon, 26 Mar 2018 12:04:35 +0000 (05:04 -0700)]
Merge "softirq: Don't defer all softirq during RT task"

6 years agocnss2: msm: Enable WLAN over PCIe for GVM
Ferry Zhou [Mon, 22 Jan 2018 08:11:58 +0000 (16:11 +0800)]
cnss2: msm: Enable WLAN over PCIe for GVM

The hypervisor does not support PCI_MSM, and uses PCI_HOST_GENERIC
instead.  After this change, the cnss2/PCIe for WLAN in metal case
depends on PCI_MSM, while in GVM case depends on PCI_HOST_GENERIC.

Currently, the WLAN chip is powered up by hypervisor.  So, just
bypass power related code.

Change-Id: Icf13fb11c5e18f6e48746fe82f1b4392559dd5b0
Signed-off-by: Ferry Zhou <tianguiz@codeaurora.org>
6 years agospmi: msm: add virtual SPMI interrupt support
Yimin Peng [Fri, 9 Mar 2018 13:32:41 +0000 (21:32 +0800)]
spmi: msm: add virtual SPMI interrupt support

Add interrupt support for virtual SPMI front-end driver. It will co-work
with backend to serve interrupts of GPIOs and VADC on PMIC.

Change-Id: I7404b18b553f58c8a645a0e300633828de41cfb3
Signed-off-by: Yimin Peng <yiminp@codeaurora.org>
6 years agoARM: dts: msm: add virtual SPMI interrupt support on msm8996 vplatform
Yimin Peng [Fri, 9 Mar 2018 13:31:11 +0000 (21:31 +0800)]
ARM: dts: msm: add virtual SPMI interrupt support on msm8996 vplatform

Add virtual SPMI interrupt attributes based on SPMI back-end change.

Change-Id: Id30232d4bf2fa34c8f2311a1dd4271c2bb6e50c2
Signed-off-by: Yimin Peng <yiminp@codeaurora.org>
6 years agoARM: dts: msm: add audio ion vm dev node for msm8996 auto
Suprith Malligere Shankaregowda [Thu, 15 Mar 2018 09:03:16 +0000 (14:33 +0530)]
ARM: dts: msm: add audio ion vm dev node for msm8996 auto

Add msm audio ion vm device node to be compatible
with virtualized audio ion platform driver for
msm8996 automotive platform.

Change-Id: Ifaa396a8447080255a70eec5c2ddd3adf803d18f
Signed-off-by: Suprith Malligere Shankaregowda <supgow@codeaurora.org>
6 years agoMerge "ARM: dts: msm: add the hab entry into the msm8996 ivi vplatform"
Linux Build Service Account [Sat, 24 Mar 2018 07:27:23 +0000 (00:27 -0700)]
Merge "ARM: dts: msm: add the hab entry into the msm8996 ivi vplatform"

6 years agoMerge "msm: mdss: hdmi: add pll_enable property to support clock recovery"
Linux Build Service Account [Sat, 24 Mar 2018 07:27:22 +0000 (00:27 -0700)]
Merge "msm: mdss: hdmi: add pll_enable property to support clock recovery"

6 years agoMerge "adv7481: Fix Video split rendering observed on QTVinput"
Linux Build Service Account [Sat, 24 Mar 2018 07:27:21 +0000 (00:27 -0700)]
Merge "adv7481: Fix Video split rendering observed on QTVinput"

6 years agoMerge "soc: qcom: glink: smem: Add wmb between data and write index"
Linux Build Service Account [Fri, 23 Mar 2018 21:43:51 +0000 (14:43 -0700)]
Merge "soc: qcom: glink: smem: Add wmb between data and write index"

6 years agoMerge "DRM: SDE: Fixing the power up sequence with early splash"
Linux Build Service Account [Fri, 23 Mar 2018 21:43:50 +0000 (14:43 -0700)]
Merge "DRM: SDE: Fixing the power up sequence with early splash"

6 years agoMerge "camera: ais: change the early camera get clk method"
Linux Build Service Account [Fri, 23 Mar 2018 21:43:49 +0000 (14:43 -0700)]
Merge "camera: ais: change the early camera get clk method"

6 years agoMerge "msm: mdss: hdcp_1x: call HDCP 1x APIs only if HDCP 2.2 is not present"
Linux Build Service Account [Fri, 23 Mar 2018 21:43:48 +0000 (14:43 -0700)]
Merge "msm: mdss: hdcp_1x: call HDCP 1x APIs only if HDCP 2.2 is not present"

6 years agomm-camera2:isp2: Avoid use after free buffer
Meera Gande [Fri, 23 Mar 2018 10:43:18 +0000 (16:13 +0530)]
mm-camera2:isp2: Avoid use after free buffer

In the code, there are certain calls that can
try to access the bffer pointer variable after
free, as the same pointer can be freed at
RELEASE_BUF call at the same time.

Change-Id: I4f7a48613b614138916ae33e7783b0c172330321
Signed-off-by: Meera Gande <mgande@codeaurora.org>
6 years agoMerge "ASoC: msm: Upgrade ASM Driver to support 32 Channels"
Linux Build Service Account [Fri, 23 Mar 2018 10:32:45 +0000 (03:32 -0700)]
Merge "ASoC: msm: Upgrade ASM Driver to support 32 Channels"

6 years agoMerge "ASoC: msm: Upgrade ADM Driver to support 32 Channels"
Linux Build Service Account [Fri, 23 Mar 2018 10:32:45 +0000 (03:32 -0700)]
Merge "ASoC: msm: Upgrade ADM Driver to support 32 Channels"