Add GSI profiling stats data and the GSI FW version to debug fs.
Change-Id: I5749339f5ec9656e636a512668025bb09a97a3ec
Acked-by: Nadav Levintov <nadavl@qti.qualcomm.com>
Signed-off-by: Sivan Reinstein <sivanr@codeaurora.org>
configure the HOLB timer value to zero in SSR scenario to avoid
USB stall issue.
Change-Id: I23f91c4a2bff2cb3b330d4354e81acc9460d1936
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
For wdi channels we have different logic to moniter
channel health as compared to gpi channels. Now
adding changes on existing channel stats api to
capture health for wdi channels.
Change-Id: Ice99e5aee40e3cc30545d2dfd95d6e85007d8c9d
Signed-off-by: Piyush Dhyani <pdhyani@codeaurora.org>
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
After configuring WLAN CONS ep or USB ep there is a chance
of IPA hardware stall, if WLAN ep or USB ep is not pulling
data fast enough. So, set holb on WLAN CONS ep and USB CONS
ep to avoid stall.
Change-Id: I370165ce197181eaac999df2d8abea517c9e9bd4
Signed-off-by: Piyush Dhyani <pdhyani@codeaurora.org>
Use read memory barrier before reading event from event ring.
Since ring is shared resource between IPA h/w and IPA driver
dma_rmb is used to ensure memory write is complete before
reading from driver.
Change-Id: If2b86ee1acecbdfc75beb327eb60f876e6915d8f
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
Observing use after free issue during teardown WAN pipe if we
receive the incoming packet. Adding check channel in right state
before access base address.
Change-Id: I29a611693b78637811fe45abea93d9ed3e6f54e5
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
While handling the suspend interrupt due aggregation timeout
possible to IEOB interrupt will be delayed. To handle this
scenario adding changes to decrement clock in delays work queue.
Change-Id: I4b9afebf5a9582f6c94aa5a9cd2eb0904b7171b8
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
We observe the IPA RX stall due to the DEAGGR_ERR_IRQ
of PACKET_SIZE > FRAME_SIZE on WAN PROD pipe.
In IPA, some of de-aggregation error handling checks
are dependent on the syspipe_err_detection config bit.
Adding IGNORE_MIN_PKT_ERR bit for WAN PROD as well based
on recommendations.
Change-Id: Ie0fe8f52a1e63750e3db7f2b3fcf42790505fa88
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
Updating SRAM locations according to excel sheet for holi target.
Change-Id: I2fc011d4980f25f74f7c96448b033f61fdea9639
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
Add an check for mtu set before sending an event to IPACM
so MTU will always be nonzero.
Change-Id: Ib8954865ba46743e143d72cf15d8bbce282aa013
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
After halt command timeout verify return code to check command
operation completed or not. If return code success continue further
otherwise return error.
Change-Id: I07ac56d5200163d7d1f8087ce807cd6cd4ebcebc
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
When the modem channel not running if try to flow control the channel
it will return not valid channel. Adding change to avoid the assert
in this error condition.
Change-Id: Ia9c32fbc11814e5fef3b7fbcc165439b5d03b2fa
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
uC stats feature not support for yupik target so disabling
this API calling support.
Change-Id: Iebd074f7cd5d4b57b8db3dc137684dbfc6317e0e
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
There is race condition on PM defer deactive and PM active where
the PM active triggered by new NAPI scheduling would be accidently
unvoted by PM defer deactive after last NAPI completion. This
is causing the NoC error on packet handling due to no clock.
The fix here is to using ACTIVE_CLIENT_NO_BLOCK for clock voting
and still use PM handle for BW voting so that we would have
reference count to make sure this unexpected devote not happens.
Change-Id: If1ece48dc16256dae9a810b3efa6eb4f533f06a8
Make changes to not to use stack memory to store the content
from descriptors in case of COAL/Defaul pipe.
Change-Id: Icfdad59022a5cad27ec95a0bf9c80e96a2a93da9
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
Currently during RMNET_IOCTL_GET_MTU and RMNET_IOCTL_SET_MTU ioctls
we can recieve not null terminated string for if_name which was
resulting in string out of bound error while accessing the if_name.
Now adding null character at the end of string to prevent access
beyond its size.
Change-Id: I4d82a4b491f04a85d6ab4f0211671520156f7c61
Signed-off-by: Piyush Dhyani <pdhyani@codeaurora.org>
Make changes to enable WARN_ON only for debug builds.
Change-Id: I189784e298ce2415f2ae5fd6e3cc2ccb3ec4f307
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
Use read memory barrier before reading event from event ring.
Since ring is shared resource between IPA h/w and IPA driver
dma_rmb is used to ensure memory write is complete before
reading from driver.
Change-Id: I295a701b16362f26d47d4efe5a54364a7ee4d5a6
Signed-off-by: Akshay Pandit <pandit@codeaurora.org>
Enable forceclear only supported for producer pipe so
avoid sending the force clear command to consumer pipes.
Change-Id: I6c63abe68e737463b0a189bf85a92c79648ea767
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
Add change to increase the stop channel retry timeout value
to avoid race condition cause by AP retrying to stop channel
and GSI trying to send stop channel command.
Change-Id: I405f923d9bc87f7b8612ded9137d7b8d23eb37e8
Signed-off-by: Praveen Kurapati <pkurapat@codeaurora.org>
Add assert on all gsi stop channel cases to capture the issue
ahead of time.
Change-Id: I044f192c63a724e00a9559bcb44260f0763ff824
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>