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

Commit 1357e8af authored by Carter Cooper's avatar Carter Cooper Committed by Gerrit - the friendly Code Review server
Browse files

msm: kgsl: Update GMU firmware load offsets



Load GMU firmware data into the caches at the requested offsets.

Change-Id: I6d8ccd05bee349d886d6b00a114879a593408cc8
Signed-off-by: default avatarCarter Cooper <ccooper@codeaurora.org>
parent 47cb4b24
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -505,8 +505,10 @@ static int load_gmu_fw(struct kgsl_device *device)
				gmu_core_regwrite(device, tcm_addr + j,
					fwptr[j]);
		} else {
			uint32_t offset = blk->addr - (uint32_t)md->gmuaddr;

			/* Copy the memory directly */
			memcpy(md->hostptr, fw, blk->size);
			memcpy(md->hostptr + offset, fw, blk->size);
		}

		fw += blk->size;