From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 110929] sw_init of IP block failed -12 when using Secure Memory Encryption (SME) with Vega 64 Date: Mon, 17 Jun 2019 22:21:50 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0359780222==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id D157889FA5 for ; Mon, 17 Jun 2019 22:21:50 +0000 (UTC) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0359780222== Content-Type: multipart/alternative; boundary="15608101100.BAedEEE.29710" Content-Transfer-Encoding: 7bit --15608101100.BAedEEE.29710 Date: Mon, 17 Jun 2019 22:21:50 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D110929 Bug ID: 110929 Summary: sw_init of IP block 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=3D144574&action=3Dedit dmesg_sme Hi all, If I turn on SME for my Ryzen 2700x CPU, I get the following error during b= oot: [ 19.998488] [drm:amdgpu_device_init.cold [amdgpu]] *ERROR* sw_init of IP block 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 --=20 You are receiving this mail because: You are the assignee for the bug.= --15608101100.BAedEEE.29710 Date: Mon, 17 Jun 2019 22:21:50 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated
Bug ID 110929
Summary sw_init of IP block <vega10_ih> failed -12 when using S= ecure 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 [deta=
ils]
dmesg_sme

Hi all,

If I turn on SME for my Ryzen 2700x CPU, I get the following error during b=
oot:

[   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


You are receiving this mail because:
  • You are the assignee for the bug.
= --15608101100.BAedEEE.29710-- --===============0359780222== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============0359780222==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 110929] sw_init of IP block failed -12 when using Secure Memory Encryption (SME) with Vega 64 Date: Thu, 27 Jun 2019 23:50:09 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2050891388==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id F22266E858 for ; Thu, 27 Jun 2019 23:50:08 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============2050891388== Content-Type: multipart/alternative; boundary="15616794082.1DC87762.15114" Content-Transfer-Encoding: 7bit --15616794082.1DC87762.15114 Date: Thu, 27 Jun 2019 23:50:08 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D110929 --- Comment #1 from John Bridgman --- How are you enabling SME - transparent mode (via SBIOS I think) where all p= ages are encrypted, or via OS where only pages with PA bit 47 set are encrypted ?=20 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.=20 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. --=20 You are receiving this mail because: You are the assignee for the bug.= --15616794082.1DC87762.15114 Date: Thu, 27 Jun 2019 23:50:08 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Commen= t # 1 on bug 11092= 9 from John Bridgman
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 onl=
y pages
with PA bit 47 set are encrypted ?=20

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.=20

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.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15616794082.1DC87762.15114-- --===============2050891388== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============2050891388==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 110929] sw_init of IP block failed -12 when using Secure Memory Encryption (SME) with Vega 64 Date: Thu, 27 Jun 2019 23:52:21 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1015697428==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 3555F6E853 for ; Fri, 28 Jun 2019 00:28:48 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1015697428== Content-Type: multipart/alternative; boundary="15616795411.87C8bf.15395" Content-Transfer-Encoding: 7bit --15616795411.87C8bf.15395 Date: Thu, 27 Jun 2019 23:52:21 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D110929 --- Comment #2 from Nick Sarnie --- 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= =3Don to the kernel command line. --=20 You are receiving this mail because: You are the assignee for the bug.= --15616795411.87C8bf.15395 Date: Thu, 27 Jun 2019 23:52:21 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Commen= t # 2 on bug 11092= 9 from = Nick Sarnie
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=
=3Don to
the kernel command line.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15616795411.87C8bf.15395-- --===============1015697428== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============1015697428==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 110929] sw_init of IP block failed -12 when using Secure Memory Encryption (SME) with Vega 64 Date: Tue, 19 Nov 2019 09:31:32 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2141392316==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id CB1246F42D for ; Tue, 19 Nov 2019 09:31:32 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============2141392316== Content-Type: multipart/alternative; boundary="15741558922.757ab86.7868" Content-Transfer-Encoding: 7bit --15741558922.757ab86.7868 Date: Tue, 19 Nov 2019 09:31:32 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D110929 Martin Peres changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |MOVED Status|NEW |RESOLVED --- Comment #3 from Martin Peres --- -- 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. --=20 You are receiving this mail because: You are the assignee for the bug.= --15741558922.757ab86.7868 Date: Tue, 19 Nov 2019 09:31:32 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated <= span class=3D"fn">Martin Peres changed bug 11092= 9
What Removed Added
Resolution --- MOVED
Status NEW RESOLVED

Commen= t # 3 on bug 11092= 9 from Martin Peres
-- 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.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15741558922.757ab86.7868-- --===============2141392316== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============2141392316==--