From: Shai Brandes <shaibran@amazon.com>
Adds support for reset request message from the device to the driver,
over AENQ, which in turn should cause the driver to trigger reset.
Signed-off-by: Shai Brandes <shaibran@amazon.com>
Reviewed-by: Amit Bernstein <amitbern@amazon.com>
---
drivers/net/ena/hal/ena_defs/ena_admin_defs.h | 3 ++-
drivers/net/ena/hal/ena_defs/ena_regs_defs.h | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
@@ -1213,7 +1213,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 {
@@ -25,6 +25,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,
};