]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
nvme-pci: add NVME_QUIRK_IDENTIFY_CNS quirk to Apple T2 controllers
authorHector Martin <marcan@marcan.st>
Wed, 4 Jan 2023 10:16:42 +0000 (19:16 +0900)
committerChristoph Hellwig <hch@lst.de>
Tue, 10 Jan 2023 07:15:03 +0000 (08:15 +0100)
commit453116a441f0e556fe8900c99a632529e48f18c9
tree4c8cda189df8fae3dfd6a8537f721548df4778f5
parentaa96d6aa7563ec2948195d1f5892cb7a2caa88e3
nvme-pci: add NVME_QUIRK_IDENTIFY_CNS quirk to Apple T2 controllers

This mirrors the quirk added to Apple Silicon controllers in apple.c.
These controllers do not support the Active NS ID List command and
behave identically to the SoC version judging by existing user
reports/syslogs, so will need the same fix. This quirk reverts
back to NVMe 1.0 behavior and disables the broken commands.

Fixes: 811f4de0344d ("nvme: avoid fallback to sequential scan due to transient issues")
Signed-off-by: Hector Martin <marcan@marcan.st>
Tested-by: Orlando Chamberlain <orlandoch.dev@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/pci.c