Received: by 2002:a05:6520:1682:b0:147:d1a0:b502 with SMTP id ck2csp5596188lkb; Mon, 11 Oct 2021 09:38:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+Bhb/3WOTx3eM7er+0EYWRx6wHL+Xne24RCiLqIhbr3nVtDb2OxrZ6zYmbyePo+I7Xz9R X-Received: by 2002:aa7:8294:0:b0:44c:c0b:d94c with SMTP id s20-20020aa78294000000b0044c0c0bd94cmr26740523pfm.24.1633970314501; Mon, 11 Oct 2021 09:38:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633970314; cv=none; d=google.com; s=arc-20160816; b=F98+sAJZl8Q3NdozG2uZTykxMUsz0ulM8L7tPGabZeUT6ICO6ufJ/1IW5DmhGicDp+ gYR9Lhn0tV5WGdIenIyiNGCcHk9tziPXhFRHGUuZVN+YTaPLSDXuBtjIP3PoeZ9hIE35 Dh/2SHDyVwBM14joXiRksh4PmPH4RzXncxV70wlw05NSv4rUMYIcZVKX1Wl13nkI4Lhk CStAJCAjvX8m0HPIeKd7sM0Rql+EXEOziOrpckILDVAAdTVhQG7PQiWVIEnPWDQKxAAh q5S34TvNl+h+o7uNmTsBgPsXk0EAEWoO+ULlUiUE+WQKVFaIbaGwQvctP78A+VvYc6kL vltg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=biL+wfNax3FqGiebQhkX71cWHbcBkeQ3brdpBHrpGhQ=; b=LbQnha5JtSdhGutqXW64gIqs9EG1GibsnWmzMyOqsj/reBw+8JM2059LoY3gW2Vy9c UaBDDyTu7iOLBArfnXonotUuPInLvf7LUNBJO937y1lbYxcFjtvEua70zKjQmGrjDh6z G/qtZIUbPkuK/xMCKWa6IMIdczlUyN1qZ7FXrtW1akdRqolnzT1ceiutgPD3U3hXXXqR /4EDdqB2SeSyh/q+jFHYa/VxFrDP6oyRk4oiY1lUTlaLzm9RAQRE9w81Z+87bAEWpBzs yDpESkjDbF7h7gRWwAGvf2go0Um5CRWeVtSyNMbFHjSB4ORYlu6WUxZLzeU3pEc8vexa qdrw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u81si9832676pfc.139.2021.10.11.09.38.21; Mon, 11 Oct 2021 09:38:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241801AbhJKOYR (ORCPT + 99 others); Mon, 11 Oct 2021 10:24:17 -0400 Received: from mx3.molgen.mpg.de ([141.14.17.11]:53273 "EHLO mx1.molgen.mpg.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S244366AbhJKOX6 (ORCPT ); Mon, 11 Oct 2021 10:23:58 -0400 Received: from [192.168.0.2] (ip5f5aef5a.dynamic.kabel-deutschland.de [95.90.239.90]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 934DD61E5FE33; Mon, 11 Oct 2021 16:21:55 +0200 (CEST) Subject: Re: `AMD_MEM_ENCRYPT_ACTIVE_BY_DEFAULT=y` causes AMDGPU to fail on Ryzen: amdgpu: SME is not compatible with RAVEN To: Tom Lendacky Cc: Alex Deucher , Thomas Gleixner , Ingo Molnar , X86 ML , Dave Hansen , Andy Lutomirski , Peter Zijlstra , LKML , amd-gfx@lists.freedesktop.org, Borislav Petkov References: <8bbacd0e-4580-3194-19d2-a0ecad7df09c@molgen.mpg.de> <96f6dbed-b027-c65e-6888-c0e8630cc006@amd.com> <87d93314-ba3e-464f-d051-84a8de674b06@amd.com> <139ed784-d622-b0d2-3650-736b42e624f0@molgen.mpg.de> From: Paul Menzel Message-ID: <8b21ebbd-f7ca-8af3-5398-8320c6ed6422@molgen.mpg.de> Date: Mon, 11 Oct 2021 16:21:55 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dear Tom, Am 11.10.21 um 15:58 schrieb Tom Lendacky: > On 10/11/21 8:52 AM, Paul Menzel wrote: >> Am 11.10.21 um 15:27 schrieb Tom Lendacky: >>> On 10/11/21 8:11 AM, Borislav Petkov wrote: >>>> On Mon, Oct 11, 2021 at 03:05:33PM +0200, Paul Menzel wrote: >>>>> I think, the IOMMU is enabled on the MSI B350M MORTAR, but >>>>> otherwise, yes >>>>> this looks fine. The help text could also be updated to mention >>>>> problems >>>>> with AMD Raven devices. >>>> >>>> This is not only about Raven GPUs but, as Alex explained, pretty much >>>> about every device which doesn't support a 48 bit DMA mask. I'll expand >>>> that aspect in the changelog. >>> >>> In general, non-GPU devices that don't support a 48-bit DMA mask work >>> fine (assuming they have set their DMA mask appropriately). It really >>> depends on whether SWIOTLB will be able to satisfy the memory >>> requirements of the driver when the IOMMU is not enabled or in >>> passthrough mode. Since GPU devices need/use a lot of memory, that >>> becomes a problem. >> >> How can I check that? > > How can you check what? 32-bit DMA devices? GPUs? I need a bit more > information... How can I check, why MEM_ENCRYPT is not working on my device despite the IOMMU being enabled. Kind regards, Paul