msm: kgsl: Disable shader memory dump during snapshot
Disabling shader memory dump for these chipsets(8974, 8x26, 8x10).
CRs-Fixed: 650035, 637989, 631728.
Change-Id: I3a56810147e16763eaf3131aa837ed535a447e69
Signed-off-by: Anupam Sakargayan <asakarga@codeaurora.org>
diff --git a/drivers/gpu/msm/adreno_a3xx_snapshot.c b/drivers/gpu/msm/adreno_a3xx_snapshot.c
index 9f5765d..78e15cb 100644
--- a/drivers/gpu/msm/adreno_a3xx_snapshot.c
+++ b/drivers/gpu/msm/adreno_a3xx_snapshot.c
@@ -482,10 +482,19 @@
KGSL_SNAPSHOT_SECTION_DEBUG, snapshot, remain,
a3xx_snapshot_cp_meq, NULL);
- /* Shader working/shadow memory */
- snapshot = kgsl_snapshot_add_section(device,
+ /* Skip shader memory dump for these chipsets: 8974, 8x26, 8x10 */
+ if (adreno_is_a330(adreno_dev) ||
+ adreno_is_a330v2(adreno_dev) ||
+ adreno_is_a305b(adreno_dev) ||
+ adreno_is_a305c(adreno_dev) ) {
+ KGSL_DRV_ERR(device,
+ "Skipping shader memory dump\n");
+ } else {
+ /* Shader working/shadow memory */
+ snapshot = kgsl_snapshot_add_section(device,
KGSL_SNAPSHOT_SECTION_DEBUG, snapshot, remain,
a3xx_snapshot_shader_memory, NULL);
+ }
/* CP PFP and PM4 */