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

hw_if: hal: Add watchdog interrupt stats #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kapbh
Copy link

@kapbh kapbh commented Nov 26, 2024

Add watchdog interrupt stats for number of time
interrupt received and ignored.

@@ -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 */
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
/** Recieved watchdog timer interrupt */
/** Number of watchdog timer interrupts received */

@@ -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;
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 watchdog_timer_recieved;
int watchdog_timer_received;

Copy link
Author

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?

@@ -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 */
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
/** Ignored watchdog timer interrupt */
/** Number of watchdog timer interrupts ignored */

@@ -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;
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 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++;
Copy link
Collaborator

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 ?

Copy link
Author

@kapbh kapbh Nov 26, 2024

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");
Copy link
Collaborator

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 ?

Copy link
Author

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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants