summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKeith Busch <kbusch@kernel.org>2023-09-13 00:38:58 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-09-23 12:11:10 +0300
commitf07c0bc27b0ec72f5de1495b20a13b496e162be0 (patch)
tree8312bbf176d5fcb8ec69703b16c2c963ed7b381b /lib
parent6a1d1365fafe1b63e6c52ef72b40b1443a11f78c (diff)
downloadlinux-f07c0bc27b0ec72f5de1495b20a13b496e162be0.tar.xz
nvme: avoid bogus CRTO values
commit 6cc834ba62998c65c42d0c63499bdd35067151ec upstream. Some devices are reporting controller ready mode support, but return 0 for CRTO. These devices require a much higher time to ready than that, so they are failing to initialize after the driver starter preferring that value over CAP.TO. The spec requires that CAP.TO match the appropritate CRTO value, or be set to 0xff if CRTO is larger than that. This means that CAP.TO can be used to validate if CRTO is reliable, and provides an appropriate fallback for setting the timeout value if not. Use whichever is larger. Link: https://bugzilla.kernel.org/show_bug.cgi?id=217863 Reported-by: Cláudio Sampaio <patola@gmail.com> Reported-by: Felix Yan <felixonmars@archlinux.org> Tested-by: Felix Yan <felixonmars@archlinux.org> Based-on-a-patch-by: Felix Yan <felixonmars@archlinux.org> Cc: stable@vger.kernel.org Signed-off-by: Keith Busch <kbusch@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions