Page MenuHomeFreeBSD

ena: Extend support to 256 reset reasons
Needs ReviewPublic

Authored by osamaabb_amazon.com on Aug 20 2024, 8:45 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Sep 25, 1:32 AM
Unknown Object (File)
Wed, Sep 24, 8:42 PM
Unknown Object (File)
Thu, Sep 18, 10:34 PM
Unknown Object (File)
Aug 29 2025, 2:43 PM
Unknown Object (File)
Aug 26 2025, 11:09 AM
Unknown Object (File)
Aug 18 2025, 5:09 AM
Unknown Object (File)
Aug 16 2025, 7:05 AM
Unknown Object (File)
Jul 26 2025, 5:04 PM
Subscribers

Details

Reviewers
cperciva
Summary

Currently we only use 4 bits in order to define the reset reason.
This allows us to define 16 reset reasons which have already been used
up. In order to allow for more reset reasons to be defined and detected
this patch will extend the reset reason up to 8 bits which allows
256 reset reasons.

For backward compatibility reasons, bits 28-31 will represent the LSB
and bits 24-27 will represent the MSB in the relevant register.

Also, in case the device does not support extended reset reasons, the
driver will identify it and fall back to GENERIC reset reason.
When using an old driver all reset reasons are mapped correctly
except of ENA_REGS_RESET_RX_DESCRIPTOR_MALFORMED since it was
already defined before extending the reset reasons support, in this case
the device will interpret the reset reason as ENA_REGS_RESET_NORMAL.

Approved by: cperciva
MFC after: 2 weeks
Sponsored by: Amazon, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 59057
Build 55944: arc lint + arc unit