Assign address of buf_info into ioctl_ptr.
Previously we were copying first 8 bytes of buf_info (content)
into ioctl_ptr. Which is dereferenced and written later causing
kernel overwrite vulnerability.
Change-Id: Ie5deae249da8208523027f8ec5632f960757e9bd
Signed-off-by: Trishansh Bhardwaj <tbhardwa@codeaurora.org>
This reverts 'commit 7961850500 ("soc:qcom: Synchronize
service notifier task's")'
This commit was made for synchronizing two notifier tasks that
were in race in back to back ADSP SSR testing. The change was to
synchronize two threads by queuing both threads in dedicated work
queue. However this caused certain corner case timing issues
in notification to clients of ADSP PD. So, revert it.
Change-Id: I69b27e2e4529b5f45ce0cc1f4a036412cbf5fab1
Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
Throttle axi clocks for camera, display and video needs to be enabled
before the use cases and disable these once their use case is completed.
Change-Id: I2e2e91f4ce7d6f57bf5ced052af2f283bc301070
Signed-off-by: Taniya Das <tdas@codeaurora.org>
With Minidump support, SDI can run in production devices, which would
dump pmic, rpm code and vsense data of the device at system crash as
minidump. Additionally, cache dumps would help to find out cache
corruptions in production devices.
Hence enable cache dump and common log in perf builds.
Change-Id: Ice2ed94bda2903a3fd3ca6dc16c008b7a8fae101
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
Disable the SMMU stalls on faulty transactions by terminating it using
the CB.SCTLR register. Faulty transaction on a CB causes the back
pressure on the QSMMU transaction pipe which inturn affect the other
masters using the same SMMU. Pass the DOMAIN_ATTR_CB_STALL_DISABLE flag
to iommu_domain_set_attr api in order to use this feature.
Change-Id: Ib8fa35854ff24e0295d330c5fb79375f58c3e841
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
Add checksum offload flag for the TCP/UDP packet in
Tx path for the wcn3990 wlan module hardware.
CRs-Fixed: 2015363
Change-Id: Icd47de8633bb2375c43c5acdf730a0082bfc1b88
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
It's possible for MHI host to send sys error notification
signal before sending channel enable notification. Attempt
to cleanup resources only if netdev is allocated.
CRs-Fixed: 2037971
Change-Id: I2bd1f10966a042c6f3372adff89572a5795e7daf
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
Return the correct error code when channel setup fails due
to memory allocation.
Change-Id: If345299532f8d04a543e3c7e535d4a7987661d0e
CRs-Fixed: 2028360
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
MHI clients allowed to communicate with external
soc via MHI during shutdown. Only disable MHI
communication after receiving shutdown notification.
CRs-Fixed: 2037184
Change-Id: If69f61a244a6175256753dea361085fa5f9afeac
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
The wcnss platform driver update the wlan calibration data
by the user space wlan daemon. The wlan user space daemon store
the updated wlan calibration data reported by wlan firmware in
user space and write it back to the wcnss platform calibration
data buffer for the calibration data download and update.
During the wlan calibration data extraction there are some potential
race condition which leads to memory leak and buffer overflow during
the context switch. Fix the above issue by adding protection code.
CRs-Fixed: 2015791
Change-Id: I231807f6b2d8094d7138b95c659ed6272897ba2d
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
If the open-loop voltage of the highest virtual corner is
below the APM threshold voltage, then OSM should keep
the APM powered by VDD_MX. Also, if the open-loop voltage
of the lowest virtual corner is greater than or equal to
the MEM-ACC threshold voltage, then OSM should program
MEM-ACC settings for Turbo for all corners. Program SEQ_REGn
registers correctly for these two cases.
CRs-Fixed: 2008715
Change-Id: Id9bc91374245d65adda4db337c4fa34afc8f0af9
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>