projects
/
platform
/
kernel
/
linux-starfive.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
8ad31b4
..
36b3424
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;