diff options
author | Christoph Hellwig <[email protected]> | 2024-11-27 07:42:18 +0100 |
---|---|---|
committer | Keith Busch <[email protected]> | 2024-12-02 10:03:19 -0800 |
commit | 58a0c875ce028678c9594c7bdf3fe33462392808 (patch) | |
tree | 89dbd52eaddbdf3f1d3db40eb6927ec4c0ad0718 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | 84909f7decbd8981a24be829f110c248ecb8c51a (diff) |
nvme: don't apply NVME_QUIRK_DEALLOCATE_ZEROES when DSM is not supported
Commit 63dfa1004322 ("nvme: move NVME_QUIRK_DEALLOCATE_ZEROES out of
nvme_config_discard") started applying the NVME_QUIRK_DEALLOCATE_ZEROES
quirk even then the Dataset Management is not supported. It turns out
that there versions of these old Intel SSDs that have DSM support
disabled in the firmware, which will now lead to errors everytime
a Write Zeroes command is issued. Fix this by checking for DSM support
before applying the quirk.
Reported-by: Saeed Mirzamohammadi <[email protected]>
Fixes: 63dfa1004322 ("nvme: move NVME_QUIRK_DEALLOCATE_ZEROES out of nvme_config_discard")
Tested-by: Saeed Mirzamohammadi <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Nitesh Shetty <[email protected]>
Reviewed-by: Chaitanya Kulkarni <[email protected]>
Signed-off-by: Keith Busch <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions