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

Commit 209f3f78 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: Fix OOB bits for legacy firmware" into msm-4.14

parents 0dff9d69 4614e19f
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);