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

Commit 94a3bdcb authored by Harshdeep Dhatt's avatar Harshdeep Dhatt
Browse files

msm: kgsl: Make the register init list read only



Currently, the CP is not in APRIV mode when accessing
this buffer. So make it unprivileged. To keep it safe
make it GPU read-only.

Change-Id: I6c5076c5e90ab010e77fd91dcbb12dd94d1e6bd6
Signed-off-by: default avatarHarshdeep Dhatt <hdhatt@codeaurora.org>
parent 51c75b62
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -265,7 +265,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, 0, KGSL_MEMDESC_PRIVILEGED,
		PAGE_SIZE, KGSL_MEMFLAGS_GPUREADONLY, 0,
		"powerup_register_list")) {
		adreno_dev->pwrup_reglist.gpuaddr = 0;
		return;