linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Read write to ioremap_nocache are still cached?
@ 2001-07-11  2:35 Subodh Nijsure
  0 siblings, 0 replies; only message in thread
From: Subodh Nijsure @ 2001-07-11  2:35 UTC (permalink / raw)
  To: linuxppc-embedded


Hello,

I have mapped memory area using ioremap_nocache() and what I observered
through logica analyzer is when I do simple word read or write there are
multiple read/write cycles happening on  the same address.

Code looks something like this --

	printk("Write reset word to PLD and read new stauts\n");
	pld_base = ioremap_nocache( physical_pld_address );
	*(pld_base + 0x8) = 0xA;
	newStatus = *(pld_base + 0x4);
	printk("Status word is %X \n",newStatus);

If I just move this code to by bootrom read/writes happen exactly
as I expect,  but when I move this code to kernel I see multiple
 read and writes. What could be the reason? Note this routine is
not called multiple times.

/Subodh


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-07-11  2:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-11  2:35 Read write to ioremap_nocache are still cached? Subodh Nijsure

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).