drm/nouveau/core: recognise GP107 chipset
Subsystems (3)
PATCH 1/1 drm/nouveau/core: recognise GP107 chipset
From: Chris Chiu <[email protected]>
This new graphics card was failing to initialize with nouveau due to an "unknown chipset" error.
Copy the GP106 configuration and rename for GP107/NV137. We don't know for certain that this is fully correct, but brief desktop testing suggests this is working fine.
--- drivers/gpu/drm/nouveau/nvkm/engine/device/base.c | 29 +++++++++++++++++++++++ 1 file changed, 29 insertions(+)
drivers/gpu/drm/nouveau/nvkm/engine/device/base.c +29 -0
@@ -2237,6 +2237,34 @@ nv136_chipset = { .fifo = gp100_fifo_new, }; +static const struct nvkm_device_chip +nv137_chipset = { + .name ="GP107" , + .bar = gf100_bar_new, + .bios = nvkm_bios_new, + .bus = gf100_bus_new, + .devinit = gm200_devinit_new, + .fb = gp104_fb_new, + .fuse = gm107_fuse_new, + .gpio = gk104_gpio_new, + .i2c = gm200_i2c_new, + .ibus = gm200_ibus_new, + .imem = nv50_instmem_new, + .ltc = gp100_ltc_new, + .mc = gp100_mc_new, + .mmu = gf100_mmu_new, + .pci = gp100_pci_new, + .timer = gk20a_timer_new, + .top = gk104_top_new, + .ce[0 ] = gp104_ce_new, + .ce[1 ] = gp104_ce_new, + .ce[2 ] = gp104_ce_new, + .ce[3 ] = gp104_ce_new, + .disp = gp104_disp_new, + .dma = gf119_dma_new, + .fifo = gp100_fifo_new, +}; +static int nvkm_device_event_ctor (struct nvkm_object *object,void *data,u32 size,struct nvkm_notify *notify)
@@ -2673,6 +2701,7 @@ nvkm_device_ctor(const struct nvkm_device_func *func,case 0x130 : device->chip = &nv130_chipset;break ;case 0x134 : device->chip = &nv134_chipset;break ;case 0x136 : device->chip = &nv136_chipset;break ; +case 0x137 : device->chip = &nv137_chipset;break ;default :nvdev_error (device,"unknown chipset (%08x)\n" , boot0); goto done;
Signature · 6 lines
2.9.3 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
A message that is not in the archive (sent off-list or not yet received): 20170214193419.16711-1-drake-6IF/jdPJHihWk0Htik3J/[email protected]
I believe what's missing at this point is a mmiotrace of the NVIDIA driver to make sure that there's nothing different about this GPU. If you can make one (see https://wiki.ubuntu.com/X/MMIOTracing for a guide - should end up ~100MB uncompressed), please send a compressed one to [email protected] or make available some other way.
Quoted 65 lines · Daniel Drake
From: Chris Chiu <[email protected]>
This new graphics card was failing to initialize with nouveau due to an "unknown chipset" error.
Copy the GP106 configuration and rename for GP107/NV137. We don't know for certain that this is fully correct, but brief desktop testing suggests this is working fine.
Signed-off-by Chris Chiu <[email protected]>Signed-off-by Daniel Drake <[email protected]>--- drivers/gpu/drm/nouveau/nvkm/engine/device/base.c | 29 +++++++++++++++++++++++ 1 file changed, 29 insertions(+)drivers/gpu/drm/nouveau/nvkm/engine/device/base.c +29
-1@@ -2237,6 +2237,34 @@ nv136_chipset = { .fifo = gp100_fifo_new, }; +static const struct nvkm_device_chip +nv137_chipset = { + .name ="GP107" , + .bar = gf100_bar_new, + .bios = nvkm_bios_new, + .bus = gf100_bus_new, + .devinit = gm200_devinit_new, + .fb = gp104_fb_new, + .fuse = gm107_fuse_new, + .gpio = gk104_gpio_new, + .i2c = gm200_i2c_new, + .ibus = gm200_ibus_new, + .imem = nv50_instmem_new, + .ltc = gp100_ltc_new, + .mc = gp100_mc_new, + .mmu = gf100_mmu_new, + .pci = gp100_pci_new, + .timer = gk20a_timer_new, + .top = gk104_top_new, + .ce[0 ] = gp104_ce_new, + .ce[1 ] = gp104_ce_new, + .ce[2 ] = gp104_ce_new, + .ce[3 ] = gp104_ce_new, + .disp = gp104_disp_new, + .dma = gf119_dma_new, + .fifo = gp100_fifo_new, +}; +static int nvkm_device_event_ctor (struct nvkm_object *object,void *data,u32 size,struct nvkm_notify *notify)@@ -2673,6 +2701,7 @@ nvkm_device_ctor(const struct nvkm_device_func *func,case 0x130 : device->chip = &nv130_chipset;break ;case 0x134 : device->chip = &nv134_chipset;break ;case 0x136 : device->chip = &nv136_chipset;break ; +case 0x137 : device->chip = &nv137_chipset;break ;default :nvdev_error (device,"unknown chipset (%08x)\n" , boot0); goto done; --2.9.3
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau