Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp657910pxb; Wed, 6 Oct 2021 12:34:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+RlalmCgWx84Nsm0RB+rTKL+DrhXun+AZLZ4lI6jekxevAICM2BdfQpmplRSENyFlF8My X-Received: by 2002:a17:902:b18b:b0:13a:354a:3e9d with SMTP id s11-20020a170902b18b00b0013a354a3e9dmr12760959plr.36.1633548869019; Wed, 06 Oct 2021 12:34:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633548869; cv=none; d=google.com; s=arc-20160816; b=ltjvcoLqhGM4dWJ3UoFslBjz4wIU6VFK6IEG9ceZPi1SDeuneS3IG3yT+iXmYcV0cg m3FMyVgSs0r81v1m7whYp+H47QIxOayAZEd4nCHWAlyTICttBm7DBlZyA8iW+HtSA1xL 2mcA83Ovnd7mRUJGyD7B1ivt/ht8ieWm2m5cxA2lPft1yPWc4l4K0pkz6fDCkyVSI1co MeZdRijoRa5d5edc75zOxwUubnGu4+AqLkvn74VerlcJr6i7mTLzwChVyy963AT3hmHp MoiGNvJKJglHZBaPqXtlARIJl/4jFsywnohwKX0YXYyy88SAqn19x2nu6jdP96vnn936 I7sA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Sy4WTY2NLRXQm2Nup8BPLSSFgX15mIq3h1FN9sZbFd0=; b=dxlHdZzon8V7dq1WSY80DmQZu7+Ncg51iDsLyUIaRhY5Az7/H642HXMGSXtF1F7l1+ kWyqw+Y5IZs5RxTHMXFYgngws4wIgZbqebGJO+LGkcFHPVb/dESUKuEzaJlu0f6vWlOw kBcOO7zSZpJcQbXDauCKpjfeneZC1EsjfslYYObJIZsQNHKCBqq/OiUcvBhxMiLCvETI WB4Z3FO1p7todZWgQLeyN2VURotf7ODJJxkGVmOBxtwU7dMPL9zuUJ7VJOW+x3ElAwVp otQ4MDRPJZAzjqeMpEuhMbWCZNI83PaQ2Ilpik01096Tz7r5CwWMmyZOBOz3JtrhIaoy whMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=I1k1hpqh; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z24si3241430pgj.69.2021.10.06.12.34.00; Wed, 06 Oct 2021 12:34:29 -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; dkim=pass header.i=@alien8.de header.s=dkim header.b=I1k1hpqh; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239248AbhJFTeg (ORCPT + 99 others); Wed, 6 Oct 2021 15:34:36 -0400 Received: from mail.skyhub.de ([5.9.137.197]:40796 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229992AbhJFTef (ORCPT ); Wed, 6 Oct 2021 15:34:35 -0400 Received: from zn.tnic (p200300ec2f0d36003dde9a53b36f1ff2.dip0.t-ipconnect.de [IPv6:2003:ec:2f0d:3600:3dde:9a53:b36f:1ff2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 3AA8C1EC0409; Wed, 6 Oct 2021 21:32:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1633548762; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=Sy4WTY2NLRXQm2Nup8BPLSSFgX15mIq3h1FN9sZbFd0=; b=I1k1hpqhGNKjHStuR7EfXqYlP8rRtm3P47neiuhEosVO+7H73fbwRusx/sXBsqtDOwabC5 oES1k4Zc3BRn9zC+eO/Zhn2/0BWs/baLRrRbupoH1DMhgMVupggIUAJYoRH8o7CEZVd2tA 8PdyjhdbUkV+jCOOkM1Gt75ffgj7Wvg= Date: Wed, 6 Oct 2021 21:32:38 +0200 From: Borislav Petkov To: Alex Deucher Cc: Tom Lendacky , Paul Menzel , Thomas Gleixner , Ingo Molnar , X86 ML , Dave Hansen , Andy Lutomirski , Peter Zijlstra , LKML , amd-gfx list Subject: Re: `AMD_MEM_ENCRYPT_ACTIVE_BY_DEFAULT=y` causes AMDGPU to fail on Ryzen: amdgpu: SME is not compatible with RAVEN Message-ID: References: <8bbacd0e-4580-3194-19d2-a0ecad7df09c@molgen.mpg.de> <96f6dbed-b027-c65e-6888-c0e8630cc006@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 06, 2021 at 02:21:40PM -0400, Alex Deucher wrote: > And just another general comment, swiotlb + bounce buffers isn't > really useful on GPUs. You may have 10-100s of MBs of memory mapped > long term into the GPU's address space for random access. E.g., you > may have buffers in system memory that the display hardware is > actively scanning out of. For GPUs you should really only enable SME > if IOMMU is enabled in remapping mode. But that is probably beyond > the discussion here. Right, but insights into how these things work (or don't work) together are always welcome. And yes, as 2cc13bb4f59f says: "... The bounce buffer code has an upper limit of 256kb for the size of DMA allocations, which is too small for certain devices and causes them to fail." -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette