linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* m8260_cpm_hostalloc() data reads incorrect data
@ 2003-11-06 14:52 Petersen, David (MED, GEMS-IT)
  2003-11-07 16:26 ` Dan Malek
  0 siblings, 1 reply; 2+ messages in thread
From: Petersen, David (MED, GEMS-IT) @ 2003-11-06 14:52 UTC (permalink / raw)
  To: linuxppc-embedded


	I am working on a platform with an mpc8270 processor running a
kernel from the latest 2.4 development tree.  I have created a driver based
on uart.c for one of the SCCs.
The receive buffers are allocated using the m8260_cpm_hostalloc(). I am
getting receive interrupts and verfied that the data is written by the cpm
to the correct physical memory location using a logic analyzer. However the
data that is read from the buffer is incorrect.  As a sanity check, I
allocated my buffers using m8260_cpm_dpalloc() and I then read the correct
data.

	I've looked through the hostalloc function as well as the
__alloc_bootmem() function that initially allocates two pages of data for
the CPM in mpc8260_cpm_reset(). It is unclear to me how this memory can be
in a PAGE_NO_CACHE region as it needs to be for the CPM. I'm not sure if it
is something in my system initialization that would put the memory that
alloc_bootmem() uses in a noncacheable area or if the memory initially
allocated for the CPM in mpc8260_cpm_reset() needs to be done differently.


Tom

** 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:[~2003-11-07 16:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-06 14:52 m8260_cpm_hostalloc() data reads incorrect data Petersen, David (MED, GEMS-IT)
2003-11-07 16:26 ` 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).