From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.innovsys.com (smtp.innovsys.com [66.115.232.196]) by ozlabs.org (Postfix) with ESMTP id 4834467A64 for ; Sun, 2 Jul 2006 13:54:59 +1000 (EST) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C69D8B.48ACF54D" Subject: RE: [PATCH] powerpc:Fix rheap alignment problem Date: Sat, 1 Jul 2006 22:54:57 -0500 Message-ID: References: <9FCDBA58F226D911B202000BDBAD467306E04FF6@zch01exm40.ap.freescale.net><20060701102557.GA14013@lst.de> <200607011750.05019.pantelis.antoniou@gmail.com> From: "Rune Torgersen" To: "Pantelis Antoniou" , "Kumar Gala" Cc: linuxppc-dev list , Paul Mackerras , linux-kernel@vger.kernel.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is a multi-part message in MIME format. ------_=_NextPart_001_01C69D8B.48ACF54D Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable From: Pantelis Antoniou Sent: Sat 7/1/2006 9:50 AM >Since genalloc is the blessed linux thing it might be best to use that = & remove >rheap completely. Oh well... Two problems with genalloc that I can see (for CPM programming): 1) (minor) Does not have a way to specify alignment (genalloc does it = for you) 2) (major problerm, at least for me) Does not have a way to allocate a = specified address in the pool. 2 is needed esp when programming MCC drivers, since a lot of the = datastructures must be in DP RAM _and_ be in a specific spot. And if you = cannot tell the allocator that I am using a specific address, then the = allocator might very well give somebody else that portion of RAM. The = only solution without a fixed allocator is to allocate ALL memory in the = DP RAM and use your own allocator.=20 ------_=_NextPart_001_01C69D8B.48ACF54D Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: [PATCH] powerpc:Fix rheap alignment problem

From: Pantelis Antoniou
Sent: Sat 7/1/2006 9:50 AM
>Since genalloc is the blessed linux thing it might be best to use = that & remove
>rheap completely. Oh well...

Two problems with genalloc that I can see (for CPM programming):
1) (minor) Does not have a way to specify alignment (genalloc does it = for you)
2) (major problerm, at least for me) Does not have a way to allocate a = specified address in the pool.

2 is needed esp when programming MCC drivers, since a lot of the = datastructures must be in DP RAM _and_ be in a specific spot. And if you = cannot tell the allocator that I am using a specific address, then the = allocator might very well give somebody else that portion of RAM. The = only solution without a fixed allocator is to allocate ALL memory in the = DP RAM and use your own allocator.

------_=_NextPart_001_01C69D8B.48ACF54D--