Add Pascal family support, identical to Maxwell
PATCH v2 1/1 Add Pascal family support, identical to Maxwell
Signed-off-by Ilia Mirkin <[email protected]>
---
v1 -> v2: add 0x130 as a valid chip type early on in detection
src/nouveau_copy.c | 2 ++ src/nouveau_exa.c | 1 + src/nv_accel_common.c | 1 + src/nv_driver.c | 4 ++++ src/nv_type.h | 1 + src/nvc0_accel.c | 6 ++++++ 6 files changed, 15 insertions(+)
src/nouveau_copy.c +2 -0
@@ -42,6 +42,7 @@ nouveau_copy_init(ScreenPtr pScreen)int engine;Bool (*init)(NVPtr); } methods[] = { + { 0xc1b5, 0, nouveau_copya0b5_init }, { 0xc0b5, 0, nouveau_copya0b5_init }, { 0xb0b5, 0, nouveau_copya0b5_init }, { 0xa0b5, 0, nouveau_copya0b5_init },
@@ -84,6 +85,7 @@ nouveau_copy_init(ScreenPtr pScreen)break ;case NV_KEPLER :case NV_MAXWELL : +case NV_PASCAL : ret = nouveau_object_new(&pNv->dev->object, 0, NOUVEAU_FIFO_CHANNEL_CLASS, &(struct nve0_fifo) {
src/nouveau_exa.c +1 -0
@@ -515,6 +515,7 @@ nouveau_exa_init(ScreenPtr pScreen)case NV_FERMI :case NV_KEPLER :case NV_MAXWELL : +case NV_PASCAL : exa->CheckComposite = NVC0EXACheckComposite; exa->PrepareComposite = NVC0EXAPrepareComposite; exa->Composite = NVC0EXAComposite;
src/nv_accel_common.c +1 -0
@@ -723,6 +723,7 @@ NVAccelCommonInit(ScrnInfoPtr pScrn)case NV_FERMI :case NV_KEPLER :case NV_MAXWELL : +case NV_PASCAL : INIT_CONTEXT_OBJECT(3D_NVC0);break ;case NV_TESLA :
src/nv_driver.c +4 -0
@@ -391,6 +391,7 @@ NVHasKMS(struct pci_device *pci_dev, struct xf86_platform_device *platform_dev)case 0x100 :case 0x110 :case 0x120 : +case 0x130 :break ;default :xf86DrvMsg (-1 ,X_ERROR ,"Unknown chipset: NV%02X\n" , chipset);
@@ -945,6 +946,9 @@ NVPreInit(ScrnInfoPtr pScrn, int flags)case 0x120 : pNv->Architecture =NV_MAXWELL ;break ; +case 0x130 : + pNv->Architecture =NV_PASCAL ; +break ;default :return FALSE; }
src/nv_type.h +1 -0
@@ -23,6 +23,7 @@#define NV_FERMI 0xc0#define NV_KEPLER 0xe0#define NV_MAXWELL 0x110 +#define NV_PASCAL 0x130struct xf86_platform_device ;
src/nvc0_accel.c +6 -0
@@ -250,6 +250,12 @@ NVAccelInit3D_NVC0(ScrnInfoPtr pScrn) }else if (pNv->dev->chipset <0x130 ) { class =0xb197 ; handle =0x0000906e ; + }else if (pNv->dev->chipset ==0x130 ) { + class =0xc097 ; + handle =0x0000906e ; + }else if (pNv->dev->chipset <0x140 ) { + class =0xc197 ; + handle =0x0000906e ; }else { xf86DrvMsg(pScrn->scrnIndex, X_INFO, "No 3D acceleration support for NV%X\n",
Signature · 6 lines
2.10.2 _______________________________________________ Nouveau mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/nouveau