Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753943Ab1FNUmq (ORCPT ); Tue, 14 Jun 2011 16:42:46 -0400 Received: from moutng.kundenserver.de ([212.227.17.8]:57000 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753854Ab1FNUmo (ORCPT ); Tue, 14 Jun 2011 16:42:44 -0400 From: Arnd Bergmann To: Zach Pfeffer Subject: Re: [Linaro-mm-sig] [PATCH 08/10] mm: cma: Contiguous Memory Allocator added Date: Tue, 14 Jun 2011 22:42:24 +0200 User-Agent: KMail/1.13.6 (Linux/3.0.0-rc1nosema+; KDE/4.6.3; x86_64; ; ) Cc: Daniel Stone , Michal Nazarewicz , Ankita Garg , Daniel Walker , Jesse Barker , Mel Gorman , linux-kernel@vger.kernel.org, linaro-mm-sig@lists.linaro.org, linux-mm@kvack.org, Kyungmin Park , KAMEZAWA Hiroyuki , Andrew Morton , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org References: <1307699698-29369-1-git-send-email-m.szyprowski@samsung.com> <20110614170158.GU2419@fooishbar.org> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201106142242.25157.arnd@arndb.de> X-Provags-ID: V02:K0:ZBHKnRVTkA5bcNvFPx9y8gMOL2fCQAc8ximd42NM/My zu3/7EgPVXKru88mf8ZWvRSuU5iEcg3ddXvLj6jqfG9RieXtCw OZ7XyBqfj3WVe2JaExNLRiOxpEKrReWtDMeacDuL2K2UYsMCLO FEKeMgySLJj9u1OM+20fE7r3wEREUN5npuIIiUryxTc4QViwrl 8hgUzTkgG3yRJdsw9bTfQ== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1784 Lines: 38 On Tuesday 14 June 2011 20:58:25 Zach Pfeffer wrote: > I've seen this split bank allocation in Qualcomm and TI SoCs, with > Samsung, that makes 3 major SoC vendors (I would be surprised if > Nvidia didn't also need to do this) - so I think some configurable > method to control allocations is necessarily. The chips can't do > decode without it (and by can't do I mean 1080P and higher decode is > not functionally useful). Far from special, this would appear to be > the default. Thanks for the insight, that's a much better argument than 'something may need it'. Are those all chips without an IOMMU or do we also need to solve the IOMMU case with split bank allocation? I think I'd still prefer to see the support for multiple regions split out into one of the later patches, especially since that would defer the question of how to do the initialization for this case and make sure we first get a generic way. You've convinced me that we need to solve the problem of allocating memory from a specific bank eventually, but separating it from the one at hand (contiguous allocation) should help getting the important groundwork in at first. The possible conflict that I still see with per-bank CMA regions are: * It completely destroys memory power management in cases where that is based on powering down entire memory banks. * We still need to solve the same problem in case of IOMMU mappings at some point, even if today's hardware doesn't have this combination. It would be good to use the same solution for both. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/