drm/nouveau/xtensa: switch to gpuobj accessor macros
authorBen Skeggs <bskeggs@redhat.com>
Thu, 20 Aug 2015 04:54:14 +0000 (14:54 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 28 Aug 2015 02:40:28 +0000 (12:40 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/engine/xtensa.c

index dd5cef1d63302ca09b8359aade674bfb4f2316e0..974d7a0d7a36bbd89cabfbb7d62a686470eafe39 100644 (file)
@@ -120,8 +120,10 @@ _nvkm_xtensa_init(struct nvkm_object *object)
                nvkm_debug(subdev, "Loading firmware to address: %010llx\n",
                           xtensa->gpu_fw->addr);
 
+               nvkm_kmap(xtensa->gpu_fw);
                for (i = 0; i < fw->size / 4; i++)
-                       nv_wo32(xtensa->gpu_fw, i * 4, *((u32 *)fw->data + i));
+                       nvkm_wo32(xtensa->gpu_fw, i * 4, *((u32 *)fw->data + i));
+               nvkm_done(xtensa->gpu_fw);
                release_firmware(fw);
        }