LKML Archive on lore.kernel.org help / color / mirror / Atom feed
From: Alex Deucher <alexdeucher@gmail.com> To: Paul Menzel <pmenzel@molgen.mpg.de> Cc: Tom Lendacky <thomas.lendacky@amd.com>, Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>, X86 ML <x86@kernel.org>, Dave Hansen <dave.hansen@linux.intel.com>, Andy Lutomirski <luto@kernel.org>, Peter Zijlstra <peterz@infradead.org>, LKML <linux-kernel@vger.kernel.org>, amd-gfx list <amd-gfx@lists.freedesktop.org> Subject: Re: `AMD_MEM_ENCRYPT_ACTIVE_BY_DEFAULT=y` causes AMDGPU to fail on Ryzen: amdgpu: SME is not compatible with RAVEN Date: Tue, 5 Oct 2021 10:48:15 -0400 [thread overview] Message-ID: <CADnq5_ONNvuvTbiJDFfRwfnPUBeAqPmDJRmESDYG_7CymikJpQ@mail.gmail.com> (raw) In-Reply-To: <8bbacd0e-4580-3194-19d2-a0ecad7df09c@molgen.mpg.de> On Tue, Oct 5, 2021 at 10:29 AM Paul Menzel <pmenzel@molgen.mpg.de> wrote: > > Dear Tom, dear Linux folks, > > > Selecting the symbol `AMD_MEM_ENCRYPT` – as done in Debian 5.13.9-1~exp1 > [1] – also selects `AMD_MEM_ENCRYPT_ACTIVE_BY_DEFAULT`, as it defaults > to yes, causing boot failures on AMD Raven systems. On the MSI B350M > MORTAR with AMD Ryzen 3 2200G, Linux logs and the AMDGPU graphics > driver, despite being loaded, does not work, and the framebuffer driver > is used instead. > > [ 19.679824] amdgpu 0000:26:00.0: amdgpu: SME is not compatible > with RAVEN > > It even causes black screens on other systems as reported to the Debian > bug tracking system *Black screen on AMD Ryzen based systems (AMDGPU > related when AMD Secure Memory Encryption not disabled -- > mem_encrypt=off)* [2]. It's not incompatible per se, but SEM requires the IOMMU be enabled because the C bit used for encryption is beyond the dma_mask of most devices. If the C bit is not set, the en/decryption for DMA doesn't occur. So you need IOMMU to be enabled in remapping mode to use SME with most devices. Raven has further requirements in that it requires IOMMUv2 functionality to support some features which currently uses a direct mapping in the IOMMU and hence the C bit is not properly handled. Alex > > Should the default be changed? > > > Kind regards, > > Paul > > > [1]: > https://salsa.debian.org/kernel-team/linux/-/blob/master/debian/changelog#L1138 > [2]: https://bugs.debian.org/994453
next prev parent reply other threads:[~2021-10-05 14:48 UTC|newest] Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-10-05 14:29 `AMD_MEM_ENCRYPT_ACTIVE_BY_DEFAULT=y` causes AMDGPU to fail on Ryzen: amdgpu: SME is not compatible with RAVEN Paul Menzel 2021-10-05 14:38 ` Borislav Petkov 2021-10-06 6:27 ` Paul Menzel 2021-10-05 14:48 ` Alex Deucher [this message] 2021-10-06 9:42 ` Borislav Petkov 2021-10-06 13:23 ` Alex Deucher 2021-10-06 13:46 ` Borislav Petkov 2021-10-06 14:01 ` Tom Lendacky 2021-10-06 17:48 ` Borislav Petkov 2021-10-06 18:10 ` Alex Deucher 2021-10-06 18:21 ` Alex Deucher 2021-10-06 19:32 ` Borislav Petkov 2021-10-07 6:14 ` Christian König 2021-10-06 18:21 ` Borislav Petkov 2021-10-06 18:36 ` Alex Deucher 2021-10-06 19:34 ` Borislav Petkov 2021-10-06 21:39 ` Tom Lendacky 2021-10-11 13:05 ` Paul Menzel 2021-10-11 13:11 ` Borislav Petkov 2021-10-11 13:27 ` Tom Lendacky 2021-10-11 13:52 ` Paul Menzel 2021-10-11 13:58 ` Tom Lendacky 2021-10-11 14:21 ` Paul Menzel 2021-10-11 14:28 ` Tom Lendacky 2021-10-11 14:32 ` Alex Deucher 2021-10-11 16:03 ` [PATCH -v2] x86/Kconfig: Do not enable AMD_MEM_ENCRYPT_ACTIVE_BY_DEFAULT automatically Borislav Petkov 2021-10-11 16:05 ` Alex Deucher 2021-10-11 16:29 ` Tom Lendacky 2021-10-11 17:18 ` [tip: x86/urgent] " tip-bot2 for Borislav Petkov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=CADnq5_ONNvuvTbiJDFfRwfnPUBeAqPmDJRmESDYG_7CymikJpQ@mail.gmail.com \ --to=alexdeucher@gmail.com \ --cc=amd-gfx@lists.freedesktop.org \ --cc=bp@alien8.de \ --cc=dave.hansen@linux.intel.com \ --cc=linux-kernel@vger.kernel.org \ --cc=luto@kernel.org \ --cc=mingo@redhat.com \ --cc=peterz@infradead.org \ --cc=pmenzel@molgen.mpg.de \ --cc=tglx@linutronix.de \ --cc=thomas.lendacky@amd.com \ --cc=x86@kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).