FreeBSD: 'failed to set mtrr: No space left on device' is printed on some systems
Submitted by Yuri
Assigned to ajax @ajax
Description
I find this message in kdm.log on FreeBSD-9.0 when I try to start kde4.
Investigating a bit, I got this information:
This message is printed by package libpciaccess-0.12.1, file src/freebsd_pci.c in it. Rebuilding this package doesn't help.
The error 'failed to set mtrr: No space left on device' results from system call ioctl(fd, MEMRANGE_SET, &mro) @ freebsd_pci.c:146. fd there is the fd for /dev/mem Parameters of this ioctl call are (mro.r.mr_base=40000000 mro.r.mr_len=10000000 mro.r.mr_flags=2 mro.r.mr_owner="pciacces" mro.mo_arg[0]=0 mro.mmo_arg[1]=0)
This system only has 1GB memory, mr_base=40000000 is already at 1GB, so mr_len=10000000 makes it out of range? That's why it maybe failed.
This issue is also mentioned in FreeBSD PR#ports/164350
libpciaccess-0.12.1