This change is for general scheduler improvement.
Change-Id: Id19f38a2b9a67b130876cb8df1e88c6a56aa6aad
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
This change is for general scheduler improvement.
Change-Id: I30b3899e191d880e741f922323d0826b5c292498
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
This change is for general scheduler improvement.
Change-Id: I616acbe5bfdb0e1bf88e923d98b4a3d54d26d942
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
- Made change to fix the compilation error coming due to change
3362467.
Change-Id: Ia2f91319098dbf2e1dd094cfd74aaea253b167b6
Signed-off-by: Paras Singh Jain <parassin@codeaurora.org>
If CONFIG_QCOM_COMMAND_DB=n the following compilation errors will be
seen. Fix this by including the appropriate linux headers.
./include/soc/qcom/cmd-db.h: In function ‘cmd_db_read_aux_data’:
./include/soc/qcom/cmd-db.h: error: implicit declaration of function ‘ERR_PTR’;
Change-Id: I76ed6230b00f88cefbb78e5f2ee4a534316078d7
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sibi Sankar <sibis@codeaurora.org>
Link: https://lore.kernel.org/r/20200227125615.4727-1-sibis@codeaurora.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Git-commit: 7ad18bb5c2c4bd50c8b83d375ee19be992022cf3
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Tushar Nimkar <tnimkar@codeaurora.org>
Ignore -106 error when channel opened
again without closing.
CRs-Fixed: 2836671
Change-Id: Ib27179031e6bbdc20511132efd6c4578d1d0a911
Signed-off-by: Satish Kodishala <skodisha@codeaurora.org>
Export and call crypto APIs from command queue driver to
service file encryption request and program inline crypto
engine to encrypt/decrypt the data.
Change-Id: I8c9c8413e59454605c711a6a5c14308122a751e2
Signed-off-by: Phanindra Babu Pabba <pabba@codeaurora.org>
Fix data race in prepend_path() with re-reading mnt->mnt_ns twice
without holding the lock.
is_mounted() does check for NULL, but is_anon_ns(mnt->mnt_ns) might
re-read the pointer again which could be NULL already, if in between
reads one of kern_unmount()/kern_unmount_array()/umount_tree() sets
mnt->mnt_ns to NULL.
This is seen in production with the following stack trace:
BUG: kernel NULL pointer dereference, address: 0000000000000048
...
RIP: 0010:prepend_path.isra.4+0x1ce/0x2e0
Call Trace:
d_path+0xe6/0x150
proc_pid_readlink+0x8f/0x100
vfs_readlink+0xf8/0x110
do_readlinkat+0xfd/0x120
__x64_sys_readlinkat+0x1a/0x20
do_syscall_64+0x42/0x110
entry_SYSCALL_64_after_hwframe+0x44/0xa9
Fixes: f2683bd8d5 ("[PATCH] fix d_absolute_path() interplay with fsmount()")
Change-Id: If634d570fb7f37f4a77ae4f10970013dbc0762cb
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Git-commit: 09cad07547445bf3a41683e4d3abcd154c123ef5
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
For synchronous messages sent from the agent to platform,
agent waits for response for 30 milli seconds (max_rx_timeout)
before timing out if response gets delayed from platform.
Increase the timeout value to 1 second to minimize message
send failures in case of delays.
Change-Id: I72e9ab33a9be675b64301e904e8d43fb8bb89e50
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
Change the aoss reset string to aoss_cc_reset to avoid
errors in string compare.
Change-Id: I06c7d31328c2d0589107407ccfa4c2e4700756b5
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
PCIe pipe clock mux is dependent on the reference
clocks being on. The pipe clock mux initialization
code was being called before the reference clocks
were initialized. Move the pipe clock mux init until
after the reference clocks have safely switched on.
Change-Id: I6403aa1f208c518793caefb3e3c550cd50577ee0
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
The regulator labels for PCIe EP are mismatched and is
not allowing the driver to get the correct info to set
the voltage and enable regulators. Correct the PCIe EP
regulator labels for sdxlemur.
Change-Id: I366f97419c45c700310e5c1ee2049e5b1eb40ace
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
Enable CONFIG_PRINT_SUSPEND_EPOCH_QGKI to print epoch values
when the device enter into suspend and resume.
Change-Id: Ia2d54874405cf88f9283cdb1699f67078aa3fcbc
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
Record cycle count and kernel time in ns while entering suspend
and while resuming. This will help in matching up the kernel time
with external subsystems and in recording suspend time in cycles.
Change-Id: If22d9880103c7d54087d0faf4c992259e6b97f08
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
Print epoch values when the device is enter and exit out of suspend
and resume. These epoch values are useful to know how long the device
is in suspend state. These values can be used to synchronize various
subsystem timestamps and have an unique timestamp to correlate
between various subsystems.
Change-Id: Ibe04b914649db1f2ee0ae748f3950ca646323ef1
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
Print proper values for host time and device time from an error
handling routine during time sync update.
Change-Id: Ib8d9d4fb86d4001b0e2b7d62bc2ae381616f3df6
Signed-off-by: Yue Ma <yuem@codeaurora.org>
NULL pointer dereference is observed while exporting the dmabuf but
failed to allocate the 'struct file' which results into the dropping
of the allocated dentry corresponding to this file in the dmabuf fs,
which is ending up in dma_buf_release() and accessing the
uninitialzed dentry->d_fsdata.
Call stack on 5.4 is below:
dma_buf_release+0x2c/0x254 drivers/dma-buf/dma-buf.c:88
__dentry_kill+0x294/0x31c fs/dcache.c:584
dentry_kill fs/dcache.c:673 [inline]
dput+0x250/0x380 fs/dcache.c:859
path_put+0x24/0x40 fs/namei.c:485
alloc_file_pseudo+0x1a4/0x200
fs/file_table.c:235
dma_buf_getfile drivers/dma-buf/dma-buf.c:473 [inline]
dma_buf_export+0x25c/0x3ec
drivers/dma-buf/dma-buf.c:585
Fix this by checking for the valid pointer in the dentry->d_fsdata.
cherry picked from commit 19a508bd1ad8e444de86873bf2f2b2ab8edd6552
Bug: 175512919
Link: https://patchwork.freedesktop.org/patch/391319/
Change-Id: I3856a387d1902fd2b39b016e81283f082089131c
Cc: <stable@vger.kernel.org> [5.7+]
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Chao Hao <chao.hao@mediatek.com>
Signed-off-by: Chun-Hung Wu <chun-hung.wu@mediatek.com>
Remove the gcc_qup clocks from debugcc which are
not registered in GCC to avoid the crash because
of parent index in HOLI.
Change-Id: I0189b114024815fde8959c04bd41aa473d4ac4f8
Signed-off-by: Saurabh Sahu <sausah@codeaurora.org>
* refs/heads/tmp-9c7cbdf:
ANDROID: ABI: add symbols of drm_atomic_helper_setup_commit to unisoc
ANDROID: ABI: update allowed list for galaxy
UPSTREAM: HID: core: Correctly handle ReportSize being zero
UPSTREAM: HID: core: Sanitize event code and type when mapping input
FROMLIST: scripts: merge_config: add strict mode to fail upon any redefinition
Change-Id: I9ae5aa15a3bcef589ca072743ed5713bf0d0cacb
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
Add HLSQ_DBG_CNTL to list of a6xx registers dumped in snapshot.
Change-Id: Ib55a2a3694368a2a82037d2164ee1470f3950322
Signed-off-by: Rohan Sethi <rohsethi@codeaurora.org>
call redriver_orientation_get() to get orientation if redriver present.
Change-Id: I1ed69fece1f7577e2c478631920fb1bb3fe93cd1
Signed-off-by: Linyu Yuan <linyyuan@codeaurora.org>
There is possible crash when phy driver which control the same pin,
1. redriver driver read gpio state and start release state,
2. phy driver start request another state,
3. redriver driver finish release state, clear module owner,
4. phy driver string compare of module owner which is NULL to crash,
prepare to fix it by provide orientaion for USB module.
Change-Id: I177691abd702bac4f388fbbc0c375e19008f5adb
Signed-off-by: Linyu Yuan <linyyuan@codeaurora.org>
if there are two modules control one same pin,
each module will request and release one state,
there is race when one module request state before
another module complete relase it's state.
revert to commit 87aee0bf55 ("usb: phy: qmp: Perform
DP_COM_SW_RESET during portselect") to allow only one module
control one pin.
Change-Id: Ie6df02f018e58be8bf832b5b3921f5430fadbf53
Signed-off-by: Linyu Yuan <linyyuan@codeaurora.org>
control redriver when start/stop host or device mode.
Change-Id: Id2e7af96a20b285292d0799b6ed04365611ba709
Signed-off-by: Linyu Yuan <linyyuan@codeaurora.org>
Using IRQF_NO_SUSPEND and enable_irq_wake together can sometime
cause issue in wakeup from suspend and local host may not come
out of suspend on receiving qmp interrupt.
It is sufficient to use enable_irq_wake to mark irq as wakeup
capable.
Change-Id: I714724b31b92d23df0ac6a648f70416a130c9896
Signed-off-by: Deepak Kumar Singh <deesin@codeaurora.org>
Export memblock_end_of_DRAM() so that module drivers can know
the physical end address of memory blocks that system booted with.
Bug: 174547201
Change-Id: Ib0c90b736f16d1abbf47d4f3288443c35f9e17b4
Signed-off-by: Sudarshan Rajagopalan <sudaraja@codeaurora.org>
Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
The check for user buffer != NULL in ufshcd_ioctl() should
only be done at a point when we know we have a valid IOCTL
command. Move this check inside the UFS_IOCTL_QUERY
handling code.
Change-Id: I10e86b30ae1fdd8c9230db476bb593ccfa94b55c
Signed-off-by: Anjana <ahari@codeaurora.org>
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
Refactor the code to set proper DMA mask based on device ID. Also
set MHI IOVA address range based on the same DMA mask since it will
be more easier to port the driver to non-MSM platforms where there
is no SMMU or IOMMU.
Change-Id: I2daef00b9cb96b81433ed1338b1caf37b4002d80
Signed-off-by: Yue Ma <yuem@codeaurora.org>
Commit baa52351d2 ("cnss2: change for fixed link speed") has a side
effect that driver may try to enter DRV suspend with Gen 3 link speed
which is currently not supported. This change will fix the original
issue and side effect properly.
Change-Id: Ia7dbee86554be7ddcec0fc1a91ad6ffbc7d6b2e5
Signed-off-by: Yue Ma <yuem@codeaurora.org>
Commit cd7f415867 ("cnss2: Wait for power up complete during
SSR restart") breaks the compilation when MSM SSR feature is
not enabled. Fix it properly in this change.
Change-Id: I9e16174a4063b037d50f890eccb0983bd68a54a8
Signed-off-by: Yue Ma <yuem@codeaurora.org>
ENOTSUPP is not a SUSV4 error code, use EOPNOTSUPP instead.
Change-Id: I8755486cb47880e52182370ed6939f655424c7d5
Signed-off-by: Yue Ma <yuem@codeaurora.org>
The flag enables the changes from WLAN host driver that are
specific to CNSS WCN7850 chipset.
Change-Id: Ic64b0d93ef7848d647726e015b0e14525a59076f
Signed-off-by: Yue Ma <yuem@codeaurora.org>
Refactor PCI probe callback so that it will be more clear and
extendable in the future.
Change-Id: I4af5a5d6fcd65b2c79348bb1459888198291f298
Signed-off-by: Yue Ma <yuem@codeaurora.org>
Add the logic to fall back to default path if it fails to load
firmware from device specific path.
Change-Id: I0595a3be97b6f803be232b73fb35b8b5b3c52b0e
Signed-off-by: Yue Ma <yuem@codeaurora.org>
Packets arriving at SIP port will now be checked for SIP/2.0 before
getting tagged as SIP packet. Added helper functions strnstr and strnstrn
for checking substring in a string in case of non null termination.
Change-Id: Ia7d6a3ac5dd1e5f0ce97ee9f6d0c13f16d9dd7f2
Acked-by: Vinisha Varre <vvarre@qti.qualcomm.com>
Signed-off-by: Paras Singh Jain <parassin@codeaurora.org>
There might be spurious HS PHY IRQ after USB bus has gone into
hibernation which leads to dwc3_msm_resume and in_lpm flag
getting cleared. Next when the restore from hibernation happens,
dwc3_msm_resume becomes a no-op but in reality, the HW resources
are all turned off. This leads to an unclocked access from
xhci_resume.
Fix this by disabling PHY wakeup IRQs on hibernation/pm_suspend
for automotive targets.
Change-Id: I753fb3593fca31f12406b9126f73f75520dab1b0
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
Enable ION and secure buffer driver on gen3auto targets. They
are used to allocate secure & non-secure buffers from various
ION heaps.
Change-Id: I2a9ea7611365a83267a7b396acda8860f58c21d0
Signed-off-by: Vivek Kumar <vivekuma@codeaurora.org>
There can be maximum of 200 contexts per process and 800
contexts in total. Whenever the limit is exhausted, an
-ENOSPC error is returned. With this change, more information
is logged: total number of contexts, number of attached and
detached contexts for all processes.
Change-Id: If714b5375f1d4ce0551fcb8d156ef5129dbafa6c
Signed-off-by: Kamal Agrawal <kamaagra@codeaurora.org>
Clear cgcCntlCsrMode field in GMUAO_GMU_CGC_MODE_CNTL register.
Change-Id: I62b7eb97fd9536ad03cf398ba1d1e102af38ec70
Signed-off-by: Kamal Agrawal <kamaagra@codeaurora.org>
Add option to enable the compilation for SA6155
platform.
Change-Id: Ie71ceca81f7235647f0811741b3e6e4909072ee5
Signed-off-by: Shreyas K K <shrekk@codeaurora.org>