Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753149AbdGJAgN (ORCPT ); Sun, 9 Jul 2017 20:36:13 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:33969 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752749AbdGJAgM (ORCPT ); Sun, 9 Jul 2017 20:36:12 -0400 Date: Sun, 9 Jul 2017 19:36:08 -0500 From: Rob Herring To: vitaly_kuzmichev@mentor.com Cc: gregkh@linuxfoundation.org, mark.rutland@arm.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, george_davis@mentor.com Subject: Re: [PATCH 1/2] drivers: dma-coherent: Add support for default DMA coherent pool Message-ID: <20170710003608.b4fw35r4bastahr7@rob-hp-laptop> References: <1499093475-29859-1-git-send-email-vitaly_kuzmichev@mentor.com> <1499093475-29859-2-git-send-email-vitaly_kuzmichev@mentor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1499093475-29859-2-git-send-email-vitaly_kuzmichev@mentor.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 977 Lines: 21 On Mon, Jul 03, 2017 at 05:51:14PM +0300, vitaly_kuzmichev@mentor.com wrote: > From: "George G. Davis" > > Use concept similar to the default CMA region for DMA coherent pools. Why do we need this in DT? CMA is a carveout and has to be reserved early, but DMA coherent memory is just different MMU attributes, right? Also, does this still apply with DMA mapping changes in 4.13? > Cc: Rob Herring > Cc: Mark Rutland > Cc: Greg Kroah-Hartman > Signed-off-by: George G. Davis > Signed-off-by: Jiada Wang > Signed-off-by: Mark Craske > Signed-off-by: Vitaly Kuzmichev > --- > .../bindings/reserved-memory/reserved-memory.txt | 2 ++ > drivers/base/dma-coherent.c | 29 ++++++++++++++++------ > 2 files changed, 24 insertions(+), 7 deletions(-)