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 DB905DDF36 for ; Fri, 15 Jun 2007 13:49:33 +1000 (EST) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C7AF00.2EAF5E0C" Subject: RE: ucc_geth DPRAM alloc error, 2.6.22-rc3 Date: Thu, 14 Jun 2007 22:47:20 -0500 Message-ID: References: <989B956029373F45A0B8AF0297081890D2AE6C@zch01exm26.fsl.freescale.net> From: "Rune Torgersen" To: "Li Yang-r58472" , Cc: linuxppc-dev Development , Liu Dave-r63238 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_01C7AF00.2EAF5E0C Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable >From: Li Yang-r58472 [mailto:LeoLi@freescale.com] >> if (assure_empty(info, 1) < 0) >> return ERR_PTR(-ENOMEM); >You also need to change this to assure_empty(info, 2), as you are very >likely to need 2 slots afterward. You need to assure there are enough >slots or grow the block number. Ahh. I'll fix that in my code. It was a quick&dirty hack to get the allocator to work wen we used most = of the available DPRAM. ------_=_NextPart_001_01C7AF00.2EAF5E0C Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: ucc_geth DPRAM alloc error, 2.6.22-rc3

>From: Li Yang-r58472 [mailto:LeoLi@freescale.com]
>>      if (assure_empty(info, 1) < 0)
>>      =         return ERR_PTR(-ENOMEM);

>You also need to change this to assure_empty(info, 2), as you are = very
>likely to need 2 slots afterward.  You need to assure there are = enough
>slots or grow the block number.

Ahh. I'll fix that in my code.
It was a quick&dirty hack to get the allocator to work wen we used = most of the available DPRAM.

------_=_NextPart_001_01C7AF00.2EAF5E0C--