Skip to contentSkip to conversation

Problem with mmap( ) in linux ppc!

DISCUSSION Anand Gurumurthy 2 participants 2 messages Mar 10, 2003 Memory management

lore
Share & tools
lore
#0 lore raw

Hi,
We have a driver for a communication card which has memory mapped IO.We are using redhat 2.2.14 kernel on intel p3 processor. The driver has an mmap entry point to map device memory into the user space using remap_page_range(). It works fine with intel P3. When we try to use the same driver with ppc linux 2.2.17 kernel, the mmap system call does not map the proper device memory.Is there anything extra required for using mmap with ppc? Please help me with your suggestions.

Thanks,
Anand Gurumurthy.

#1 lore raw
Quoted 7 lines · Anand Gurumurthy

Hi,
We have a driver for a communication card which has memory mapped IO
We are using redhat 2.2.14 kernel on intel p3 processor. The driver has an mmap entry point to map device memory into the user space using remap_page_range(). It works fine with intel P3. When we try to use the same driver with ppc linux 2.2.17 kernel, the mmap system call does not map the proper device memory.Is there anything extra required for using mmap with ppc? Please help me with your suggestions.

You may have some remapping going on the bus, it depends which PPC machine you are using (how it's host bridge is confiured). 2.2 kernel didn't deal with that as transparently as 2.4 do. Just a guess... I don't know much about your HW

Ben.