Does libpciaccess support two screen share one pci clone mode ?
idr at freedesktop.org
Mon Nov 17 10:38:09 PST 2008
On Thu, Nov 13, 2008 at 02:52:19PM +0800, FloraGui at viatech.com.cn wrote:
> Recently I study libpciaccess, found pci_device_map_range
> function, when map the same physical address and the same size will
> If we use libpciaccess and want support two screen which share one
> pci, they are mmio base is the same physical address and the size is the
> same, when the second screeninit goto pci_device_map_range, screeninit
> will failed.
If you're doing clone mode within one driver, you shouldn't need to map
the device twice. Map the device memory once and use the same mapping from
both screens. I'm pretty sure that's how other drviers do it.
Just out of curiosity, what device are you working on?
> And we can not light device.
> I want to ask two question:
> 1. Does the libpciaccess support two screen share one pci ?
> 2. If not support, we can do same issue in 2D driver , but I
> can see the nv and intel do nothing , it confused me a lot.
More information about the xorg