Hello! Quoting r. David S. Miller ([EMAIL PROTECTED]) "Re: mmap(/dev/mem) causing sigbus": > On Thu, 13 Jan 2005 15:12:14 -0800 > Tom Duffy <[EMAIL PROTECTED]> wrote: > > > It seems that there is an issue with either mmap or mmap'ing /dev/mem on > > sparc64. A tool (mstflint) for flashing firmware for Mellanox > > Infiniband HCA's is crashing on sparc64. It mmap's /dev/mem and when it > > accesses it, a bus error is generated. > > > > Should this work? > > It's not meant to be used at all. We have abstracted out a way > to portably mmap() pci devices by opening /proc/bus/pci/* nodes, > running the appropriate ioctl() to choose I/O or MEM space, > then mmap()'ing on the fd to mmap the PCI device resources. > > At the very least, i386 and ppc support this interface as well.
OK. I added an option for mmapping /proc/bus/pci, although I dont have the time to test it today, but I checked in disabled at compile time all the same. Tom, please clear CONFIG_USE_DEV_MEM at the top of mtcr.h and test, and let me know, this way I'll be able to work on it on sunday. mst _______________________________________________ openib-general mailing list [email protected] http://openib.org/mailman/listinfo/openib-general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
