OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
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 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 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 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 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"

6 years agoMerge "ASoC: msm: qdspv2: fix NULL pointer exception in core driver"
Linux Build Service Account [Fri, 23 Mar 2018 10:32:43 +0000 (03:32 -0700)]
Merge "ASoC: msm: qdspv2: fix NULL pointer exception in core driver"

6 years agoMerge "drivers: net: Change timeout for query_firmware command"
Linux Build Service Account [Fri, 23 Mar 2018 10:32:41 +0000 (03:32 -0700)]
Merge "drivers: net: Change timeout for query_firmware command"

6 years agoMerge "defconfig: msm: Enable EHSET test fixture driver on msm8996 Auto"
Linux Build Service Account [Fri, 23 Mar 2018 10:32:39 +0000 (03:32 -0700)]
Merge "defconfig: msm: Enable EHSET test fixture driver on msm8996 Auto"

6 years agosoc: qcom: glink: smem: Add wmb between data and write index
Chris Lew [Tue, 5 Dec 2017 23:23:58 +0000 (15:23 -0800)]
soc: qcom: glink: smem: Add wmb between data and write index

Make sure data is flushed before updating write index by adding a wmb.

Change-Id: I3d17ed56b64ac9ca399a0ef11a638027c1ba36ae
Signed-off-by: Chris Lew <clew@codeaurora.org>
6 years agosched: Export wake_to_idle API
Srinivas Girigowda [Thu, 4 Jan 2018 06:58:15 +0000 (22:58 -0800)]
sched: Export wake_to_idle API

Export wake_to_idle APIs so that external modules can access these
functions to improve performance.

CRs-Fixed: 2166787
Change-Id: I0863a2e80a303c7584ca52ef81c19d369e840662
Signed-off-by: Srinivas Girigowda <sgirigow@codeaurora.org>
6 years agoARM: dts: msm: add the hab entry into the msm8996 ivi vplatform
Yong Ding [Mon, 19 Mar 2018 05:22:05 +0000 (13:22 +0800)]
ARM: dts: msm: add the hab entry into the msm8996 ivi vplatform

With such hab entry in the ivi vplatform's device tree,
hab driver will get its configurations dynamically. So
it will not use the default configurations any more.

Change-Id: Idbfc17d2b9ecc6bd18e3aa8901b9bbfbe20636f2
Signed-off-by: Yong Ding <yongding@codeaurora.org>
6 years agoDRM: SDE: Fixing the power up sequence with early splash
Camus Wong [Sun, 18 Mar 2018 03:35:04 +0000 (23:35 -0400)]
DRM: SDE: Fixing the power up sequence with early splash

If the splash clean up is trigger, the MDP core power on call should
be skipped.  MDP core already turned on in sde_kms_hw_init() if splash
handoff enabled.

Change-Id: Ie19c4eb2d0455b0c19615e3bb29aae4b4c6c8abf
Signed-off-by: Camus Wong <camusw@codeaurora.org>
Signed-off-by: Rahul Sharma <rahsha@codeaurora.org>
Signed-off-by: Suprith Malligere Shankaregowda <supgow@codeaurora.org>
6 years agosoftirq: Don't defer all softirq during RT task
Björn Davidsson [Thu, 25 Jan 2018 11:06:21 +0000 (12:06 +0100)]
softirq: Don't defer all softirq during RT task

Since 'commit f332a9d53e33 ("softirq: defer softirq processing to
ksoftirqd if CPU is busy with RT")', all softirqs are deferred
to ksoftirqd if one of the potentially long softirqs are pending.
This can significantly delay processing of tasklets and timers,
which are frequently designed to be running at high priority.

Defer only the potentially slow softirqs to ksoftirqd.

Change-Id: I7a2ef7c59749ccf086066c59962ff326786da6f4
Signed-off-by: Björn Davidsson <bjorn.davidsson@sony.com>
[clingutla@codeaurora.org:- Renamed local variables and refactored
 deferred logic to macro for avoiding potential deadlock.]
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
6 years agoadv7481: Fix Video split rendering observed on QTVinput
Suprith Malligere Shankaregowda [Wed, 21 Mar 2018 13:34:07 +0000 (19:04 +0530)]
adv7481: Fix Video split rendering observed on QTVinput

Stabilize adv7481 raw irq status register(IO_REG_INT_RAW_STATUS_ADDR)
read by adding delay in adv7481_irq workqueue schedule.
This resolves video split rendering when hot-unplug and hot-plug
the HDMI IN source.

CRs-Fixed: 2204762
Change-Id: Id2e86c56983318c9855cec881644552eab7810e5
Signed-off-by: Suprith Malligere Shankaregowda <supgow@codeaurora.org>
6 years agoMerge "adv7481: Add early error returns"
Linux Build Service Account [Thu, 22 Mar 2018 19:23:15 +0000 (12:23 -0700)]
Merge "adv7481: Add early error returns"

6 years agoMerge "drm/msm: refine hdmi bridge implementation"
Linux Build Service Account [Thu, 22 Mar 2018 19:23:14 +0000 (12:23 -0700)]
Merge "drm/msm: refine hdmi bridge implementation"

6 years agoMerge "msm: ais: sensor: Fix the state check for i2c ops"
Linux Build Service Account [Thu, 22 Mar 2018 19:23:12 +0000 (12:23 -0700)]
Merge "msm: ais: sensor: Fix the state check for i2c ops"

6 years agoMerge "ais: set list cmd to be available after del before return"
Linux Build Service Account [Thu, 22 Mar 2018 19:23:11 +0000 (12:23 -0700)]
Merge "ais: set list cmd to be available after del before return"

6 years agodrivers: net: Change timeout for query_firmware command
Balachandra C S [Thu, 22 Mar 2018 12:51:11 +0000 (18:21 +0530)]
drivers: net: Change timeout for query_firmware command

On some targets, a higher timeout value is needed to get the firmware
version response.

Change-Id: Iede32155fb05877d8da70610fe4fcd391fdd268a
Signed-off-by: Balachandra C S <balacs@codeaurora.org>
6 years agodefconfig: msm: Enable EHSET test fixture driver on msm8996 Auto
Ajay Agarwal [Sat, 3 Mar 2018 07:29:15 +0000 (12:59 +0530)]
defconfig: msm: Enable EHSET test fixture driver on msm8996 Auto

Enable EHSET test fixture driver on msm8996 automotive target.
This driver is used to test high speed host electrical
compliance.

Change-Id: Id110e5defb00bcc8dc3bb33a944006f654e50f25
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
6 years agoMerge "drivers: net: Change timeout for query_firmware command"
Linux Build Service Account [Thu, 22 Mar 2018 04:44:56 +0000 (21:44 -0700)]
Merge "drivers: net: Change timeout for query_firmware command"

6 years agoASoC: msm: qdspv2: fix NULL pointer exception in core driver
Cong Tang [Tue, 20 Mar 2018 05:39:59 +0000 (13:39 +0800)]
ASoC: msm: qdspv2: fix NULL pointer exception in core driver

NULL pointer dereference occurs while getting version size
when version info memory allocation fails.
Add NULL check to avoid this NULL pointer exception.

Change-Id: I589b2114f67df0eeaaa817bad05cd7d44786d3ad
Signed-off-by: Cong Tang <congt@codeaurora.org>
6 years agoMerge "msm: vidc: Add support for decoder STOP command"
Linux Build Service Account [Wed, 21 Mar 2018 17:10:21 +0000 (10:10 -0700)]
Merge "msm: vidc: Add support for decoder STOP command"

6 years agoMerge "ASoC: msm: qdsp6v2: Fix APR packet size for SET_UI_PROPERTY"
Linux Build Service Account [Wed, 21 Mar 2018 17:10:20 +0000 (10:10 -0700)]
Merge "ASoC: msm: qdsp6v2: Fix APR packet size for SET_UI_PROPERTY"

6 years agoMerge "ASoC: msm: Fix KW issues for audio drivers"
Linux Build Service Account [Wed, 21 Mar 2018 17:10:18 +0000 (10:10 -0700)]
Merge "ASoC: msm: Fix KW issues for audio drivers"

6 years agodrivers: net: Change timeout for query_firmware command
Balachandra C S [Wed, 21 Mar 2018 14:44:33 +0000 (20:14 +0530)]
drivers: net: Change timeout for query_firmware command

On some targets, a higher timeout value is needed to get the firmware
version response.

Change-Id: I67b85b16f1d7187e953df23b9a2ba327ec8d8591
Signed-off-by: Balachandra C S <balacs@codeaurora.org>
6 years agoMerge "soc: qcom: ipc_router_mhi_xprt: Initialize variable at start"
Linux Build Service Account [Wed, 21 Mar 2018 06:18:29 +0000 (23:18 -0700)]
Merge "soc: qcom: ipc_router_mhi_xprt: Initialize variable at start"

6 years agoMerge "net: ipc_router: Validate return from skb_peek"
Linux Build Service Account [Wed, 21 Mar 2018 06:18:28 +0000 (23:18 -0700)]
Merge "net: ipc_router: Validate return from skb_peek"

6 years agoMerge "soc: qcom: tracer_pkt: Fix buffer length check"
Linux Build Service Account [Wed, 21 Mar 2018 06:18:27 +0000 (23:18 -0700)]
Merge "soc: qcom: tracer_pkt: Fix buffer length check"

6 years agoMerge "soc: qcom: subsystem_notif_virt: Fix owner for the driver"
Linux Build Service Account [Wed, 21 Mar 2018 06:18:25 +0000 (23:18 -0700)]
Merge "soc: qcom: subsystem_notif_virt: Fix owner for the driver"

6 years agoASoC: msm: Upgrade ASM Driver to support 32 Channels
Cong Tang [Wed, 8 Nov 2017 09:10:11 +0000 (17:10 +0800)]
ASoC: msm: Upgrade ASM Driver to support 32 Channels

HLOS update ASM driver to support 32 channels playback
and capture since ADSP firmware has already support on this.
With this each MultiMedia Frontend would be able to support
32 channels playback and capture.

Signed-off-by: Cong Tang <congt@codeaurora.org>
Change-Id: Ie2ada37e612d0096cb623777f43aa9c05989058d

6 years agoASoC: msm: Upgrade ADM Driver to support 32 Channels
Cong Tang [Thu, 23 Nov 2017 07:33:29 +0000 (15:33 +0800)]
ASoC: msm: Upgrade ADM Driver to support 32 Channels

HLOS update adm driver to support ADM_CMD_OPEN_V8 for 32 channels
playback and capture capability. The endpoint payload of this
cmd should be the real channel mapping length and aligned with
four bytes.

Change-Id: I943259108becdfd27a68ce597bee37641cfc8339
Signed-off-by: Cong Tang <congt@codeaurora.org>
6 years agomsm: ais: sensor: Fix the state check for i2c ops
Suprith Malligere Shankaregowda [Thu, 8 Mar 2018 09:40:20 +0000 (15:10 +0530)]
msm: ais: sensor: Fix the state check for i2c ops

Added state condition before performing i2c operations

Change-Id: Ie1cc0c4b0e5427928654638ca22d83380525cce1
Signed-off-by: Suprith Malligere Shankaregowda <supgow@codeaurora.org>
6 years agoais: set list cmd to be available after del before return
Andy Sun [Wed, 21 Mar 2018 02:35:15 +0000 (10:35 +0800)]
ais: set list cmd to be available after del before return

If clk disabled, we have to set current cmd to be available again
before function return, otherwise the same list member will be
double deleted when do enqueue tasklet next time.

Change-Id: Ibc392169a7e7ad084b14abaaa9cb3c61d06adcf4
Signed-off-by: Andy Sun <bins@codeaurora.org>
6 years agosoc: qcom: hab: add habmm_socket_query support
Yong Ding [Mon, 19 Mar 2018 08:39:28 +0000 (16:39 +0800)]
soc: qcom: hab: add habmm_socket_query support

This query API can be used by hab clients to get
their virtual channels' info if necessary, eg, the
local and remote vmids.

Change-Id: I1293b51a1127997f493f07c0c2181423bf45d79e
Signed-off-by: Yong Ding <yongding@codeaurora.org>
6 years agoMerge "diag: Protect the decrement of number of diag clients"
Linux Build Service Account [Tue, 20 Mar 2018 15:36:15 +0000 (08:36 -0700)]
Merge "diag: Protect the decrement of number of diag clients"

6 years agoMerge "ARM: dts: msm: set ION type to SYSTEM for msm8996 telematics"
Linux Build Service Account [Tue, 20 Mar 2018 15:36:13 +0000 (08:36 -0700)]
Merge "ARM: dts: msm: set ION type to SYSTEM for msm8996 telematics"

6 years agoMerge "ASoC: msm: Fix adding channel mixer control failure issue"
Linux Build Service Account [Tue, 20 Mar 2018 15:36:12 +0000 (08:36 -0700)]
Merge "ASoC: msm: Fix adding channel mixer control failure issue"

6 years agonet: ipc_router: Validate return from skb_peek
Chris Lew [Wed, 4 Oct 2017 22:58:16 +0000 (15:58 -0700)]
net: ipc_router: Validate return from skb_peek

The skb_peek and skb_peek_tail functions can return NULL if the skb
list is empty. Check the return value before using the skb.

CRs-Fixed: 2121368
Change-Id: If14320104ec37b8b7504e930ed8fd06e72d08724
Signed-off-by: Chris Lew <clew@codeaurora.org>
6 years agosoc: qcom: ipc_router_mhi_xprt: Initialize variable at start
Dhoat Harpal [Tue, 20 Mar 2018 11:53:53 +0000 (17:23 +0530)]
soc: qcom: ipc_router_mhi_xprt: Initialize variable at start

variable rc is not initialized in the beginning of function
ipc_router_mhi_write and ipc_router_mhi_xprt_probe. This leads
possible use without initialization issue.

Initialize variable in the beginning of both functions.

CRs-Fixed: 2209246
Change-Id: Ida0bdad2336be928d6e440d4143350bbf9f253d5
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
6 years agosoc: qcom: tracer_pkt: Fix buffer length check
Chris Lew [Wed, 4 Oct 2017 22:56:32 +0000 (15:56 -0700)]
soc: qcom: tracer_pkt: Fix buffer length check

The logic to truncate packets if the size is too long was off by one.
Fix the conditional logic for checking lengths.

CRs-Fixed: 2121368
Change-Id: I908bd0a1ab78dea439056dbcd12eb158b2789e4a
Signed-off-by: Chris Lew <clew@codeaurora.org>
6 years agousb: misc: Add support for test modes via external hub
Ajay Agarwal [Wed, 28 Feb 2018 17:25:40 +0000 (22:55 +0530)]
usb: misc: Add support for test modes via external hub

Some external hubs cannot enter into test mode if EHSET fixture
is connected to one of its downstream ports. Add support to
enable test modes on any desired downstream port of an external
hub. The port and the test mode can be selected via sysfs nodes.

For example, to send TEST_J packet on downstream port 4 of
external hub 3-1:1.0:
echo 4 > /sys/bus/usb/devices/3-1/3-1\:1.0/test_j_portnum

Change-Id: I145f150bfe8557844cb150cf39fafe03a18bd955
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
6 years agomsm: vidc: Add support for decoder STOP command
Praneeth Paladugu [Wed, 19 Jul 2017 05:55:59 +0000 (22:55 -0700)]
msm: vidc: Add support for decoder STOP command

Decoder STOP command is to signal HW that this is the EOS
buffer. HW returns all the pending ETB's and FTB's. One of
the FTB_DONE's will have EOS flag back to client. With this,
driver don't need to support zero_bytes_used input buffers.

CRs-Fixed: 2078801
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
Change-Id: I44c60db1c98707501b5637eba5d1d81663d6a722

6 years agoadv7481: Add early error returns
Suprith Malligere Shankaregowda [Wed, 14 Mar 2018 16:58:24 +0000 (22:28 +0530)]
adv7481: Add early error returns

In boards without adv7481 chip present, there is a huge
boot time impact due to long time taken by probe failure
because of I2C communication failures. Add early returns
in case of error, to minimize the impact.

Change-Id: I74643ec8e35e16ba93b795cccd8c709c8e530889
Signed-off-by: Suprith Malligere Shankaregowda <supgow@codeaurora.org>
6 years agoMerge "ion: ensure valid start address"
Linux Build Service Account [Tue, 20 Mar 2018 01:03:30 +0000 (18:03 -0700)]
Merge "ion: ensure valid start address"

6 years agoMerge "ARM: dts: msm: Update GPU chipid for SDM636"
Linux Build Service Account [Tue, 20 Mar 2018 01:03:28 +0000 (18:03 -0700)]
Merge "ARM: dts: msm: Update GPU chipid for SDM636"

6 years agoMerge "defconfig: msm-auto: Add qti can driver support"
Linux Build Service Account [Tue, 20 Mar 2018 01:03:24 +0000 (18:03 -0700)]
Merge "defconfig: msm-auto: Add qti can driver support"

6 years agoMerge "ARM: dts: msm: Add DT changes for QTI CAN driver for MSM8996"
Linux Build Service Account [Tue, 20 Mar 2018 01:03:23 +0000 (18:03 -0700)]
Merge "ARM: dts: msm: Add DT changes for QTI CAN driver for MSM8996"

6 years agoMerge "msm: ais: isp: Handling buffer use after getting it freed"
Linux Build Service Account [Tue, 20 Mar 2018 01:03:21 +0000 (18:03 -0700)]
Merge "msm: ais: isp: Handling buffer use after getting it freed"

6 years agodiag: Protect the decrement of number of diag clients
Sreelakshmi Gownipalli [Tue, 23 Jan 2018 21:11:41 +0000 (13:11 -0800)]
diag: Protect the decrement of number of diag clients

In diagchar_open() protect the decrement of number of diag clients
so that there will be no race conditions while reading the value
from other functions.

Change-Id: I0e2fb5331eec9c7bba39e7d881b69559256833a3
Signed-off-by: Sreelakshmi Gownipalli <sgownipa@codeaurora.org>
6 years agosoc: qcom: subsystem_notif_virt: Fix owner for the driver
Anant Goel [Mon, 19 Mar 2018 17:37:13 +0000 (10:37 -0700)]
soc: qcom: subsystem_notif_virt: Fix owner for the driver

The owner for the driver is not a string. Fix the owner
accordingly.

Change-Id: I5f29cc0ae65714756868a0076f8a8adc6c3d45c2
Signed-off-by: Anant Goel <anantg@codeaurora.org>
6 years agoion: ensure valid start address
Pratap Nirujogi [Sun, 18 Mar 2018 12:16:33 +0000 (17:46 +0530)]
ion: ensure valid start address

Ensure valid start address to check for vaddress
bounds.

Change-Id: I02c0ce85d9a495880c133e66553b09159daa8f0c
Signed-off-by: Pratap Nirujogi <pratapn@codeaurora.org>
6 years agoMerge "scsi: ufs: Fix compilation error in ufs cmd logging"
Linux Build Service Account [Mon, 19 Mar 2018 10:35:44 +0000 (03:35 -0700)]
Merge "scsi: ufs: Fix compilation error in ufs cmd logging"

6 years agoMerge "msm: camera: isp: Fix freeze of preview stream during CDS"
Linux Build Service Account [Mon, 19 Mar 2018 10:35:42 +0000 (03:35 -0700)]
Merge "msm: camera: isp: Fix freeze of preview stream during CDS"

6 years agoMerge "drm/msm/sde: store mdss irq status in case of irq storm"
Linux Build Service Account [Mon, 19 Mar 2018 10:35:38 +0000 (03:35 -0700)]
Merge "drm/msm/sde: store mdss irq status in case of irq storm"

6 years agoMerge "drm/msm/sde: take irq callback lock before reading cb list"
Linux Build Service Account [Mon, 19 Mar 2018 10:35:36 +0000 (03:35 -0700)]
Merge "drm/msm/sde: take irq callback lock before reading cb list"

6 years agoMerge "drm: smmu: fix smmu map failure"
Linux Build Service Account [Mon, 19 Mar 2018 10:35:35 +0000 (03:35 -0700)]
Merge "drm: smmu: fix smmu map failure"

6 years agoARM: dts: msm: Update GPU chipid for SDM636
Hareesh Gundu [Tue, 6 Mar 2018 11:52:42 +0000 (17:22 +0530)]
ARM: dts: msm: Update GPU chipid for SDM636

The SDM636 GPU is similar to SDM660 but different
because of GPU clock plan. Update SDM636 GPU ID to
A509 so that we can handle it.

Change-Id: I8ed4403a5a11b5cb92827716d8f1e9655403c8bf
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
6 years agodrm/msm: refine hdmi bridge implementation
Camus Wong [Wed, 14 Mar 2018 12:15:08 +0000 (17:45 +0530)]
drm/msm: refine hdmi bridge implementation

This change fixes an unclocked hdmi register access while going
to suspend state.

When splash is enabled on HDMI interface & we are going to turn
on the hdmi bridge power. Context of sde_hdmi connector is found
to be NULL because connector was not initialized yet and we never
called sde_hdmi_core_enable which enables hpd clocks.

Now when going to suspend system would be calling clock unprepare
for clocks which were never enabled. Hence hdmi clock gets unbalanced
and resulted in unclocked access to one of the hdmi register during
disabling vblank.

Adding struct sde_hdmi as a member of struct sde_hdmi_bridge and remove
dependency on sde connector to get the hdmi display object.

Change-Id: If96324fd5152ab0e721dfd38e93a68321a615455
Signed-off-by: Camus Wong <camusw@codeaurora.org>
Signed-off-by: Rahul Sharma <rahsha@codeaurora.org>
Signed-off-by: Suprith Malligere Shankaregowda <supgow@codeaurora.org>
6 years agoARM: dts: msm: set ION type to SYSTEM for msm8996 telematics
Yimin Peng [Tue, 6 Mar 2018 07:16:03 +0000 (15:16 +0800)]
ARM: dts: msm: set ION type to SYSTEM for msm8996 telematics

Switch ION type from CARVEOUT to SYSTEM for audio function.

Change-Id: Ida2ccb7d1dbe1a037f305fe749ca3bc0a8dd51b2
Signed-off-by: Yimin Peng <yiminp@codeaurora.org>
6 years agocamera: ais: change the early camera get clk method
Chunhuan Zhan [Thu, 8 Mar 2018 02:30:14 +0000 (10:30 +0800)]
camera: ais: change the early camera get clk method

make this change to avoid the clk warning logs
remove some redundant codes

Change-Id: Ic2d85ae86c577f7f299061f5936d7b457297f1c4
Signed-off-by: Chunhuan Zhan <zhanc@codeaurora.org>
6 years agomsm: camera: isp: Fix freeze of preview stream during CDS
Srikanth Uyyala [Fri, 16 Mar 2018 07:29:01 +0000 (12:59 +0530)]
msm: camera: isp: Fix freeze of preview stream during CDS

Remove check of axi_cfg_update to allow stream update.

Change-Id: I4010e27a8dd136eecc2880d5eb13d97e4d0ea46e
Signed-off-by: Srikanth Uyyala <suyyala@codeaurora.org>
6 years agoMerge "msm: mdss: serialize wait for pingpong with kickoff"
Linux Build Service Account [Sat, 17 Mar 2018 10:13:28 +0000 (03:13 -0700)]
Merge "msm: mdss: serialize wait for pingpong with kickoff"

6 years agoMerge "adv7481: Fix CVBS input resolution."
Linux Build Service Account [Sat, 17 Mar 2018 10:13:27 +0000 (03:13 -0700)]
Merge "adv7481: Fix CVBS input resolution."

6 years agoMerge "ASoC: sdm660: fix clock refcount for MI2S shutdown"
Linux Build Service Account [Sat, 17 Mar 2018 10:13:25 +0000 (03:13 -0700)]
Merge "ASoC: sdm660: fix clock refcount for MI2S shutdown"

6 years agoMerge "drivers: qcom: lpm-stats: Fix undefined access error"
Linux Build Service Account [Sat, 17 Mar 2018 10:13:24 +0000 (03:13 -0700)]
Merge "drivers: qcom: lpm-stats: Fix undefined access error"

6 years agoMerge "soc: qcom: hab: add some pchans for BufferQ and FDE"
Linux Build Service Account [Sat, 17 Mar 2018 10:13:22 +0000 (03:13 -0700)]
Merge "soc: qcom: hab: add some pchans for BufferQ and FDE"

6 years agoMerge "ARM: dts: msm: change early camera on msm8996 agave"
Linux Build Service Account [Sat, 17 Mar 2018 10:13:21 +0000 (03:13 -0700)]
Merge "ARM: dts: msm: change early camera on msm8996 agave"

6 years agoMerge "msm: kgsl: Add support for A509 GPU"
Linux Build Service Account [Sat, 17 Mar 2018 10:13:19 +0000 (03:13 -0700)]
Merge "msm: kgsl: Add support for A509 GPU"

6 years agodrm/msm/sde: store mdss irq status in case of irq storm
Lloyd Atkinson [Mon, 21 Aug 2017 14:15:38 +0000 (10:15 -0400)]
drm/msm/sde: store mdss irq status in case of irq storm

Store the last MDSS IRQ status value to help identify the source
of any erroneous IRQs that might cause an IRQ storm. Also, check
return codes on IRQ mapping or handling and report any unhandled
IRQs to the IRQ system.

Change-Id: I585c97c01736216556eb389bda79548c1fda2b64
Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
6 years agodrm/msm/sde: take irq callback lock before reading cb list
Lloyd Atkinson [Mon, 18 Sep 2017 20:51:24 +0000 (16:51 -0400)]
drm/msm/sde: take irq callback lock before reading cb list

Take the callback spinlock before checking whether the callback
table list is empty. This resolves a race condition where the
callback list could be empty during the servicing of an
interrupt.

Change-Id: I8d59c0211526173ce98c8ca2dac36ec4743dc8f8
Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
Signed-off-by: Lakshmi Narayana Kalavala <lkalaval@codeaurora.org>