Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752117AbdGGO1t (ORCPT ); Fri, 7 Jul 2017 10:27:49 -0400 Received: from verein.lst.de ([213.95.11.211]:36931 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750726AbdGGO1s (ORCPT ); Fri, 7 Jul 2017 10:27:48 -0400 Date: Fri, 7 Jul 2017 16:27:46 +0200 From: Christoph Hellwig To: Vitaly Kuzmichev Cc: gregkh@linuxfoundation.org, hch@lst.de, m.szyprowski@samsung.com, robin.murphy@arm.com, linux-kernel@vger.kernel.org, linux-next@vger.kernel.org, "George G. Davis" , Vladimir Murzin Subject: Re: [PATCH v2 1/2] drivers: dma-coherent: Fix dev->cma_area vs dev->dma_mem breakage Message-ID: <20170707142746.GB10818@lst.de> References: <1499433759-16397-1-git-send-email-vitaly_kuzmichev@mentor.com> <1499433779-16437-1-git-send-email-vitaly_kuzmichev@mentor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1499433779-16437-1-git-send-email-vitaly_kuzmichev@mentor.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 427 Lines: 11 Vladimir, this is why I really didn't like overloading the current dma coherent infrastructure with the global pool. And this new patch seems like piling hacks over hacks. I think we should go back and make sure allocations from the global coherent pool are done by the dma ops implementation, and not before calling into them - preferably still reusing the common code for it. Vladimir or Vitaly - can you look into that?