* m8260_cpm_dpfree( )
@ 2003-07-28 13:15 Sanjay Kumar
2003-07-28 14:49 ` Alex Zeffertt
0 siblings, 1 reply; 4+ messages in thread
From: Sanjay Kumar @ 2003-07-28 13:15 UTC (permalink / raw)
To: linuxppc-embedded
Hi !
I have few questions regarding MPC8260 ATM device driver.
1. where can I get m8260_cpm_dpfree() function implementation ?
2. For using the m8260_cpm_dpalloc(uint size, uint align) function I have
included
#include <asm/cpm_8260.h> and having CC_OPTION
-D__KERNEL__ -DMODULE -DCONFIG_8260
in my Makefile. But when I tried to load this driver on
motorola-mtx-ppc_7xx target
it gives unresolved symbol for m8260_cpm_dpalloc(). I have kernel
Monatavista 2.4.17
Anything I am missing in this case ?
3. I am including file #include <asm/mpc8260.h> for using define
request_8xxirq.But I am not
able to include this define.
4. I am including file <asm/irq.h> for using define SIU_INT_FCC1. But I
am not able
to include this define.
Do I am missing something ? I have same CC_OPTION as mentioned above.
Does anything matter
with kernel version?
Any idea will be highly appreciated.
regards,
sanjay
==============================================================
Sanjay Kumar skumar@giga-stream.de
GIGA-STREAM UMTS Technologies GmbH Tel: +49 (07243) 94976-119
Im Ermlisgrund 8 Fax: +49 (07243) 94976-100
76337 Waldbronn
==============================================================
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: m8260_cpm_dpfree( )
2003-07-28 13:15 m8260_cpm_dpfree( ) Sanjay Kumar
@ 2003-07-28 14:49 ` Alex Zeffertt
2003-07-28 20:13 ` Adam Kaczynski
0 siblings, 1 reply; 4+ messages in thread
From: Alex Zeffertt @ 2003-07-28 14:49 UTC (permalink / raw)
To: Sanjay Kumar; +Cc: linuxppc-embedded@lists.linuxppc.org
Sanjay,
> 1. where can I get m8260_cpm_dpfree() function implementation ?
You could try porting the dpfree function in
arch/ppc/8xx_io/commproc.c. However, this function should only really
be necessary if you wish to rmmod the driver.
> 2. For using the m8260_cpm_dpalloc(uint size, uint align) function I have
> included
> #include <asm/cpm_8260.h> and having CC_OPTION
> -D__KERNEL__ -DMODULE -DCONFIG_8260
> in my Makefile. But when I tried to load this driver on
> motorola-mtx-ppc_7xx target
> it gives unresolved symbol for m8260_cpm_dpalloc(). I have kernel
> Monatavista 2.4.17
> Anything I am missing in this case ?
Try adding
#ifdef CONFIG_8260
EXPORT_SYMBOL(m8260_cpm_dpalloc);
#endif
to arch/ppc/kernel/ppc_ksyms.c
> 3. I am including file #include <asm/mpc8260.h> for using define
> request_8xxirq.But I am not
> able to include this define.
> 4. I am including file <asm/irq.h> for using define SIU_INT_FCC1. But I
> am not able
> to include this define.
> Do I am missing something ? I have same CC_OPTION as mentioned above.
> Does anything matter
> with kernel version?
>
Not sure about these problems, but it sounds like you are trying to
build the module standalone, instead of as part of the kernel's "make
modules". I would recommend the latter as it makes it easier to pick up
the correct gcc flags.
Alex
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: m8260_cpm_dpfree( )
2003-07-28 14:49 ` Alex Zeffertt
@ 2003-07-28 20:13 ` Adam Kaczynski
2003-07-29 6:15 ` Pantelis Antoniou
0 siblings, 1 reply; 4+ messages in thread
From: Adam Kaczynski @ 2003-07-28 20:13 UTC (permalink / raw)
To: Alex Zeffertt; +Cc: Sanjay Kumar, linuxppc-embedded@lists.linuxppc.org
Alex Zeffertt wrote:
> Sanjay,
>>1. where can I get m8260_cpm_dpfree() function implementation ?
> You could try porting the dpfree function in
> arch/ppc/8xx_io/commproc.c. However, this function should only really
> be necessary if you wish to rmmod the driver.
>
I had the same problem last year when I was working with the simple ATM
driver
(http://www.dgt-lab.com.pl/Serwis/ATMdrv8260.tar.gz )
and I decided to make a kind of not very nice looking work-around -
simply to grab and later free the block of memory I needed from the top.
This feature was important for us to debug the driver since I was able
to load, test and later rmmod the driver. However this work-around would
work only if the driver is loaded as the last one (from the drivers
using dp_mem).
I think that there is no reason to implement any more robust allocator
for dp memory since it is used only for very special purposes, allocated
only during drivers initialization and because this resource is so
limited that any normal allocation mechanism (with a pool of memory
blocks) would be inefficient.
Regards,
Adam
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: m8260_cpm_dpfree( )
2003-07-28 20:13 ` Adam Kaczynski
@ 2003-07-29 6:15 ` Pantelis Antoniou
0 siblings, 0 replies; 4+ messages in thread
From: Pantelis Antoniou @ 2003-07-29 6:15 UTC (permalink / raw)
To: Adam Kaczynski
Cc: Alex Zeffertt, Sanjay Kumar, linuxppc-embedded@lists.linuxppc.org
Adam Kaczynski wrote:
>
> Alex Zeffertt wrote:
>
>> Sanjay,
>>
>>> 1. where can I get m8260_cpm_dpfree() function implementation ?
>>
>> You could try porting the dpfree function in
>> arch/ppc/8xx_io/commproc.c. However, this function should only really
>> be necessary if you wish to rmmod the driver.
>>
>
> I had the same problem last year when I was working with the simple ATM
> driver
> (http://www.dgt-lab.com.pl/Serwis/ATMdrv8260.tar.gz )
> and I decided to make a kind of not very nice looking work-around -
> simply to grab and later free the block of memory I needed from the top.
>
> This feature was important for us to debug the driver since I was able
> to load, test and later rmmod the driver. However this work-around would
> work only if the driver is loaded as the last one (from the drivers
> using dp_mem).
>
> I think that there is no reason to implement any more robust allocator
> for dp memory since it is used only for very special purposes, allocated
> only during drivers initialization and because this resource is so
> limited that any normal allocation mechanism (with a pool of memory
> blocks) would be inefficient.
>
> Regards,
> Adam
>
>
>
>
>
Hi
I just want to point out that I have posted a solution to that problem
some time
ago for the 8xx.
Try searching the list for the patches, they implement a proper
dpalloc/dpfree
with storage management.
Regards
Pantelis
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-07-29 6:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-28 13:15 m8260_cpm_dpfree( ) Sanjay Kumar
2003-07-28 14:49 ` Alex Zeffertt
2003-07-28 20:13 ` Adam Kaczynski
2003-07-29 6:15 ` Pantelis Antoniou
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).