OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
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 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 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 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>
6 years agodrm/msm: limit sde_dbg_dump output to current entries
Lakshmi Narayana Kalavala [Mon, 26 Feb 2018 23:06:22 +0000 (15:06 -0800)]
drm/msm: limit sde_dbg_dump output to current entries

Update the sde_dbg_dump function to only dump event log
entries up to the time the dump is initiated, and increase
the number of recorded event log entries.

This places a limit on the total number of entries that are
output to the dmesg log even if more entries would have been
added while the dump is executing (e.g., interrupt events),
while still allowing the extra events to be recorded properly.

Change-Id: I66f850d21a2d0217f9049facffce074831b7e17d
Signed-off-by: Clarence Ip <cip@codeaurora.org>
Signed-off-by: Lakshmi Narayana Kalavala <lkalaval@codeaurora.org>
6 years agodrm/msm: add input sanitization on debug dump debugfs
Lakshmi Narayana Kalavala [Thu, 22 Feb 2018 19:42:48 +0000 (11:42 -0800)]
drm/msm: add input sanitization on debug dump debugfs

Add checks to debugfs input parameters in sde debug dump debugfs
entries.

Change-Id: Iea170b75c1eb9aa46366662d36e677cb3251830b
Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
Signed-off-by: Lakshmi Narayana Kalavala <lkalaval@codeaurora.org>
6 years agodrm/msm/sde: add debugfs nodes for underruns debug
Lakshmi Narayana Kalavala [Wed, 21 Feb 2018 01:55:26 +0000 (17:55 -0800)]
drm/msm/sde: add debugfs nodes for underruns debug

This change adds debugfs nodes for debugging underruns,
after this change following commands are supported:
1. To enable the underrun ftrace:
echo 1 > /d/tracing/events/sde/sde_encoder_underrun/enable
2. To enable feature that disables the ftraces once the
underrun happens:
echo 1 > /d/dri/0/debug/dbg_ctrl
3. To enable the panic in the device when underrun happens:
echo 2 > /d/dri/0/debug/dbg_ctrl
4. To enable both of the above options:
echo 3 > /d/dri/0/debug/dbg_ctrl

Change-Id: Id9f407edb0908a5f8454f08d63c356dc8f04d353
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
Signed-off-by: Lakshmi Narayana Kalavala <lkalaval@codeaurora.org>
6 years agoMerge "ais: sync clk status and tasklet"
Linux Build Service Account [Fri, 16 Mar 2018 22:34:20 +0000 (15:34 -0700)]
Merge "ais: sync clk status and tasklet"

6 years agodefconfig: msm-auto: Add qti can driver support
Balachandra C S [Fri, 16 Mar 2018 13:34:38 +0000 (19:04 +0530)]
defconfig: msm-auto: Add qti can driver support

Enable qti can driver support in msm-auto_defconfg and
msm-auto-perf_defconfig.

Change-Id: I9a88bb345c9ebf3dac49cfef9e46ff7f736d979c
Signed-off-by: Balachandra C S <balacs@codeaurora.org>
6 years agoModify k61 driver to remove support for mpc5746c CAN card
Balachandra C S [Tue, 6 Mar 2018 14:08:26 +0000 (19:38 +0530)]
Modify k61 driver to remove support for mpc5746c CAN card

mpc5746c CAN driver will be supported by the unified driver qti-can
also remove rh850 support from qti-can driver.

Change-Id: I6743604c1298b9705ac3550b96c9dae04d5137bd
Signed-off-by: Balachandra C S <balacs@codeaurora.org>
6 years agoASoC: sdm660: fix clock refcount for MI2S shutdown
Soumya Managoli [Wed, 7 Mar 2018 11:28:18 +0000 (16:58 +0530)]
ASoC: sdm660: fix clock refcount for MI2S shutdown

For MI2S shutdown, if clock disable fails,
do not increment clock reference. Otherwise,
next time when startup is called, clock enable will not
be called again, so use case will not work.

CRs-Fixed: 2200021
Change-Id: Ic1b6f238e55a58ca1993049468cf13f13d80b9f4
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
6 years agoARM: dts: msm: Add DT changes for QTI CAN driver for MSM8996
Balachandra C S [Fri, 16 Mar 2018 09:59:37 +0000 (15:29 +0530)]
ARM: dts: msm: Add DT changes for QTI CAN driver for MSM8996

Add CAN device for MSM8996 auto variant using QTI CAN driver.

Change-Id: I76db18009bec22e2fa2216511b42dee99d1173ee
Signed-off-by: Balachandra C S <balacs@codeaurora.org>
6 years agodrivers: net: can: Unified driver for CAN controller
Balachandra C S [Tue, 6 Mar 2018 13:28:28 +0000 (18:58 +0530)]
drivers: net: can: Unified driver for CAN controller

Create a single CAN driver for all the supported CAN
controllers.

Change-Id: I3770aae1adf4ccafd5132f6b57ddc050a93c7c0f
Signed-off-by: Balachandra C S <balacs@codeaurora.org>
6 years agoMerge "diag: Proper update of logging mode"
Linux Build Service Account [Fri, 16 Mar 2018 08:56:04 +0000 (01:56 -0700)]
Merge "diag: Proper update of logging mode"

6 years agoMerge "msm: mdss: Signal outstanding fences when panel is dead"
Linux Build Service Account [Fri, 16 Mar 2018 08:56:02 +0000 (01:56 -0700)]
Merge "msm: mdss: Signal outstanding fences when panel is dead"

6 years agoMerge "msm: mdss: release retire fence during commit failure"
Linux Build Service Account [Fri, 16 Mar 2018 08:56:00 +0000 (01:56 -0700)]
Merge "msm: mdss: release retire fence during commit failure"

6 years agoMerge "scsi: ufs: Avoid uninitialized use of offset"
Linux Build Service Account [Fri, 16 Mar 2018 08:55:59 +0000 (01:55 -0700)]
Merge "scsi: ufs: Avoid uninitialized use of offset"

6 years agoMerge "ath10k: append the wmi_op_version to testmode get_version cmd"
Linux Build Service Account [Fri, 16 Mar 2018 08:55:57 +0000 (01:55 -0700)]
Merge "ath10k: append the wmi_op_version to testmode get_version cmd"

6 years agoMerge "Revert "defconfig: msm: Modify tv tuner config in MSM8996""
Linux Build Service Account [Fri, 16 Mar 2018 08:55:55 +0000 (01:55 -0700)]
Merge "Revert "defconfig: msm: Modify tv tuner config in MSM8996""

6 years agoMerge "drm/msm/sde: add validation checks for source split"
Linux Build Service Account [Fri, 16 Mar 2018 08:55:53 +0000 (01:55 -0700)]
Merge "drm/msm/sde: add validation checks for source split"

6 years agoMerge "drm/msm: move display and event threads to realtime priority"
Linux Build Service Account [Fri, 16 Mar 2018 08:55:49 +0000 (01:55 -0700)]
Merge "drm/msm: move display and event threads to realtime priority"

6 years agoMerge "regulator: kryo: fix return value for regulator_disable"
Linux Build Service Account [Fri, 16 Mar 2018 08:55:37 +0000 (01:55 -0700)]
Merge "regulator: kryo: fix return value for regulator_disable"

6 years agoMerge "clk: qcom: osm: Update maximum number of bytes to read from buffer"
Linux Build Service Account [Fri, 16 Mar 2018 08:55:35 +0000 (01:55 -0700)]
Merge "clk: qcom: osm: Update maximum number of bytes to read from buffer"

6 years agodrivers: qcom: lpm-stats: Fix undefined access error
Mahesh Sivasubramanian [Wed, 7 Mar 2018 23:00:07 +0000 (16:00 -0700)]
drivers: qcom: lpm-stats: Fix undefined access error

In cleanup_stats(), a freed memory pointer pos might be accessed for
list traversal. Switch to using _safe() variant of the list API to
prevent undefined accesses.

Change-Id: I7d068cb7813ccb9bfdbcab4646b4ec890145828a
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
6 years agoadv7481: Fix CVBS input resolution.
Suprith Malligere Shankaregowda [Thu, 15 Mar 2018 12:18:01 +0000 (17:48 +0530)]
adv7481: Fix CVBS input resolution.

Modify CVBS resolution to 720x507 so that
cvbs frames displayed correctly.

Change-Id: I036aaa4606ff00aab107834fc3e39a5a096c3d87
Signed-off-by: Suprith Malligere Shankaregowda <supgow@codeaurora.org>
6 years agosoc: qcom: hab: add some pchans for BufferQ and FDE
Yong Ding [Thu, 8 Mar 2018 06:22:12 +0000 (14:22 +0800)]
soc: qcom: hab: add some pchans for BufferQ and FDE

This is adding pchans based on the legacy header files.

Change-Id: I0abf6b7617f4e1e057891c1312a20538bc65d2ea
Signed-off-by: Yong Ding <yongding@codeaurora.org>