qcacmn: Support REO2SW ring pointer update threshold configuration

Support REO2SW ring pointer update threshold configuration,
it is helpful for PCIe utilization improvement.
timer based threshold - M: issue pointer updates when M micro
seconds has elapsed.
number based threshold - N: issue pointer updates when N entries
updates occur.

Change-Id: I49ed388520fd52e97e303d6ea9c04ced6cb5cf5f
CRs-Fixed: 3420101
This commit is contained in:
Jinwei Chen
2023-02-28 05:13:24 -08:00
committed by Madan Koyyalamudi
parent c66b8677cf
commit c2c0f7f7f9
9 changed files with 186 additions and 2 deletions

View File

@@ -368,6 +368,7 @@ enum SRNG_REGISTERS {
DST_MSI1_BASE_LSB,
DST_MSI1_BASE_MSB,
DST_MSI1_DATA,
DST_MISC_1,
#ifdef CONFIG_BERYLLIUM
DST_MSI2_BASE_LSB,
DST_MSI2_BASE_MSB,
@@ -800,6 +801,10 @@ struct hal_srng {
#ifdef WLAN_DP_SRNG_USAGE_WM_TRACKING
struct hal_srng_high_wm_info high_wm;
#endif
/* Timer threshold to issue ring pointer update - in micro seconds */
uint16_t pointer_timer_threshold;
/* Number threshold of ring entries to issue pointer update */
uint8_t pointer_num_threshold;
};
/* HW SRNG configuration table */