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

Commit a6674362 authored by Tarun Karra's avatar Tarun Karra Committed by Gerrit - the friendly Code Review server
Browse files

msm: kgsl: Map powerup register list as coherent privileged RW memory



Map powerup register list global buffer as coherent privileged RW memory
because it contains a software spinlock used by both CPU and CP to
synchronize registers to restore after preemption and interframe power
collapse. For software spinlock to work correctly order or read/writes
is important so this memory needs to be mapped as coherent memory.

Change-Id: Ieff60d4e249ff62089c1ed723851b79991d417ba
Signed-off-by: default avatarTarun Karra <tkarra@codeaurora.org>
parent d373aa52
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -331,7 +331,7 @@ static void a6xx_pwrup_reglist_init(struct adreno_device *adreno_dev)
	struct kgsl_device *device = KGSL_DEVICE(adreno_dev);

	if (kgsl_allocate_global(device, &adreno_dev->pwrup_reglist,
		PAGE_SIZE, KGSL_MEMFLAGS_GPUREADONLY, 0,
		PAGE_SIZE, 0, KGSL_MEMDESC_CONTIG | KGSL_MEMDESC_PRIVILEGED,
		"powerup_register_list")) {
		adreno_dev->pwrup_reglist.gpuaddr = 0;
		return;