Commit edb1dc51 authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/xtensa: switch to gpuobj accessor macros

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 9cc264a3
...@@ -120,8 +120,10 @@ _nvkm_xtensa_init(struct nvkm_object *object) ...@@ -120,8 +120,10 @@ _nvkm_xtensa_init(struct nvkm_object *object)
nvkm_debug(subdev, "Loading firmware to address: %010llx\n", nvkm_debug(subdev, "Loading firmware to address: %010llx\n",
xtensa->gpu_fw->addr); xtensa->gpu_fw->addr);
nvkm_kmap(xtensa->gpu_fw);
for (i = 0; i < fw->size / 4; i++) 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); release_firmware(fw);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment