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

Commit 38b84c70 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 ee582d5f 7ec8ae11
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2742,6 +2742,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