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

Commit 4614e19f authored by Carter Cooper's avatar Carter Cooper
Browse files

msm: kgsl: Fix OOB bits for legacy firmware



Fix the bits to support legacy firmware

Change-Id: I3a328ff9bb9c1e05311479974ec5befd8063b306
Signed-off-by: default avatarCarter Cooper <ccooper@codeaurora.org>
parent 171a12e7
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -1591,6 +1591,12 @@ static int a6xx_oob_set(struct adreno_device *adreno_dev,
		set = BIT(30 - req * 2);
		check = BIT(31 - req);

		if ((device->gmu.hfi.version & 0x1F) == 0) {
			/* LEGACY for intermediate oobs */
			set = BIT(req + 16);
			check = BIT(req + 16);
		}

		if (req >= 6) {
			dev_err(&device->gmu.pdev->dev,
					"OOB_set(0x%x) invalid\n", set);
@@ -1640,6 +1646,9 @@ static inline void a6xx_oob_clear(struct adreno_device *adreno_dev,
					"OOB_clear(0x%x) invalid\n", clear);
			return;
		}
		/* LEGACY for intermediate oobs */
		if ((device->gmu.hfi.version & 0x1F) == 0)
			clear = BIT(req + 24);
	} else
		clear = BIT(req + 24);