]> Gentwo Git Trees - linux/.git/commit
accel/habanalabs/gaudi2: read preboot status after recovering from dirty state
authorKonstantin Sinyuk <konstantin.sinyuk@intel.com>
Tue, 1 Oct 2024 12:52:27 +0000 (15:52 +0300)
committerKoby Elbaz <koby.elbaz@intel.com>
Thu, 25 Sep 2025 06:09:32 +0000 (09:09 +0300)
commita0d866bab184161ba155b352650083bf6695e50e
treee4a2b6984b627fa872eecd36fb8a9a871a31ab87
parent65a3f5bc331ca7384900641b46cadff63805c10e
accel/habanalabs/gaudi2: read preboot status after recovering from dirty state

Dirty state can occur when the host VM undergoes a reset while the
device does not. In such a case, the driver must reset the device before
it can be used again. As part of this reset, the device capabilities
are zeroed. Therefore, the driver must read the Preboot status again to
learn the Preboot state, capabilities, and security configuration.

Signed-off-by: Konstantin Sinyuk <konstantin.sinyuk@intel.com>
Reviewed-by: Koby Elbaz <koby.elbaz@intel.com>
Signed-off-by: Koby Elbaz <koby.elbaz@intel.com>
drivers/accel/habanalabs/gaudi2/gaudi2.c