[IMX8MP] caam.jr and memory leak problems will occur when writing files to encrypted storage

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[IMX8MP] caam.jr and memory leak problems will occur when writing files to encrypted storage

Jump to solution
728 Views
ZongYue
Contributor I

Hi,

When I use 8MPLUS-BB EVM with Yocto SDK imx-5.15.71-2.2.2 to do encrypted storage testing, it will happen below error:

[  599.799860] caam_jr 30902000.jr: unable to map source
[  599.799860] caam_jr 30902000.jr: unable to map destination
[  599.799856] swiotlb_tbl_map_single: 29 callbacks suppressed
[  599.799871] caam_jr 30902000.jr: swiotlb buffer is full (sz: 512 bytes), total 32768 (slots), used 32766 (slots)
[  599.807733] sdhci-esdhc-imx 30b60000.mmc: swiotlb buffer is full (sz: 4096 bytes), total 32768 (slots), used 32747 (slots)
[  599.810472] caam_jr 30902000.jr: unable to map destination
[  599.811862] caam_jr 30902000.jr: swiotlb buffer is full (sz: 512 bytes), total 32768 (slots), used 32768 (slots)
[  599.811875] caam_jr 30902000.jr: unable to map destination
[  599.817845] sdhci-esdhc-imx 30b60000.mmc: swiotlb buffer is full (sz: 4096 bytes), total 32768 (slots), used 32716 (slots)
[  599.825010] caam_jr 30902000.jr: swiotlb buffer is full (sz: 512 bytes), total 32768 (slots), used 32768 (slots)
[  599.825028] caam_jr 30902000.jr: unable to map destination
[  599.829011] caam_jr 30902000.jr: swiotlb buffer is full (sz: 512 bytes), total 32768 (slots), used 32739 (slots)
[  599.830025] caam_jr 30902000.jr: swiotlb buffer is full (sz: 512 bytes), total 32768 (slots), used 32768 (slots)
[  599.830037] caam_jr 30902000.jr: unable to map source
[  599.830473] caam_jr 30902000.jr: swiotlb buffer is full (sz: 512 bytes), total 32768 (slots), used 32768 (slots)
[  599.830480] caam_jr 30902000.jr: unable to map destination
[  599.832220] caam_jr 30902000.jr: swiotlb buffer is full (sz: 512 bytes), total 32768 (slots), used 32768 (slots)
[  599.832243] caam_jr 30902000.jr: unable to map source
[  599.832297] caam_jr 30902000.jr: swiotlb buffer is full (sz: 512 bytes), total 32768 (slots), used 32768 (slots)
[  599.832303] caam_jr 30902000.jr: unable to map source
[  599.956856] caam_jr 30902000.jr: unable to map source
[  600.020029] EXT4-fs warning: 2 callbacks suppressed
[  600.020043] EXT4-fs warning (device dm-0): ext4_end_bio:344: I/O error 10 writing to inode 12 starting block 254977)
[  600.035480] buffer_io_error: 24566 callbacks suppressed
[  600.035486] Buffer I/O error on device dm-0, logical block 253953
[  600.046797] Buffer I/O error on device dm-0, logical block 253954
[  600.052887] Buffer I/O error on device dm-0, logical block 253955
[  600.058976] Buffer I/O error on device dm-0, logical block 253956
[  600.065091] Buffer I/O error on device dm-0, logical block 253957
[  600.071183] Buffer I/O error on device dm-0, logical block 253958
[  600.077274] Buffer I/O error on device dm-0, logical block 253959
[  600.083364] Buffer I/O error on device dm-0, logical block 253960
[  600.089475] Buffer I/O error on device dm-0, logical block 253961
[  600.095569] Buffer I/O error on device dm-0, logical block 253962
[  600.113708] EXT4-fs warning (device dm-0): ext4_end_bio:344: I/O error 10 writing to inode 12 starting block 259073)
[  600.126834] EXT4-fs warning (device dm-0): ext4_end_bio:344: I/O error 10 writing to inode 12 starting block 257025)
[  600.139537] EXT4-fs warning (device dm-0): ext4_end_bio:344: I/O error 10 writing to inode 12 starting block 80897)
[  600.151162] EXT4-fs warning (device dm-0): ext4_end_bio:344: I/O error 10 writing to inode 12 starting block 78849)
[  600.185542] EXT4-fs warning (device dm-0): ext4_end_bio:344: I/O error 10 writing to inode 12 starting block 76801)
[  600.197689] JBD2: Detected IO errors while flushing file data on dm-0-8

 And system memory will leak.

I put the test log as attachment.

Wondering if there are any limitations to using encrypted storage feature?

0 Kudos
Reply
1 Solution
703 Views
Harvey021
NXP TechSupport
NXP TechSupport

Hi, 

This should be a known issue, suggest to test with newer BSP, l just get a chance of testing the same with BSP 6.6.3 and without such issue.

Also you can have a reference for the BSP 5.15 with this link

 

Regards

Harvey 

View solution in original post

0 Kudos
Reply
3 Replies
704 Views
Harvey021
NXP TechSupport
NXP TechSupport

Hi, 

This should be a known issue, suggest to test with newer BSP, l just get a chance of testing the same with BSP 6.6.3 and without such issue.

Also you can have a reference for the BSP 5.15 with this link

 

Regards

Harvey 

0 Kudos
Reply
699 Views
ZongYue
Contributor I

Hi @Harvey021 ,

Thank you,  I will update with any news soon.

I would also like to ask if CAAM is suitable for situations where there is only 1GB of RAM.
From the article, most of them use more than 2GB of RAM.

0 Kudos
Reply
694 Views
Harvey021
NXP TechSupport
NXP TechSupport

Hi @ZongYue 

I'm not sure about the correlation. 

 

Regards

Harvey

0 Kudos
Reply