]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
nvme-core: choose PIF from QPIF if QPIFS supports and PIF is QTYPE
authorFrancis Pravin <francis.p@samsung.com>
Mon, 15 Jul 2024 01:01:57 +0000 (06:31 +0530)
committerKeith Busch <kbusch@kernel.org>
Tue, 16 Jul 2024 14:55:31 +0000 (07:55 -0700)
commit415fb383ec2bbe4d4bb1a1b5593cd67eb058f1de
treeabd9fe099ee4aee7fad0380e0239f5e527e417a7
parent92fc2c469eb26060384e9b2cd4cb0cc228aba582
nvme-core: choose PIF from QPIF if QPIFS supports and PIF is QTYPE

As per TP4141a:
"If the Qualified Protection Information Format Support(QPIFS) bit is
set to 1 and the Protection Information Format(PIF) field is set to 11b
(i.e., Qualified Type), then the pif is as defined in the Qualified
Protection Information Format (QPIF) field."
So, choose PIF from QPIF if QPIFS supports and PIF is QTYPE.

Signed-off-by: Francis Pravin <francis.p@samsung.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/core.c
include/linux/nvme.h