Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating dedicated memory pools for data and control traffic #78588

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rado17
Copy link
Contributor

@rado17 rado17 commented Sep 17, 2024

Create dedicated memory pools for Wi-Fi management and
data operations

@zephyrbot
Copy link
Collaborator

zephyrbot commented Sep 17, 2024

The following west manifest projects have changed revision in this Pull Request:

Name Old Revision New Revision Diff
nrf_wifi zephyrproject-rtos/nrf_wifi@68b0184 zephyrproject-rtos/nrf_wifi#5 zephyrproject-rtos/nrf_wifi#5/files

DNM label due to: 1 project with PR revision

Note: This message is automatically posted and updated by the Manifest GitHub Action.

@zephyrbot zephyrbot added manifest manifest-hal_nordic DNM This PR should not be merged (Do Not Merge) labels Sep 17, 2024
Copy link

This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time.

drivers/wifi/nrf_wifi/Kconfig.nrfwifi Outdated Show resolved Hide resolved
modules/nrf_wifi/shim.c Outdated Show resolved Hide resolved
@rado17 rado17 force-pushed the dedicated_mem_pools branch from 23d6eea to 073e311 Compare December 27, 2024 10:16
sachinthegreen
sachinthegreen previously approved these changes Jan 2, 2025

struct zep_shim_intr_priv *intr_priv;

static void *zep_shim_mem_alloc(size_t size)
{
size_t size_aligned = ROUND_UP(size, 4);
size = (size + 4) & 0xfffffffc;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use the ROUND_UP macro here and below?

@rado17 rado17 force-pushed the dedicated_mem_pools branch 2 times, most recently from ad272f6 to 0201f96 Compare January 16, 2025 10:14
Create dedicated memory pools for Wi-Fi management and
data operations (defaults: 20KB for management and 130KB for data).

Remove the `HEAP_MEM_POOL_ADD_SIZE_NRF70` hint since we are
creating separate heaps for driver and not allocating from
system heap.

Signed-off-by: Ravi Dondaputi <[email protected]>
Pull changes for creating separate memory pools for control traffic
and data traffic.

Signed-off-by: Ravi Dondaputi <[email protected]>
@rado17 rado17 force-pushed the dedicated_mem_pools branch from 0201f96 to 8dae35d Compare January 16, 2025 10:31
@@ -535,6 +529,16 @@ config NRF70_RSSI_STALE_TIMEOUT_MS

if NETWORKING
# Finetune defaults for certain system components used by the driver

config NRF_WIFI_CTRL_HEAP_SIZE
int "Dedicated memory pool for control path"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
int "Dedicated memory pool for control path"
int "Dedicated memory pool for control plane"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Wi-Fi Wi-Fi DNM This PR should not be merged (Do Not Merge) manifest manifest-hal_nordic manifest-nrf_wifi
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants