Skip to contentSkip to conversation

Read write to ioremap_nocache are still cached?

DISCUSSION Subodh Nijsure 1 participant 1 message Jul 11, 2001

lore
Share & tools
lore
#0 lore raw

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/