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

Commit 3ac1c627 authored by Harshitha Sai Neelati's avatar Harshitha Sai Neelati
Browse files

msm: kgsl: Avoid AOP message on unsupported A640 GPUs



Do not send AOP messages from A640 GPU targets in which
ACD feature is not supported.

Change-Id: Ia90523acd029bdbb9e5ae39e719f2ac8bdb6640d
Signed-off-by: default avatarHarshitha Sai Neelati <hsaine@codeaurora.org>
parent dc9a2b8f
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -1293,6 +1293,9 @@ static int gmu_aop_mailbox_init(struct kgsl_device *device,
	struct adreno_device *adreno_dev = ADRENO_DEVICE(device);
	struct kgsl_mailbox *mailbox = &gmu->mailbox;

	if (adreno_is_a640v2(adreno_dev) && (!adreno_dev->speed_bin))
		return 0;

	mailbox->client = kzalloc(sizeof(*mailbox->client), GFP_KERNEL);
	if (!mailbox->client)
		return -ENOMEM;
@@ -1309,8 +1312,8 @@ static int gmu_aop_mailbox_init(struct kgsl_device *device,
		return PTR_ERR(mailbox->channel);
	}

	if (adreno_dev->speed_bin)
	set_bit(ADRENO_ACD_CTRL, &adreno_dev->pwrctrl_flag);

	return 0;
}