Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 172dbac3 authored by Lucas Stach's avatar Lucas Stach
Browse files

drm/etnaviv: don't invoke OOM killer from dump code



The dumper is only a debugging aid so we don't want to invoke the OOM
killer if buffer for the potentially large GPU state can't be vmalloced.

Signed-off-by: default avatarLucas Stach <l.stach@pengutronix.de>
parent 5f4a4a73
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -160,7 +160,8 @@ void etnaviv_core_dump(struct etnaviv_gpu *gpu)
	file_size += sizeof(*iter.hdr) * n_obj;

	/* Allocate the file in vmalloc memory, it's likely to be big */
	iter.start = vmalloc(file_size);
	iter.start = __vmalloc(file_size, GFP_KERNEL | __GFP_HIGHMEM |
			       __GFP_NOWARN | __GFP_NORETRY, PAGE_KERNEL);
	if (!iter.start) {
		dev_warn(gpu->dev, "failed to allocate devcoredump file\n");
		return;