]> www.infradead.org Git - linux.git/commit
scsi: ufs: exynos: Add support for Flash Memory Protector (FMP)
authorEric Biggers <ebiggers@google.com>
Mon, 8 Jul 2024 23:53:30 +0000 (16:53 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 11 Jul 2024 02:32:30 +0000 (22:32 -0400)
commitc96499fcb403b18b0ae0bf2e19a39f24e62dd3ac
tree63b798bde63ae19c943fdc4323871103d568421e
parent4c45dba50a3750a0834353c4187e7896b158bc0c
scsi: ufs: exynos: Add support for Flash Memory Protector (FMP)

Add support for Flash Memory Protector (FMP), which is the inline
encryption hardware on Exynos and Exynos-based SoCs.

Specifically, add support for the "traditional FMP mode" that works on many
Exynos-based SoCs including gs101.  This is the mode that uses "software
keys" and is compatible with the upstream kernel's existing inline
encryption framework in the block and filesystem layers.  I plan to add
support for the wrapped key support on gs101 at a later time.

Tested on gs101 (specifically Pixel 6) by running the 'encrypt' group of
xfstests on a filesystem mounted with the 'inlinecrypt' mount option.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Link: https://lore.kernel.org/r/20240708235330.103590-7-ebiggers@kernel.org
Reviewed-by: Peter Griffin <peter.griffin@linaro.org>
Tested-by: Peter Griffin <peter.griffin@linaro.org>
Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/host/ufs-exynos.c