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

Commit f4335a86 authored by Pankaj Gupta's avatar Pankaj Gupta
Browse files

msm: kgsl: Remove excessive log in kgsl_snapshot_get_object



kgsl_snapshot_get_object prints error log when gpu buffer is no
longer available in shared mem. When a list of buffers are not
available in shared memory, this log may lead to hog the cpu and
may lead to watchdog timeout.

Removed this error log as it was not printing any useful info.

Change-Id: I63eb58b9947fcaa4808334aa64806ea69c691dc6
Signed-off-by: default avatarPankaj Gupta <gpankaj@codeaurora.org>
parent 07ffd7cf
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -335,10 +335,8 @@ int kgsl_snapshot_get_object(struct kgsl_snapshot *snapshot,

	entry = kgsl_sharedmem_find(process, gpuaddr);

	if (entry == NULL) {
		KGSL_CORE_ERR("Unable to find GPU buffer 0x%016llX\n", gpuaddr);
	if (entry == NULL)
		return -EINVAL;
	}

	/* We can't freeze external memory, because we don't own it */
	if (entry->memdesc.flags & KGSL_MEMFLAGS_USERMEM_MASK)