[Bug 1879538] Re: System freeze when booting with mem_encrypt=on

2020-05-19 Thread Yannik
I played around more with the uefi options and (by sheer luck and intuition) found how to fix this! :-) In `Advanced->AMD CBS->NBIO Common Options` set `IOMMU = Enabled` (it was disabled by default!) Now SME works fine with Bios Options TSME=Enabled, Scramble=Enabled. ** Changed in: linux (Ubunt

[Bug 1879538] Re: System freeze when booting with mem_encrypt=on

2020-05-19 Thread Yannik
After some more searching, I did find two options in the UEFI: "TSME" (Description: "Transparent SME: AddrTweakEn = 1; ForceEncrEn =1; DataEncrEn = 0") "Data Scramble" (Description: "Data scrambling: DataScrambleEn. ") Both can be set to Enabled/Disabled/Auto, with auto being the default. I tri

[Bug 1879538] Re: System freeze when booting with mem_encrypt=on

2020-05-19 Thread Yannik
A few more things: /proc/cpuinfo reports both `sme` and `sev`. cpuid confirms that the relevant cpu register bits are set: $ cpuid -r -1 -l 0x801f CPU: 0x801f 0x00: eax=0x0001000f ebx=0x016f ecx=0x01fd edx=0x0001 $ modprobe msr $ rdmsr 0xC0010010 f4 $ grep CONFIG_AMD_M