Skip to content
Snippets Groups Projects
Commit aa37f706 authored by Carter Cooper's avatar Carter Cooper Committed by Iliyan Malchev
Browse files

msm: kgsl: Update separate GPU shader memory mapping


Add separate kernel memory mapping for GPU shader memory.
Previously, both the register and the shader memory were mapped
as one entity, with the mapping length being equal to combined
size of register memory and shader memory. Now, we separate the
shader memory mapping to help in cases of GPU devices where the
shader and register memory may not be adjacent. This helps to
dump the shader memory in the postmortem snapshot. By having a
separate mapping for shader memory, the snapshot dump routine
simply reads in the shader memory range specified and dumps.

Signed-off-by: default avatarCarter Cooper <ccooper@codeaurora.org>
parent c24069c1
Branches
Tags
No related merge requests found
...@@ -182,6 +182,12 @@ static struct resource kgsl_3d0_resources[] = { ...@@ -182,6 +182,12 @@ static struct resource kgsl_3d0_resources[] = {
{ {
.name = KGSL_3D0_REG_MEMORY, .name = KGSL_3D0_REG_MEMORY,
.start = 0x04300000, /* GFX3D address */ .start = 0x04300000, /* GFX3D address */
.end = 0x0430ffff,
.flags = IORESOURCE_MEM,
},
{
.name = KGSL_3D0_SHADER_MEMORY,
.start = 0x04310000, /* Shader Mem Address */
.end = 0x0431ffff, .end = 0x0431ffff,
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment