Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1613765pxb; Mon, 11 Oct 2021 09:30:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxl4Hh+rcBoD8qbDh/7k19UeweHpZnwotC9JO8Hj8zH8tzlUCnTASq8OOMrITTo3kSyJt+r X-Received: by 2002:a63:24a:: with SMTP id 71mr19040664pgc.285.1633969827712; Mon, 11 Oct 2021 09:30:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633969827; cv=none; d=google.com; s=arc-20160816; b=wxe4PXnnivIGw131N5CzoEKrerqwprj6P6kIFLqw7aXXtxgAKzQpUJM5ctjBfOYyPr +pb8i+CZVetX92k4f29Pmk/6BOlJTM3Rz32tVAMSNMq8+SFRIOIYbwC6bAsaC7PYnkbf Sex17u9TMS/8Vjepud8RlohQqDGQcXvqp1UhywMpaVFqbqcLMOLLBKT4Z5Vdh8G63rpJ Dp/gWRKwIFu/OUdxvWwaCH1WWTC2WIwVijq7rQ6o+Eegvh781qzxZHjRJKzlMRsJB7Ib CR0Nf3LCR+AGXB7w3fqd3t2H0GDOkx7aUiT1WxfqKHEcniZN/nibehDpjDmLgd7kxDEj /28g== 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=qHYvo+BgzQO6j3csAgLddNxkQeflOEXYGs1fB/1Xgb4=; b=NwsH50V3PwHXDhYaFwOG3Wl64k+KZwuCTYaw+VdnzRRwp3gb4nmwbpjCrg0+FkG0F4 W8pki4R/YkkAT7jbDnVTgIId5tgUIzCkxrrhcDQ52ZlI+P5T5D0uN1S0s5e9kAn+bcnk 8VpHz9+H33WJw+CO6dVnT+dLEimP/xwRu17f7qgRS1xMz5DoVzcmwrfZTTrJPuatikXk gQ99Vlcr0NbB8mzksKq73H3wByxBkIQHitr387OpNlfiCcQFE5u7Mrqa3B3TS0Qxup1Q 9mf6BpOEE4rBRFuXDLrSS1xzRZH6+t9DHdZx27KuF3u+aTJlXnbZgZ/j7WmmtMr8JTRE cJbQ== 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 k18si12804084plk.170.2021.10.11.09.30.14; Mon, 11 Oct 2021 09:30:27 -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 S238083AbhJKN4S (ORCPT + 99 others); Mon, 11 Oct 2021 09:56:18 -0400 Received: from mx3.molgen.mpg.de ([141.14.17.11]:49485 "EHLO mx1.molgen.mpg.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S237711AbhJKNyQ (ORCPT ); Mon, 11 Oct 2021 09:54:16 -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 9BD1461E5FE33; Mon, 11 Oct 2021 15:52:15 +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> From: Paul Menzel Message-ID: <139ed784-d622-b0d2-3650-736b42e624f0@molgen.mpg.de> Date: Mon, 11 Oct 2021 15:52:14 +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: <87d93314-ba3e-464f-d051-84a8de674b06@amd.com> 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: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? Kind regards, Paul