SDPM driver probing is failed if any of the clocks configured in
devicetree is not available. Update sdpm driver probe logic to
proceed with the available clocks.
Change-Id: I8e66fb9028fa3f2f4f1b45bf9c2cc16e7e6950a9
Signed-off-by: Priyansh Jain <quic_priyjain@quicinc.com>
Add wmi ARC (adaptive rate control) interface
for config command, response, and event.
The asynchronous ARC notification from firmware are sent to
user space through netlink events.
Change-Id: I22e351e4b146fa4393f57f2bdd2deaedb5d149ce
Signed-off-by: Subrat Dash <quic_sdash@quicinc.com>
Raw commands are designed to be used during boot up only. Register
a global context (managed by KGSL) with GMU to submit perfcounter
select PM4 packets for SP/TP/VFD blocks.
Change-Id: Ie6cb8ac5325d323b1e9a48ce8e22af0f019fa1eb
Signed-off-by: Kamal Agrawal <quic_kamaagra@quicinc.com>
Optimize data transmission,adapt to FW2.0.
1.Add SPI to upgrade HMD FW.
2.Add HMD nordic upgrade controller.
3.Optimize data transmission,kernel mapping pass data to HAL.
CRs-Fixed: 3639549
Change-Id: I04c587d628277ab26fde536f506e32a1f9c703ca
Signed-off-by: Wei Tan <quic_weitan@quicinc.com>
We are seeing M_TX_FIFO_WATERMARK_EN timeout during
console_write and M_CMD_OVERRUN is getting set which
indicates a new command is initialized by SW, before
the previous one has been completed. There is some data
in TX FIFO and before UART transaction is finished,
console_write() is called again without clearing the
m_irq_status.
During the next console_write if tx geni is
active and previous console_write was incomplete,
ensure the m_irq_status is cleared by calling
msm_geni_serial_poll_tx_done before triggering further
write operations.
Change-Id: I440f8d1e5234b2d9bb66b41ed1532bfec0088ce2
Signed-off-by: Prasanna S <quic_prass@quicinc.com>
The sysfs apis duplicate the input string with kstrdup() and use strsep()
to parse the copied string. However since calls to strsep() can modify
the string pointer, it is incorrect to use the same pointer to free the
copied string. Instead, save the original location of the string so
that it can be properly freed at the end.
Change-Id: Ib0c2ef92c5c4fec7ea5e35f7a6e4d9662bb041cd
Signed-off-by: Shivnandan Kumar <quic_kshivnan@quicinc.com>
For out-of-tree builds, this script invokes cpio twice to copy header
files from the srctree and subsequently from the objtree. According to a
comment in the script, there might be situations in which certain files
already exist in the destination directory when header files are copied
from the objtree:
"The second CPIO can complain if files already exist which can happen
with out of tree builds having stale headers in srctree. Just silence
CPIO for now."
GNU cpio might simply print a warning like "newer or same age version
exists", but toybox cpio exits with a non-zero exit code unless the
command line option "-u" is specified.
To improve compatibility with toybox cpio, add the command line option
"-u" to unconditionally replace existing files in the destination
directory.
Git-commit: 1e8ca62b79dec20aeded4fe283f4890e5016767a
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git .
Change-Id: I696041266c8f8910be8007e4745f74a930cc0e53
Signed-off-by: Daniel Mentz <danielmentz@google.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Naini Singh <quic_nainsing@quicinc.com>
Reduces the stack size of a function.
Signed-off-by: Pravin Kumar Ravi <quic_pravinku@quicinc.com>
Change-Id: Ic2c9d26e15dcad8973a62ef3e08a1c556160b718
Signed-off-by: Urvesh Rathod <quic_urathod@quicinc.com>
This change registers kernel panic handler for
wigig driver which will collect the fw crash dump
and copy it to the host ramdump mermory region.
Change-Id: I1743f340474e35cba162e23e145d1ef25a7aba28
Signed-off-by: Subrat Dash <quic_sdash@quicinc.com>
For LEVM during initial suspend we are unvoting for the clocks,
due to this crash happened in LEVM. To solve this added
conditional check for LEVM to bypass unvoting for suspend
as we don't want for resume.
Change-Id: Ie9e488b4f31c56b93d79d77e6d874f16efe4042d
Signed-off-by: Anil Veshala Veshala <quic_aveshala@quicinc.com>
The VBO bind operation is often synchronous, and needs to be waited
on by the ioctl thread. Allocate the completion struct used to synchronize
between the ioctl and bind operation on the heap for simplicity.
Change-Id: I709d417dbd3fb0ecd1150439f598fc3629de378e
Signed-off-by: Lynus Vaz <quic_lvaz@quicinc.com>
The config buffer is stack variable and it consumes
huge stack memory and hence crosses stack limit.
Use heap memory for config buffer variable and
avoid huge stack memory consumption.
Change-Id: Id9c22439da288fa5f6b56b1c7f10eed3a39115b2
Signed-off-by: gnuthaki <quic_gnuthaki@quicinc.com>
Replace ktimer timestamp with qtimer counter value for user space logs
to facilitate correlation with logs collected with qtimer value from
other masters in the SOC. However, the ftrace log will still contain ktimer
timestamp to enable correlation with other kernel logs.
Change-Id: Ib94dfe374d8643d7b9e075456ddc5f653b6c8d9c
Signed-off-by: Vandana Gupta <quic_vandgupt@quicinc.com>
Signed-off-by: Shivnandan Kumar <quic_kshivnan@quicinc.com>
Add new soc id for SG_PARROT, SG_PARROTP and PARROTP.
Change-Id: I876615deece5919d4623874433c408dbc4e65202
Signed-off-by: Swetha Chikkaboraiah <quic_schikk@quicinc.com>
Due to multiple if in i2c geni probe function, getting error.
Create new function from probe function to avoid error.
Change-Id: I34a848dc2225b80e8610f54c8e1499d772b288a9
Signed-off-by: Somesh Dey <quic_somedey@quicinc.com>
During normal restart of a system download bit should
be cleared after checking whether download mode is
set or not.
Change-Id: I0a0de929668b29c9f7b54b86e28842dbe644eb4b
Signed-off-by: Meena Pasumarthi <quic_pasumart@quicinc.com>
Currently driver supports sampling rates starting from 100ms to
2 seconds. Extend it to support sampling rates down to 1ms. Upto
50ms the granularity of sampling period supported is in multiples of 1.
Beyond 50ms it is in multiples of 50. i.e User space can set sampling
periods from 1ms to 50ms in steps of 1 beyond that in steps of 50.
Change-Id: I0f9f250c35a1e67b7f65effb70baec11ca57040c
Signed-off-by: Vandana Gupta <quic_vandgupt@quicinc.com>
UAF scenario may occur in clients with EL1 privileges for
iova mappings when we miss to check the return value of
arm_lpae_init_pte which may lead to an PTE be counted as
it was set even if it was already existing. This can cause a
dangling IOMMU PTE to be left mapped pointing to a
freed object and cause UAF in the client if the dangling PTE
is accessed after a failed unmap operation.
Change-Id: I674b9b520e705b8f8e63ba20ed76e64cb2fe0f47
Fixes: 9913ccceda61 ("qcom-iommu-util: Take a snapshot of the qcom-iommu-util module from msm-5.15")
[quic_pbrahma@quicinc.com: Propagated fix to the new file
with the bug signature ]
Signed-off-by: Pratyush Brahma <quic_pbrahma@quicinc.com>
Currently, when a page is allocated from a dma-buf pool,
the page owner shows the owner to be the refill worker thread
which has created the pool. It is incorrect, since there can be
many clients who have allocated pages from the pool and there is
no way to know the owner of those pages. Set page owner while
allocating from pool to show correct owner.
Change-Id: I95bbbb48829fa9e09389dc27e718bb55f19f56d8
Signed-off-by: Pratyush Brahma <quic_pbrahma@quicinc.com>
Use priority work queue to queue the shim tx to avoid the latency
in the vote send to aop sub system.
Change-Id: Idfc48715a4177580186e97735ca02d6685e8c1c8
Signed-off-by: Arun Prakash <quic_app@quicinc.com>
Signed-off-by: Meenu Raja Sundaram <quic_mrajasun@quicinc.com>
Prevent possible integer overflow by sanitizing the alloc request
size coming from the client against allottable amount of memory.
Change-Id: I74cb0f7b0808f20299586969fd5c810d44c3e576
Signed-off-by: Manoj Prabhu B <quic_bmanoj@quicinc.com>
In the mhi_sat_isvalid_header function if the length is less than
the size of header then there can be out-of-bound access.
So fix the len check in the function.
Change-Id: I80f1556557b1bf2f30c07f6377bd6e3db48712b3
Signed-off-by: Krishna chaitanya chundru <quic_krichai@quicinc.com>
Signed-off-by: Paras Sharma <quic_parass@quicinc.com>