Created attachment 144574 [details]
If I turn on SME for my Ryzen 2700x CPU, I get the following error during boot:
[ 19.998488] [drm:amdgpu_device_init.cold [amdgpu]] *ERROR* sw_init of IP block <vega10_ih> failed -12
[ 19.998490] amdgpu 0000:0c:00.0: amdgpu_device_ip_init failed
[ 19.998492] amdgpu 0000:0c:00.0: Fatal error during GPU init
[ 19.998493] [drm] amdgpu: finishing device.
[ 19.998601] [drm] amdgpu: ttm finalized
I've attached the full dmesg.
I am using a Vega 64, Gentoo, Mesa/DRI* git, and kernel 5.1.x.
I can test any patches or provide any more information.
How are you enabling SME - transparent mode (via SBIOS I think) where all pages are encrypted, or <whatever you call the other mode> via OS where only pages with PA bit 47 set are encrypted ?
I would not expect the first option to work since anything written from CPU to GPU will get garbled by the encryption, but the second should work as long as no buffers passed to or allocated by GPU driver are encrypted.
I haven't used SME so not sure about options - wasn't aware we even enabled it on Ryzen parts, thought it was Epyc only.
Thanks for the response John. I'm pretty sure it is the second case: through the OS. I am not changing any BIOS options, I am only passing mem_encrypt=on to the kernel command line.
-- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/drm/amd/issues/832.