Skip to contentSkip to conversation

nouveau: Allow 3D accelerators with output ports

PATCH Superseded Marek Vasut 2 participants 2 messages Apr 26, 2013 – Apr 28, 2013 1 message not in the archive

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nouveau: Allow 3D accelerators with output ports

This patch let's cards with PCI class 0x30200 (3D controller) be operated by the nouveau driver as well. The nv Quadro NVS 450 is one such card, where the first GPU has PCI class 0x30000 and the other GPU has PCI class 0x30200. By ignoring the 1 << 9 bit in the PCI class mask, displays attached to the other GPU can also be used now.

---
 src/nv_driver.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

NOTE: I might have sent this to the wrong ML, this is my first
time submitting a nouveau patch.

src/nv_driver.c +1 -1
index 2b74fc6..0dce0aa 100644
@@ -60,7 +60,7 @@ static Bool	NVUnmapMem(ScrnInfoPtr pScrn);
 
 #define NOUVEAU_PCI_DEVICE(_vendor_id, _device_id)                             \
 	{ (_vendor_id), (_device_id), PCI_MATCH_ANY, PCI_MATCH_ANY,            \
-	  0x00030000, 0x00ffffff, 0 }
+	  0x00030000, 0x00fffdff, 0 }
 
 static const struct pci_id_match nouveau_device_match[] = {
 	NOUVEAU_PCI_DEVICE(0x12d2, PCI_MATCH_ANY),
Signature · 1 line
1.7.10.4

A message that is not in the archive (sent off-list or not yet received): 1367004188-8892-1-git-send-email-marex-ynQEQJNshbs@public.gmane.org

#2 lore raw

Hm, I expect you can probably just change the mask to 0x00ff0000, which is what our kernel module accepts anyway.

Quoted 31 lines · Marek Vasut

This patch let's cards with PCI class 0x30200 (3D controller) be operated by the nouveau driver as well. The nv Quadro NVS 450 is one such card, where the first GPU has PCI class 0x30000 and the other GPU has PCI class 0x30200. By ignoring the 1 << 9 bit in the PCI class mask, displays attached to the other GPU can also be used now.

---
 src/nv_driver.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

NOTE: I might have sent this to the wrong ML, this is my first
time submitting a nouveau patch.

src/nv_driver.c +1 -1
index 2b74fc6..0dce0aa 100644
@@ -60,7 +60,7 @@ static Bool   NVUnmapMem(ScrnInfoPtr pScrn);
 
 #define NOUVEAU_PCI_DEVICE(_vendor_id, _device_id)
      \
        { (_vendor_id), (_device_id), PCI_MATCH_ANY, PCI_MATCH_ANY,
     \
-         0x00030000, 0x00ffffff, 0 }
+         0x00030000, 0x00fffdff, 0 }
 
 static const struct pci_id_match nouveau_device_match[] = {
        NOUVEAU_PCI_DEVICE(0x12d2, PCI_MATCH_ANY),
Quoted 8 lines

--
1.7.10.4

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau