Commit graph

598165 commits

Author SHA1 Message Date
Linux Build Service Account
03ead47874 Merge "defconfig: msm: Enable EHSET test fixture driver on msm8996 Auto" 2018-03-23 03:32:39 -07:00
Chris Lew
f497bfd257 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>
2018-03-23 16:01:25 +05:30
Srinivas Girigowda
88f4823be3 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>
2018-03-23 02:12:58 -07:00
Yong Ding
7e72e45a2e 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>
2018-03-23 16:29:28 +08:00
Camus Wong
bc5c74d801 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>
2018-03-23 00:08:11 -07:00
Björn Davidsson
b1b1320534 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>
2018-03-22 23:20:10 -07:00
Suprith Malligere Shankaregowda
3bc00c1740 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>
2018-03-22 21:52:10 -07:00
Linux Build Service Account
63d54f82b9 Merge "adv7481: Add early error returns" 2018-03-22 12:23:15 -07:00
Linux Build Service Account
ed6f6fd1c1 Merge "drm/msm: refine hdmi bridge implementation" 2018-03-22 12:23:13 -07:00
Linux Build Service Account
fd9828eea2 Merge "msm: ais: sensor: Fix the state check for i2c ops" 2018-03-22 12:23:12 -07:00
Linux Build Service Account
b5b7f77ecf Merge "ais: set list cmd to be available after del before return" 2018-03-22 12:23:11 -07:00
Balachandra C S
0d1ea72d6e 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>
2018-03-22 18:21:57 +05:30
Rama Krishna Phani A
51df7d76f7 msm: pcie: Add proper check before accessing variables
Add proper check before accessing variables.

Change-Id: Idb4aec6e276d7c82a4311be733fcb13b875ae6c8
Signed-off-by: Rama Krishna Phani A <rphani@codeaurora.org>
2018-03-22 16:18:45 +05:30
Ajay Agarwal
5cc97e3162 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>
2018-03-21 22:32:46 -07:00
Linux Build Service Account
926f541b46 Merge "drivers: net: Change timeout for query_firmware command" 2018-03-21 21:44:56 -07:00
Cong Tang
a1d5bb9297 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>
2018-03-21 19:49:22 -07:00
Linux Build Service Account
70a1e9b625 Merge "msm: vidc: Add support for decoder STOP command" 2018-03-21 10:10:21 -07:00
Linux Build Service Account
0ce8a0b5d0 Merge "ASoC: msm: qdsp6v2: Fix APR packet size for SET_UI_PROPERTY" 2018-03-21 10:10:20 -07:00
Linux Build Service Account
cbae14bbfc Merge "ASoC: msm: Fix KW issues for audio drivers" 2018-03-21 10:10:17 -07:00
Balachandra C S
2e4eba9f68 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>
2018-03-21 20:17:08 +05:30
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