Received: by 10.192.165.148 with SMTP id m20csp411620imm; Fri, 20 Apr 2018 01:06:10 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+Ek6a09d0MZWRurjoScdAA9MQo2JflCQth+CyR1dXIT8B0HHEu+C0FzPhl27A+YkBytXFW X-Received: by 10.99.98.198 with SMTP id w189mr7838140pgb.263.1524211570521; Fri, 20 Apr 2018 01:06:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524211570; cv=none; d=google.com; s=arc-20160816; b=sLfJyDCeEgBzcH7P4ebSsnznxo1AdE023Rv3aDfDqQDJdx/r5INSavG+X9BzWsE0VJ MDWKKend/jfwy5i6LO7gmtszwEjftRl62obyJ/RaUvonjAES4hcYvasnHS6hRHEE2z6a QFWlj7OHX1fZU/FhldKUlZp5l5VwQSzwaqqrGR3MjtjepoiDA3FUaiZcEjt943zSCDe5 pE4wLNMuAzQfO0etO8MtKv/SVp/qF/NtJWptks1zTZylydfVJYoxSOU11Vjwiug7o9d3 e6cVZjcFlP2Jq1WzCfRYyzyRnKXxXOUzX5QaAX4R8UfKu9Pt6bvBEjknBcOI7mf/E/7p eXDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:message-id:date:subject:cc:from :dkim-signature:arc-authentication-results; bh=VwoPaNBccUH74zOF71LUvFAzpRqA2YNS+e9OwmDot6g=; b=JQN91RgMd1wO/ZBryHlM8sIsedxJEKQ14No2BDca2iruL130ocJZ2z6khjDjiw1T6b eZgiWDZW9nq9jDq3hOkbJ8J0qkldJs3GfMHJnJvyUPjbaKa4f0BiRyxUkDd+HsFVS2UD qRoKTg4IUYJZ8mjCxbaenmTdpLQ0aDT9VBWuZlY05utk7JwFOfAkLzZLhlwaU+7wYWAb IR6DaH/Iy3YnfSSeQl3j2vCVWayV+GRh32CWj7z6Zeysg7hFokHxB+Rd/cQjI1qDgLIU UfS/WZH3rYrJN3JjJqkrcrzZKR3icRW0WBO8thhfjAhCSMonnBOoDTfsU21+A8FyJKf4 3QTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=jR0Fk+Ro; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s7si4374899pgp.498.2018.04.20.01.05.55; Fri, 20 Apr 2018 01:06:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=jR0Fk+Ro; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753987AbeDTIDW (ORCPT + 99 others); Fri, 20 Apr 2018 04:03:22 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:38694 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753777AbeDTIDT (ORCPT ); Fri, 20 Apr 2018 04:03:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=VwoPaNBccUH74zOF71LUvFAzpRqA2YNS+e9OwmDot6g=; b=jR0Fk+RoNKkvnGVTqMPsDOjxX VrA1SQX9NXoJfCJeFfEVmlIYNkhamV1R41WTfM8zgxqToOubbk528CfGrWc3TJ/Wl80P3mi5ASujp v00SiArwMCHKAy9ssJsQLbp8avyh/ZU0kZJhfdZzFKEhzYPTH2YfmRTHrLCxqPF16w/OAhGmGqlSs 6QB0Lwo6Tl1PIjNlX/wLq75X+E0VP4zJM3nwRPMk2KwE1tMC6i/rprKmgjy4Bux2BCesyrJeZ2nTG /hhYRKZCFCDjBUBg218WFAMHuSQmTkthSdnfZamT/GrNmD+EgtAfGb0O17kORRL0FN4gYCyHJsi1Q 4pfNP682Q==; Received: from static-242-42-24-46.ipcom.comunitel.net ([46.24.42.242] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1f9R0m-0007Hp-7N; Fri, 20 Apr 2018 08:03:16 +0000 From: Christoph Hellwig Cc: linux-arch@vger.kernel.org, Michal Simek , Greentime Hu , Vincent Chen , linux-alpha@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-c6x-dev@linux-c6x.org, linux-hexagon@vger.kernel.org, linux-m68k@lists.linux-m68k.org, nios2-dev@lists.rocketboards.org, openrisc@lists.librecores.org, linux-parisc@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-xtensa@linux-xtensa.org, linux-kernel@vger.kernel.org Subject: Date: Fri, 20 Apr 2018 10:02:51 +0200 Message-Id: <20180420080313.18796-1-hch@lst.de> X-Mailer: git-send-email 2.17.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org To: iommu@lists.linux-foundation.org Cc: linux-arch@vger.kernel.org Cc: Michal Simek Cc: Greentime Hu Cc: Vincent Chen Cc: linux-alpha@vger.kernel.org Cc: linux-snps-arc@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-c6x-dev@linux-c6x.org Cc: linux-hexagon@vger.kernel.org Cc: linux-m68k@lists.linux-m68k.org Cc: nios2-dev@lists.rocketboards.org Cc: openrisc@lists.librecores.org Cc: linux-parisc@vger.kernel.org Cc: linux-sh@vger.kernel.org Cc: sparclinux@vger.kernel.org Cc: linux-xtensa@linux-xtensa.org Cc: linux-kernel@vger.kernel.org Subject: [RFC] common non-cache coherent direct dma mapping ops Hi all, this series continues consolidating the dma-mapping code, with a focus on architectures that do not (always) provide cache coherence for DMA. Three architectures (arm, mips and powerpc) are still left to be converted later due to complexity of their dma ops selection. The dma-noncoherent ops calls the dma-direct ops for the actual translation of streaming mappins and allow the architecture to provide any cache flushing required for cpu to device and/or device to cpu ownership transfers. The dma coherent allocator is for now still left entirely to architecture supplied implementations due the amount of variations. Hopefully we can do some consolidation for them later on as well. A lot of architectures are currently doing very questionable things in their dma mapping routines, which are documented in the changelogs for each patch. Please review them very careful and correct me on incorrect assumptions. Because this series sits on top of two previously submitted series a git tree might be useful to actually test it. It is provided here: git://git.infradead.org/users/hch/misc.git generic-dma-noncoherent Gitweb: http://git.infradead.org/users/hch/misc.git/shortlog/refs/heads/generic-dma-noncoherent