Skip to contentSkip to conversation

XVR-500 support in XVR-2500 driver?

DISCUSSION Meelis Roos 4 participants 7 messages May 7, 2007 – May 8, 2007 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

The newly merged XVR-500 and XVR-2500 drivers both seem to have PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x7a2) (XVR-500) support in pci device table. Is this correct?

Just curiously reading new drivers,

Signature · 1 line
Meelis Roos ([email protected])
#1 lore raw

From: Meelis Roos <[email protected]>
Date: Mon, 7 May 2007 23:21:44 +0300 (EEST)

Quoted 5 lines

The newly merged XVR-500 and XVR-2500 drivers both seem to have PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x7a2) (XVR-500) support in pci device table. Is this correct?

Just curiously reading new drivers,

Thanks for catching this.

Originally I handled both chips in one driver, then I split them up, that's why it was there. I'll fix that up :)

#2 lore raw
In reply to Meelis Roos

From: David Miller <[email protected]>
Date: Mon, 07 May 2007 13:54:51 -0700 (PDT)

Quoted 7 lines

From: Meelis Roos <[email protected]>
Date: Mon, 7 May 2007 23:21:44 +0300 (EEST)

Quoted 4 lines

The newly merged XVR-500 and XVR-2500 drivers both seem to have PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x7a2) (XVR-500) support in pci device table. Is this correct?

Quoted 6 lines
Quoted 1 line

Just curiously reading new drivers,

Thanks for catching this.

Originally I handled both chips in one driver, then I split them up, that's why it was there. I'll fix that up :)

Here is that fix I will push to Linus, thanks again.

commit de9f0cf93fcbccc2de4e6bcb5ef90f997616be3b

Author: David S. Miller <[email protected]>
Date:   Mon May 7 14:02:51 2007 -0700

[VIDEO] sunxvr2500: Fix PCI device ID table.

Noticed by Meelis Roos.

drivers/video/sunxvr2500.c +8 -8
index 4010492..4316c7f 100644
@@ -237,14 +237,14 @@ static void __devexit s3d_pci_unregister(struct pci_dev *pdev)
 }
 
 static struct pci_device_id s3d_pci_table[] = {
-	{	/* XVR-2500 */
-		PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x0032),
-		.driver_data = 1,
-	},
-	{	/* XVR-500 */
-		PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x07a2),
-		.driver_data = 0,
-	},
+	{	PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x002c),	},
+	{	PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x002d),	},
+	{	PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x002e),	},
+	{	PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x002f),	},
+	{	PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x0030),	},
+	{	PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x0031),	},
+	{	PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x0032),	},
+	{	PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x0033),	},
 	{ 0, }
 };
 
#3 lore raw
In reply to Meelis Roos
Quoted 10 lines · David Miller

From: David Miller <[email protected]>
Date: Mon, 07 May 2007 13:54:51 -0700 (PDT)

Quoted 7 lines

From: Meelis Roos <[email protected]>
Date: Mon, 7 May 2007 23:21:44 +0300 (EEST)

Quoted 4 lines

The newly merged XVR-500 and XVR-2500 drivers both seem to have PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x7a2) (XVR-500) support in pci device table. Is this correct?

Quoted 8 lines
Quoted 6 lines
Quoted 1 line

Just curiously reading new drivers,

Thanks for catching this.

Originally I handled both chips in one driver, then I split them up, that's why it was there. I'll fix that up :)

Here is that fix I will push to Linus, thanks again.

Dave,

Thanks for these drivers, fills a much requested void!

Do you know if there is a matching xorg driver to go along with the kernel implementation?

~spot

#4 lore raw
In reply to Meelis Roos

From: "Tom \"spot\" Callaway" <[email protected]>
Date: Mon, 07 May 2007 16:23:41 -0500

Quoted 4 lines

Thanks for these drivers, fills a much requested void!

Do you know if there is a matching xorg driver to go along with the kernel implementation?

I reverse engineered the hardware by poking at these chips from the firmware prompt for nearly a week, so what's there is the best I could come up with.

Using the 'fbdev' driver, Xorg should just work with the XVR2500 but there will be an ugly white boarder around the graphics screen just as the current kernel console will have. The board comes up in 32bpp mode so that's what you'll need to use in xorg.conf

I cannot say the same for the XVR500 because of the funny mode the framebuffer comes up in from the OBP.

So until I make some more progress reverse engineering these cards, support is still currently half-assed.

At least there is some native kernel text console for this chips now.

Ideally I should be able to get it to the point where dumb framebuffer Xorg support should work fully for both chips. However, I doubt I'll be able to add hw acceleration any time soon as these chips are very complicated (they use DMA commands to do hardware rendering etc.), are completely undocumented, and there's zero chance 3dlabs is going to ever release the specs for these board to help the effort along.

#5 lore raw
In reply to Meelis Roos
Quoted 15 lines · David Miller
drivers/video/sunxvr2500.c +0 -6
index 4010492..4316c7f 100644
@@ -237,14 +237,14 @@ static void __devexit s3d_pci_unregister(struct pci_dev *pdev)
 }
 
 static struct pci_device_id s3d_pci_table[] = {
-	{	/* XVR-2500 */
-		PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x0032),
-		.driver_data = 1,
-	},
-	{	/* XVR-500 */
-		PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x07a2),

drivers/video/sunxvr2500.c static void __devexit s3d_pci_unregister(struct pci_dev *pdev) · line 247

Quoted 10 lines
drivers/video/sunxvr2500.c +8 -2
-		.driver_data = 0,
-	},
+	{	PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x002c),	},
+	{	PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x002d),	},
+	{	PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x002e),	},
+	{	PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x002f),	},
+	{	PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x0030),	},
+	{	PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x0031),	},
+	{	PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x0032),	},
+	{	PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x0033),	},

The extra comma inside the { } is not needed, is it?

Jan

#6 lore raw
In reply to Meelis Roos

From: Jan Engelhardt <[email protected]>
Date: Tue, 8 May 2007 10:50:56 +0200 (MEST)

Quoted 21 lines · David Miller
Quoted 19 lines
drivers/video/sunxvr2500.c +2 -8
index 4010492..4316c7f 100644
@@ -237,14 +237,14 @@ static void __devexit s3d_pci_unregister(struct pci_dev *pdev)
 }
 
 static struct pci_device_id s3d_pci_table[] = {
-	{	/* XVR-2500 */
-		PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x0032),
-		.driver_data = 1,
-	},
-	{	/* XVR-500 */
-		PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x07a2),
-		.driver_data = 0,
-	},
+	{	PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x002c),	},
+	{	PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x002d),	},
Quoted 8 lines

drivers/video/sunxvr2500.c static void __devexit s3d_pci_unregister(struct pci_dev *pdev) · line 247

Quoted 6 lines
drivers/video/sunxvr2500.c +6 -0
+	{	PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x002e),	},
+	{	PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x002f),	},
+	{	PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x0030),	},
+	{	PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x0031),	},
+	{	PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x0032),	},
+	{	PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x0033),	},

The extra comma inside the { } is not needed, is it?

No, but if later I want to fill in more fields per entry I will indeed need that comma there.