Skip to contentSkip to conversation

sw_init of IP block <vega10_ih> failed -12 when using Secure Memory Encryption (SME) with Vega 64

Bug 110929 [email protected] 1 participant 4 messages Jun 17, 2019 – Nov 19, 2019

lore
Share & tools
lore
#0 lore raw

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: [email protected]
Reporter: [email protected]

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

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=110929

--- Comment #1 from John Bridgman <[email protected]> ---
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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110929

--- Comment #2 from Nick Sarnie <[email protected]> ---
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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110929

Martin Peres <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |MOVED
             Status|NEW                         |RESOLVED

--- Comment #3 from Martin Peres <[email protected]> --- -- 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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel