This is a driver to handle SiRFStar GNSS chip power controls,
a device node is created to interact with driver power controls
and exposes set of IOCTLs. These IOCTLs provide mechanisms to
transition of GNSS receiver power state.
Change-Id: Idf8ff2553736221930f4f032455692e3752176ce
Signed-off-by: Vijayakumar Badiger <vbadig@codeaurora.org>
Signed-off-by: Santoshkumar Zalake <szalake@codeaurora.org>
Add a boot marker to indicate the time when
driver kgsl is initialised and ready.
Change-Id: I4c3073f642354ef16d1f1f8ed99f520e3ec76c59
Signed-off-by: Rituraj Raman <riturama@codeaurora.org>
The address in the CB's FAR is not sign-extended. With split page tables,
this can cause software page table walk causing warning.
WARNING: CPU: 2 PID: 264 at drivers/iommu/arm-smmu.c:3161 arm_smmu_iova_to_phys+0xfc/0x128
kgsl kgsl-3d0: CP Illegal instruction error
kgsl kgsl-3d0: CP Illegal instruction error
kgsl kgsl-3d0: CP Illegal instruction error
kgsl kgsl-3d0: CP Illegal instruction error
pc : arm_smmu_iova_to_phys+0xfc/0x128
lr : arm_smmu_context_fault+0x188/0xea4
Perform the sign extension in fault handler, as arm_smmu_iova_to_phys()
expects the IOVA to be sign extended.
Fixes: ff4f34660e ("iommu/arm-smmu: Add support for split page table domains")
Change-Id: Iced0b7a518dbc27b2770fdae47bedce4e72cc3c1
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
updated auto camera headers path to align with ais techpack
Change-Id: I1bf4fecaf2feead42d2ecc4b9ca9a686f70b49ca
Signed-off-by: E V Ravi <evenka@codeaurora.org>
In rare scenarios when the battery enters/exits JEITA conditions
post termination, the termination workaround restarts thus
resetting the reference values. Improve this handling by
restarting the WA only if the existing WA timer is not running
thus avoiding WA restarts across minor JEITA oscillations.
Change-Id: I5bf91367b633abf79cbc60ef5bdf93cca9559022
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
Add interface for receiving QMI request to move
NAT table to DDR or to SRAM and forward request to IPACM.
Add IOCTL for sending indication when move was completed.
Change-Id: Idb886a56586d830664a25371d48d2fac5a5e51c5
Signed-off-by: Amir Levy <alevy@codeaurora.org>
Enabling PCIe device will also modify PCIe config space so doing it
after PCIe config space has been restored.
Change-Id: Idcc8410696523dd80c3c339f380f963f986c94c5
Signed-off-by: Yue Ma <yuem@codeaurora.org>
Signed-off-by: wadesong <wadesong@codeaurora.org>
In current code, kgsl_close_device holds device mutex and calls
last_close in case open_count goes to zero. But as part of
last_close call, device mutex is released intermittently to wait
for active count to go to zero and also for dispatcher idle. This
intermittent release of device mutex opens up a window where a
kgsl_open_device call can go ahead and call first_open. As this
first_open is triggered before last_close could finish it messes
up the complete state machine. To fix this, move decrement of
open_count after last_close to allow any open/close happening when
last_close is in progress to just increment/decrement open_count
without triggering first_open or last_close.
Change-Id: Ibb2567e3ef0dc1864f2bfca346b0682792d0b675
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
Move IPC_LOG inside mutex lock and bfefore deleting
cb_txn inside process_tzcb_req to make sure that
we are not accessing cb_req value that has gone bad.
Change-Id: Icc04bab52d1364d883b0a4bb07ff4cf2cc8ce6f8
Signed-off-by: Anmolpreet Kaur <anmolpre@codeaurora.org>
Few functions can be handled directly without having
the gpuid checks. So cleanup these functions to avoid
unnecessary gpuid checks.
Change-Id: If5b88adb4d21d327a39dc92d657d1bf5066f6667
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
There is frequent Ping-Pong effect if only consider max_nr
in core control, so also consider average max_nr which in
many windows, this will make core control more smooth.
Change-Id: Ic5f3285db604357f7c953b02ec40379ac49b95e0
Signed-off-by: Tengfei Fan <tengfeif@codeaurora.org>
Cleanup debugfs, dev nodes and gpios on driver removal.
Change-Id: Icd18103ef0d968edb9f2ab254321a14323dd1c5a
Signed-off-by: Sneh Shah <snehshah@codeaurora.org>
Report the QC3+ adapter power-rating via "power_now" in the usb
power-supply class.
Change-Id: I0d0e9a3e9d2f5d57f5e8696dea8f4e17a8f2df5f
Signed-off-by: Ashish Chavan <ashichav@codeaurora.org>
Added process exit checks when adding
file init memory to ramdump collection
to fix use after free for file init memory.
Change-Id: I8991d27e4c83f572a6baacc478a09eb42ea76d8f
Acked-by: Krishnaiah Tadakamalla <ktadakam@qti.qualcomm.com>
Signed-off-by: Jeya R <jeyr@codeaurora.org>