Memory that is either pooled or permanently assigned to other VMIDs
is not always cleared when it is released back into the pools. This
is problematic when the memory is assigned such that HLOS can still
access the memory, as a userspace process can reallocate the
same buffer, and read data from when the buffer was previously
allocated. Thus, clear secure ION buffers before freeing them, if
they are HLOS accessible.
Change-Id: Iaae14fc32b10e0c6afca007a5ee78aacd5e013e6
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
Update the scheduler with the frequency cap due to limits management
interrupt and update back when limits throttling is removed.
Change-Id: Iebf4033757853bedbd60f83e21176ff29389aff8
Signed-off-by: Taniya Das <tdas@codeaurora.org>
The ufs_reset pin is expected to be wired to the reset pin of the
primary UFS memory but is pretty much just a general purpose output pin.
Reorder the pins and expose it as gpio 204, so that the UFS driver can
toggle it.
Change-Id: Id35739a32bf05eaf310857fa07d9c7fbdb3abf86
Signed-off-by: Nitin Rawat <nitirawa@codeaurora.org>
sigcontext.h is having the CONFIG_64BIT addition due to the way
we are exporting the headers to userspace and use of the sigcontext.h
by the 32-bit userspace applications. Since we export only the single
set of headers we need to carry this file in the bypass list.
Change-Id: Iaaf2ecd5d46994ca0901d31e40104c800acd5d20
Signed-off-by: Trilok Soni <tsoni@codeaurora.org>
On some SoCs, spss may be brought out of reset during
bootloader stage. Sometimes spss might be cashed during
the device boot due to some faults in spss firmware. When
spcom tried to boot the spss first time in the kernel stage,
it might be already crashed. So provide the retry
mechanism to load the firmwares and to bring out of reset.
Also, remove sending interrupt on link up to SPSS, since it
was workaround.
Change-Id: I81c1932527c02bfecdfd1cf0c126d18df0e57e57
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
Signed-off-by: Konstantin Dorfman <kdorfman@codeaurora.org>
Properly avoid turn on the SD card power when SD card is removed.
In some multi card tray designs, removing the SD card may cause
the SD card power supply pin to come in contact with the SIM card.
This change is to ensure the SD card power is not active when
the SD card is removed. As a result, avoid possible damage to
the SIM card in case the SD card power makes contact with
the SIM card.
Change-Id: I45a2bb434bd2bc76957ae382eecd5cce9e743918
Signed-off-by: Bao D. Nguyen <nguyenb@codeaurora.org>
This reverts commit 82fc401559.
When there is no SD card inserted, this change causes the SD
card driver to wait for the mmc power IRQ that never comes.
As a result, the boot up time may be longer.
Revert this change and fix the original issue properly.
Change-Id: I22b53109c10c3f533ebe1f19f9bed9301810fb77
Signed-off-by: Bao D. Nguyen <nguyenb@codeaurora.org>
Add more protect on the unclock gsi IPA register access.
In case this is a valid access, assert before disabling
the IPA clock.
Change-Id: If2cc5a9942a5e457bbd8badaabde78138f676176
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
Read the closed-loop brake calibration settings from status register
and store them into a SDAM register for hardware to re-use them after
system reboot.
Change-Id: I9068559fffba58927eefc140ed58afc054257b22
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
Due to a hardware limitation, PM8350B v1 cannot play more than 8 KHz as
it has a FIFO size of 104 bytes. Hence limit the play rate for PM8350B
v1 to 8 KHz.
Change-Id: Ibeabd4c0229a54e2d99023c8fbc5970b1a7a1e64
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
Instead of sending a completion from the IRQ thread to notify a
worker thread to update the FIFO samples, update the samples in
the IRQ thread directly. This should help achieve lower latency
which is good for FIFO playing.
Meanwhile, following changes are made for FIFO playing:
1) Defer stopping command into erase() function if it's coming
before all FIFO samples are played. This gives the hardware
a little more time to play before stopping.
2) Restore FIFO play rate to T_LRA after playing is done according
to hardware recommendation.
Change-Id: I7b21589641d753d45b1261ce0e342373c249f4e5
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
The secure system heap does not support multi-VMID allocations,
so do not allow them. Also, fortify the secure allocation check
for the system heap allocation path.
Change-Id: I51d53274c2374632db778461ba7505de4d723439
Signed-off-by: Isaac J. Manjarres <isaacm@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>
param offset and size were switched in the function signature
Change-Id: Ice7b9b6c2651940648a95bdf8fa331b62c577378
Signed-off-by: Yu SI <ysi@codeaurora.org>
The last entry of the a660_protected_regs array must be an empty
entry. The empty entry serves as a terminating placeholder value
indicating the end of the array.
Change-Id: Ie5dd6afcd65dca3ea1fa885d3aa675c23bdf5ca0
Signed-off-by: Raghu Ananya Arabolu <rarabolu@codeaurora.org>
msm_show_resume_irq_mask is currently being declared by individual
drivers as needed. However, it creates scalability issues and looks
ugly. Hence, place the variable in a common header file so that the
drivers can just include it.
Change-Id: I35348a6a280c15a5ad4744097f1075f165af1bc8
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
Enable the proxy consumer drivre for Lahaina platform to satisfy
the sync-state requirements in the abcense of real drivers.
Change-Id: I255aee9c1cf2995ab7038f7c95e45afdd94ef42b
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
A target may contain multiple defconfigs, but only one device-tree
configuration. Such a target may have device-drivers that are
only enabled in a particular defconfig, while disabled in the
others. For the kernel that boots up with disabled configuration,
since the device-tree node exists, the of_devlink logic expects
the driver to be probed, which is not possible. As a result, the
sync-state remains incomplete.
Hence, add support for a proxy consumer driver that shows a
proxy-presence of the main driver to satisfy the sync-state.
Change-Id: Ica8c2599fb66420c67e6a72e9b35e7afc0ae3220
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
If we query the OPP table when it doesn't exist we get an error. If
we populate it again with the same operating points we get an error.
So just skip the table create if it already exists and go with
whatever we have.
Change-Id: Ic0dedbad3d5bd24b35867a82873a6ece555d8314
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Update the clock IDs and BCRs of Global Clock Controller for SHIMA.
Change-Id: Iec2722e6edc1d454a29d084062b8356af08b17b7
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
Make the fallback path for claiming platform devices trigger only if a
new module parameter is specified:
serdev_ttyport.pdev_tty_port=ttyS2
Bug: 146517987
Change-Id: Ibf331ad6e6d8712a405921530f217f7122428b13
Signed-off-by: Alistair Delva <adelva@google.com>
Git-commit: 3a97aabe4f
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Akash Asthana <akashast@codeaurora.org>
This change adds the missing set_mode callback for RUMI UFS PHY driver.
Change-Id: Ib67ebf63690a1d01172d4e9c9a0c253a8595f5fb
Signed-off-by: Can Guo <cang@codeaurora.org>