How make two same videocards work in Qnx 6.3.2?

Hello. Sorry for my poor english.
I have a problem in situation with 2 same videocards.
I need use 4 monitors on one PC.
for this purpose i got two radeon x1050 (0x5b60) and two radeon x550(0x5b63)(for experiments).
MB is Asus P5E (x38 chipset), CPU C2D E7200, 2 Gb RAM.
this motherboard has two PCI-E x16 slots.

before this moment, i had set one videocard for 2 monitors and it’s works.
now i added one videocard and photon stopped loading.

pci -v shows, that there are 2 videocars, but first is working, and second is disabled. how to enable second card?
i used such config file like for one card, just added same soctions for second card.

please, can u help me in this situation?

Hello Fregl,
You indicated that you “used such config file like for one card, just added same sections for second cardâ€

Here is my config file:

panel_format=1,use_rmx=1,skip_edid=0

[GLOBAL]
devices = radeon1 radeon2

[DEVICE.radeon1]
dllpath = devg-radeon.so
pci_vendor_id = 0x1002
pci_device_id = 0x5b63
pci_index = 0
displays = 2
plugins = photon
photon =

[DEVICE.radeon1.0]
xres = 1680
yres = 1050
refresh = 60
bitpp = 32
region_x = 0

[DEVICE.radeon1.1]
xres = 1680
yres = 1050
refresh = 60
bitpp = 32
region_x = 1680

[DEVICE.radeon2]
dllpath = devg-radeon.so
pci_vendor_id = 0x1002
pci_device_id = 0x5b63
pci_index = 1
displays = 2
plugins = photon
photon =

[DEVICE.radeon2.0]
xres = 1680
yres = 1050
refresh = 60
bitpp = 32
region_x = 0
region_y = 1050

[DEVICE.radeon2.1]
xres = 1680
yres = 1050
refresh = 60
bitpp = 32
region_x = 1680
region_y = 1050

[PLUGIN.photon]
dllpath = gri-photon.so
hwcursor


Well, it’s still doesn’t work.
I had changed hardware to:
MB GA-EP35-DS3P
CPU Pentium 3Ghz
but this didn’t help.
I think, problem lies in QNX, because it uses BIOS for init devices,againt MS Windows.
secondary video card still disabled.

I am interested if you find a solution. I have a cpu whose bios refuses to enable a 2nd video card.

If it’s disable you could write a program that enables it. The enable bit is standard in the PCI register set. Look it up on the web. This work for us ( but it’s not for a video card)

	{
		unsigned short  CommandId = 0x116;
		
		if ( pci_write_config16( PciDev.busNum, PciDev.devFuncNum, offsetof( struct _pci_config_regs, Command ),
				1,
				(char *)&CommandId) != PCI_SUCCESS )
		{
			printf("Can't write config\n");
		}
	}

i had found solution :smiley:
it’s very simple.
at begin i used graphics patch 400, but when i used driver from patch 171, second video card began work! :smiley:
use patch 171 :slight_smile:

Mario, Well now you have me thinking I can do this. I’ve looked at all the pci_* documentation in the book. I could not find anything on the web of real use. Your code seems a little bit vague. I’m able to do a pci_attach() and a pci_attach_device() on the device I want to enable. I don’t see the connection between pci_write_config16() and this device however. Is it just the case that having attached the device, I am now refering to it? Also what is with the 0x116? Are you saying this is an enable command for any device, or is that something I have to look up. Thanks for any info.

Mitchell