bhanu jampala wrote:
I am working on MCC HDLC controller on MCC8260. I have two important questions:
1. What is the range of DPRAM from which the cpm_dpalloc allocates memory?
How does the cpm_dpalloc work?
Assuming you're using arch/powerpc on a recent kernel version, it
allocates from
see that in MCC chapter i.e. 29.3.1 on a MPC8280 manual.
(channel specific HDLC parameters)
I need to make sure that cpm_dpalloc is not using this part of DPRAM
to allocate memory.
I just wanne make sure no other device driver that use cpm_dpalloc to
allocate memory for their BDs i.e. scc, smc, fcc
Hi Guys,
I am working on MCC HDLC controller on MCC8260. I have two important questions:
1. What is the range of DPRAM from which the cpm_dpalloc allocates memory?
How does the cpm_dpalloc work?
I need this because, I need to reserve the DPRAM memory for MCC2
from (128 * 60) to (255 * 60
Subject: cpm_dpalloc and m8xx_cpm_dpalloc are interchangeable?
I think they are not interchangeable, you should use cpm_dpram_addr to
get the real address where to put your buf descriptors.
Bye,.
___
Linuxppc-embedded mailing list
Linuxppc-embedded
I'm not very familiar with SPI. See if someone on the list can help.
Best Regards,
Leo
-Original Message-
From: Keinen Namen [mailto:GSM909 at gmx.de]
Sent: Monday, July 31, 2006 9:39 PM
To: Li Yang-r58472
Subject: Re: RE: RE: cpm_dpalloc
Thx, now it?s working fine.
But my
Hi All
I have a MPC82xx Processor from Freescale with Linux 2.6.14 ( Can?t chance to
an new version).
My Problem is that I want to allocate a 64byte of memory in the dual ported ram
with an alignment of 64bytes. (Needed for SPI Parameter Ram)
the funktion cpm_dpalloc(64,64) returned 0x220
-bounces+leoli=freescale.com at ozlabs.org] On
Behalf Of
GSM909 at gmx.de
Sent: Monday, July 31, 2006 4:50 PM
To: linuxppc-embedded at ozlabs.org
Subject: cpm_dpalloc
Hi All
I have a MPC82xx Processor from Freescale with Linux 2.6.14 ( Can?t chance to
an
new version).
My Problem
Hi Leo,
Thanks for the reply.
The patch, I already applied, comes directly from Pantelis
and is the same code as found at
http://patchwork.ozlabs.org/linuxppc/patch?id=3484
What do you mean by the alignment patch ?
I suspect a problem in the cpm_dpfree function,
not in the cpm_dpalloc function
-Original Message-
From: Laurent Lagrange [mailto:lagrange at fr.oleane.com]
Sent: Wednesday, July 05, 2006 4:26 PM
To: Li Yang-r58472; pantelis at embeddedalley.com
Cc: linuxppc-embedded at ozlabs.org
Subject: RE: Linux 2.6.x : cpm_dpalloc alignment bug perhaps not fully
resolved
/powerpc tree in this kernel.
Before applying the patch, I was not able to get a right aligned area
with cpm_dpalloc. After applying it, cpm_dpalloc seems to be right
until I use cpm_dpfree and then cpm_dpalloc on the same area.
Another idea ?
Thanks
Laurent
a Linux 2.6.9 for MPC8260 and the arch/ppc/lib/rheap.c file.
I have no arch/powerpc tree in this kernel.
Before applying the patch, I was not able to get a right aligned area
with cpm_dpalloc. After applying it, cpm_dpalloc seems to be right
until I use cpm_dpfree and then cpm_dpalloc on the same
-Message d'origine-
De : Pantelis Antoniou [mailto:pantelis at embeddedalley.com]
Envoy? : mer. 5 juillet 2006 10:38
? : Laurent Lagrange
Cc : 'Li Yang-r58472'; linuxppc-embedded at ozlabs.org
Objet : Re: Linux 2.6.x : cpm_dpalloc alignment bug perhaps not fully
resolved
Should
Hello Pantelis,
Few months ago (25 January 2006), I sent a mail about an alignment bug in
cpm_dpalloc.
I applied and verified the provided patch. I was very satisfied with the
result.
Today I port a driver from Linux 2.4 to Linux 2.6 and I have strange
results.
The driver allocates rx and tx
Hello,
I work on MPC boards with Linux 2.6.9 and I have a problem with the
cpm_dpalloc function.
In the file cpm2_common.c the function uint cpm_dpalloc(uint size, uint
align) is intended
to allocate a piece of memory in the dpram. This piece of memory has at
least size bytes
and I beleived
into the DPRAM area.
+ * Use cpm_dpram_addr() to get the virtual address of the area.
*/
uint cpm_dpalloc(uint size, uint align)
{
15 matches
Mail list logo