From mboxrd@z Thu Jan 1 00:00:00 1970 From: will.deacon@arm.com (Will Deacon) Date: Fri, 11 Sep 2015 12:02:39 +0100 Subject: [PATCH] arm64: dma-mapping: check whether cma area is initialized or not In-Reply-To: <20150911110036.GC5771@e104818-lin.cambridge.arm.com> References: <1441957787-5526-1-git-send-email-jszhang@marvell.com> <20150911110036.GC5771@e104818-lin.cambridge.arm.com> Message-ID: <20150911110239.GB15917@arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Fri, Sep 11, 2015 at 12:00:37PM +0100, Catalin Marinas wrote: > On Fri, Sep 11, 2015 at 03:49:47PM +0800, Jisheng Zhang wrote: > > If CMA is turned on and CMA size is set to zero, kernel should > > behave as if CMA was not enabled at compile time. > > Every dma allocation should check existence of cma area > > before requesting memory. > > > > Arm has done this by commit e464ef16c4f0 ("arm: dma-mapping: add > > checking cma area initialized"), also do this for arm64. > > > > Signed-off-by: Jisheng Zhang > > Acked-by: Catalin Marinas > > Will should pick this up for 4.3. Yup, queued already. I'll push out at -rc1. Will From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752412AbbIKLCk (ORCPT ); Fri, 11 Sep 2015 07:02:40 -0400 Received: from foss.arm.com ([217.140.101.70]:37454 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751273AbbIKLCj (ORCPT ); Fri, 11 Sep 2015 07:02:39 -0400 Date: Fri, 11 Sep 2015 12:02:39 +0100 From: Will Deacon To: Catalin Marinas Cc: Jisheng Zhang , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH] arm64: dma-mapping: check whether cma area is initialized or not Message-ID: <20150911110239.GB15917@arm.com> References: <1441957787-5526-1-git-send-email-jszhang@marvell.com> <20150911110036.GC5771@e104818-lin.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150911110036.GC5771@e104818-lin.cambridge.arm.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 11, 2015 at 12:00:37PM +0100, Catalin Marinas wrote: > On Fri, Sep 11, 2015 at 03:49:47PM +0800, Jisheng Zhang wrote: > > If CMA is turned on and CMA size is set to zero, kernel should > > behave as if CMA was not enabled at compile time. > > Every dma allocation should check existence of cma area > > before requesting memory. > > > > Arm has done this by commit e464ef16c4f0 ("arm: dma-mapping: add > > checking cma area initialized"), also do this for arm64. > > > > Signed-off-by: Jisheng Zhang > > Acked-by: Catalin Marinas > > Will should pick this up for 4.3. Yup, queued already. I'll push out at -rc1. Will