-
Notifications
You must be signed in to change notification settings - Fork 6
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
hw_if: hal: Add watchdog interrupt stats #3
base: main
Are you sure you want to change the base?
Conversation
aec7b0b
to
f928c46
Compare
hw_if/hal/inc/hal_structs.h
Outdated
@@ -252,6 +252,10 @@ struct nrf_wifi_hal_dev_ctx { | |||
unsigned long last_wakeup_now_deasserted_time_ms; | |||
/** RPU sleep opp time */ | |||
unsigned long last_rpu_sleep_opp_time_ms; | |||
/** Recieved watchdog timer interrupt */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/** Recieved watchdog timer interrupt */ | |
/** Number of watchdog timer interrupts received */ |
hw_if/hal/inc/hal_structs.h
Outdated
@@ -252,6 +252,10 @@ struct nrf_wifi_hal_dev_ctx { | |||
unsigned long last_wakeup_now_deasserted_time_ms; | |||
/** RPU sleep opp time */ | |||
unsigned long last_rpu_sleep_opp_time_ms; | |||
/** Recieved watchdog timer interrupt */ | |||
int watchdog_timer_recieved; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
int watchdog_timer_recieved; | |
int watchdog_timer_received; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of wdt_irq_received, watchdog_timer_received is better right?
hw_if/hal/inc/hal_structs.h
Outdated
@@ -252,6 +252,10 @@ struct nrf_wifi_hal_dev_ctx { | |||
unsigned long last_wakeup_now_deasserted_time_ms; | |||
/** RPU sleep opp time */ | |||
unsigned long last_rpu_sleep_opp_time_ms; | |||
/** Recieved watchdog timer interrupt */ | |||
int wdt_irq_recieved; | |||
/** Ignored watchdog timer interrupt */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/** Ignored watchdog timer interrupt */ | |
/** Number of watchdog timer interrupts ignored */ |
hw_if/hal/inc/hal_structs.h
Outdated
@@ -252,6 +252,10 @@ struct nrf_wifi_hal_dev_ctx { | |||
unsigned long last_wakeup_now_deasserted_time_ms; | |||
/** RPU sleep opp time */ | |||
unsigned long last_rpu_sleep_opp_time_ms; | |||
/** Recieved watchdog timer interrupt */ | |||
int wdt_irq_recieved; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
int wdt_irq_recieved; | |
int wdt_irq_received; |
@@ -521,6 +521,7 @@ static enum nrf_wifi_status hal_rpu_process_wdog(struct nrf_wifi_hal_dev_ctx *ha | |||
* PS_ACTIVE state for more than the timeout period | |||
*/ | |||
if (!is_rpu_recovery_needed(hal_dev_ctx)) { | |||
hal_dev_ctx->wdt_irq_ignored++; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this also be protected with NRF_WIFI_RPU_RECOVERY_DEBUG
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's already in NRF_WIFI_RPU_RECOVERY
.
@@ -577,6 +578,7 @@ enum nrf_wifi_status hal_rpu_irq_process(struct nrf_wifi_hal_dev_ctx *hal_dev_ct | |||
num_events = hal_rpu_event_get_all(hal_dev_ctx); | |||
|
|||
if (hal_rpu_irq_wdog_chk(hal_dev_ctx)) { | |||
hal_dev_ctx->wdt_irq_recieved++; | |||
nrf_wifi_osal_log_dbg("Received watchdog interrupt"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't both statements above also be protected with NRF_WIFI_RPU_RECOVERY_DEBUG
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be with NRF_WIFI_RPU_RECOVERY
.
Add watchdog interrupt stats for number of time interrupt received and ignored. Signed-off-by: Kapil Bhatt <[email protected]>
f928c46
to
89a7619
Compare
Add watchdog interrupt stats for number of time
interrupt received and ignored.