ucc_geth DPRAM alloc error, 2.6.22-rc3
Li Yang-r58472
LeoLi at freescale.com
Fri Jun 15 12:44:49 EST 2007
> -----Original Message-----
> From: Rune Torgersen [mailto:runet at innovsys.com]
> Sent: Friday, June 15, 2007 6:50 AM
> To: joakim.tjernlund at transmode.se; Li Yang-r58472
> Cc: linuxppc-dev Development; Liu Dave-r63238
> Subject: RE: ucc_geth DPRAM alloc error, 2.6.22-rc3
>
> Here is what I had to do to get best-fit + not allocating too much:
> (against 2.6.18)
> --- linux-innsys/arch/ppc/lib/rheap.c 2006/10/10 22:54:41 175
> +++ linux-innsys/arch/ppc/lib/rheap.c 2006/12/03 18:04:42 205
{snip}
> 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.
- Leo
More information about the Linuxppc-dev
mailing list