From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A97A9C33C9E for ; Tue, 14 Jan 2020 15:47:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7AC5024655 for ; Tue, 14 Jan 2020 15:47:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729148AbgANPrr (ORCPT ); Tue, 14 Jan 2020 10:47:47 -0500 Received: from verein.lst.de ([213.95.11.211]:46589 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728688AbgANPrr (ORCPT ); Tue, 14 Jan 2020 10:47:47 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 547AF68AFE; Tue, 14 Jan 2020 16:47:44 +0100 (CET) Date: Tue, 14 Jan 2020 16:47:44 +0100 From: Christoph Hellwig To: Michal Simek Cc: linux-kernel@vger.kernel.org, monstr@monstr.eu, git@xilinx.com, Christoph Hellwig , Andrew Morton , Geert Uytterhoeven , Greg Kroah-Hartman , Juergen Gross , Kate Stewart , Linus Walleij , Manish Narani , Manjukumar Matha , Masahiro Yamada , Max Filippov , Mike Rapoport , Stafford Horne , Will Deacon Subject: Re: [PATCH] microblaze: Wire CMA allocator Message-ID: <20200114154744.GB7194@lst.de> References: <1a1a4c1e0f930e4fc0dfc785dbce57c07303f1a6.1579003045.git.michal.simek@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1a1a4c1e0f930e4fc0dfc785dbce57c07303f1a6.1579003045.git.michal.simek@xilinx.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 14, 2020 at 12:57:28PM +0100, Michal Simek wrote: > Based on commit 04e3543e228f ("microblaze: use the generic dma coherent remap allocator") > CMA can be easily enabled by calling dma_contiguous_reserve() at the end of > mmu_init(). High limit is end of lowmem space which is completely unused at > this point of time. > > Signed-off-by: Michal Simek > --- > > Christoph: Can you please review this patch? Looks sensible to me. If you touch this area anyway I have a request, though: > +++ b/arch/microblaze/include/asm/Kbuild > @@ -7,6 +7,7 @@ generic-y += bugs.h > generic-y += compat.h > generic-y += device.h > generic-y += div64.h > +generic-y += dma-contiguous.h Can you add a prep patch to add a mandatory-y += dma-contiguous.h to include/asm-generic/Kbuild and remove the generic-y in all the arch files? That reduces the arch churn a little.