The peripheral_mem carveout currently contains three separate images.
If these images are dynamically unloaded and reloaded in the wrong
order they could fragment the memory such that not all images would
fit.
Break apart the peripheral_mem into separate carveouts for each PIL
image to avoid the possibility of fragmentation.
CRs-Fixed: 1024397
Change-Id: Id9607b7e4a5e0cdcbf4c36ffad32536dd0669005
Signed-off-by: Liam Mark <lmark@codeaurora.org>
Some of the features like MSM_GIC_SHOW_IRQ are using ARM_GIC
flag. So select this even for gic-v3 target on 32-bit.
This will also make it consistent with arm64 where ARM_GIC
is selected along with gic-v3.
Change-Id: Ie929d63a23c88799c488c5a79c81cd1cbfaa6565
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
Serial function driver creates debugfs files even though ports
are not allocated. Fetching/reading those files without allocation
of ports leads to crash. Check port allocation before creating
the files.
Change-Id: I85b050a261cca6f961d5d9058efb8b7facf242ce
Signed-off-by: Arumuga Durai A <cadurai@codeaurora.org>
Set default mem_type to scatter-gather for ETR device.
Change-Id: Iaa6e6e58b9cf566dd749d81d4693c2b61be2c365
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
Add support to read device tree property to select mem_type for ETR-MEM
configuration.
Change-Id: Ib14c390ecfce73491777f99c5e46ec9300220844
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
Enable CoreSight drivers for msmcoblt. These devices can be used to
configure and enable trace functionality on msmcobalt.
Change-Id: I1ee284d9a42341da85abb9bd8dbebffa1aace1a8
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
If target can support multiple codecs, only one of the
codecs will be enumerated. Do not clean up common resources
when other codec fails to enumerate.
CRs-Fixed: 1041199
Change-Id: I74a298739925b5763458c2e637372aa8f2c2aa55
Signed-off-by: Yeleswarapu Nagaradhesh <nagaradh@codeaurora.org>
Increase ADSP ION heap by 4 MB that is required by the
ImproveTouch functionality.
Change-Id: I03a298cf69369efc58f8d85d39897408d34f3635
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
In the current implementation, MDP driver registers for MDSS
GDSC notifier and attempts to halt any active VBIF transactions
whenever the MDSS GDSC is turned off. This results in a call to
the bus driver to remove any active bus bandwidth vote. However,
it is possible that notifier call could be a result MDSS GDSC
being turned off by the bus driver during probe time and calling
back in to the bus driver can result in a deadlock. Avoid this
by handling GDSC off notifier only if there are any active
overlay sessions.
Change-Id: Id53a790cf67b201a4207f85604cb3472275d418a
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
Added channel state and checks to avoid glink channel opening twice
during timeout of previous call. Clean up and added more checks.
Change-Id: Ibf5343a86d3aeaf67acfbae381f103428c98ea73
Acked-by: Viswanatham Paduchuri <vpaduchu@qti.qualcomm.com>
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
Check that the array index value is less than the max array size
to avoid an out of bounds array access.
CRs-Fixed: 1037903
Change-Id: I2e357fd60c03833aed48a815794729fabfcfcf93
Signed-off-by: Siena Richard <sienar@codeaurora.org>
The ungate work turns on the clock before it exits hibern8,
if the link was put in hibern8 during clock gating work.
There occurs a race condition when clock scaling work calls
ufshcd_hold() to make sure low power states cannot be entered,
but that returns by checking only whether the clocks are on.
This causes the clock scaling work to issue UIC commands when
the link is in hibern8 causing failures. Make sure we exit
hibern8 state before returning from ufshcd_hold().
Callstacks for race condition:
ufshcd_scale_gear+0x120/0x138
ufshcd_devfreq_scale+0x98/0x154
ufshcd_devfreq_target+0x14c/0x250
update_devfreq+0xc4/0x10c
devfreq_monitor+0x34/0x90
process_one_work+0x24c/0x430
worker_thread+0x2e0/0x408
kthread+0x100/0x108
ret_from_fork+0x10/0x40
ufshcd_uic_hibern8_exit+0x128/0x1f0
ufshcd_ungate_work+0xec/0x148
process_one_work+0x24c/0x430
worker_thread+0x2e0/0x408
kthread+0x100/0x108
ret_from_fork+0x10/0x40
CRs-Fixed: 1036530
Change-Id: I7f430abfb2a545ac97dee488a696a89cd18214f1
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
As the PD PHY probes, assign the static __pdphy pointer with
the pdphy instance prior to calling usbpd_create(). This ensures
that if the policy engine state machine kicks off right away
and calls back into the PHY APIs that there is a valid instance
found.
As further safeguarding, also fix the open/close/signal/write APIs
in the case where the instance cannot be found by using pr_err
instead of dev_err which would lead to a NULL pointer dereference.
Change-Id: I59a01f2ac3b0c374eb3420f40054cc05a80226ba
Signed-off-by: Jack Pham <jackp@codeaurora.org>
The new API clk_set_flags could be used by hardware specific clock drivers
or clients for specific hardware requirements. These flags could be custom
defined as per hardware needs.
Change-Id: Ia67373ee2b8934c898052c68338fa86cb16070dd
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Checking offset_entry is not necessary when using DDR addresses.
Check offset_entry only when using header tables.
CRs-fixed: 1041515
Change-Id: I4b3e44bda6ee05932a7de66e1e7cea300936f982
Signed-off-by: Amir Levy <alevy@codeaurora.org>
While NOC timeout feature is enabled, L1 and L1 substate
low power mode should be disabled. Thus, disable L1 and L1ss
for PCIe on msmcobalt.
Change-Id: If77f1850396d3e78cdcb774cdb6de148a2b4d14e
Signed-off-by: Tony Truong <truong@codeaurora.org>
Add required settings for command mode and video
mode 2k truly panel and include those settings in
msmcobalt for CDP and MTP.
Change-Id: I419af32ee73bd486258692eba3f699e6b987c288
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
POWER_SUPPLY_STATUS shows 'Discharging' when DCIN is the only charging
input, because current input online report is solely based on USB.
DCIN is included to fix the issue.
CRs-Fixed: 1034899
Change-Id: I58b8ca712a7900caf37bf79f5281fb3b6dab80f2
Signed-off-by: Harry Yang <harryy@codeaurora.org>