Send NMI to gmu so that we don't lose critical gmu state.
We do not want to trigger dispatcher because we don't know
whether the gpu was active or not. The best course of action
is to wait for the next kgsl -> GMU interaction to timeout
thus triggering GMU snapshot and appropriate recovery steps
based on whether gpu was active or not.
Change-Id: I17b4245f4e0113bfc902d7dae46bb24d0bc2b65d
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
Clean up some of the ION heap interfaces so that they are
more inline/uniform with respect to each other.
Change-Id: I4edabc2c8ccb533898540ceda1fd6aacc2e2e56a
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
Signed-off-by: Zhenhua Huang <zhenhuah@codeaurora.org>
This change is for general scheduler improvements.
Change-Id: I3a220142f08a9664845b4d0e9918ec7c48bb11f7
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Allow the SOC to scale to a higher value in a specific
condition (msoc = 0), even if USB is present and we are
discharging. This typically occurs during boot-up with
charger connected at 0% SOC.
Change-Id: If7dd806e6427b65427d5999bb9ccda7098ec6107
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
Userspace initiates a shutdown if battery_status != charging
and SOC = 0, this is to prevent a deep-discharge of the battery
when the discharge current is higher than the charge current
at SOC = 0. Report this status from the kernel driver.
Change-Id: If7dd806e6427b65427d5999bb9ccda7098ec6101
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
Keep ASD commonly enabled by default and disable it
on Hastings prime.
Change-Id: I42c2c37ea3c1910da2b3bdd417efb261cad53974
Signed-off-by: Mahesh Sharma <smahesh@codeaurora.org>
-Change EA for HSP before getting LA based
on the soc type queried from BT power driver.
-By default, HSP's Slimbus EA is added in DTSI file.
Update HST's Slimbus slave EA address based on HST chip ver.
Change-Id: I49e06e2e43025797e6110bf55304c7b3f0616c8e
Signed-off-by: Satish Kodishala <skodisha@codeaurora.org>
mhi_reg_write_enqueue API stores reg, val and valid which can go
out of order. In case valid is set to true before val is set,
offload worker running on another core ends up writing stale value
to register. Another possibility is valid being set to true but not
visible to other cores. When offload worker gets a chance to run,
this results into skipping register write. Fix these issues by
adding smp_wmb() between stores of val and valid and another after
valid is set.
Change-Id: I3b930e7fad4252d34386de525491f94997b34f36
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
PM2250 does not have a USB_ID detection logic. Add support
for handling the ID detection over a dedicated GPIO. This
is enabled only for uUSB interface.
Change-Id: I938b135443d66b9451cead35d508bad9a4f685f4
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
Increasing the write buffer size from 2k to 50k.
Change-Id: Ifac500581404467b08b06de0d9b8cd90c4afd0e5
Signed-off-by: Aditya Raut <aditraut@codeaurora.org>
This would enable the debugfs for cpufreq hardware registers to be
dumped.
Change-Id: Ifa265299ddc5bea03db6238f11ab1a1fb6d68400
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Add the new compatible to allow the debugfs to be created and list the
required cpufreq hardware registers.
Change-Id: I87073bb4a9c334d8c8077ddfd807c08325ee3394
Signed-off-by: Taniya Das <tdas@codeaurora.org>
The current design sleeps unconditionally in TX FIFO full case and
wakeup only after sleep timer expires which adds random delays in
clients TX path.
Avoid sleep and use READ_NOTIFY command so that writer can be woken up
when remote notifies about read completion by sending IRQ.
Change-Id: I1b44df0ec437d4e76aff181470fcf4cafbdd098a
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
Fix compilation error when CONFIG_DEBUG_FS is disabled in
kona-perf_defconfig.
Change-Id: Ic105bbb1db77c70f1b30d66eff87e0c515708756
Signed-off-by: Prateek Sood <prsood@codeaurora.org>
This change is for general scheduler improvement.
Change-Id: I94c0491dc737ae9c52bf7c6f00b130d99d1b8812
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Static code analysis tool is detecting a possible NULL pointer
dereference for gsi->d_port.in_ep in the error handling path.
This change adds a NULL pointer check to avoid this issue.
Change-Id: I4adf03e933cece0698cd3761c8758f4bd98925f4
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
Currently, as part of fault recovery, we try to
restart the a6xx gpu five times. This loop is
for legacy reasons for a hardware condition that
existed on a4xx. That doesn’t exist for a6xx so
remove the loop.
Change-Id: Ib6f7437bab2b424c4f632efca459ff8c3fd064e4
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
Fix compilation error when CONFIG_DEBUG_FS is disabled in
kona-perf_defconfig.
Change-Id: If6bdcfa99da84cad15495b757b7d2f5474147a29
Signed-off-by: Prateek Sood <prsood@codeaurora.org>
Fix compilation error when CONFIG_DEBUG_FS is disabled in
kona-perf_defconfig.
Change-Id: I91adfc7cfd611db3a4dfb60cc9cff85113b4885d
Signed-off-by: Prateek Sood <prsood@codeaurora.org>
Add meta key to set TTP offset in capture path.
Change-Id: Ieebab5eefb339a3b067a5cd95934828c4c9c150e
Signed-off-by: Surendar Karka <skarka@codeaurora.org>