* DPRAM parameters for 860P
@ 2001-03-29 6:53 Subodh Nijsure
2001-03-29 19:09 ` Dan Malek
0 siblings, 1 reply; 2+ messages in thread
From: Subodh Nijsure @ 2001-03-29 6:53 UTC (permalink / raw)
To: linuxppc-embedded
Hello,
Currently the 2.4.2 code assumes that DPRAM is always 4KB has anybody
put together m8xx_cpm_dpalloc() that takes advantage of larger DPRAM on 860P?
->From arch/ppc/kernel/8xx_io/commproc.c
/* The dual ported RAM is multi-functional. Some areas can be (and are
* being) used for microcode. There is an area that can only be used
* as data ram for buffer descriptors, which is all we use right now.
* Currently the first 512 and last 256 bytes are used for microcode.
*/
#define CPM_DATAONLY_BASE ((uint)0x0800)
/*#define CPM_DATAONLY_SIZE ((uint)0x0700)*/
/* Above definition assumes we have 4KB DPRAM but 860P has 8KB, so
* we experiment. My RCCR , RMDS says DATA size of 0x3400 is safe
*/
#define CPM_DATAONLY_SIZE ((uint)0x3400)
#define CPM_DP_NOSPACE ((uint)0x7fffffff)
I have been running my system with above configuration for couple of days
without any problems. Are there any side effects I should be aware of?
2. Anybody knows if there a driver currently that uses the 8xx IDMA
to transfer data from a peripheral to CPU and back?
/Subodh Nijsure
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: DPRAM parameters for 860P
2001-03-29 6:53 DPRAM parameters for 860P Subodh Nijsure
@ 2001-03-29 19:09 ` Dan Malek
0 siblings, 0 replies; 2+ messages in thread
From: Dan Malek @ 2001-03-29 19:09 UTC (permalink / raw)
To: Subodh Nijsure; +Cc: linuxppc-embedded
Subodh Nijsure wrote:
> Currently the 2.4.2 code assumes that DPRAM is always 4KB has anybody
> put together m8xx_cpm_dpalloc() that takes advantage of larger DPRAM on 860P?
Well, you have the code, it is pretty easy to change it.
The intention is to allow Linux to run on all variants, and there
is plenty of DPRAM to support this. When I have done 860P projects,
they were custom platforms that required the use of the DPRAM for
special uses (like the ATM routing and scheduling tables). You also
have to consider microcode patches and any constraints they may place
on the DPRAM.
Due to the flexibility of the CPM and all of the different variants,
I'm not sure I could (or want to) put together a configuration script
to cover all of this. The kernel provides a starting point for everyone.
If we can find generally useful changes, that's fine, but I would like
to avoid the complexities of providing software useful to only one
person or platform. It's pretty hard to test the effects of any
changes when you do this.
Thanks.
-- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-03-29 19:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-29 6:53 DPRAM parameters for 860P Subodh Nijsure
2001-03-29 19:09 ` Dan Malek
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).