mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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: Carter Cooper <ccooper@codeaurora.org>
This commit is contained in:
parent
c24069c12c
commit
aa37f706f1
1 changed files with 6 additions and 0 deletions
|
@ -182,6 +182,12 @@ static struct resource kgsl_3d0_resources[] = {
|
|||
{
|
||||
.name = KGSL_3D0_REG_MEMORY,
|
||||
.start = 0x04300000, /* GFX3D address */
|
||||
.end = 0x0430ffff,
|
||||
.flags = IORESOURCE_MEM,
|
||||
},
|
||||
{
|
||||
.name = KGSL_3D0_SHADER_MEMORY,
|
||||
.start = 0x04310000, /* Shader Mem Address */
|
||||
.end = 0x0431ffff,
|
||||
.flags = IORESOURCE_MEM,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue