Currently, the MBA is expected to be loadable at any
region in DDR. However, due to limitations in the modem
PBL or MBA image, this is not always possible. Allow
the modem to be loaded in a carved out CMA heap if specified
in device tree. Current memory APIs do not allow the association
of more than one memory region with a device; therefore
allow the existence of an optional sub-device node that
will contain the memory region property for the MBA.
CRs-Fixed: 2006100
Change-Id: Ia2b52be55f0b3f23278e1f71106fdb46de1d0fe1
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
Initialize the stat variable before using it while sending
notification to dci client.
Change-Id: Ie5f98d0f45a797f4f122d8c4e2bae1a92bf4e7c9
Signed-off-by: Sreelakshmi Gownipalli <sgownipa@codeaurora.org>
saved_tgids is fixed size array but uses index upto
savedcmd->cmdline_num. savedcmd->cmdline_num can change
with modification to saved_cmdlines_size node. Fix
this indexing by making saved_tgid part of savedcmd
and modify it's size with changes to saved_cmdline_size.
Change-Id: Ia493f99a3d86d4624414e7605037a1cad35473a9
Signed-off-by: Omprakash Dhyade <odhyade@codeaurora.org>
LMH driver passes a buffer to TZ for fetching information. The driver
flushes the memory before passing the buffer to TZ. Though the flush
call will clean and invalidate the cache line, it is recommended to
invalidate the cache after the scam call.
Update the LMH driver to invalidate the payload buffer after the scm
call returns.
Change-Id: I4b599f4d1e8bf174ece5503fc4ff204dcb57b423
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
KTM triggers a secure watchdog bite, when temperature reaches very high
threshold. In the secure device this call is not supported.
Avoid triggering the watchdog bite, on a secure device. This bite is
triggered in KTM for debug purpose to save the software state.
In the latest hardware, the tsens controller is capable of initiating a
hardware reset after saving the software state. So this feature is used
only to print the tsens ID which crossed the very high threshold.
Change-Id: Iacef4b64e16f9c2d9789d8faba474429dfcecd4e
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
When a thermal zone unregisters, it initiates a blocking call
kthread_stop for the sysfs notify kthread to exit. But the sysfs notify
kthread is blocked on a completion event, which may not be triggered after
the sensor driver initiates a thermal zone unregister call. So, the
kthread_stop will be blocked forever.
As a part of thermal zone unregister, set a thermal zone unregister flag
and send a completion event before calling kthread_stop. Make the sysfs
notify kthread to be aware of thermal zone unregister flag and exit
after the completion event is triggered.
Change-Id: Icf045e0ad6e28135cd3a54c15d9923f095a286ff
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
Under some cases, the PM event is missing, and rotator driver will not
initialize the SW timestamp. This change is to add rotator reset
detection logic and auto initialize the SW timestamp register if such
happened.
CRs-Fixed: 2006856
Change-Id: I8c889435e0be1518a6ec2dd6f9c7b02d140df9f1
Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
Add syscore system suspend and resume handlers,
to print gpio interrupts status during device resume.
Change-Id: I7c574d2e44a7e318ac9ef89063d2081bf63c09b6
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
Set REGMAP_ALLOW_WRITE_DEBUGFS default to n to disable regmap debug
write by default.
Rs-Fixed: 1103178
Change-Id: I8e89530b5a1b46dce64455244f20cd7aded84b24
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>