mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
msm: ipa4: Disable uc monitoring stats for holi target
In holi target due uC memory constraints uC monitoring stats not support. So disabling the sending monitor command to uC. Change-Id: I34e319118287fcd82876344bd85ab53c50cf5651 Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
This commit is contained in:
parent
9d023aee86
commit
8cb85b52b3
5 changed files with 14 additions and 7 deletions
|
|
@ -270,7 +270,8 @@ static void ipa3_start_gsi_debug_monitor(u32 clnt_hdl)
|
|||
|
||||
/* start uC gsi dbg stats monitor */
|
||||
if (ipa3_ctx->ipa_hw_type >= IPA_HW_v4_5 &&
|
||||
ipa3_ctx->ipa_hw_type != IPA_HW_v4_7) {
|
||||
ipa3_ctx->ipa_hw_type != IPA_HW_v4_7 &&
|
||||
ipa3_ctx->ipa_hw_type != IPA_HW_v4_11) {
|
||||
switch (client_type) {
|
||||
case IPA_CLIENT_MHI_PRIME_TETH_PROD:
|
||||
gsi_info = &ipa3_ctx->gsi_info[IPA_HW_PROTOCOL_MHIP];
|
||||
|
|
|
|||
|
|
@ -2115,7 +2115,8 @@ int ipa3_disconnect_gsi_wdi_pipe(u32 clnt_hdl)
|
|||
else
|
||||
IPADBG("uc_wdi_ctx.stats_notify already null\n");
|
||||
if (ipa3_ctx->ipa_hw_type >= IPA_HW_v4_5 &&
|
||||
ipa3_ctx->ipa_hw_type != IPA_HW_v4_7)
|
||||
ipa3_ctx->ipa_hw_type != IPA_HW_v4_7 &&
|
||||
ipa3_ctx->ipa_hw_type != IPA_HW_v4_11)
|
||||
ipa3_uc_debug_stats_dealloc(IPA_HW_PROTOCOL_WDI);
|
||||
IPADBG("client (ep: %d) disconnected\n", clnt_hdl);
|
||||
|
||||
|
|
@ -2510,7 +2511,8 @@ int ipa3_resume_gsi_wdi_pipe(u32 clnt_hdl)
|
|||
pcmd_t = &ipa3_ctx->gsi_info[IPA_HW_PROTOCOL_WDI];
|
||||
/* start uC gsi dbg stats monitor */
|
||||
if (ipa3_ctx->ipa_hw_type >= IPA_HW_v4_5 &&
|
||||
ipa3_ctx->ipa_hw_type != IPA_HW_v4_7) {
|
||||
ipa3_ctx->ipa_hw_type != IPA_HW_v4_7 &&
|
||||
ipa3_ctx->ipa_hw_type != IPA_HW_v4_11) {
|
||||
if (IPA_CLIENT_IS_PROD(ep->client)) {
|
||||
pcmd_t->ch_id_info[0].ch_id
|
||||
= ep->gsi_chan_hdl;
|
||||
|
|
@ -2688,7 +2690,8 @@ retry_gsi_stop:
|
|||
pcmd_t = &ipa3_ctx->gsi_info[IPA_HW_PROTOCOL_WDI];
|
||||
/* stop uC gsi dbg stats monitor */
|
||||
if (ipa3_ctx->ipa_hw_type >= IPA_HW_v4_5 &&
|
||||
ipa3_ctx->ipa_hw_type != IPA_HW_v4_7) {
|
||||
ipa3_ctx->ipa_hw_type != IPA_HW_v4_7 &&
|
||||
ipa3_ctx->ipa_hw_type != IPA_HW_v4_11) {
|
||||
if (IPA_CLIENT_IS_PROD(ep->client)) {
|
||||
pcmd_t->ch_id_info[0].ch_id
|
||||
= 0xff;
|
||||
|
|
|
|||
|
|
@ -8340,7 +8340,8 @@ static int __ipa3_stop_gsi_channel(u32 clnt_hdl)
|
|||
|
||||
/* stop uC gsi dbg stats monitor */
|
||||
if (ipa3_ctx->ipa_hw_type >= IPA_HW_v4_5 &&
|
||||
ipa3_ctx->ipa_hw_type != IPA_HW_v4_7) {
|
||||
ipa3_ctx->ipa_hw_type != IPA_HW_v4_7 &&
|
||||
ipa3_ctx->ipa_hw_type != IPA_HW_v4_11) {
|
||||
switch (client_type) {
|
||||
case IPA_CLIENT_MHI_PRIME_TETH_PROD:
|
||||
gsi_info = &ipa3_ctx->gsi_info[IPA_HW_PROTOCOL_MHIP];
|
||||
|
|
|
|||
|
|
@ -3186,7 +3186,8 @@ static int rmnet_ipa3_set_data_quota_wifi(struct wan_ioctl_set_data_quota *data)
|
|||
IPAWANDBG("iface name %s, quota %lu\n",
|
||||
data->interface_name, (unsigned long) data->quota_mbytes);
|
||||
|
||||
if (ipa3_ctx_get_type(IPA_HW_TYPE) >= IPA_HW_v4_5) {
|
||||
if (ipa3_ctx_get_type(IPA_HW_TYPE) >= IPA_HW_v4_5 &&
|
||||
ipa3_ctx_get_type(IPA_HW_TYPE) != IPA_HW_v4_11) {
|
||||
IPADBG("use ipa-uc for quota\n");
|
||||
rc = ipa3_uc_quota_monitor(data->set_quota);
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -737,7 +737,8 @@ static int ipa_test_hw_stats_set_uc_event_ring(void *priv)
|
|||
/* set uc event ring */
|
||||
IPA_UT_INFO("========set uc event ring ========\n");
|
||||
|
||||
if (ipa3_ctx->ipa_hw_type >= IPA_HW_v4_5) {
|
||||
if (ipa3_ctx->ipa_hw_type >= IPA_HW_v4_5 &&
|
||||
ipa3_ctx->ipa_hw_type != IPA_HW_v4_11) {
|
||||
if (ipa3_ctx->uc_ctx.uc_loaded &&
|
||||
!ipa3_ctx->uc_ctx.uc_event_ring_valid) {
|
||||
if (ipa3_uc_setup_event_ring()) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue