diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2018-07-31 09:34:30 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-07-31 09:34:30 -0700 |
| commit | 414b079b7f4ba955f4679cd87be64199b4e875c7 (patch) | |
| tree | 66a156acfab60c09c5ab5addc4bede31a2e44ccd | |
| parent | b0b8266657dbf53504493a85395ad35182c289ef (diff) | |
| parent | f15aace0bfd38e29769d4250679a41d00dbcfc28 (diff) | |
Merge "msm: kgsl: Fix the missing IBs from the snapshot"
| -rw-r--r-- | drivers/gpu/msm/adreno_snapshot.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/gpu/msm/adreno_snapshot.c b/drivers/gpu/msm/adreno_snapshot.c index 711d7ba83e61..6392ec1f069b 100644 --- a/drivers/gpu/msm/adreno_snapshot.c +++ b/drivers/gpu/msm/adreno_snapshot.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2012-2017, The Linux Foundation. All rights reserved. +/* Copyright (c) 2012-2018 The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -400,6 +400,8 @@ static void snapshot_rb_ibs(struct kgsl_device *device, ibsize = rbptr[index + 3]; } + index = (index + 1) % KGSL_RB_DWORDS; + /* Don't parse known global IBs */ if (iommu_is_setstate_addr(device, ibaddr, ibsize)) continue; @@ -410,9 +412,8 @@ static void snapshot_rb_ibs(struct kgsl_device *device, parse_ib(device, snapshot, snapshot->process, ibaddr, ibsize); - } - - index = (index + 1) % KGSL_RB_DWORDS; + } else + index = (index + 1) % KGSL_RB_DWORDS; } } |
