]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme: choose PIF from QPIF if QPIFS supports and PIF is QTYPE
authorFrancis Pravin <francis.p@samsung.com>
Wed, 26 Jun 2024 06:35:39 +0000 (12:05 +0530)
committerDaniel Wagner <wagi@monom.org>
Wed, 26 Jun 2024 07:32:02 +0000 (09:32 +0200)
commit7f64b7d91fb5f0e94729213c7add5761990ab65c
treef6ce1d39e07c0e951463bad42f2e94122e12b07a
parent66c1f7046964c4c9b96f1535fa7f0aa6fa391605
nvme: 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: Steven Seungcheol Lee <sc108.lee@samsung.com>
nvme.c