From 0fd934a2fd12fa74ae409d3de1313e449be5d97e Mon Sep 17 00:00:00 2001 From: Osama Abboud Date: Wed, 7 Aug 2024 06:24:17 +0000 Subject: ena: Add support for reset request over AENQ In order to support reset request message from the device to the driver, over AENQ, which in turn should cause the driver to trigger reset, the following was added: 1. New AENQ group - ENA_ADMIN_DEVICE_REQUEST_RESET, to support the new message from the device sent via the AENQ to the driver. 2. New reset reason - ENA_REGS_RESET_DEVICE_REQUEST, which is used in order to indicate that the reset was triggered by the driver following the device request. Approved by: cperciva (mentor) MFC after: 2 weeks Sponsored by: Amazon, Inc. --- ena_defs/ena_admin_defs.h | 3 ++- ena_defs/ena_regs_defs.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ena_defs/ena_admin_defs.h b/ena_defs/ena_admin_defs.h index 06bcd4a82700..5437f629712f 100644 --- a/ena_defs/ena_admin_defs.h +++ b/ena_defs/ena_admin_defs.h @@ -1242,7 +1242,8 @@ enum ena_admin_aenq_group { ENA_ADMIN_KEEP_ALIVE = 4, ENA_ADMIN_REFRESH_CAPABILITIES = 5, ENA_ADMIN_CONF_NOTIFICATIONS = 6, - ENA_ADMIN_AENQ_GROUPS_NUM = 7, + ENA_ADMIN_DEVICE_REQUEST_RESET = 7, + ENA_ADMIN_AENQ_GROUPS_NUM = 8, }; enum ena_admin_aenq_notification_syndrome { diff --git a/ena_defs/ena_regs_defs.h b/ena_defs/ena_regs_defs.h index 3427973d96da..c7918d75aafa 100644 --- a/ena_defs/ena_regs_defs.h +++ b/ena_defs/ena_regs_defs.h @@ -54,6 +54,7 @@ enum ena_regs_reset_reason_types { ENA_REGS_RESET_RX_DESCRIPTOR_MALFORMED = 16, ENA_REGS_RESET_TX_DESCRIPTOR_MALFORMED = 17, ENA_REGS_RESET_MISSING_ADMIN_INTERRUPT = 18, + ENA_REGS_RESET_DEVICE_REQUEST = 19, ENA_REGS_RESET_LAST, }; -- cgit v1.3