Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759093Ab0GVJdb (ORCPT ); Thu, 22 Jul 2010 05:33:31 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:46462 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755098Ab0GVJd2 convert rfc822-to-8bit (ORCPT ); Thu, 22 Jul 2010 05:33:28 -0400 Date: Thu, 22 Jul 2010 11:34:50 +0200 From: =?utf-8?B?TWljaGHFgiBOYXphcmV3aWN6?= Subject: Re: [PATCH 2/4] mm: cma: Contiguous Memory Allocator added In-reply-to: <1279746102.31376.47.camel@c-dwalke-linux.qualcomm.com> To: Daniel Walker Cc: linux-mm@kvack.org, Marek Szyprowski , Pawel Osciak , Xiaolin Zhang , Hiremath Vaibhav , Robert Fekete , Marcus Lorentzon , linux-kernel@vger.kernel.org, Kyungmin Park , linux-arm-msm@vger.kernel.org Message-id: Organization: Samsung Electronics MIME-version: 1.0 Content-type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-transfer-encoding: 8BIT User-Agent: Opera Mail/10.60 (Linux) References: <1279649724.26765.23.camel@c-dwalke-linux.qualcomm.com> <1279654698.26765.31.camel@c-dwalke-linux.qualcomm.com> <1279733750.31376.14.camel@c-dwalke-linux.qualcomm.com> <1279736348.31376.20.camel@c-dwalke-linux.qualcomm.com> <1279738688.31376.24.camel@c-dwalke-linux.qualcomm.com> <1279741029.31376.33.camel@c-dwalke-linux.qualcomm.com> <1279742604.31376.40.camel@c-dwalke-linux.qualcomm.com> <1279744472.31376.42.camel@c-dwalke-linux.qualcomm.com> <1279745143.31376.46.camel@c-dwalke-linux.qualcomm.com> <1279746102.31376.47.camel@c-dwalke-linux.qualcomm.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2834 Lines: 70 On Wed, 21 Jul 2010 23:01:42 +0200, Daniel Walker wrote: > On Wed, 2010-07-21 at 22:56 +0200, Michał Nazarewicz wrote: >> On Wed, 21 Jul 2010 22:45:43 +0200, Daniel Walker wrote: >> > Your not hearing the issues.. IT'S TOO COMPLEX! Please remove it. >> >> Remove what exactly? > > Remove the command line option and all related code, or make it all a > debug option. How convenient... you have stripped the part of my mail where I described why this is request have no sense. I'll quote myself then: >> The command line parameter? It's like 50 lines of code, so I don't >> see any benefits. As such, I'm not going to add bunch of #ifdefs just to remove 50 lines of code. >> The possibility to specify the configuration? It would defy the whole >> purpose of CMA, so I won't do that. Simply as that. We work with a platform where whole of the functionality provided by CMA is required (many regions, region start address, region alignment, device->region mapping). This means, what I keep repeating and you keep ignoring, that the complexity will be there if not as a parsing code then moved to the platform initialisation code and drivers code. One of the purposes of CMA is to hide the complexity inside CMA framework so device driver authors and platform maintainers can use a simpler interface. Some time age (like year or two) I've posted some other solution to the problem which served our purpose just well and had very little complexity in it. Unfortunately, customising that solution was quite hard (required changes to a header file and adding modifying code for reserving space). Also, in this old solution, adding or removing regions required device drivers to be modified. This was not nice, not nice at all. True, however, the core wasn't complex. So when you say remove the complicity I say: I have been there, it's ugly. > Arguing with me isn't going to help your cause. It's you who keep repeating “remove it, it's to complex” without hearing my arguments. I keep trying to show that all of the functionality is required and is being used on our development platform. If your hardware does not require that complexity... well, you're one lucky man. Unfortunately, we are not, and we need a complex solution to work with complex hardware. -- Best regards, _ _ | Humble Liege of Serenely Enlightened Majesty of o' \,=./ `o | Computer Science, Michał "mina86" Nazarewicz (o o) +----[mina86*mina86.com]---[mina86*jabber.org]----ooO--(_)--Ooo-- -- 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/