projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d52ddc9
)
drm/nouveau/imem: switch to kvmalloc/kvfree for suspend/resume backup
author
Ben Skeggs
<bskeggs@redhat.com>
Tue, 31 Oct 2017 17:56:19 +0000
(
03:56
+1000)
committer
Ben Skeggs
<bskeggs@redhat.com>
Thu, 2 Nov 2017 03:32:20 +0000
(13:32 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/instmem/base.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/base.c
b/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/base.c
index 8ad31b436fa0365e65edc0181a1c8ae7e6dd6d3f..36b3424149b3ddd0467566f2313b08575c798781 100644
(file)
--- a/
drivers/gpu/drm/nouveau/nvkm/subdev/instmem/base.c
+++ b/
drivers/gpu/drm/nouveau/nvkm/subdev/instmem/base.c
@@
-37,7
+37,7
@@
nvkm_instobj_load(struct nvkm_instobj *iobj)
for (i = 0; i < size; i += 4)
nvkm_wo32(memory, i, iobj->suspend[i / 4]);
- vfree(iobj->suspend);
+
k
vfree(iobj->suspend);
iobj->suspend = NULL;
}
@@
-48,7
+48,7
@@
nvkm_instobj_save(struct nvkm_instobj *iobj)
const u64 size = nvkm_memory_size(memory);
int i;
- iobj->suspend =
vmalloc(size
);
+ iobj->suspend =
kvmalloc(size, GFP_KERNEL
);
if (!iobj->suspend)
return -ENOMEM;