drm/nouveau/bar: remove NV_PMC_ENABLE_PFIFO twiddling
authorBen Skeggs <bskeggs@redhat.com>
Tue, 31 Oct 2017 17:56:19 +0000 (03:56 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 2 Nov 2017 03:32:17 +0000 (13:32 +1000)
It's handled by FIFO preinit() now.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c
drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c

index 1befe44..3a6b2e4 100644 (file)
@@ -124,9 +124,6 @@ gf100_bar_init(struct nvkm_bar *base)
        struct nvkm_device *device = bar->base.subdev.device;
        u32 addr;
 
-       nvkm_mask(device, 0x000200, 0x00000100, 0x00000000);
-       nvkm_mask(device, 0x000200, 0x00000100, 0x00000100);
-
        addr = nvkm_memory_addr(bar->bar[1].mem) >> 12;
        nvkm_wr32(device, 0x001704, 0x80000000 | addr);
 
index 4bfe6db..aca6550 100644 (file)
@@ -151,9 +151,6 @@ nv50_bar_init(struct nvkm_bar *base)
        struct nvkm_device *device = bar->base.subdev.device;
        int i;
 
-       nvkm_mask(device, 0x000200, 0x00000100, 0x00000000);
-       nvkm_mask(device, 0x000200, 0x00000100, 0x00000100);
-
        nvkm_wr32(device, 0x001704, 0x00000000 | bar->mem->addr >> 12);
        nvkm_wr32(device, 0x001704, 0x40000000 | bar->mem->addr >> 12);
        nvkm_wr32(device, 0x001708, 0x80000000 | bar->bar1->node->offset >> 4);