Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp491097imu; Mon, 5 Nov 2018 04:22:01 -0800 (PST) X-Google-Smtp-Source: AJdET5fmDHVFpfmzD6OCyPpUkrS4TGsmScm4VuRORQheFqpnUAIi4QWZsmHEjO316WMxRSkZt+7e X-Received: by 2002:a17:902:6a8b:: with SMTP id n11-v6mr1108548plk.311.1541420521764; Mon, 05 Nov 2018 04:22:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541420521; cv=none; d=google.com; s=arc-20160816; b=IOb9KaqkgyI/sXVO6IQyAXPH9GM4qVhdehMizhuvsZu+EHhawVe7vtYbdkWbRI0Z6u ubIS8p0eZizngpFBKM1FUfruSc5ckj7R64yCozd8mJp0OYlRXEzxZfgazm+b8EIEFuuj zLd3BgD3Ag3XKB9rhVyPGLrZgLebE6zDiUTYEON/SGgshFIPsk+FHrSvP/WSdJf3iK91 biyyY9r06TFb/u04YhA1EZPRHAcJ9FjOsAhVg6IkdmEEZCm4HRWtykQY3P0ezPkHux4s YRr4PIKLwhplH7s+ZzwOgqT9DCNoWD4sBYebfGixoRszC4ODay6njGmcGH+Y2+slTIMg HSeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=aDX20y0q0VhkGrp6OlR0HtpvcLo5DGSBG4VAoCu1hNg=; b=jG7Hg6PhKXnGF688hjgoYTk5uNX9UIWAvyay4Yz6g63Jf2/8QgepLpGGZaEIP6KDMy 9pXTOwhtjHMNdOPP1oCGXGO7Kgo6rC+9gEBuEbi4lYwP4RBJxBAtDw8oAs89VRnixWfk Hc5ggCUnmVjxY8OZi5xgOZdsStk5T5RUpJP5n7F0LxtmuQguDDNp8ebJBBSmTocRVFc7 CtRNabOfqkWJpcGL8+nbRKLi/2+g+/TlcoD2xfm/MJ6BsNO1tH1PKTNNVPbpWUTLAjG6 Ok5PhQ/PgXygiMSL652JQtt9dxZbqXl9hBTP+Ez6Qi2oQQEU0tKIhVc0tV8UkY428/vD aSuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=VFaNKUKz; 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 x33-v6si35926604plb.49.2018.11.05.04.21.46; Mon, 05 Nov 2018 04:22:01 -0800 (PST) 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=VFaNKUKz; 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 S1729402AbeKEVjJ (ORCPT + 99 others); Mon, 5 Nov 2018 16:39:09 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:40566 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726358AbeKEVjJ (ORCPT ); Mon, 5 Nov 2018 16:39:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: 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=aDX20y0q0VhkGrp6OlR0HtpvcLo5DGSBG4VAoCu1hNg=; b=VFaNKUKzjsijNjgfWmzwetUqo 4oxVS6BIgpgC4WE0WF2UkIStxBFv78HUafgGLiylgAEuV/TBa5AWmRryARwU6yJ5ijv9bzB7ns7X+ A93IthdunXLgT8pqXVi9aDjPRJ98GYw57NLnIoQTVQBXiL4rRRfojb6P3nbb/agov40kh4wTS+muz H4jZBzSjDS3B77lNgo/JrHo1XpBu08Q07D+pR0aPrmPUv1ebH32hGnQNG74F7TGlj/P7VTGLOYxx1 3VTjGhYnT3z9OKo7ptLQK9f5gED4rDVC1ZMavh5cID0NQgg5IG9kzOQB6s+7NdHkUy03Ei1KWeHyn izBAlaiBQ==; Received: from 213-225-37-95.nat.highway.a1.net ([213.225.37.95] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gJdqx-0003HV-9M; Mon, 05 Nov 2018 12:19:35 +0000 From: Christoph Hellwig To: iommu@lists.linux-foundation.org Cc: Robin Murphy , Catalin Marinas , Will Deacon , Guo Ren , Laura Abbott , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: move the arm arch_dma_alloc implementation to common code Date: Mon, 5 Nov 2018 13:19:22 +0100 Message-Id: <20181105121931.13481-1-hch@lst.de> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, this series moves the existing arm64 implementation of arch_dma_alloc and arch_dma_free to common code given that it is not arm64-specific, and then also uses it for csky. Given how many architectures remap memory for the DMA coherent implementation it should be usable for many more, and the new cache flushing hook and the generic atomic pool are also enablers for implementing the IOMMU API dma ops in common code in a follow on series.