From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Lendacky Subject: Re: [PATCH v6 25/34] swiotlb: Add warnings for use of bounce buffers with SME Date: Thu, 8 Jun 2017 18:04:03 -0500 Message-ID: <8d78db0c-7c3e-9304-7d04-31095246ec83@amd.com> References: <20170607191309.28645.15241.stgit@tlendack-t1.amdoffice.net> <20170607191732.28645.42876.stgit@tlendack-t1.amdoffice.net> <20170608075829.GA2446@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20170608075829.GA2446@infradead.org> Content-Language: en-US Sender: owner-linux-mm@kvack.org To: Christoph Hellwig Cc: linux-arch@vger.kernel.org, linux-efi@vger.kernel.org, kvm@vger.kernel.org, linux-doc@vger.kernel.org, x86@kernel.org, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, linux-mm@kvack.org, iommu@lists.linux-foundation.org, Rik van Riel , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Toshimitsu Kani , Arnd Bergmann , Jonathan Corbet , Matt Fleming , "Michael S. Tsirkin" , Joerg Roedel , Konrad Rzeszutek Wilk , Paolo Bonzini , Larry Woodman , Brijesh Singh , Ingo Molnar , Borislav Petkov , Andy Lutomirski , "H. Peter Anvin" , Andrey Ryabinin List-Id: linux-efi@vger.kernel.org On 6/8/2017 2:58 AM, Christoph Hellwig wrote: > On Wed, Jun 07, 2017 at 02:17:32PM -0500, Tom Lendacky wrote: >> Add warnings to let the user know when bounce buffers are being used for >> DMA when SME is active. Since the bounce buffers are not in encrypted >> memory, these notifications are to allow the user to determine some >> appropriate action - if necessary. > > And what would the action be? Do we need a boot or other option to > disallow this fallback for people who care deeply? The action could be to enable the IOMMU so that lower DMA addresses are used, or to replace the device with one that supports 64-bit DMA or, if the device is not used much, you could just ignore it. I'm not sure we need an option to disallow the fallback. Are you thinking along the lines of disabling the device? Thanks, Tom > -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org