There are potential race condition ioctls in
the IPA driver when it copies the actual
arguments from the user-space memory to the
IPA-driver. The fix is to add check on the
2nd copy to make sure the same payload size
is copied to the pre-allocated kernel memory
as during the 1st copy.
Change-Id: I3d31cb11a24e969db4fd1728cf6ab1ce983a75e9
Signed-off-by: Armaan Siddiqui <asiddiqu@codeaurora.org>
Update qtimer granularity for IPA_hw_type > 5.0 to match
HPG requirement. Use the new granularity for configuring
timer if the lower granularities fail. Remove assert
for debugfs to gracefully handle bad timer value.
Change-Id: I57d4913950afd0dec9adddc65441043263302872
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
Fix use-after-free of rt_tbl in __ipa_del_flt_rule
by checking if the rt_tbl is already freed.
Change-Id: I09541f65f474dc42f262c603d99f6bbcbb0ce8ec
Signed-off-by: Goutam Bose <gbose@codeaurora.org>
Directly to give prot_id in ipa3_uc_debug_stats_dealloc
instead of using IpaHwOffloadStatsDeAllocCmdData_t
structure.
Change-Id: I20d717e43dc3c8161e05338a21d053245e5502f7
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
1. Disable HOLB for ODL pipe during suspend to avoid dropping the packet
2. Enable HOLB while unsuspend the pipes.
3. Enable drop stats for ODL pipe.
Change-Id: Id0a5871ebe4a0925c60dea39f197af9e1892d05e
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org
Provide MSI DB register address instead of DB register.
Change-Id: If31998b71c71f11020577c7a581cc11ac93db29f
Acked-by: Eliad Ben Yishay <ebenyish@qti.qualcomm.com>
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
Includes support for IPA stats to be able to send log packet
to ipa_lnx_agent and then to SPEARHEAD framework.
Change-Id: I3112fc6b2e66e15140f638bfff9905bba6997e46
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
Update in the qmi handler structures last index to NULL, to avoid
the out of bound access attempt while handling qmi notifications
from IPA.
Change-Id: I51b3e4369fcf4c9c235307cfd7c6415c525da496
Signed-off-by: Raghavendar rao l <rlomte@codeaurora.org>
Made the changes to increase rsrc pkt conexts
from 1 to 6 to support cv2x auto case.
Change-Id: I2f9774fd473248ce4f86748be83c2a9b58ab16a8
Signed-off-by: Pooja Kumari <kumarip@codeaurora.org>
If userspace commands to delete last rule in a routing table,
then a an empty table may be commited. This is possible case,
so no warning is needed.
Change-Id: I04b6a9d3bdcaf28f35046c328e46a2719680d2a1
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
The value of `req->filter_spec_ex2_list_len`
is user input via ioctl and it's type is uint32,
so an integer overflow may occur. Which can result
in out of bound access in the following loop. Now
add changes to prevent Integer overflow.
Change-Id: Ia29b9ddc674e5dd3d5baf6623cf0a464c156d8f7
Signed-off-by: Piyush Dhyani <pdhyani@codeaurora.org>
Caculate the correct max PDN value from PDN config size
divided by pdn entry size.
Change-Id: I65ed83a5e0368f20dded7c06a7c876010c766d90
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
Make changes to populate qmap_id when disabling coalescing.
Change-Id: Iaf0981bd22948b87bb8f9c548fe74e789eaf689c
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
1. Disable coalescing pipe aggregation timer.
2. Change all pipes resource group to UL (apart from URLLC pipe)
3. Only send force close coalece cmd for tag process.
4. Add dummy register read in tag process IC sequence.
5. Adjust src RSC group settings for UL/DL
Change-Id: I9e94c1bdc7f879a85cbbf3921bff6a04d7901c1a
Add the support for user-space module to dynamically
enable or disable IPPT SW-flt lists based on ipv4 or
connection port number to decide traffic going to
ipa offload or not.
Change-Id: I49472f94201c46bc9d9716eb5ff133fb462bf435
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
Earlier IPA was asserting when received packet size
larger than expected, now instead of that we drop
the packet.
Change-Id: I677c59564aa667c93069b8dda370635332bc077c
Signed-off-by: Armaan Siddiqui <asiddiqu@codeaurora.org>
ULSO enabled in dts
Rndis/ecm use hpc based header insertion for ulso. HPC entry and
a linked header entry are added on init and removed on destruction
of rndis/ecm. Previously, the HPC entry was left dangling, pointing
to a deleted header entry.
Change-Id: I59ed7ed5ee8b3dd012f3b7d4104370dd6deac60a
Acked-by: Eliad Ben Yishay <ebenyish@qti.qualcomm.com>
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
Removing Error logs and Warning logs from rndis and PM module.
Change-Id: Ie993b1d1fe0936eb75bb90c54bf62fd5a848fc5f
SIgned-off-by: Michael Adisumarta <madisuma@codeaurora.org>
Three functional changes:
1) Eogre to uC header corruption (ie. first byte) fixed with this
change by adding the DUMMY consumer to the IPA's endpoint
configuration.
2) Removed the ethernet conditional from the reconfigure ep metadata
reg to override mux-id.
3) Added IPA_PROC_CTX_TLV_TYPE_HDR_ADD tlv back to the
IPA_HDR_PROC_EoGRE_HEADER_REMOVE process context message.
Change-Id: I08a1af3156724f965ccad5a6c1026ef2e62bc063
Signed-off-by: Perry Randise <prandise@codeaurora.org>
During header deletion, if there is a HPC referencing to a header,
and the header is deleted, the later commit will cause
writing garbage values to the HW during commit.
Also adding more security checks in the same flow.
Change-Id: I1f2e42673f030aca622c2b232ac5d463fefc485f
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
Modify the values used for Tx tail pointer update per completion.
Change-Id: Id6ed8e9d7ca05a8b8611407f05c69633d09a9c82
Acked-by: Eliad Ben Yishay <ebenyish@qti.qualcomm.com>
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
Reordering route rule to include low latency rule on top
of the wan routing table.
Change-Id: Ic92e68b1659740d26bc34619921887f60b9d2055
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>