qcacld-3.0: Use WLAN_FEATURE_DP_BUS_BANDWIDTH instead of MSM_PLATFORM

Use WLAN_FEATURE_DP_BUS_BANDWIDTH to instead of MSM_PLATFORM for better
reading.

Change-Id: Iaed4f77b09b80ca8872a69c832491598db021232
CRs-Fixed: 2423299
This commit is contained in:
Tiger Yu
2019-04-09 13:55:07 +08:00
zatwierdzone przez nshrivas
rodzic 53179133bc
commit 8b119e9b61
13 zmienionych plików z 65 dodań i 39 usunięć

2
Kbuild
Wyświetl plik

@@ -2027,6 +2027,8 @@ ifeq (y,$(findstring y,$(CONFIG_ARCH_MSM) $(CONFIG_ARCH_QCOM)))
cppflags-y += -DMSM_PLATFORM
endif
cppflags-$(CONFIG_WLAN_FEATURE_DP_BUS_BANDWIDTH) += -DWLAN_FEATURE_DP_BUS_BANDWIDTH
cppflags-y += -DQCA_SUPPORT_TXRX_LOCAL_PEER_ID
cppflags-$(CONFIG_WLAN_TX_FLOW_CONTROL_V2) += -DQCA_LL_TX_FLOW_CONTROL_V2

Wyświetl plik

@@ -778,3 +778,7 @@ ifeq ($(CONFIG_CMN_VDEV_MLME_SM), y)
#Enable STATE MACHINE HISTORY
CONFIG_SM_ENG_HIST := n
endif
ifeq (y,$(findstring y,$(CONFIG_ARCH_MSM) $(CONFIG_ARCH_QCOM)))
CONFIG_WLAN_FEATURE_DP_BUS_BANDWIDTH := y
endif

Wyświetl plik

@@ -210,4 +210,9 @@ ifeq ($(CONFIG_CMN_VDEV_MLME_SM), y)
#Enable STATE MACHINE HISTORY
CONFIG_SM_ENG_HIST := n
endif
ifeq (y,$(findstring y,$(CONFIG_ARCH_MSM) $(CONFIG_ARCH_QCOM)))
CONFIG_WLAN_FEATURE_DP_BUS_BANDWIDTH := y
endif
###################################

Wyświetl plik

@@ -689,3 +689,7 @@ CONFIG_SM_ENG_HIST := n
endif
#Enable Beacon Reception Stats
CONFIG_FEATURE_BECN_STATS := y
ifeq (y,$(findstring y,$(CONFIG_ARCH_MSM) $(CONFIG_ARCH_QCOM)))
CONFIG_WLAN_FEATURE_DP_BUS_BANDWIDTH := y
endif

Wyświetl plik

@@ -713,3 +713,7 @@ CONFIG_SM_ENG_HIST := n
endif
#Enable Beacon Reception Stats
CONFIG_FEATURE_BECN_STATS := y
ifeq (y,$(findstring y,$(CONFIG_ARCH_MSM) $(CONFIG_ARCH_QCOM)))
CONFIG_WLAN_FEATURE_DP_BUS_BANDWIDTH := y
endif

Wyświetl plik

@@ -332,7 +332,8 @@
"Max pause queue depth in high bandwidth band")
#endif /* QCA_LL_LEGACY_TX_FLOW_CONTROL */
#ifdef MSM_PLATFORM
#ifdef WLAN_FEATURE_DP_BUS_BANDWIDTH
/*
* <ini>
* gBusBandwidthHighThreshold - bus bandwidth high threshold
@@ -600,8 +601,7 @@
500, \
CFG_VALUE_OR_DEFAULT, \
"High Threshold inorder to trigger High Tx Tp")
#endif /* MSM_PLATFORM */
#endif /*WLAN_FEATURE_DP_BUS_BANDWIDTH*/
/*
* <ini>
@@ -956,8 +956,8 @@
#define CFG_HDD_DP_LEGACY_TX_FLOW
#endif
#ifdef MSM_PLATFORM
#define CFG_HDD_DP_MSM_PLATFORM \
#ifdef WLAN_FEATURE_DP_BUS_BANDWIDTH
#define CFG_HDD_DP_BUS_BANDWIDTH \
CFG(CFG_DP_BUS_BANDWIDTH_HIGH_THRESHOLD) \
CFG(CFG_DP_BUS_BANDWIDTH_MEDIUM_THRESHOLD) \
CFG(CFG_DP_BUS_BANDWIDTH_LOW_THRESHOLD) \
@@ -970,7 +970,7 @@
CFG(CFG_DP_TCP_DELACK_TIMER_COUNT) \
CFG(CFG_DP_TCP_TX_HIGH_TPUT_THRESHOLD)
#else
#define CFG_HDD_DP_MSM_PLATFORM
#define CFG_HDD_DP_BUS_BANDWIDTH
#endif
#define CFG_HDD_DP_ALL \
@@ -987,7 +987,7 @@
CFG(CFG_DP_NUM_DP_RX_THREADS) \
CFG(CFG_DP_HTC_WMI_CREDIT_CNT) \
CFG_DP_ENABLE_FASTPATH_ALL \
CFG_HDD_DP_MSM_PLATFORM \
CFG_HDD_DP_BUS_BANDWIDTH \
CFG_HDD_DP_LEGACY_TX_FLOW \
CFG_DP_ENABLE_NUD_TRACKING_ALL \
CFG_DP_CONFIG_DP_TRACE_ALL

Wyświetl plik

@@ -154,7 +154,8 @@ struct hdd_config {
bool enable_packet_log;
#endif
uint32_t rx_mode;
#ifdef MSM_PLATFORM
#ifdef WLAN_FEATURE_DP_BUS_BANDWIDTH
uint32_t bus_bw_high_threshold;
uint32_t bus_bw_medium_threshold;
uint32_t bus_bw_low_threshold;
@@ -167,7 +168,8 @@ struct hdd_config {
uint32_t tcp_tx_high_tput_thres;
uint32_t tcp_delack_timer_count;
bool enable_tcp_param_update;
#endif /* MSM_PLATFORM */
#endif /*WLAN_FEATURE_DP_BUS_BANDWIDTH*/
#ifdef QCA_LL_LEGACY_TX_FLOW_CONTROL
uint32_t tx_flow_low_watermark;
uint32_t tx_flow_hi_watermark_offset;

Wyświetl plik

@@ -103,7 +103,7 @@
#include "wma_sar_public_structs.h"
#include "wlan_mlme_ucfg_api.h"
#ifdef MSM_PLATFORM
#ifdef WLAN_FEATURE_DP_BUS_BANDWIDTH
#include "qdf_periodic_work.h"
#endif
@@ -1256,12 +1256,14 @@ struct hdd_adapter {
struct work_struct scan_block_work;
qdf_list_t blocked_scan_request_q;
qdf_mutex_t blocked_scan_request_q_lock;
#ifdef MSM_PLATFORM
#ifdef WLAN_FEATURE_DP_BUS_BANDWIDTH
unsigned long prev_rx_packets;
unsigned long prev_tx_packets;
uint64_t prev_fwd_tx_packets;
uint64_t prev_fwd_rx_packets;
#endif
#endif /*WLAN_FEATURE_DP_BUS_BANDWIDTH*/
#if defined(QCA_LL_LEGACY_TX_FLOW_CONTROL) || \
defined(QCA_HL_NETDEV_FLOW_CONTROL)
qdf_mc_timer_t tx_flow_control_timer;
@@ -1658,7 +1660,7 @@ struct hdd_context {
/* Flag keeps track of wiphy suspend/resume */
bool is_wiphy_suspended;
#ifdef MSM_PLATFORM
#ifdef WLAN_FEATURE_DP_BUS_BANDWIDTH
struct qdf_periodic_work bus_bw_work;
int cur_vote_level;
spinlock_t bus_bw_lock;
@@ -1667,7 +1669,7 @@ struct hdd_context {
uint64_t prev_rx_offload_pkts;
int cur_tx_level;
uint64_t prev_tx;
#endif
#endif /*WLAN_FEATURE_DP_BUS_BANDWIDTH*/
struct completion ready_to_suspend;
/* defining the solution type */
@@ -2181,7 +2183,8 @@ bool wlan_hdd_validate_modules_state(struct hdd_context *hdd_ctx);
QDF_STATUS __wlan_hdd_validate_mac_address(struct qdf_mac_addr *mac_addr,
const char *func);
#ifdef MSM_PLATFORM
#ifdef WLAN_FEATURE_DP_BUS_BANDWIDTH
/**
* hdd_bus_bw_compute_timer_start() - start the bandwidth timer
* @hdd_ctx: the global hdd context
@@ -2242,7 +2245,6 @@ void hdd_bus_bandwidth_deinit(struct hdd_context *hdd_ctx);
#define GET_CUR_RX_LVL(config) ((config)->cur_rx_level)
#define GET_BW_COMPUTE_INTV(config) ((config)->bus_bw_compute_interval)
#else
static inline
@@ -2279,7 +2281,7 @@ void hdd_bus_bandwidth_deinit(struct hdd_context *hdd_ctx)
#define GET_CUR_RX_LVL(config) 0
#define GET_BW_COMPUTE_INTV(config) 0
#endif
#endif /*WLAN_FEATURE_DP_BUS_BANDWIDTH*/
int hdd_qdf_trace_enable(QDF_MODULE_ID module_id, uint32_t bitmask);
@@ -3547,7 +3549,7 @@ void hdd_update_dynamic_mac(struct hdd_context *hdd_ctx,
struct qdf_mac_addr *curr_mac_addr,
struct qdf_mac_addr *new_mac_addr);
#ifdef MSM_PLATFORM
#ifdef WLAN_FEATURE_DP_BUS_BANDWIDTH
/**
* wlan_hdd_send_tcp_param_update_event() - Send vendor event to update
* TCP parameter through Wi-Fi HAL
@@ -3595,8 +3597,7 @@ void wlan_hdd_send_tcp_param_update_event(struct hdd_context *hdd_ctx,
uint8_t dir)
{
}
#endif /* MSM_PLATFORM */
#endif /*WLAN_FEATURE_DP_BUS_BANDWIDTH*/
#ifdef WLAN_FEATURE_MOTION_DETECTION
/**

Wyświetl plik

@@ -287,7 +287,7 @@ void hdd_send_rps_ind(struct hdd_adapter *adapter);
void hdd_send_rps_disable_ind(struct hdd_adapter *adapter);
void wlan_hdd_classify_pkt(struct sk_buff *skb);
#ifdef MSM_PLATFORM
#ifdef WLAN_FEATURE_DP_BUS_BANDWIDTH
void hdd_reset_tcp_delack(struct hdd_context *hdd_ctx);
bool hdd_is_current_high_throughput(struct hdd_context *hdd_ctx);
#define HDD_MSM_CFG(msm_cfg) msm_cfg

Wyświetl plik

@@ -1436,7 +1436,7 @@ static void hdd_send_association_event(struct net_device *dev,
adapter->vdev);
#endif
#ifdef MSM_PLATFORM
#ifdef WLAN_FEATURE_DP_BUS_BANDWIDTH
/* start timer in sta/p2p_cli */
spin_lock_bh(&hdd_ctx->bus_bw_lock);
adapter->prev_tx_packets = adapter->stats.tx_packets;
@@ -1488,7 +1488,7 @@ static void hdd_send_association_event(struct net_device *dev,
false,
adapter->vdev);
#ifdef MSM_PLATFORM
#ifdef WLAN_FEATURE_DP_BUS_BANDWIDTH
/* stop timer in sta/p2p_cli */
spin_lock_bh(&hdd_ctx->bus_bw_lock);
adapter->prev_tx_packets = 0;

Wyświetl plik

@@ -2234,7 +2234,7 @@ QDF_STATUS hdd_hostapd_sap_event_cb(struct sap_event *sap_event,
QDF_TRACE_DEFAULT_PDEV_ID,
QDF_PROTO_TYPE_MGMT, QDF_PROTO_MGMT_ASSOC));
#ifdef MSM_PLATFORM
#ifdef WLAN_FEATURE_DP_BUS_BANDWIDTH
/* start timer in sap/p2p_go */
if (ap_ctx->ap_active == false) {
spin_lock_bh(&hdd_ctx->bus_bw_lock);
@@ -2411,7 +2411,7 @@ QDF_STATUS hdd_hostapd_sap_event_cb(struct sap_event *sap_event,
NULL,
adapter->device_mode);
}
#ifdef MSM_PLATFORM
#ifdef WLAN_FEATURE_DP_BUS_BANDWIDTH
/*stop timer in sap/p2p_go */
if (ap_ctx->ap_active == false) {
spin_lock_bh(&hdd_ctx->bus_bw_lock);

Wyświetl plik

@@ -80,6 +80,11 @@
#include <linux/compat.h>
#include <linux/reboot.h>
#include <linux/ethtool.h>
#ifdef WLAN_FEATURE_DP_BUS_BANDWIDTH
#include "qdf_periodic_work.h"
#endif
#ifdef MSM_PLATFORM
#include <soc/qcom/subsystem_restart.h>
#endif
@@ -375,7 +380,7 @@ void wlan_hdd_mod_fc_timer(struct hdd_adapter *adapter,
}
#endif /* QCA_HL_NETDEV_FLOW_CONTROL */
#ifdef MSM_PLATFORM
#ifdef WLAN_FEATURE_DP_BUS_BANDWIDTH
void wlan_hdd_update_tcp_rx_param(struct hdd_context *hdd_ctx, void *data)
{
if (!hdd_ctx) {
@@ -533,7 +538,7 @@ tcp_param_change_nla_failed:
hdd_err("nla_put api failed");
kfree_skb(vendor_event);
}
#endif /* MSM_PLATFORM */
#endif /*WLAN_FEATURE_DP_BUS_BANDWIDTH*/
/**
* wlan_hdd_txrx_pause_cb() - pause callback from txrx layer
@@ -7682,7 +7687,7 @@ static int hdd_wiphy_init(struct hdd_context *hdd_ctx)
return ret_val;
}
#ifdef MSM_PLATFORM
#ifdef WLAN_FEATURE_DP_BUS_BANDWIDTH
/**
* hdd_display_periodic_stats() - Function to display periodic stats
* @hdd_ctx - handle to hdd context
@@ -8087,8 +8092,7 @@ void hdd_bus_bandwidth_deinit(struct hdd_context *hdd_ctx)
hdd_exit();
}
#endif /* MSM_PLATFORM */
#endif /*WLAN_FEATURE_DP_BUS_BANDWIDTH*/
/**
* wlan_hdd_init_tx_rx_histogram() - init tx/rx histogram stats
@@ -8148,7 +8152,7 @@ void wlan_hdd_display_tx_rx_histogram(struct hdd_context *hdd_ctx)
{
int i;
#ifdef MSM_PLATFORM
#ifdef WLAN_FEATURE_DP_BUS_BANDWIDTH
hdd_nofl_info("BW compute Interval: %dms",
hdd_ctx->config->bus_bw_compute_interval);
hdd_nofl_info("BW High TH: %d BW Med TH: %d BW Low TH: %d",
@@ -8162,7 +8166,7 @@ void wlan_hdd_display_tx_rx_histogram(struct hdd_context *hdd_ctx)
hdd_ctx->config->tcp_delack_thres_low);
hdd_nofl_info("TCP TX HIGH TP TH: %d (Use to set tcp_output_bytes_limit)",
hdd_ctx->config->tcp_tx_high_tput_thres);
#endif
#endif /*WLAN_FEATURE_DP_BUS_BANDWIDTH*/
hdd_nofl_info("Total entries: %d Current index: %d",
NUM_TX_RX_HISTOGRAM, hdd_ctx->hdd_txrx_hist_idx);
@@ -12629,7 +12633,7 @@ hdd_get_con_sap_adapter(struct hdd_adapter *this_sap_adapter,
return con_sap_adapter;
}
#ifdef MSM_PLATFORM
#ifdef WLAN_FEATURE_DP_BUS_BANDWIDTH
static inline bool hdd_adapter_is_sta(struct hdd_adapter *adapter)
{
return adapter->device_mode == QDF_STA_MODE ||
@@ -12714,7 +12718,7 @@ void hdd_bus_bw_compute_timer_try_stop(struct hdd_context *hdd_ctx)
hdd_exit();
}
#endif
#endif /*WLAN_FEATURE_DP_BUS_BANDWIDTH*/
/**
* wlan_hdd_stop_sap() - This function stops bss of SAP.

Wyświetl plik

@@ -2829,7 +2829,7 @@ void hdd_tx_queue_cb(hdd_handle_t hdd_handle, uint32_t vdev_id,
wlan_hdd_netif_queue_control(adapter, action, reason);
}
#ifdef MSM_PLATFORM
#ifdef WLAN_FEATURE_DP_BUS_BANDWIDTH
/**
* hdd_reset_tcp_delack() - Reset tcp delack value to default
* @hdd_ctx: Handle to hdd context
@@ -2864,7 +2864,7 @@ bool hdd_is_current_high_throughput(struct hdd_context *hdd_ctx)
else
return true;
}
#endif /* MSM_PLATFORM */
#endif
#ifdef QCA_LL_LEGACY_TX_FLOW_CONTROL
/**
@@ -2903,7 +2903,7 @@ static void hdd_ini_tx_flow_control(struct hdd_config *config,
}
#endif
#ifdef MSM_PLATFORM
#ifdef WLAN_FEATURE_DP_BUS_BANDWIDTH
/**
* hdd_ini_tx_flow_control() - Initialize INIs concerned about bus bandwidth
* @config: pointer to hdd config
@@ -2953,7 +2953,7 @@ static void hdd_ini_tcp_settings(struct hdd_config *config,
}
#else
static void hdd_ini_bus_bandwidth(struct hdd_config *config,
struct wlan_objmgr_psoc *psoc)
struct wlan_objmgr_psoc *psoc)
{
}
@@ -2961,7 +2961,7 @@ static void hdd_ini_tcp_settings(struct hdd_config *config,
struct wlan_objmgr_psoc *psoc)
{
}
#endif
#endif /*WLAN_FEATURE_DP_BUS_BANDWIDTH*/
/**
* hdd_set_rx_mode_value() - set rx_mode values