kgsl: Update firmware dump sequence in snapshot
SQE and AQE firmware can be dumped irrespective of GX status. Hence move the firmware dumping before GX ON check so that firmware details are captured correctly in snapshot even for GX OFF case. Change-Id: Ia9e26a313ecd0a7b287a820cf4ff6d8e9714e8c0 Signed-off-by: Hareesh Gundu <quic_hareeshg@quicinc.com>
This commit is contained in:
parent
97bb4452e1
commit
40c0164655
@ -1799,6 +1799,10 @@ void a6xx_snapshot(struct adreno_device *adreno_dev,
|
||||
|
||||
sptprac_on = a6xx_gmu_sptprac_is_on(adreno_dev);
|
||||
|
||||
/* SQE Firmware */
|
||||
kgsl_snapshot_add_section(device, KGSL_SNAPSHOT_SECTION_DEBUG,
|
||||
snapshot, a6xx_snapshot_sqe, NULL);
|
||||
|
||||
if (!adreno_gx_is_on(adreno_dev))
|
||||
return;
|
||||
|
||||
@ -1895,10 +1899,6 @@ void a6xx_snapshot(struct adreno_device *adreno_dev,
|
||||
kgsl_snapshot_add_section(device, KGSL_SNAPSHOT_SECTION_DEBUG,
|
||||
snapshot, a6xx_snapshot_cp_roq, NULL);
|
||||
|
||||
/* SQE Firmware */
|
||||
kgsl_snapshot_add_section(device, KGSL_SNAPSHOT_SECTION_DEBUG,
|
||||
snapshot, a6xx_snapshot_sqe, NULL);
|
||||
|
||||
/* Mempool debug data */
|
||||
if (adreno_is_a650_family(adreno_dev))
|
||||
a650_snapshot_mempool(device, snapshot);
|
||||
|
@ -1670,6 +1670,14 @@ void gen7_snapshot(struct adreno_device *adreno_dev,
|
||||
kgsl_regwrite(device, GEN7_RBBM_CLOCK_CNTL3_TP0, cgc2);
|
||||
}
|
||||
|
||||
/* SQE Firmware */
|
||||
kgsl_snapshot_add_section(device, KGSL_SNAPSHOT_SECTION_DEBUG,
|
||||
snapshot, gen7_snapshot_sqe, NULL);
|
||||
|
||||
/* AQE Firmware */
|
||||
kgsl_snapshot_add_section(device, KGSL_SNAPSHOT_SECTION_DEBUG,
|
||||
snapshot, gen7_snapshot_aqe, NULL);
|
||||
|
||||
if (!adreno_gx_is_on(adreno_dev))
|
||||
return;
|
||||
|
||||
@ -1747,14 +1755,6 @@ void gen7_snapshot(struct adreno_device *adreno_dev,
|
||||
gen7_snapshot_lpac_roq(device, snapshot);
|
||||
}
|
||||
|
||||
/* SQE Firmware */
|
||||
kgsl_snapshot_add_section(device, KGSL_SNAPSHOT_SECTION_DEBUG,
|
||||
snapshot, gen7_snapshot_sqe, NULL);
|
||||
|
||||
/* AQE Firmware */
|
||||
kgsl_snapshot_add_section(device, KGSL_SNAPSHOT_SECTION_DEBUG,
|
||||
snapshot, gen7_snapshot_aqe, NULL);
|
||||
|
||||
/* Mempool debug data */
|
||||
gen7_snapshot_mempool(device, snapshot);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user