qcacld-3.0: Map IPA tx buffers as part of IPA ready callback

Register IPA ready callback with IPA driver. The callback
sets ipa_is_ready flag in the host driver and kick starts
the ipa init sequence as part of which the Tx buffers are
mapped to IPA.
None of the IPA APIs are invoked until IPA ready registration
is complete.

Change-Id: I4dda8fd083c71400532139174f834b757e05e5a6
CRs-Fixed: 2752235
This commit is contained in:
Nisha Menon
2020-08-07 19:57:06 -07:00
committed by snandini
parent 25218de9b0
commit 57278370bd
7 changed files with 241 additions and 18 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018 The Linux Foundation. All rights reserved.
* Copyright (c) 2018, 2020 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -40,6 +40,15 @@ QDF_STATUS ipa_init(void);
* Return: QDF_STATUS_SUCCESS on success
*/
QDF_STATUS ipa_deinit(void);
/**
* ipa_register_is_ipa_ready() - Register IPA ready callback
* @pdev: pointer to pdev
*
* Return: QDF_STATUS_SUCCESS on success
*/
QDF_STATUS ipa_register_is_ipa_ready(struct wlan_objmgr_pdev *pdev);
#else
static inline QDF_STATUS ipa_init(void)
@@ -51,6 +60,12 @@ static inline QDF_STATUS ipa_deinit(void)
{
return QDF_STATUS_SUCCESS;
}
static inline QDF_STATUS ipa_register_is_ipa_ready(
struct wlan_objmgr_pdev *pdev)
{
return QDF_STATUS_SUCCESS;
}
#endif /* IPA_OFFLOAD */
#endif /* _WLAN_IPA_OBJ_MGMT_H_ */

View File

@@ -357,6 +357,13 @@ void ucfg_ipa_fw_rejuvenate_send_msg(struct wlan_objmgr_pdev *pdev);
*/
void ucfg_ipa_component_config_update(struct wlan_objmgr_psoc *psoc);
/**
* ucfg_ipa_component_config_free() - Free IPA component config
*
* Return: None
*/
void ucfg_ipa_component_config_free(void);
/**
* ucfg_get_ipa_tx_buf_count() - get IPA tx buffer count
*
@@ -588,6 +595,11 @@ void ucfg_ipa_component_config_update(struct wlan_objmgr_psoc *psoc)
{
}
static inline
void ucfg_ipa_component_config_free(void)
{
}
static inline
uint32_t ucfg_ipa_get_tx_buf_count(void)
{