Hello!
I’ve enabled disk encryption on an external NVMe SSD on my AGX Orin 64GB, following the instructions from Disk Encryption — NVIDIA Jetson Linux Developer Guide 1 documentation . How can I verify that hardware acceleration is actually being used?
My LUKS configuration:
# cryptsetup luksDump /dev/nvme0n1p1
LUKS header information
Version: 2
Epoch: 3
Metadata area: 16384 [bytes]
Keyslots area: 16744448 [bytes]
UUID: <REDACTED>
Label: (no label)
Subsystem: (no subsystem)
Flags: (no flags)
Data segments:
0: crypt
offset: 16777216 [bytes]
length: (whole device)
cipher: aes-xts-plain64
sector: 512 [bytes]
Keyslots:
0: luks2
Key: 512 bits
Priority: normal
Cipher: aes-xts-plain64
Cipher key: 512 bits
PBKDF: argon2id
Here’s what I’ve checked so far:
# grep -B1 -A10 -iE 'xts' /proc/crypto
name : xts(aes)
driver : xts-aes-tegra
module : tegra_se
priority : 500
refcnt : 1
selftest : passed
internal : no
type : skcipher
async : no
blocksize : 16
min keysize : 32
max keysize : 64
name : __xts(aes)
driver : cryptd(__xts-aes-ce)
module : kernel
priority : 350
refcnt : 2
selftest : passed
internal : yes
type : skcipher
async : yes
blocksize : 16
min keysize : 32
max keysize : 64
I can see the xts-aes-tegra driver from the tegra_se module is present.
My questions:
-
Are there any logs or commands that can confirm dm-crypt is actually using the
tegra-sedriver (rather than falling back to the software/CE implementation)? -
I also see these crypto kernel threads:
# ps aux | grep crypto
823 root 0:00 [15820000.crypto]
824 root 0:00 [15840000.crypto]CPU usage stays very low even during heavy read/write operations. Is this low CPU usage a reliable indicator that hardware acceleration is engaged, or could it be misleading?
Thanks in advance!