lkml.org 
[lkml]   [2003]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectioremap_nocache() behavior

Hi

I am testing the Device driver for a PCI network device on linux-2.4.19
and x86 platform.

I have noticed that the system hangs when I do a writel to a PCI MMIO
region. I tried ioremap_nocache() instead of ioremap() and the behavior
was unpredictable. It hung in a few cases and didn't hang in others. If I
did ioremap_nocache() just before calling writel(), writel seems to work
fine. I have checked the Base address in PCI configuration space using
"lspci -x" command and the driver is getting the correct values.

Any guesses why I am getting this problem? It would be very helpful for me
even if you can give a very vague idea.

One more question - How do I unmap the memory remapped using
ioremap_nocache()?

Thanks in advance.

Madhavi.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:32    [W:0.038 / U:6.900 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site