https://bugs.freedesktop.org/show_bug.cgi?id=110929
Bug ID: 110929 Summary: sw_init of IP block <vega10_ih> failed -12 when using Secure Memory Encryption (SME) with Vega 64 Product: DRI Version: DRI git Hardware: x86-64 (AMD64) OS: All Status: NEW Severity: major Priority: medium Component: DRM/AMDgpu Assignee: dri-devel@lists.freedesktop.org Reporter: sarnex@gentoo.org
Created attachment 144574 --> https://bugs.freedesktop.org/attachment.cgi?id=144574&action=edit dmesg_sme
Hi all,
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.
Thanks, Sarnex
https://bugs.freedesktop.org/show_bug.cgi?id=110929
--- Comment #1 from John Bridgman john.bridgman@amd.com --- 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.
https://bugs.freedesktop.org/show_bug.cgi?id=110929
--- Comment #2 from Nick Sarnie sarnex@gentoo.org --- 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.
https://bugs.freedesktop.org/show_bug.cgi?id=110929
Martin Peres martin.peres@free.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |MOVED Status|NEW |RESOLVED
--- Comment #3 from Martin Peres martin.peres@free.fr --- -- 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.
dri-devel@lists.freedesktop.org