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>
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>
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>
Add client id node for virtual kernel drm driver for msm8996.
Change-Id: I579149c72e9fa1741784ee37afb662d04ee20f0a
Signed-off-by: Camus Wong <camusw@codeaurora.org>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>