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

Commit b2168480 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Mask the number of registers in the register protection span"

parents ebe974ce b8ec87f6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -766,7 +766,7 @@ static const struct a6xx_protected_regs a630_protected_regs[] = {
	{ A6XX_CP_PROTECT_REG + 28, 0x0be20, 0x0d5ff, 1 },
	{ A6XX_CP_PROTECT_REG + 29, 0x0f000, 0x0fbff, 1 },
	{ A6XX_CP_PROTECT_REG + 30, 0x0fc00, 0x11bff, 0 },
	{ A6XX_CP_PROTECT_REG + 31, 0x11c00, 0x00000, 1 },
	{ A6XX_CP_PROTECT_REG + 31, 0x11c00, 0x11c00, 1 },
	{ 0 },
};

@@ -1019,7 +1019,7 @@ static const struct a6xx_protected_regs a620_protected_regs[] = {
	{ A6XX_CP_PROTECT_REG + 30, 0x0be20, 0x0d5ff, 1 },
	{ A6XX_CP_PROTECT_REG + 31, 0x0f000, 0x0fbff, 1 },
	{ A6XX_CP_PROTECT_REG + 32, 0x0fc00, 0x11bff, 0 },
	{ A6XX_CP_PROTECT_REG + 47, 0x11c00, 0x00000, 1 },
	{ A6XX_CP_PROTECT_REG + 47, 0x11c00, 0x11c00, 1 },
	{ 0 },
};

+1 −1
Original line number Diff line number Diff line
@@ -172,7 +172,7 @@ static void a6xx_protect_init(struct adreno_device *adreno_dev)
		count = regs[i].end - regs[i].start;

		kgsl_regwrite(device, regs[i].reg,
			regs[i].start | (count << 18) |
			(regs[i].start & 0x3ffff) | ((count & 0x1fff) << 18) |
			(regs[i].noaccess << 31));
	}
}