All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] implement syscall pciconfig_iobase
@ 2009-02-20 13:01 Zhang Le
  2009-02-20 14:51 ` Ralf Baechle
  0 siblings, 1 reply; 4+ messages in thread
From: Zhang Le @ 2009-02-20 13:01 UTC (permalink / raw)
  To: linux-mips

This is for xorg-server support.

Currently, xorg-server on loongson need a patch:
http://www.gentoo-cn.org/gitweb/?p=loongson;a=blob;f=x11-base/xorg-server/files/xorg-server-1.5.3-loongson.patch;h=9c48b3752b7f14b6603524f46ae832f312e7c6fe;hb=HEAD#l37
Please note that line 37, the last parameter to mmap, which is the ioBase_phys,
is hardcoded.

This patch no long applies to xorg-server git master.
So I took at look at the code trying to find out why. And then I found powerpc
has implemented this syscall: pciconfig_iobase

Please take a look at the following code:
http://cgit.freedesktop.org/xorg/xserver/tree/hw/xfree86/os-support/linux/lnx_video.c#n517

At the first glance, it is absolutely a good idea to implement this for mips,
too. However when I read pciconfig_iobase's manpage, I found this sentence:

       Most  of  the interaction with PCI devices is already handled by the
       kernel PCI layer, and thus these calls should not normally need to be
       accessed from userspace.

So I decided to bring this issue here, so that you guys could give me some
advice.

Thanks in advance!

Zhang, Le

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

end of thread, other threads:[~2009-02-21  7:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-20 13:01 [RFC] implement syscall pciconfig_iobase Zhang Le
2009-02-20 14:51 ` Ralf Baechle
2009-02-20 16:50   ` Zhang Le
2009-02-21  7:03   ` Zhang Le

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.