Don't hang in nvme_poll() if the nvme controller has disconnected from the pcie
authorkrw <krw@openbsd.org>
Mon, 15 Apr 2024 13:58:48 +0000 (13:58 +0000)
committerkrw <krw@openbsd.org>
Mon, 15 Apr 2024 13:58:48 +0000 (13:58 +0000)
commitb6ac76ce5bcadd8898e774af0536a7c1013df22d
treebf0f33fcc3c94e00bae6222679bc62e4deaefb40
parentc207abadaf5bba1d75e6d27ab09ffdc469095ea0
Don't hang in nvme_poll() if the nvme controller has disconnected from the pcie
bus. i.e. if register reads start returning 0xffffffff.

Feedback/suggestions deraadt@, testing by jca@, ok jmatthew@.
sys/dev/ic/nvme.c