Commit graph

596887 commits

Author SHA1 Message Date
Hardik Arya
63b076dbd0 diag: Validate copying length against source buffer length
There a possibility of out-of-bound read because of not
validating source buffer length against length that about
to be copied. The patch adds proper check for validating
length before copying data

CRs-Fixed: 2163793
Change-Id: I7c93839d0c4d83024ce23a0ce494d09dd08567a9
Signed-off-by: Hardik Arya <harya@codeaurora.org>
2018-02-20 15:13:44 +05:30
Linux Build Service Account
3fe4f284c8 Merge "msm: ipa3: lift the HOLB only when WDI enable" 2018-02-01 18:49:17 -08:00
Linux Build Service Account
d326b7ac6b Merge "icnss: Avoid wlan driver remove during modem graceful shutdown" 2018-02-01 18:49:16 -08:00
Linux Build Service Account
54c3bbc44e Merge "msm: kgsl: Update global memory base to 0XFC000000 for 64bit kernel" 2018-02-01 18:49:13 -08:00
Skylar Chang
4be7ee1f02 msm: ipa3: lift the HOLB only when WDI enable
We should only remove HOLD on WDI pipes
after getting WDI_ENABLE, not on WDI_CONNECT
or those Tx pkts will stock in WLAN tx pipes.

Change-Id: I23a87afbc5b7a6fe8abbab16fbfe2caab7535f8e
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2018-02-01 10:47:28 -08:00
Linux Build Service Account
3459447694 Merge "ais: adjust frame id values to match user space of all platforms" 2018-02-01 01:42:16 -08:00
Linux Build Service Account
47e2f5d9c8 Merge "ARM: dts: msm: add client id for sde-hyp for msm8996" 2018-02-01 01:42:14 -08:00
Linux Build Service Account
41dfd82521 Merge "drm/msm-hyp: parse client id from dtsi" 2018-02-01 01:42:13 -08:00
Linux Build Service Account
7aedbd9bb5 Merge "ARM: dts: msm: correct the syntax format of firmware node" 2018-02-01 01:42:12 -08:00
Linux Build Service Account
f94d8103da Merge "Merge android-4.4.113 (ef588ef) into msm-4.4" 2018-02-01 01:42:10 -08:00
Linux Build Service Account
1d316f30ae Merge "ath10k: Indicate MSDU_ID_NEW_PARTITION support in host cap flags" 2018-02-01 01:42:08 -08:00
Linux Build Service Account
4b3f47da05 Merge "ath10k: Add host capability indication flag in wmi ready cmd" 2018-02-01 01:42:07 -08:00
Linux Build Service Account
92c2826123 Merge "spi: spi_qsd: Correct SPI slave hw init sequence" 2018-02-01 01:42:06 -08:00
Linux Build Service Account
e08d3d8ae8 Merge "ARM: dts: msm: disable tv tuner on apq8096pro and msm8996pro ADP Lite" 2018-02-01 01:42:04 -08:00
Hardik Kantilal Patel
7311ff92a3 icnss: Avoid wlan driver remove during modem graceful shutdown
In case of modem graceful shutdown case during wlan driver
remove it delete the wlan interface and later probe time
create the new interface. some time new interface may get
different interface index. Android wificond framework module
is not aware about this interface index change due to this
after recovery it try to do scan with old interface index
which result into scan failure.

To address above issue avoid wlan driver remove during modem
graceful shutdown.

CRs-Fixed: 2157835
Change-Id: I8b828bef8b5f43cc39ba8ee578dcafc6afaa98d6
Signed-off-by: Hardik Kantilal Patel <hkpatel@codeaurora.org>
2018-01-31 21:47:15 -08:00
Camus Wong
be633d337d ARM: dts: msm: add client id for sde-hyp for msm8996
Add client id node for virtual kernel drm driver for msm8996.

Change-Id: I579149c72e9fa1741784ee37afb662d04ee20f0a
Signed-off-by: Camus Wong <camusw@codeaurora.org>
2018-01-31 09:13:19 -08:00
Camus Wong
707df110d5 drm/msm-hyp: parse client id from dtsi
Read client id from dtsi, then parse and return it when queried
by user space. This change allows setting different client id
without changing driver code.

Change-Id: I3858ee80748f2a485a115c652608cc484d6f3720
Signed-off-by: Camus Wong <camusw@codeaurora.org>
2018-01-31 09:13:01 -08:00
Linux Build Service Account
abdd204a44 Merge "spi_qsd: Add sysfs entry for QUP state" 2018-01-31 08:52:31 -08:00
Linux Build Service Account
38193f521b Merge "ath10k: Enable SRRI/DRRI support on ddr" 2018-01-31 08:52:30 -08:00
Linux Build Service Account
1e3e2c07cf Merge "mmc: sdhci: Avoid leaking kernel addresses" 2018-01-31 08:52:29 -08:00
Linux Build Service Account
be7e6d1343 Merge "mmc: sdhci-msm: Remove printing tlmm physical address" 2018-01-31 08:52:28 -08:00
Linux Build Service Account
6a36d0b899 Merge "mmc: cmdq-hci: Change unnecessary pr_err logs to pr_debug" 2018-01-31 08:52:26 -08:00
Linux Build Service Account
4b67880220 Merge "mmc: sdhci-msm: Avoid leaking kernel address from mmc platform driver" 2018-01-31 08:52:25 -08:00
Linux Build Service Account
83f5feb204 Merge "ARM: dts: msm: Change PM8994 GPIO11 configuration for Mizar" 2018-01-31 08:52:24 -08:00
Linux Build Service Account
3c27dd3582 Merge "ARM: dts: msm: switch to virtual clock for usb3 on msm8996 vplatform" 2018-01-31 08:52:23 -08:00
Linux Build Service Account
9dee4f7d72 Merge "ARM: dts: msm: add a device tree for LV in multi-GVMs" 2018-01-31 08:52:22 -08:00
Alok Chauhan
363bbeba93 spi: spi_qsd: Correct SPI slave hw init sequence
While configuring QUP in SPI slave mode, an internal
HW signal needs to propagate from AHB clock domain
to SPI core  clock domain. To make sure a safe and
correct propagation of this signal the software should
perform the SPI HW init sequence in proper order.

Change-Id: Ied621bb5d1ba793ce48c5a6a0f6be3b86b3a6773
Signed-off-by: Alok Chauhan <alokc@codeaurora.org>
2018-01-31 11:54:13 +05:30
Chao Bi
e5cbd8971b ARM: dts: msm: correct the syntax format of firmware node
The device node of "firmware" which is used for LA platform should
be placed within scope of root node.

Change-Id: I9387ee3871415b5f1d9da50979909d2321be0a85
Signed-off-by: Chao Bi <chaobi@codeaurora.org>
2018-01-31 10:11:11 +08:00
Linux Build Service Account
be689b0df1 Merge "usb: dwc3: Suspend USB SS PHY in host mode with device connect case" 2018-01-30 07:22:38 -08:00
Rahul Sharma
db60a7d1a8 ARM: dts: msm: disable tv tuner on apq8096pro and msm8996pro ADP Lite
Tv tuner is not used on apq8096pro auto adp lite
and msm8996pro auto adp lite platform.
So disable tv tuner to fix bootup failure in ADP lite Board.

Change-Id: Icc2082cc1fa21373bd0d97c3d4671946403355ea
Suggested-by: Suprith Shankaregowda <c_suprit@qti.qualcomm.com>
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
2018-01-30 03:40:02 -08:00
Dilip Kota
4938bb02a8 spi_qsd: Add sysfs entry for QUP state
QUP state entry exposes the state of the SPI QUP
hardware. It tells whether SPI QUP is in run state,
pause state or reset state.

Change-Id: Idc012a30f78846ff5b4c6da20adcf68a7cd2b4d3
Signed-off-by: Dilip Kota <dkota@codeaurora.org>
2018-01-30 14:54:29 +05:30
Dilip Kota
4ac5f8ab03 spi_qsd: Reset SPI core for transaction failure
Reset SPI core for transaction failure.
Remove the code configuring IO_CONTROL register
for SPI slave.

Change-Id: I3819269a9f2b7815ccfaf96713943eb04b36e137
Signed-off-by: Dilip Kota <dkota@codeaurora.org>
2018-01-30 14:10:07 +05:30
Govind Singh
6c041646a0 ath10k: Enable SRRI/DRRI support on ddr
The SRRI/DRRI can be read from DDR instead of doing an
actual hardware read. Host allocates non cached memory
on ddr and sends the physical address of this memory to
the CE hardware. The hardware updates the RRI on this
particular location. Target registers are not accessible
during CSS shutdown while target is in idle mode. Direct
access to SRRI/DRRI can lead to NOC error in target idle
state. Read SRRI/DRRI from DDR location instead of
direct target read.

Change-Id: Iae3772fb6408469c5f9db8a9210d3ab6ea35eccf
Signed-off-by: Govind Singh <govinds@codeaurora.org>
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
2018-01-29 22:43:19 -08:00
Deepak Kumar
7ca9a11f50 msm: kgsl: Update global memory base to 0XFC000000 for 64bit kernel
KGSL memstore GPU address should be 32bit value for user mode
graphics driver to successfully mmap device memstore.

Move global memory base to 0XFC000000 from 0X100000000 for 64bit
kernel to allow user mode graphics driver to successfully mmap
memstore.

Change-Id: Iadfbde5e2b13c1be943a272e424f6c5f05cc1b97
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
2018-01-30 10:52:46 +05:30
Vijay Viswanath
0d483a4862 mmc: sdhci: Avoid leaking kernel addresses
Use %pK instead of %p in debug logs so that kernel addresses don't get
leaked when debug logs are dynamically enabled.

Change-Id: I3c0df8a8db6643ab547d8599dd03b54030f76ece
Signed-off-by: Vijay Viswanath <vviswana@codeaurora.org>
2018-01-29 20:07:32 -08:00
Vijay Viswanath
a500d04dd6 mmc: sdhci-msm: Remove printing tlmm physical address
Remove the debug log which leaks physical address,
eventhough tlmm is no longer used.

Change-Id: Ie6968c46ea063e9192e2ccef053107ee7d8f5775
Signed-off-by: Vijay Viswanath <vviswana@codeaurora.org>
2018-01-29 20:07:17 -08:00
Vijay Viswanath
38d9dd7afe mmc: cmdq-hci: Change unnecessary pr_err logs to pr_debug
Now that CMDQ device and driver are stable, Change unnecessary
pr_err logs to pr_debug.
Also use %pK instead of %p while printing addresses to avoid leaking
of kernel addresses.

Change-Id: I95683ffe0410daef86dd9a376f5769d8f40ae990
Signed-off-by: Vijay Viswanath <vviswana@codeaurora.org>
2018-01-29 20:07:00 -08:00
Vijay Viswanath
872115d4ca mmc: sdhci-msm: Avoid leaking kernel address from mmc platform driver
Remove printing the address of sdhci_msm driver variables to avoid
leaking the kernel addresses. This is no longer required as the
sdhci_msm driver has become stable.

Change-Id: I88d9d66d9d00adad8ec79df689ae80f4aae97b7e
Signed-off-by: Vijay Viswanath <vviswana@codeaurora.org>
2018-01-29 20:06:49 -08:00
Linux Build Service Account
f27d5677e5 Merge "ARM: dts: msm: Make allocation for diag as guaranteed on msm8998" 2018-01-29 14:02:09 -08:00
Linux Build Service Account
d10ff5a6dc Merge "soc: qcom: qdss_bridge: add support for SSR" 2018-01-29 14:02:08 -08:00
Bharathraj Nagaraju
d72b6f50b7 ARM: dts: msm: Change PM8994 GPIO11 configuration for Mizar
For Mizar drive strength of PMIC_GPIO_11 should be medium.
Changed PMIC_GPIO_11 drive strength to medium.

Change-Id: I4d7d5e4065c6d29be4d8567a8e40472fc1f62f9e
Signed-off-by: Bharathraj Nagaraju <snbraj@codeaurora.org>
2018-01-29 13:44:38 -08:00
Surabhi Vishnoi
04f969d4bd ath10k: Indicate MSDU_ID_NEW_PARTITION support in host cap flags
The HL1.0 firmware uses msdu desc_id above 3000 as a reference
to indicate tx completion on a different endpoint. Due to this, if the
host driver uses more than 3000 msdu desc_id, the tx completion
for the msdu with desc_id above 3000 is sent to a different endpoint.

Setting the MSDU_ID_NEW_PARTITION host driver capability support
in the wmi ready flags indicates to the HL1.0 firmware to change
this threshold reference to a higher value.

Change-Id: If7bbddb6827bbe2be995c153328611930319d74e
Signed-off-by: Surabhi Vishnoi <svishnoi@codeaurora.org>
2018-01-29 22:46:56 +05:30
Surabhi Vishnoi
9f2420dd35 ath10k: Add host capability indication flag in wmi ready cmd
Add the host capability indication flags in the wmi ready command,
for firmware to know the features supported by host driver.

Change-Id: I0c07fb371e474995cb00f51bfe0eea4f46ab4223
Signed-off-by: Surabhi Vishnoi <svishnoi@codeaurora.org>
2018-01-29 20:48:44 +05:30
Yimin Peng
c4384a1054 ARM: dts: msm: switch to virtual clock for usb3 on msm8996 vplatform
Virtual clock driver is ready and gvm needs to manage clocks of usb3
which is a typical pass through device.

Change-Id: Ie8edfce2602f090d0f6b59d0af2e4b39282dfd6d
Signed-off-by: Yimin Peng <yiminp@codeaurora.org>
2018-01-29 20:59:02 +08:00
Andy Sun
36874e5bf8 ais: adjust frame id values to match user space of all platforms
1. resume frame done id solution: 2, 4, 6 ...
2. set field SOF id value to starts from 1: 1, 2, 3 ...

Change-Id: Ic7aea3cf99cd6d9b6ca62edb4dd17bce065717bd
Signed-off-by: Andy Sun <bins@codeaurora.org>
2018-01-29 18:35:21 +08:00
Yong Ding
b3970f4eab ARM: dts: msm: add a device tree for LV in multi-GVMs
The new device tree file is used to support the LV GVM
which will run in multiple Guest VMs environment, like
together with a LA GVM.

Change-Id: I086488012169531027699c0970221bb58056ec24
Signed-off-by: Yong Ding <yongding@codeaurora.org>
2018-01-29 16:18:47 +08:00
Linux Build Service Account
74b6b84c4a Merge "ASoC: msm: Loopback Driver Reg Stream in Prepare Stage" 2018-01-28 23:35:14 -08:00
Manoj Prabhu B
c8ba7feb00 ARM: dts: msm: Make allocation for diag as guaranteed on msm8998
Currently, memshare allocates 5MB memory to diag client on
receiving requests from modem. With the patch diag client
will be considered guaranteed on msm8998 to avoid memory
allocation failure on modem SSRs. Marking diag guaranteed
client allocated memory will never be freed.

Change-Id: I93fa8ae34d2268f6a18c7311b6833ed7e33ab30b
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2018-01-28 22:35:18 -08:00
Linux Build Service Account
0b1ba172bb Merge "ARM: dts: msm: Add cnss for WLAN in ivi vplatform" 2018-01-26 16:10:32 -08:00
Linux Build Service Account
3cc2b1b5c9 Merge "ARM: dts: msm: Switch to virtual clock and reset for usb2 on vplatform" 2018-01-26 16:10:31 -08:00