On 01/09/2007 12:32 PM, Bahadir Balban wrote:
When and how are PCI IO regions virtually mapped in linux? I have
some PCI ethernet device working OK, which has some IO regions, but
enabling IDE panics the kernel as IDE tries to access IO region of
the IDE device in physical. Do you have any idea why this happens?
Not very clearly formulated, but "tries to access the IO region [...] in
physical" sounds like you are directly adressing using physical (bus)
addresses? Note that the kernel _always_ speaks virtual adresses -- to
talk to IO you need to ioremap() the physical adresses (in this case,
the adresses you get from the PCI BARs). So, "look into ioremap()" might
be the advice you need.
Rene.
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/