All of lore.kernel.org
 help / color / mirror / Atom feed
* xorg-server-1.5.2 doesn't work because of missing sysfs pci resource files
@ 2008-12-05 15:43 Zhang Le
  2008-12-05 17:59 ` Arnaud Patard
  2008-12-06 10:20 ` Ralf Baechle
  0 siblings, 2 replies; 11+ messages in thread
From: Zhang Le @ 2008-12-05 15:43 UTC (permalink / raw)
  To: linux-mips

Hi, all,

I have tried xorg-server-1.5.2 on loongson 2f recently.
But I found it doesn't work.
It's mainly because of this change:
http://www.x.org/wiki/PciReworkProposal

In short:
"Rather than duplicating the efforts of kernel developers, X.org needs to use the
interfaces provided by the kernel as much as possible."

I have read some code of libpciaccess, the new library utilizing kernel function
to access pci bus. It will try to mmap this file:
/sys/bus/pci/devices/0000:0x:xx.x/resource0
(replace x with any digit appropriate)
Note there is a 0 at the end of the file name. This file's permission is 600.

However, I found on my loongson system, there is only 
/sys/bus/pci/devices/0000:0x:xx.x/resource
Note there is no 0 at the end.

Then I tried to read kernel code. I found it seems that for mips linux to have
this file, HAVE_PCI_MMAP must be defined. However, it is currently not defined.

Since I am not familiar with PCI, yet.
So could someone please shed some light on this?
Why HAVE_PCI_MMAP is not defined?

Thanks in advance!

Zhang, Le

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-12-09 19:01 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-05 15:43 xorg-server-1.5.2 doesn't work because of missing sysfs pci resource files Zhang Le
2008-12-05 17:59 ` Arnaud Patard
2008-12-05 18:08   ` Ralf Baechle
2008-12-06 10:20 ` Ralf Baechle
2008-12-06 16:47   ` Zhang Le
2008-12-09 17:22     ` Zhang Le
2008-12-09 17:39       ` Zhang Le
2008-12-09 17:57         ` Ralf Baechle
2008-12-09 18:17   ` Arnaud Patard
2008-12-09 18:36     ` Ralf Baechle
2008-12-09 19:01       ` Arnaud Patard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.