Add change to avoid null pointer dereference of cnss_platform_cap.
Change-Id: Ib48f192a54c8d48031d5fbc743622af6c2fdb19c
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
Cleanup the redundant defconfig fragments from lahaina_GKI.config,
that are already enabled in gki_defconfig.
Change-Id: Iee78de5836407506a910a9d257072ab154dde0e1
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
Enable memlat hw logging driver, required to collect
the logs from memlat hw, and dump in dedicated buffers
through ipc logging framework.
Change-Id: I391040be6bd110e96e96cdf0a3fbf7f34f0d9111
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
Add initial support of rimps logging, this driver introduces
the infrastructure required to collect the logs received from
rimps and dump into ipc logging buffers.
Change-Id: Ic7b86fcf5935ada5fa5008774a9363faa40960ce
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
Add initial support of rimps memlat interface driver, this driver
expose sysfs nodes required to configure memlat governor running
in rimps, it also supports the rimps dump utility required for
debugging.
Change-Id: Ibb691b601cf5c05b50dc31488a1653cc239fb0f1
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
CONFIG_PM_DEBUG=y
CONFIG_DEBUG_RWSEMS=y
CONFIG_WQ_WATCHDOG=y
CONFIG_LOCK_STAT=y
Enable above for debug builds on Holi, to help debugging issues
related to lock(mutex,rwsem), workqueue lockup etc.
Change-Id: Id0a57ba8d9c64d01efa9c7192a2f7a73fdc8659b
Signed-off-by: Ashish Bhimanpalliwar <abhiman@codeaurora.org>
Enable few watchdog related configs which are missing in Holi.
Change-Id: I9e42cf4996a2958e5503fd70a0b5d8fc2d3d7cdd
Signed-off-by: Ashish Bhimanpalliwar <abhiman@codeaurora.org>
Currently, smp2p relies on the hwirq resend feature to retrigger irqs
that were missed because the irq was disabled at the time of receiving
it. The hwirq resend feature will retrigger the parent smp2p interrupt.
In order to keep track of what children needed to be retriggered, the
pending bitmap was added.
After calling handle_nested_irq, smp2p checks if the interrupt is
enabled and sets the pending bit if the interrupt is not enabled. There
is a small window where a client can enable the interrupt between
calling handle_nested_irq and checking if the interrupt is enabled.
If this happens, the interrupt is never called when the parent smp2p
interrupt is retriggered.
Add the irq_retrigger callback so smp2p can know which child interrupts
need to be retriggered. Set the pending bits accordingly.
Change-Id: I774b6ef91e22edbd55ddfffbbb3ae6062d48a560
Signed-off-by: Chris Lew <clew@codeaurora.org>
Allow configuring the rising and falling hysteresis to allow better fine
tuning of the charge current across battery temperature thresholds.
Change-Id: I88419d0694f0e70a6f1115e144685381e29cfd96
Signed-off-by: Ashish Chavan <ashichav@codeaurora.org>
Add runtime_pm support for clock providers which have register access
requirements that aren't always satisfied.
Stop registers clocks previously flagged as CLK_IS_CRITICAL, since doing
so means the device is always active and suspend is never called.
Instead, just enable these clocks by default in HW during probe.
Change-Id: I34cf74080745b627b3978fafd9eb8bbde4bb655e
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
Resume and suspend devices in debugfs handlers around accessing HW
registers to prevent bus errors.
Change-Id: I9db208f0d82a504af60cf252e5d3691b9903f8cd
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
Add helper functions to suspend or resume the device associated with a
clk_regmap.
Change-Id: Ie4e47fce64e2052ffacdc3a8cd56fc69758d70fb
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
Add common runtime_pm initialization and callback functions to allow
clock providers to vote clocks, interconnects, and regulators in
runtime_suspend and runtime_resume.
Change-Id: I97588feae47016b8375849c5926495c1d73f792d
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
Add an error log in pmic_glink_write when rpmsg_trysend fails to
send the message for a client. It will be useful for debugging.
Change-Id: I4d3e72fdf64f1df6caad10840e21517c393530b7
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Add SMB_TEMP, IIN_SMB and ICHG_SMB channels for both SMB139x
charge pumps that can be paired with PM8350B.
Change-Id: Ie67f308d59439a8cb2bced6e80693b101261f3cc
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Add PM8350B_ADC7_ICHG_FB channel to read charging current for
PM8350B. Also, update qcom,spmi-vadc.h to add ADC7_ICHG_FB and
other relevant channels that are needed for reading input and
charging current for SMB139x charger pumps along with scale
function indices.
Change-Id: I4a1b53f328e1b394063cbf951f6ff978eb96d21e
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Secure pagetable pointer in case of secure pagetable creation
failure is set to ERR_PTR. Correct the secure pagetable pointer
check in kgsl_iommu_map_secure_global to avoid invalid pointer
access when someone tries to map a secure global buffer.
Change-Id: Ic938072e38c410a31158b8ab83f2678b2a64f276
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
Add initial support for memlat scmi client driver which registers
into scmi framework for memlat vendor protocol extension.
Also registers with memlat interface driver.
Change-Id: I123944213014a2f61c8df0b1ad822cfde5ff03c4
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
The memlat protocol is intended for the management of memlat based
scaling for devices like l3.
The comands in this protocol provide functionality to configure
memlat details, includes the cpugrp, memlat monitors, memlat
tunables, configuring the log levels and debugging support.
Change-Id: I1b45f833eff3aa82c3ec2c0debb703dbf8838c8a
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
When mem_buf_alloc() encounters an error after mapping the memory
in the stage-2 page tables of the VM, the SGL descriptor is not
freed in the error handling path, so free it.
Change-Id: I6e6fa296311575bb55cd0b9da7a138970e8b8e74
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>