[dm-devel] dm-integrity stalls with iMX6q CAAM
Neil Armstrong
narmstrong at baylibre.com
Fri Sep 21 12:06:35 UTC 2018
Hi,
I recently configured dm-crypt + dm-integrity on an iMX6q platform with CAAM Hash functions enabled using the following command lines :
Linux 4.14.71
cryptsetup luksFormat /dev/mmcblk1p3 --cipher aes-xts-plain64 --type luks2 --integrity hmac-sha256 --sector-size 512 --use-urandom
cryptsetup open /dev/mmcblk1p3 root
mkfs.ext4 -v -F /dev/mapper/root
luksFormat and open finishes correctly, luksDump and status reports correct dm and luks properties.
but when trying to access the /dev/mapper/root (mkfs, sha256sum or whatever), it blocks without any warning or errors reported by the kernel.
I can see a few (~170) interrupts on the jr0 interrupt then nothing.
Is there a particular issue with hmac-sha256 with the linux CAAM driver ?
When disabling the CAAM hash functions or using another cipher & integrity pair, it works like a charm.
Thanks,
Neil
--
Neil Armstrong
Embedded Linux Software Engineer
BayLibre - At the Heart of Embedded Linux
www.baylibre.com
More information about the dm-devel
mailing list