]> www.infradead.org Git - users/jedix/linux-maple.git/commit
NVMe: reduce queue depth as workaround for Samsung EPIC SQ errata
authorAshok Vairavan <ashok.vairavan@oracle.com>
Wed, 23 Nov 2016 22:31:21 +0000 (14:31 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 1 Jun 2017 20:41:28 +0000 (13:41 -0700)
commit0fe0f65ca16a0d1f68de7c60f09c10b09b0e7f22
tree6c726951f0037e6577ba7f039725f8e82b0431ac
parente098e06b360a5137c3cb289a7cfae61cc01c7b70
NVMe: reduce queue depth as workaround for Samsung EPIC SQ errata

Orabug: 25138123

Oracle discovered that the NVMe driver gets SQ completion errors eventually
leading to the device being reset, taken out of the PCI bus tree or kernel
panics when using the default SQ size of 1024 entries (64KB) for Samsung
EPIC NVMe SSDs.

PCIe analyzer tracing by Oracle and Samsung revealed an errata in Samsung's
firmware for EPIC SSDs where these invalid completion entries can occur
when the queues straddle an 8MB DMA address boundary.

This patch works around the errata by detecting these specific devices and
limiting their descriptor queue depth to 64.  This is only for the Samsung
NVMe controllers used in Oracle X-series servers.

There was no noticeable performance impact of reducing queue depths to 64
for these Samsung drives, Oracle X6-2 server, and Oracle VM Server 3.4.2.

Signed-off-by: Kyle Fortin <kyle.fortin@oracle.com>
Signed-off-by: Bhavesh Davda <bhavesh.davda@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/nvme/host/pci.c