Add CLK_DONT_HOLD_STATE flag to avoid the framework from
placing a proxy vote to enable the clocks during probe since
these GPU clocks are failing to turn on as their corresponding
GDSC is not enabled yet.
Change-Id: I4771d1c5696a069d0d67d407de3a7a5b1f5b139e
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
In GKI, if a config is flag enabled in a QGKI config and
disabled in debug config. Then that config flag will be
disabled for debug build and enabled for QGKI. So, this
change ensures the config flag which is enabled in lower
level config gets enabled for higher level config.
Change-Id: I6c5176e30d72a86bc6cce3b2074a8dd1d08a1e28
Signed-off-by: Sandeep Singh <sandsing@codeaurora.org>
Enable SMB5 and QG drivers which control the main charger and
Qgauge peripherals present on PM7250b.
Change-Id: I66925cdbefd160d09f221734d5b9f676f822fe8d
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
Add support for "bms" power supply which is not present in kernel 5.4
through IIO device and properties under it through individual IIO
channels under the IIO device.
Change-Id: I55c44e5db2dc4549021cb429444c7c5afa679c3a
Signed-off-by: Shyam Kumar Thella <sthella@codeaurora.org>
SMB5 charger drivers and their helper files use several power supply
properties on msm-4.19 which cannot be supported on msm-5.4 due to the
need for GKI compliance. Add support for main charger to register
as an IIO device with individual channels under it corresponding to
missing power supply properties from msm-4.19.
Change-Id: I7182160258fa2ebd4af36b0531b11d988cffdbd3
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
Increases the ah8 value to 5ms for higher performance.
There's negligible power impact.
Change-Id: I053a167e56b0027d9c71918b4c574ce876518408
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
sdxlemur will have at most 1GB of DDR, so allow all of it to be
mapped as lowmem instead of enabling CONFIG_HIGHMEM.
Change-Id: I89148d18e0be0c1d99795b7f49184bb5421af0f1
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
When force FW assert, it should use RDDM timer instead of FW
boot timer since it expects FW entering RDDM mode.
Change-Id: Ic8498b0f3c23dc494267571da7f627eace9f91bd
Signed-off-by: Yue Ma <yuem@codeaurora.org>
When serial driver is present in second stage ramdisk, it takes ~5 sec to
init the UART. All the data bufferred till then will have to be put onto
the console taking a console lock and this causes a watchdog bark. To
avoid this watchdog issue, disable the console. This also disables early
console.
Change-Id: Ibded81922cb735e3035fc960258213c4de1d6a74
Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
For the UHS1 cards that have been initialized to operate
at 1.8V signaling level earlier and the card initialization
is invoked again, the driver would skip the voltage switching
sequence from 3.3V to 1.8V and exit the card initialization
because the SD card is already operating at 1.8V signaling voltage.
The clock scaling logic's clk_scaling_highest and clk_scaling_lowest
would be un-initialized in this case and cause failure to the
subsequent clock scaling initialization. Fix the issue by properly
initialize the clock scaling parameters that are later used by
the clock scaling initialization function.
Change-Id: I6489fbe3790feb07613d27b3c4bef62cd34fd44b
Signed-off-by: Bao D. Nguyen <nguyenb@codeaurora.org>
MMRM interface is used to do admission control of
specific resources (eg: clock) of multimedia clients
(camera/display/video/cvp).
Change-Id: Ife92d31ab08c80c06467771e74d05ab1a9a8a54b
Signed-off-by: Shivendra Kakrania <shiven@codeaurora.org>
SVM going to rely on kernel autosleep feature to do suspend-to-RAM.
Enable required configurations to achieve suspend-to-RAM functionality.
Change-Id: Ie31abce7927c8b6b2ce5dad6f917f96c52e90803
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
Configure dbl and msgq interrupts as wakeup capable to wake up the SVM
from suspend-to-RAM state.
Change-Id: I1825109736ace36c5c871d52dfefe4a320fea335
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
This change enables CONFIG_NL80211_TESTMODE config for
wlan host driver in holi.
Change-Id: I0974f58a2f25c14991ff4a22b998827b0a579b95
Signed-off-by: Sandeep Singh <sandsing@codeaurora.org>
Introduce an interconnect L3 driver to set L3 performance
states.
Change-Id: I31b73332429744fe2f04a2d9aa66f7972bbba7c1
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
Add master and slave ID constants for all Qualcomm Technologies, Inc.
Holi interconnect providers which consumers can use to set bandwidth
constraints and find paths in the NoC (Network-On-Chip) topology.
Change-Id: I41888e2c8fbedb33c8c7cc21357fcb6f20d65f57
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
Add per a6xx target member to specify the preemption record size
in case it is different than the default size for all a6xx.
Change-Id: I6e5579eae47dc4ee6707437d858b8b969fe573ea
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
gpu_busy is an unsigned 64 bit int and accumulates overtime
while running gpu intensive application(no slumber)
which eventually results in overflow.
Change-Id: Ifda376918ac58fa393a1958101d3d4b161bdd3c0
Signed-off-by: Nitheesh Muthuraj <nmuthuraj@codeaurora.org>
The cooling device registration is using the parent node of the cpu
voltage cooling device. The devicetree configs are using the child node
to identify the cooling device. Switch to use the child device node, so
that the cooling device is bound with the thermal zone.
Change-Id: Id501421002c5dac7cb924455e09538a384ec9f85
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
Update SSR power up function to wait for FW recovery complete to
avoid race condition with linux PM sleep entry.
Change-Id: Ief0d64e7699956ba30f2ff84732e36f6b2fdc3b0
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
Change to use dyn_clk mutex from core mutex to avoid the deadlock.
Change-Id: I01a5aaba6f461255861f09e75c992d22217ae66a
Signed-off-by: George Shen <sqiao@codeaurora.org>
It's possible that the user-space process can be woken up
very late to collect the ramdumps by which time, the ramdump
collection timer would have expired. Following this, the PIL
driver unmaps the memory and continues. The user-space process
has no way to know about this and can make an attempt to read
the unmapped memory, thus resulting in a data abort.
Hence, notify the user-space process that the ramdump timer
has expired such that it can reset its state machine.
Also add the srcu related symbols to the allowed-list and update
the ABI snapshot accordingly.
Change-Id: Idb92d98406a9032c999c82e2089213883c5a65eb
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
Power ctrl_flags will prevent the GPU power collapse when the
user has overwritten the force_rail_on, force_clk_on etc. This
will result into GPU wakeup problems in case power collapse
hasn’t happened during the hang recovery.
Change-Id: Ib1e86bbb70b2b71b8f8820692d13ce3ab6200db0
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
Modified code in driver to align DT property
name with DTSI files.
Change-Id: I6423dcc68eb1dbf73c63240b128f41476caba99c
Signed-off-by: Tapas Dey <tdey@codeaurora.org>
Correct the device passed for registering a proxy consumer supply
in the regulator device probe.
Change-Id: I33028648b66b922cb1132fd87ca8aa2be1b02799
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
Dropped messages to AOP are generally fatal. The general rule of thumb
is to let clients decide whether the dropped message is fatal.
There have been some cases where there are messages sent to AOP as
part of the device shutdown, effectively overwriting the error state.
Add an assert to when QMP detects timeout so the error state on AOP
is preserved.
Change-Id: I5eaf42a76b1298246351ec9d66fe32e7308233bd
Signed-off-by: Jay Jayanna <jayanna@codeaurora.org>
arm_smmu_iotlb_sync can be called outside of arm_smmu_unmap, meaning
that the power resources required to access the SMMU register space
may be disabled. Thus, call arm_smmu_power_[on/off] when invoking
arm_smmu_iotlb_sync and arm_smmu_flush_iotlb_all.
Change-Id: I9f6ec0db9b0e25a5c4bf2b0adb3fb950e6843a86
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
With the current implementation the following race can happen:
* blk_pre_runtime_suspend() calls blk_freeze_queue_start() and
blk_mq_unfreeze_queue().
* blk_queue_enter() calls blk_queue_pm_only() and that function returns
true.
* blk_queue_enter() calls blk_pm_request_resume() and that function does
not call pm_request_resume() because the queue runtime status is
RPM_ACTIVE.
* blk_pre_runtime_suspend() changes the queue status into RPM_SUSPENDING.
Fix this race by changing the queue runtime status into RPM_SUSPENDING
before switching q_usage_counter to atomic mode.
Change-Id: I5a2c842b959b8c57730b12e4f372abc515a8c8ab
Signed-off-by: Can Guo <cang@codeaurora.org>
Don't start usb transfer when rwp offset is invalid to avoid exception
happening when transfer usb data.
Change-Id: I7182ebb2e66131a21d65f7df0ad239c6346c0e9d
Signed-off-by: Mao Jinlong <jinlmao@codeaurora.org>
The EUD driver's 'enable' command line argument is set to
EUD_ENABLE_CMD even if the bootloader hasn't enabled it,
which is not correct. Hence, update the 'enable' variable
based on the state of the hardware.
Change-Id: I1159436c0e9a803462f2154ccc05649d3f7b40da
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
There are cases that CNSS driver or WLAN host driver detects PCIe
link not accessible but link down interrupt is not triggered. In
order to handle these cases, instead of starting recovery directly,
notify MSM PCIe bus which can assert PCIe PERST GPIO and then handle
the link down callback from it as normal link down.
Change-Id: I9af8b3ae33d9c094a412c39962f5c1883c34a12a
Signed-off-by: Yue Ma <yuem@codeaurora.org>