linux-pine64-pinephonepro: Fix disk encryption deadlock on RK3399
Resolves deadlock between Rockchip crypto hardware and dm-crypt causing kernel panic during disk decryption on devices like PinePhone Pro.
- Disables RK3399 hardware crypto engine (CONFIG_CRYPTO_DEV_ROCKCHIP)
- Enables ARM64 CPU crypto extensions for AES/SHA
- Makes core crypto components built-in instead of modules
Fixes: kernel panic in queued_spin_lock_slowpath() when accessing encrypted devices.
Merge request reports
Activity
Related to #2627
@StacyHarper With this kernel configuration I removed the Rockchip Hardware Crypto driver, which seems to be the cause of the deadlock issue which you are facing. When the pipeline is finished, would you this resolves the issue for you.
added 3 commits
-
af52048a...1c3296a6 - 2 commits from branch
postmarketOS:master
- 27ed45ee - linux-pine64-pinephonepro: Fix disk encryption deadlock on RK3399
-
af52048a...1c3296a6 - 2 commits from branch
added 1 commit
- feb17340 - linux-pine64-pinephonepro: Fix disk encryption deadlock on RK3399
- Resolved by Jan Jasper de Kroon
@StacyHarper I went back to kernel 6.6, with my suggested kernel config changes to try to fix the deadlock issue. Can you retest this MR5870 to see if we're not dealing with multiple issues which got introduced between 6.6 and 6.11.
mentioned in issue #2627
@Newbyte , @ollieparanoid or @PureTryOut Can you have a look at this MR? It's ready to be upstreamed and will fix FDE for Pinephone Pro on current kernel 6.6. Maybe worth porting it to Stable as well for people wanting to run Stable PmOS on PPP with FDE. It has been confirmed that it fixes issue 2627 by @StacyHarper, who also made the initial bug report.
added 22 commits
-
feb17340...01044852 - 21 commits from branch
postmarketOS:master
- f4ae4180 - linux-pine64-pinephonepro: fix disk encryption deadlock on RK3399 (MR 5870)
-
feb17340...01044852 - 21 commits from branch
enabled an automatic merge when all merge checks for f4ae4180 pass
added backport-to-v24.06 label
added backport-to-v24.12 label
mentioned in merge request !5855 (merged)
mentioned in issue #3359 (closed)