mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 16:16:15 -04:00
msm: kgsl: Add kernel profile buffer to snapshot
This helps establish submission order of submissions across ringbuffers as well as help establish how long the recent submissions took on the GPU. Change-Id: I181d1b49c23b37888106370609dc086ccb3439ae Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
This commit is contained in:
parent
bc3f915356
commit
6e294b6fdf
2 changed files with 10 additions and 0 deletions
|
|
@ -120,6 +120,12 @@ void a6xx_hwsched_snapshot(struct adreno_device *adreno_dev,
|
|||
snapshot, adreno_snapshot_global,
|
||||
entry->gpu_md);
|
||||
|
||||
if (entry->desc.mem_kind == MEMKIND_PROFILE)
|
||||
kgsl_snapshot_add_section(device,
|
||||
KGSL_SNAPSHOT_SECTION_GPU_OBJECT_V2,
|
||||
snapshot, adreno_snapshot_global,
|
||||
entry->gpu_md);
|
||||
|
||||
if (entry->desc.mem_kind == MEMKIND_CSW_SMMU_INFO)
|
||||
kgsl_snapshot_add_section(device,
|
||||
KGSL_SNAPSHOT_SECTION_GPU_OBJECT_V2,
|
||||
|
|
|
|||
|
|
@ -854,6 +854,10 @@ void adreno_snapshot(struct kgsl_device *device, struct kgsl_snapshot *snapshot,
|
|||
snapshot, adreno_snapshot_global,
|
||||
adreno_dev->pwron_fixup);
|
||||
|
||||
kgsl_snapshot_add_section(device, KGSL_SNAPSHOT_SECTION_GPU_OBJECT_V2,
|
||||
snapshot, adreno_snapshot_global,
|
||||
adreno_dev->profile_buffer);
|
||||
|
||||
if (kgsl_mmu_get_mmutype(device) == KGSL_MMU_TYPE_IOMMU)
|
||||
adreno_snapshot_iommu(device, snapshot);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue