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

Commit 2a1241fc authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Avoid cache ops on secure memory"

parents 9e25903d 4323d4ca
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2763,6 +2763,10 @@ static int _kgsl_gpumem_sync_cache(struct kgsl_mem_entry *entry,
	int cacheop;
	int mode;

	 /* Cache ops are not allowed on secure memory */
	if (entry->memdesc.flags & KGSL_MEMFLAGS_SECURE)
		return 0;

	/*
	 * Flush is defined as (clean | invalidate).  If both bits are set, then
	 * do a flush, otherwise check for the individual bits and clean or inv