]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-pci: disable write zeros support on UMIC and Samsung SSDs
authorrasheed.hsueh <rasheed.hsueh@lcfc.corp-partner.google.com>
Fri, 10 Jun 2022 06:27:34 +0000 (14:27 +0800)
committerChristoph Hellwig <hch@lst.de>
Mon, 13 Jun 2022 17:56:57 +0000 (19:56 +0200)
commiteef5ed13174a5886937ca9172f3c1bbb6690a222
treeec0f905a720dbc09a022279c86e26d56458048ec
parentf5a44dcb7459c922f18d27bb76609980c095fe3d
nvme-pci: disable write zeros support on UMIC and Samsung SSDs

Like commit 71d5ca14a4a5 ("nvme-pci: prevent SK hynix PC400 from using
Write Zeroes command"), UMIS and Samsung has the same issue:
[ 6305.633887] blk_update_request: operation not supported error,
dev nvme0n1, sector 340812032 op 0x9:(WRITE_ZEROES) flags 0x0
phys_seg 0 prio class 0

So also disable Write Zeroes command on UMIS and Samsung.

Signed-off-by: rasheed.hsueh <rasheed.hsueh@lcfc.corp-partner.google.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/pci.c