mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 14:14:37 +00:00
drm/nouveau/falcon: switch to gpuobj accessor macros
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
cd821077aa
commit
9cc264a3aa
1 changed files with 3 additions and 1 deletions
|
@ -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) */
|
||||
|
|
Loading…
Reference in a new issue