qcacld-3.0: Fix wlan_ipa_set_perf_level failure for UNIFIED_WDI_API
Add Unified WDI API support for ol_txrx_ipa_set_perf_level and fix client parameter for ipa_wdi_set_perf_profile. Change-Id: Ieaaf7cf5231f74cd6ba358c02032ae173d9618f0 CRs-Fixed: 2211504
This commit is contained in:

committed by
nshrivas

parent
5ade23de51
commit
63cff5af1f
@@ -125,17 +125,6 @@ QDF_STATUS wlan_ipa_uc_enable_pipes(struct wlan_ipa_priv *ipa_ctx);
|
||||
*/
|
||||
QDF_STATUS wlan_ipa_uc_disable_pipes(struct wlan_ipa_priv *ipa_ctx);
|
||||
|
||||
/**
|
||||
* wlan_ipa_get_iface() - Get IPA interface
|
||||
* @ipa_ctx: IPA context
|
||||
* @mode: Interface device mode
|
||||
*
|
||||
* Return: IPA interface address
|
||||
*/
|
||||
struct wlan_ipa_iface_context
|
||||
*wlan_ipa_get_iface(struct wlan_ipa_priv *ipa_ctx, uint8_t mode);
|
||||
|
||||
#ifndef CONFIG_IPA_WDI_UNIFIED_API
|
||||
/**
|
||||
* wlan_ipa_set_perf_level() - Set IPA performance level
|
||||
* @ipa_ctx: IPA context
|
||||
@@ -147,6 +136,17 @@ struct wlan_ipa_iface_context
|
||||
QDF_STATUS wlan_ipa_set_perf_level(struct wlan_ipa_priv *ipa_ctx,
|
||||
uint64_t tx_packets, uint64_t rx_packets);
|
||||
|
||||
/**
|
||||
* wlan_ipa_get_iface() - Get IPA interface
|
||||
* @ipa_ctx: IPA context
|
||||
* @mode: Interface device mode
|
||||
*
|
||||
* Return: IPA interface address
|
||||
*/
|
||||
struct wlan_ipa_iface_context
|
||||
*wlan_ipa_get_iface(struct wlan_ipa_priv *ipa_ctx, uint8_t mode);
|
||||
|
||||
#ifndef CONFIG_IPA_WDI_UNIFIED_API
|
||||
/**
|
||||
* wlan_ipa_wdi_rm_request_resource() - IPA WDI request resource
|
||||
* @ipa_ctx: IPA context
|
||||
@@ -225,13 +225,6 @@ int wlan_ipa_wdi_rm_inactivity_timer_destroy(
|
||||
|
||||
#else /* CONFIG_IPA_WDI_UNIFIED_API */
|
||||
|
||||
static inline
|
||||
QDF_STATUS wlan_ipa_set_perf_level(struct wlan_ipa_priv *ipa_ctx,
|
||||
uint64_t tx_packets, uint64_t rx_packets)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static inline int wlan_ipa_wdi_rm_request_resource(
|
||||
struct wlan_ipa_priv *ipa_ctx,
|
||||
qdf_ipa_rm_resource_name_t res_name)
|
||||
|
@@ -22,16 +22,6 @@
|
||||
#include "cdp_txrx_ipa.h"
|
||||
#include "host_diag_core_event.h"
|
||||
|
||||
|
||||
#ifdef FEATURE_METERING
|
||||
void wlan_ipa_init_metering(struct wlan_ipa_priv *ipa_ctx)
|
||||
{
|
||||
qdf_event_create(&ipa_ctx->ipa_uc_sharing_stats_comp);
|
||||
qdf_event_create(&ipa_ctx->ipa_uc_set_quota_comp);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_IPA_WDI_UNIFIED_API
|
||||
QDF_STATUS wlan_ipa_set_perf_level(struct wlan_ipa_priv *ipa_ctx,
|
||||
uint64_t tx_packets,
|
||||
uint64_t rx_packets)
|
||||
@@ -69,7 +59,7 @@ QDF_STATUS wlan_ipa_set_perf_level(struct wlan_ipa_priv *ipa_ctx,
|
||||
ipa_debug("Requesting CONS perf curr: %d, next: %d",
|
||||
ipa_ctx->curr_cons_bw, next_cons_bw);
|
||||
ret = cdp_ipa_set_perf_level(ipa_ctx->dp_soc,
|
||||
QDF_IPA_RM_RESOURCE_WLAN_CONS,
|
||||
QDF_IPA_CLIENT_WLAN1_CONS,
|
||||
next_cons_bw);
|
||||
if (ret) {
|
||||
ipa_err("RM CONS set perf profile failed: %d", ret);
|
||||
@@ -84,7 +74,7 @@ QDF_STATUS wlan_ipa_set_perf_level(struct wlan_ipa_priv *ipa_ctx,
|
||||
ipa_debug("Requesting PROD perf curr: %d, next: %d",
|
||||
ipa_ctx->curr_prod_bw, next_prod_bw);
|
||||
ret = cdp_ipa_set_perf_level(ipa_ctx->dp_soc,
|
||||
QDF_IPA_RM_RESOURCE_WLAN_PROD,
|
||||
QDF_IPA_CLIENT_WLAN1_PROD,
|
||||
next_prod_bw);
|
||||
if (ret) {
|
||||
ipa_err("RM PROD set perf profile failed: %d", ret);
|
||||
@@ -97,6 +87,15 @@ QDF_STATUS wlan_ipa_set_perf_level(struct wlan_ipa_priv *ipa_ctx,
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
#ifdef FEATURE_METERING
|
||||
void wlan_ipa_init_metering(struct wlan_ipa_priv *ipa_ctx)
|
||||
{
|
||||
qdf_event_create(&ipa_ctx->ipa_uc_sharing_stats_comp);
|
||||
qdf_event_create(&ipa_ctx->ipa_uc_set_quota_comp);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_IPA_WDI_UNIFIED_API
|
||||
/**
|
||||
* wlan_ipa_rm_cons_release() - WLAN consumer resource release handler
|
||||
*
|
||||
|
Reference in New Issue
Block a user