Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't boot dm-crypt root on Ryzen 3700x w/ccp_crypto builtin
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Xepher
n00b
n00b


Joined: 14 Mar 2003
Posts: 39

PostPosted: Thu Oct 03, 2019 4:29 am    Post subject: Can't boot dm-crypt root on Ryzen 3700x w/ccp_crypto builtin Reply with quote

Long title, but hopefully helpful... And hopefully in the right place.

Long story short, I have a dm-crypt (LUKS) root partition and after upgrading to a Ryzen 3700X CPU, the dracut-built initramfs never prompts for my password if the ccp_crypto module (part of the AMD hardware crypto stuff) is built into the kernel. Instead, boot just results in kmesg output only, and no messages from systemd/PID1 ever appear, never mind a prompt for password. Effectively boot hangs indefinitely (or at least up to 12+ minutes) but keyboard (numlock light) is responsive, and CTRL+ALT+DEL works instantly, as do all the SYSRQ combos, and other KMESG things appear 30+ seconds in, so I'm pretty confident it's borked in userspace/systemd.

I initially thought this was part of the bigger RDRAND issue in systemd ( https://www.phoronix.com/scan.php?page=news_item&px=Ryzen-3K-RdRand-Systemd-Maybe ) but that's since been patched with a workaround in systemd itself, and rdrand is showing up as enabled on my system (via /proc/cpuinfo) even when working. It took me a fair amount of manually bisecting to the kernel options to narrow it to this one module, but it indeed causes the problem. If leave it as a module and load it after early boot I have no issues. Simply changing that one kconfig option from Y to M makes it work, or conversely, breaks it. This behavior has continued for months, from the early 5.1 kernels through to 5.3.2 today.

I'm usually pretty good at sussing out this stuff myself, but I've been banging my head against this for a couple months now (ever since this new CPU.) If anyone has suggestions for tests to try to determine if this is or is not the the RDRAND issue, or other tests I can try to locate the source of the problem, I'd be grateful. As it's an boot-time issue, it's exceptionally annoying to debug.

Thanks in advance!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum