diff options
author | Osama Abboud <osamaabb@amazon.com> | 2024-08-07 06:24:17 +0000 |
---|---|---|
committer | Osama Abboud <osamaabb@FreeBSD.org> | 2024-10-15 16:54:28 +0000 |
commit | 0fd934a2fd12fa74ae409d3de1313e449be5d97e (patch) | |
tree | b855411b0f6b4a2c018a066e64d9e85d064dde4c | |
parent | 3f2906c2257ad2f1266ce3cb9512ef681928d342 (diff) |
ena: Add support for reset request over AENQvendor/ena-com/2.8.0vendor/ena-com
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.
-rw-r--r-- | ena_defs/ena_admin_defs.h | 3 | ||||
-rw-r--r-- | ena_defs/ena_regs_defs.h | 1 |
2 files changed, 3 insertions, 1 deletions
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, }; |