qcacmn: Fix issues with rdkstats
The following issues are fixed with this change- 1. Sojourn stats were printing incorrect values 2. RSSI values were junk numbers Change-Id: Ibed73cf370a309bf9db5baad37a0e8261c58463b
This commit is contained in:

committed by
Madan Koyyalamudi

parent
3d9c419f95
commit
d92a7a0776
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
|
||||||
* Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
|
* Copyright (c) 2021,2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for
|
* Permission to use, copy, modify, and/or distribute this software for
|
||||||
* any purpose with or without fee is hereby granted, provided that the
|
* any purpose with or without fee is hereby granted, provided that the
|
||||||
@@ -55,7 +55,7 @@
|
|||||||
/* 1 additional GI is for invalid values */
|
/* 1 additional GI is for invalid values */
|
||||||
#define MAX_GI (4 + 1)
|
#define MAX_GI (4 + 1)
|
||||||
#define SS_COUNT 8
|
#define SS_COUNT 8
|
||||||
#define MAX_BW 7
|
#define MAX_BW 8
|
||||||
#define MAX_RECEPTION_TYPES 4
|
#define MAX_RECEPTION_TYPES 4
|
||||||
|
|
||||||
#define MAX_TRANSMIT_TYPES 9
|
#define MAX_TRANSMIT_TYPES 9
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
|
||||||
* Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
|
* Copyright (c) 2021,2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for
|
* Permission to use, copy, modify, and/or distribute this software for
|
||||||
* any purpose with or without fee is hereby granted, provided that the
|
* any purpose with or without fee is hereby granted, provided that the
|
||||||
@@ -531,7 +531,8 @@ dp_tx_hw_enqueue_be(struct dp_soc *soc, struct dp_vdev *vdev,
|
|||||||
hal_tx_desc_set_hlos_tid(hal_tx_desc_cached, tid);
|
hal_tx_desc_set_hlos_tid(hal_tx_desc_cached, tid);
|
||||||
|
|
||||||
if (qdf_unlikely(vdev->pdev->delay_stats_flag) ||
|
if (qdf_unlikely(vdev->pdev->delay_stats_flag) ||
|
||||||
qdf_unlikely(wlan_cfg_is_peer_ext_stats_enabled(soc->wlan_cfg_ctx)))
|
qdf_unlikely(wlan_cfg_is_peer_ext_stats_enabled(soc->wlan_cfg_ctx)) ||
|
||||||
|
qdf_unlikely(soc->rdkstats_enabled))
|
||||||
tx_desc->timestamp = qdf_ktime_to_ms(qdf_ktime_real_get());
|
tx_desc->timestamp = qdf_ktime_to_ms(qdf_ktime_real_get());
|
||||||
|
|
||||||
dp_verbose_debug("length:%d , type = %d, dma_addr %llx, offset %d desc id %u",
|
dp_verbose_debug("length:%d , type = %d, dma_addr %llx, offset %d desc id %u",
|
||||||
|
@@ -3918,7 +3918,7 @@ static inline void dp_tx_sojourn_stats_process(struct dp_pdev *pdev,
|
|||||||
|
|
||||||
sojourn_stats->cookie = (void *)peer->rdkstats_ctx;
|
sojourn_stats->cookie = (void *)peer->rdkstats_ctx;
|
||||||
|
|
||||||
delta_ms = qdf_ktime_to_ms(qdf_ktime_get()) -
|
delta_ms = qdf_ktime_to_ms(qdf_ktime_real_get()) -
|
||||||
txdesc_ts;
|
txdesc_ts;
|
||||||
qdf_ewma_tx_lag_add(&peer->avg_sojourn_msdu[tid],
|
qdf_ewma_tx_lag_add(&peer->avg_sojourn_msdu[tid],
|
||||||
delta_ms);
|
delta_ms);
|
||||||
|
@@ -47,7 +47,7 @@
|
|||||||
#include "hal_rx.h"
|
#include "hal_rx.h"
|
||||||
//#include "hal_rx_flow.h"
|
//#include "hal_rx_flow.h"
|
||||||
|
|
||||||
#define MAX_BW 7
|
#define MAX_BW 8
|
||||||
#define MAX_RETRIES 4
|
#define MAX_RETRIES 4
|
||||||
#define MAX_RECEPTION_TYPES 4
|
#define MAX_RECEPTION_TYPES 4
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
|
||||||
* Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
|
* Copyright (c) 2021,2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for
|
* Permission to use, copy, modify, and/or distribute this software for
|
||||||
* any purpose with or without fee is hereby granted, provided that the
|
* any purpose with or without fee is hereby granted, provided that the
|
||||||
@@ -403,7 +403,8 @@ dp_tx_hw_enqueue_li(struct dp_soc *soc, struct dp_vdev *vdev,
|
|||||||
if (qdf_unlikely(vdev->pdev->delay_stats_flag) ||
|
if (qdf_unlikely(vdev->pdev->delay_stats_flag) ||
|
||||||
qdf_unlikely(
|
qdf_unlikely(
|
||||||
wlan_cfg_is_peer_ext_stats_enabled(soc->wlan_cfg_ctx)) ||
|
wlan_cfg_is_peer_ext_stats_enabled(soc->wlan_cfg_ctx)) ||
|
||||||
dp_tx_pkt_tracepoints_enabled())
|
dp_tx_pkt_tracepoints_enabled() ||
|
||||||
|
qdf_unlikely(soc->rdkstats_enabled))
|
||||||
tx_desc->timestamp = qdf_ktime_to_ms(qdf_ktime_real_get());
|
tx_desc->timestamp = qdf_ktime_to_ms(qdf_ktime_real_get());
|
||||||
|
|
||||||
dp_verbose_debug("length:%d , type = %d, dma_addr %llx, offset %d desc id %u",
|
dp_verbose_debug("length:%d , type = %d, dma_addr %llx, offset %d desc id %u",
|
||||||
|
@@ -312,7 +312,7 @@ dp_rx_populate_rx_rssi_chain(struct hal_rx_ppdu_info *ppdu_info,
|
|||||||
struct cdp_rx_indication_ppdu *cdp_rx_ppdu)
|
struct cdp_rx_indication_ppdu *cdp_rx_ppdu)
|
||||||
{
|
{
|
||||||
uint8_t chain, bw;
|
uint8_t chain, bw;
|
||||||
int8_t rssi;
|
uint8_t rssi;
|
||||||
|
|
||||||
for (chain = 0; chain < SS_COUNT; chain++) {
|
for (chain = 0; chain < SS_COUNT; chain++) {
|
||||||
for (bw = 0; bw < MAX_BW; bw++) {
|
for (bw = 0; bw < MAX_BW; bw++) {
|
||||||
|
Reference in New Issue
Block a user