From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932795AbeCSKio (ORCPT ); Mon, 19 Mar 2018 06:38:44 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:54980 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932415AbeCSKin (ORCPT ); Mon, 19 Mar 2018 06:38:43 -0400 From: Christoph Hellwig To: x86@kernel.org Cc: Konrad Rzeszutek Wilk , Tom Lendacky , David Woodhouse , Muli Ben-Yehuda , Jon Mason , Joerg Roedel , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: use generic dma-direct and swiotlb code for x86 V3 Date: Mon, 19 Mar 2018 11:38:12 +0100 Message-Id: <20180319103826.12853-1-hch@lst.de> X-Mailer: git-send-email 2.14.2 X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, this series switches the x86 code the the dma-direct implementation for direct (non-iommu) dma and the generic swiotlb ops. This includes getting rid of the special ops for the AMD memory encryption case and the STA2x11 SOC. The generic implementations are based on the x86 code, so they provide the same functionality. Changes since V2: - minor changelog tweaks - made is_sta2x11 a plain bool Changes since V1: - fix the length in the set_memory_decrypted call - fix the SEV case