Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756774AbcLNUqK (ORCPT ); Wed, 14 Dec 2016 15:46:10 -0500 Received: from mail.kernel.org ([198.145.29.136]:38316 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754053AbcLNUqI (ORCPT ); Wed, 14 Dec 2016 15:46:08 -0500 MIME-Version: 1.0 In-Reply-To: <1479901021-25064-1-git-send-email-jason.hui.liu@nxp.com> References: <1479901021-25064-1-git-send-email-jason.hui.liu@nxp.com> From: Rob Herring Date: Wed, 14 Dec 2016 14:45:19 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/1] of: of_reserved_mem: Ensure cma reserved region not cross the low/high memory To: Jason Liu Cc: "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Laura Abbott , Frank Rowand Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 454 Lines: 10 On Wed, Nov 23, 2016 at 5:37 AM, Jason Liu wrote: > Need ensure the cma reserved region not cross the low/high memory boundary > when using the dynamic allocation methond through device-tree, otherwise, > kernel will fail to boot up when cma reserved region cross how/high mem. The kernel command line code setting CMA already deals with this. Why don't we just call the CMA code (cma_declare_contiguous) to deal with this? Rob