From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753665AbcB2Kqz (ORCPT ); Mon, 29 Feb 2016 05:46:55 -0500 Received: from foss.arm.com ([217.140.101.70]:43206 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752076AbcB2Kqw (ORCPT ); Mon, 29 Feb 2016 05:46:52 -0500 Subject: Re: [PATCH 0/2] arm64, cma, gicv3-its: Use CMA for allocation of large device tables To: Robert Richter , Will Deacon , Catalin Marinas , Greg Kroah-Hartman , Thomas Gleixner References: <1456398164-16864-1-git-send-email-rrichter@caviumnetworks.com> Cc: Tirumalesh Chalamarla , linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Robert Richter From: Marc Zyngier Organization: ARM Ltd Message-ID: <56D42199.7040207@arm.com> Date: Mon, 29 Feb 2016 10:46:49 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.5.0 MIME-Version: 1.0 In-Reply-To: <1456398164-16864-1-git-send-email-rrichter@caviumnetworks.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Robert, On 25/02/16 11:02, Robert Richter wrote: > From: Robert Richter > > This series implements the use of CMA for allocation of large device > tables for the arm64 gicv3 interrupt controller. > > There are 2 patches, the first is for early activation of cma, which > needs to be done before interrupt initialization to make it available > to the gicv3. The second implements the use of CMA to allocate > gicv3-its device tables. > > This solves the problem where mem allocation is limited to 4MB. A > previous patch sent to the list to address this that instead increases > FORCE_MAX_ZONEORDER becomes obsolete. I think you're looking at the problem the wrong way. Instead of going through CMA directly, I'd rather go through the normal DMA API (dma_alloc_coherent), which can itself try CMA (should it be enabled). That will give you all the benefit of the CMA allocation, and also make the driver more robust. I meant to do this for a while, and never found the time. Any chance you could have a look? Thanks, M. -- Jazz is not dead. It just smells funny...