diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2015-08-20 07:54:14 +0300 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2015-08-28 05:40:28 +0300 |
commit | 9cc264a3aac2ca62d8a2e13c8f13c8ef8567550b (patch) | |
tree | 8a418d19662b425f4b63017d9cd4e99d4980d569 /drivers | |
parent | cd821077aa7f180f83f3a5d60ec47cb75d56fd37 (diff) | |
download | linux-9cc264a3aac2ca62d8a2e13c8f13c8ef8567550b.tar.xz |
drm/nouveau/falcon: switch to gpuobj accessor macros
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/engine/falcon.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/falcon.c b/drivers/gpu/drm/nouveau/nvkm/engine/falcon.c index dcf1782675fe..d2849ece1ba6 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/falcon.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/falcon.c @@ -175,8 +175,10 @@ _nvkm_falcon_init(struct nvkm_object *object) return ret; } + nvkm_kmap(falcon->core); for (i = 0; i < falcon->code.size; i += 4) - nv_wo32(falcon->core, i, falcon->code.data[i / 4]); + nvkm_wo32(falcon->core, i, falcon->code.data[i / 4]); + nvkm_done(falcon->core); } /* upload firmware bootloader (or the full code segments) */ |