Commit graph

598196 commits

Author SHA1 Message Date
Linux Build Service Account
01b4773f29 Merge "soc: qcom: ipc_router_mhi_xprt: Initialize variable at start" 2018-03-20 23:18:29 -07:00
Linux Build Service Account
cac60109a9 Merge "net: ipc_router: Validate return from skb_peek" 2018-03-20 23:18:28 -07:00
Linux Build Service Account
0d536697bf Merge "soc: qcom: tracer_pkt: Fix buffer length check" 2018-03-20 23:18:26 -07:00
Linux Build Service Account
9f259c5e8d Merge "soc: qcom: subsystem_notif_virt: Fix owner for the driver" 2018-03-20 23:18:25 -07:00
Cong Tang
53a51106b5 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
2018-03-20 22:36:40 -07:00
Cong Tang
82c2a635bd 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>
2018-03-20 22:35:14 -07:00
Manoj Prabhu B
43f15aca94 diag: Remove hdlc status dependeny on session_info
The patch removes the hdlc status dependency on session_info
protected by md_session_lock inserting delay in processing data
off peripheral.

CRs-Fixed: 2193991
Change-Id: Ia79c0efe82803c15ccae42b00d95258f52242eee
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2018-03-20 21:35:06 -07:00
Suprith Malligere Shankaregowda
09e5ec8bea 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>
2018-03-20 20:57:33 -07:00
Andy Sun
eced8c70ba 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>
2018-03-21 10:35:20 +08:00
Yong Ding
4fc0ee9d99 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>
2018-03-20 19:01:52 -07:00
Linux Build Service Account
bb9c0e0ec8 Merge "diag: Protect the decrement of number of diag clients" 2018-03-20 08:36:14 -07:00
Linux Build Service Account
8fbab95a99 Merge "ARM: dts: msm: set ION type to SYSTEM for msm8996 telematics" 2018-03-20 08:36:13 -07:00
Linux Build Service Account
1a92d1310c Merge "ASoC: msm: Fix adding channel mixer control failure issue" 2018-03-20 08:36:11 -07:00
Dilip Kota
e98ad55129 slimbus: Avoid uninitialized variable access
Avoid reading uninitalized variables.
Initialize it to default value before reading.

Change-Id: Ic34dfec16357cbc4992912e883f21f014cf8a66c
Signed-off-by: Dilip Kota <dkota@codeaurora.org>
Signed-off-by: Shrey Vijay <shreyv@codeaurora.org>
2018-03-20 19:25:09 +05:30
Chris Lew
ebea2d9775 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>
2018-03-20 18:16:10 +05:30
Dhoat Harpal
ce38d58009 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>
2018-03-20 18:00:41 +05:30
Tharun Kumar Merugu
eede053d5f msm: ADSPRPC: Validate rpra to avoid Null pointer dereference
In get_args function their is no NULL pointer check for rpra
variable, that might lead to null pointer dereference. Add
condition to verify.

Change-Id: I0789e8ea875221de5809598419bc7f842aa3e22e
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
2018-03-20 17:17:44 +05:30
Chris Lew
1c8d205e09 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>
2018-03-20 16:25:45 +05:30
Ajay Agarwal
c4babeece3 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>
2018-03-20 16:14:43 +05:30
Praneeth Paladugu
84d22be9dc 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
2018-03-19 23:16:39 -07:00
Suprith Malligere Shankaregowda
6a45766c6d 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>
2018-03-19 21:37:22 -07:00
Linux Build Service Account
8e181ea4e8 Merge "ion: ensure valid start address" 2018-03-19 18:03:29 -07:00
Linux Build Service Account
7ac7fb2eca Merge "ARM: dts: msm: Update GPU chipid for SDM636" 2018-03-19 18:03:28 -07:00
Linux Build Service Account
30160a82d3 Merge "defconfig: msm-auto: Add qti can driver support" 2018-03-19 18:03:23 -07:00
Linux Build Service Account
675ca2f48b Merge "ARM: dts: msm: Add DT changes for QTI CAN driver for MSM8996" 2018-03-19 18:03:22 -07:00
Linux Build Service Account
fd46324f9e Merge "msm: ais: isp: Handling buffer use after getting it freed" 2018-03-19 18:03:21 -07:00
Sreelakshmi Gownipalli
6eb2f4f6fd 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>
2018-03-19 13:09:25 -07:00
Anant Goel
4219e54c49 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>
2018-03-19 10:48:06 -07:00
Pratap Nirujogi
2503a05f0d 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>
2018-03-19 06:40:03 -07:00
Rashi Bindra
a9c93223f4 msm: mdss: Fix for wrong length in copy_to_user
The caller could have a small buf passed (less then < blen).
Since, the length of count and blen is not checked, it can
write beyond the end of buf.

Change-Id: I9138cd742b6166937f3cc1cbf1af36f280c94bdb
Signed-off-by: Rashi Bindra <rbindra@codeaurora.org>
2018-03-19 17:06:12 +05:30
Linux Build Service Account
d99718532d Merge "scsi: ufs: Fix compilation error in ufs cmd logging" 2018-03-19 03:35:44 -07:00
Linux Build Service Account
3c763dc33a Merge "msm: camera: isp: Fix freeze of preview stream during CDS" 2018-03-19 03:35:42 -07:00
Linux Build Service Account
fc187e817f Merge "drm/msm/sde: store mdss irq status in case of irq storm" 2018-03-19 03:35:38 -07:00
Linux Build Service Account
0cf11fbe38 Merge "drm/msm/sde: take irq callback lock before reading cb list" 2018-03-19 03:35:36 -07:00
Linux Build Service Account
af36d13ab9 Merge "drm: smmu: fix smmu map failure" 2018-03-19 03:35:35 -07:00
Hareesh Gundu
18909deea1 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>
2018-03-19 15:39:42 +05:30
Camus Wong
a4d84e9fa8 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>
2018-03-19 10:33:30 +05:30
Yimin Peng
b1b7087784 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>
2018-03-19 11:06:46 +08:00
Chunhuan Zhan
10fefd41fb 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>
2018-03-18 19:11:16 -07:00
Srikanth Uyyala
4c2c53834f 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>
2018-03-18 03:36:35 -07:00
Linux Build Service Account
0d8bfae571 Merge "msm: mdss: serialize wait for pingpong with kickoff" 2018-03-17 03:13:28 -07:00
Linux Build Service Account
9d0097e58a Merge "adv7481: Fix CVBS input resolution." 2018-03-17 03:13:27 -07:00
Linux Build Service Account
bd37ebb718 Merge "ASoC: sdm660: fix clock refcount for MI2S shutdown" 2018-03-17 03:13:25 -07:00
Linux Build Service Account
e0388e13d9 Merge "drivers: qcom: lpm-stats: Fix undefined access error" 2018-03-17 03:13:24 -07:00
Linux Build Service Account
867606ecc2 Merge "soc: qcom: hab: add some pchans for BufferQ and FDE" 2018-03-17 03:13:22 -07:00
Linux Build Service Account
34a1c994c2 Merge "ARM: dts: msm: change early camera on msm8996 agave" 2018-03-17 03:13:21 -07:00
Linux Build Service Account
6aaef91265 Merge "msm: kgsl: Add support for A509 GPU" 2018-03-17 03:13:18 -07:00
Lloyd Atkinson
c9b913882d 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>
2018-03-16 17:26:58 -07:00
Lloyd Atkinson
3c6964a08c 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>
2018-03-16 17:26:21 -07:00
Lakshmi Narayana Kalavala
1f9861ad38 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>
2018-03-16 17:25:34 -07:00