Go to file
Urvashi Agrawal b643c38ca7 kgsl: gen8: Rearrange some GMU register dumping in snapshot
1. Ensure GX GDSC is ON to dump GMU registers on GX headswitch
2. Check for RPMH state to make sure GPU is active when dumping
   the registers.
3. CX debugbus does not need GX ON, move it to its own function
   so that it can be called independently.
4. Move the GX debugbus and tracebuffer under the GX check to
   ensure we do not read/write these registers without checking
   for GX ON.

Change-Id: I711df499a2499e7114044a9ef37b55c563f2939c
Signed-off-by: Urvashi Agrawal <quic_urvaagra@quicinc.com>
Signed-off-by: Kaushal Sanadhya <quic_ksanadhy@quicinc.com>
2024-07-17 00:23:19 -07:00
build msm: kgsl: Add snapshot code for A8x 2024-03-15 12:34:26 +05:30
config kgsl: build: Enable shmem memory and process reclaim for pitti 2024-01-17 17:04:02 +05:30
include kgsl: Fix multiple warnings and errors 2024-04-04 13:59:05 +05:30
a3xx_reg.h msm: kgsl: Initial KGSL commit 2021-08-26 09:55:25 -07:00
a5xx_reg.h msm: kgsl: Initial KGSL commit 2021-08-26 09:55:25 -07:00
a6xx_reg.h kgsl: Poll CX CFG GDSC register to ensure CX GDSC collapse 2024-03-28 17:41:01 +05:30
adreno_a3xx_coresight.c kgsl: Fix multiple warnings and errors 2024-04-04 13:59:05 +05:30
adreno_a3xx_perfcounter.c msm: kgsl: Initial KGSL commit 2021-08-26 09:55:25 -07:00
adreno_a3xx_ringbuffer.c msm: kgsl: Skip SMMU PT switch when using default PT 2023-09-07 13:42:33 -07:00
adreno_a3xx_snapshot.c msm: kgsl: Avoid use of a restricted keyword 2023-02-17 10:51:11 +05:30
adreno_a3xx.c kgsl: hwsched: Add support for nonfatal F2H_MSG_CONTEXT_BAD packet 2024-04-23 11:05:04 +05:30
adreno_a3xx.h msm: kgsl: Overhaul coresight 2022-06-08 02:54:48 -07:00
adreno_a5xx_coresight.c msm: kgsl: Overhaul coresight 2022-06-08 02:54:48 -07:00
adreno_a5xx_packets.h msm: kgsl: Initial KGSL commit 2021-08-26 09:55:25 -07:00
adreno_a5xx_perfcounter.c msm: kgsl: Initial KGSL commit 2021-08-26 09:55:25 -07:00
adreno_a5xx_preempt.c kgsl: trace: Update adreno preemption trace format 2023-07-28 14:32:59 -07:00
adreno_a5xx_ringbuffer.c msm: kgsl: Add suppot to enable GPU HW preemption through cmd line 2022-12-28 22:45:52 -08:00
adreno_a5xx_snapshot.c kgsl: gen8: Implement adreno_smmu_is_stalled() 2024-03-15 12:34:11 +05:30
adreno_a5xx.c kgsl: hwsched: Add support for nonfatal F2H_MSG_CONTEXT_BAD packet 2024-04-23 11:05:04 +05:30
adreno_a5xx.h kgsl: Fix multiple warnings and errors 2024-04-04 13:59:05 +05:30
adreno_a6xx_coresight.c kgsl: Fix multiple warnings and errors 2024-04-04 13:59:05 +05:30
adreno_a6xx_gmu_snapshot.c kgsl: gen8: Implement adreno_smmu_is_stalled() 2024-03-15 12:34:11 +05:30
adreno_a6xx_gmu.c Merge "kgsl: Assert Qactive during slumber and recovery" 2024-06-07 09:20:41 -07:00
adreno_a6xx_gmu.h kgsl: hwsched: Add support for GMU tracepoints logging 2023-09-06 11:18:17 -07:00
adreno_a6xx_hfi.c kgsl: hwsched: Fix HFI sequence number wrap issue 2023-08-28 15:36:25 +05:30
adreno_a6xx_hfi.h msm: kgsl: Explicitly set size of hfi packets 2023-06-05 11:08:23 -06:00
adreno_a6xx_hwsched_hfi.c kgsl: hwsched: Inspect MSGQ upon HFI ack timeout for context unregister 2024-05-10 20:58:51 +05:30
adreno_a6xx_hwsched_hfi.h kgsl: hwsched: Use global context for inline perfcounter select 2023-11-09 14:05:35 +05:30
adreno_a6xx_hwsched.c kgsl: Assert Qactive during slumber and recovery 2024-05-17 12:13:56 +05:30
adreno_a6xx_hwsched.h msm: kgsl: Modify tracking of inflight hardware fences 2023-06-05 11:08:49 -06:00
adreno_a6xx_perfcounter.c msm: kgsl: Support perfcounter enable via gpu for hwsched 2023-02-28 12:11:15 -08:00
adreno_a6xx_preempt.c kgsl: trace: Update adreno preemption trace format 2023-07-28 14:32:59 -07:00
adreno_a6xx_rgmu.c kgsl: hwsched: Add support for nonfatal F2H_MSG_CONTEXT_BAD packet 2024-04-23 11:05:04 +05:30
adreno_a6xx_rgmu.h msm: kgsl: Add cx gdsc notifier for rgmu and non-gmu targets 2023-08-28 16:00:32 +05:30
adreno_a6xx_ringbuffer.c msm: kgsl: Handle return value for rb context switch 2023-02-03 17:37:59 +05:30
adreno_a6xx_rpmh.c msm: kgsl: Use vlvl instead of hlvl in DT 2022-05-06 06:03:28 -07:00
adreno_a6xx_snapshot.c kgsl: Update firmware dump sequence in snapshot 2024-03-15 12:35:27 +05:30
adreno_a6xx.c kgsl: hwsched: Avoid unclocked access in interrupt handler 2024-06-10 02:32:01 -07:00
adreno_a6xx.h kgsl: gen8: Implement adreno_smmu_is_stalled() 2024-03-15 12:34:11 +05:30
adreno_compat.c msm: kgsl: Dynamically configure UCHE GMEM base address 2022-07-13 11:45:50 +05:30
adreno_compat.h msm: kgsl: Initial KGSL commit 2021-08-26 09:55:25 -07:00
adreno_coresight.c kgsl: Fix multiple warnings and errors 2024-04-04 13:59:05 +05:30
adreno_coresight.h msm: kgsl: Add support to enable gfx funnel device 2022-06-08 02:56:07 -07:00
adreno_cp_parser.c msm: kgsl: Initial KGSL commit 2021-08-26 09:55:25 -07:00
adreno_cp_parser.h msm: kgsl: Initial KGSL commit 2021-08-26 09:55:25 -07:00
adreno_debugfs.c kgsl: Fix multiple warnings and errors 2024-04-04 13:59:05 +05:30
adreno_dispatch.c kgsl: Fix multiple warnings and errors 2024-04-04 13:59:05 +05:30
adreno_dispatch.h msm: kgsl: Initial KGSL commit 2021-08-26 09:55:25 -07:00
adreno_drawctxt.c kgsl: Cancel waittimestamp events on timeout 2023-11-27 11:50:34 -08:00
adreno_drawctxt.h kgsl: Fix multiple warnings and errors 2024-04-04 13:59:05 +05:30
adreno_gen7_0_0_snapshot.h kgsl: gen7: Dump cx_misc register in snapshot legacy path 2023-06-29 09:31:34 -07:00
adreno_gen7_2_0_snapshot.h kgsl: gen7: Dump cx_misc register in snapshot legacy path 2023-06-29 09:31:34 -07:00
adreno_gen7_9_0_snapshot.h kgsl: gen7: Dump cx_misc register in snapshot legacy path 2023-06-29 09:31:34 -07:00
adreno_gen7_11_0_snapshot.h kgsl: gen7: Remove few SECVID registers in crashdumper path 2023-10-30 18:16:29 +05:30
adreno_gen7_coresight.c msm: kgsl: Use device_find_child() to find gfx funnel device 2022-07-01 11:20:13 -07:00
adreno_gen7_gmu_snapshot.c kgsl: gen8: Implement adreno_smmu_is_stalled() 2024-03-15 12:34:11 +05:30
adreno_gen7_gmu.c Merge "kgsl: Reseed GPU CX timer after suspend resume" 2024-07-02 02:53:43 -07:00
adreno_gen7_gmu.h Merge "kgsl: hwsched: Add support for GMU tracepoints logging" 2023-09-15 00:15:20 -07:00
adreno_gen7_hfi.c kgsl: Remove LM feature support from gen7 and gen8 2024-06-10 11:17:11 +05:30
adreno_gen7_hfi.h kgsl: gen7: Allow using up to 32 DCVS points 2023-08-30 14:48:36 -06:00
adreno_gen7_hwsched_hfi.c kgsl: hwsched: Don't allow GPU warmboot when GMU warmboot fails 2024-06-09 23:55:20 -07:00
adreno_gen7_hwsched_hfi.h kgsl: hwsched: Use global context for inline perfcounter select 2023-11-09 14:05:35 +05:30
adreno_gen7_hwsched.c Merge "kgsl: Reseed GPU CX timer after suspend resume" 2024-07-02 02:53:43 -07:00
adreno_gen7_hwsched.h msm: kgsl: Limit the number of unack'd hardware fence packets 2023-06-05 11:11:58 -06:00
adreno_gen7_perfcounter.c kgsl: gen8: Add memory barriers before reading aperture registers 2024-04-01 13:34:02 +05:30
adreno_gen7_preempt.c kgsl: trace: Update adreno preemption trace format 2023-07-28 14:32:59 -07:00
adreno_gen7_ringbuffer.c msm: kgsl: Handle return value for rb context switch 2023-02-03 17:37:59 +05:30
adreno_gen7_rpmh.c kgsl: Make ACV perf mode level target specific 2024-03-15 12:38:18 +05:30
adreno_gen7_snapshot.c kgsl: Use legacy path after first crashdumper timeout 2024-06-10 02:15:50 -07:00
adreno_gen7_snapshot.h kgsl: gen7: Dump cx_misc register in snapshot legacy path 2023-06-29 09:31:34 -07:00
adreno_gen7.c Merge "kgsl: Reseed GPU CX timer after suspend resume" 2024-07-02 02:53:43 -07:00
adreno_gen7.h kgsl: Add support for AHB timeout detection 2024-03-15 12:51:35 +05:30
adreno_gen8_3_0_snapshot.h kgsl: gen8: Rearrange some GMU register dumping in snapshot 2024-07-17 00:23:19 -07:00
adreno_gen8_gmu_snapshot.c kgsl: gen8: Rearrange some GMU register dumping in snapshot 2024-07-17 00:23:19 -07:00
adreno_gen8_gmu.c kgsl: gen8: Rearrange some GMU register dumping in snapshot 2024-07-17 00:23:19 -07:00
adreno_gen8_gmu.h kgsl: gen8: Rearrange some GMU register dumping in snapshot 2024-07-17 00:23:19 -07:00
adreno_gen8_hfi.c kgsl: Remove LM feature support from gen7 and gen8 2024-06-10 11:17:11 +05:30
adreno_gen8_hfi.h kgsl: gen8: Add CLX programming infrastructure 2024-03-15 12:33:18 +05:30
adreno_gen8_hwsched_hfi.c kgsl: gen8: Remove legacy F2H_MSG_CONTEXT_BAD support 2024-06-10 02:16:25 -07:00
adreno_gen8_hwsched_hfi.h kgsl: gen8: Remove inline performance counter enable 2024-03-15 12:29:30 +05:30
adreno_gen8_hwsched.c Merge "kgsl: Reseed GPU CX timer after suspend resume" 2024-07-02 02:53:43 -07:00
adreno_gen8_hwsched.h msm: kgsl: Add snapshot code for A8x 2024-03-15 12:34:26 +05:30
adreno_gen8_perfcounter.c kgsl: gen8: Add memory barriers before reading aperture registers 2024-04-01 13:34:02 +05:30
adreno_gen8_preempt.c msm: kgsl: Add Gen8 support 2024-03-15 12:21:45 +05:30
adreno_gen8_ringbuffer.c msm: kgsl: Add Gen8 support 2024-03-15 12:21:45 +05:30
adreno_gen8_rpmh.c kgsl: gen8: Fix ACV perfmode vote for gen8 2024-03-15 12:38:41 +05:30
adreno_gen8_snapshot.c kgsl: gen8: Rearrange some GMU register dumping in snapshot 2024-07-17 00:23:19 -07:00
adreno_gen8_snapshot.h kgsl: gen8: Fix condition to determine slice ID 2024-04-01 22:45:27 +05:30
adreno_gen8.c kgsl: gen8: Rearrange some GMU register dumping in snapshot 2024-07-17 00:23:19 -07:00
adreno_gen8.h kgsl: Add support for AHB timeout detection 2024-05-30 11:45:14 +05:30
adreno_hfi.h kgsl: hwsched: Inspect MSGQ upon HFI ack timeout for context unregister 2024-05-10 20:58:51 +05:30
adreno_hwsched.c kgsl: hwsched: Print fault tolerance policy 2024-06-10 09:45:24 -07:00
adreno_hwsched.h Merge "kgsl: Fix multiple warnings and errors" 2024-05-03 02:53:30 -07:00
adreno_ioctl.c msm: kgsl: Add a new IOCTL_KGSL_READ_CALIBRATED_TIMESTAMPS ioctl 2023-07-26 09:18:36 -07:00
adreno_perfcounter.c msm: kgsl: Update dynamic reg list for all perfcounter blocks 2024-03-15 12:28:49 +05:30
adreno_perfcounter.h kgsl: gen8: Add support to program dependent perfcounter registers 2024-03-15 12:30:03 +05:30
adreno_pm4types.h msm: kgsl: Add support for dynamic qos control 2023-01-19 21:16:27 -08:00
adreno_profile.c kgsl: Replace all instances of strlcpy() with strscpy() 2024-04-04 12:32:03 +05:30
adreno_profile.h kgsl: Fix multiple warnings and errors 2024-04-04 13:59:05 +05:30
adreno_ringbuffer.c kgsl: Fix multiple warnings and errors 2024-04-04 13:59:05 +05:30
adreno_ringbuffer.h msm: kgsl: Cleanup unused function declarations 2023-06-14 01:33:30 +05:30
adreno_snapshot.c Merge "kgsl: Replace all instances of strlcpy() with strscpy()" 2024-05-03 02:53:30 -07:00
adreno_snapshot.h kgsl: gen7: Dump cx_misc register in snapshot legacy path 2023-06-29 09:31:34 -07:00
adreno_sysfs.c kgsl: Make GPU and GPUHTW llcc sysfs nodes take immediate effect 2024-03-18 11:30:03 -07:00
adreno_sysfs.h msm: kgsl: Initial KGSL commit 2021-08-26 09:55:25 -07:00
adreno_trace.c msm: kgsl: Catchup from msm-5.10 2021-11-11 19:18:51 -08:00
adreno_trace.h msm: kgsl: Add Gen8 support 2024-03-15 12:21:45 +05:30
adreno-gpulist.h Merge "kgsl: gen8: Enable preemption for Gen8_3_0 GPU" 2024-06-11 05:11:15 -07:00
adreno.c Merge "kgsl: Reseed GPU CX timer after suspend resume" 2024-07-02 02:53:43 -07:00
adreno.h kgsl: Fix AB voting in gen8_3_0 2024-05-22 14:02:02 +05:30
Android.bp msm: kgsl: Initial KGSL commit 2021-08-26 09:55:25 -07:00
Android.mk msm: kgsl: Update hardcoded path to a BOARD_COMMON_DIR build variable 2023-10-25 10:00:25 -07:00
BUILD.bazel kgsl: build: Enable KGSL Bazel compilation for monaco 2023-10-21 20:12:32 +05:30
build.config.msm_kgsl msm: kgsl: Initial KGSL commit 2021-08-26 09:55:25 -07:00
gen7_reg.h kgsl: Remove LM feature support from gen7 and gen8 2024-06-10 11:17:11 +05:30
gen8_reg.h kgsl: gen8: Add additional non context overrides 2024-06-10 09:46:14 -07:00
gfx_driver_product.mk msm: kgsl: Initial KGSL commit 2021-08-26 09:55:25 -07:00
gfx_kernel_board.mk msm: kgsl: Support SA8155 chipset 2022-04-12 12:18:57 +05:30
gfx_kernel_headers.py msm: kgsl: Fix UAPI include path 2022-05-04 16:35:43 +05:30
governor_gpubw_mon.c msm: kgsl: Make avoid_ddr_stall flag target specific 2024-03-08 00:42:55 +05:30
governor_msm_adreno_tz.c kgsl: Fix multiple warnings and errors 2024-04-04 13:59:05 +05:30
Kbuild msm: kgsl: Add snapshot code for A8x 2024-03-15 12:34:26 +05:30
Kconfig kgsl: build: Enable KGSL Bazel compilation for monaco 2023-10-21 20:12:32 +05:30
kgsl_bus.c msm: kgsl: Set PERF_MODE tag for non-gmu targets 2023-07-21 15:43:32 +05:30
kgsl_bus.h msm: kgsl: Set PERF_MODE tag for non-gmu targets 2023-07-21 15:43:32 +05:30
kgsl_compat.c msm: kgsl: Add compat support for fault report ioctl 2022-05-06 05:58:54 -07:00
kgsl_compat.h msm: kgsl: Initial KGSL commit 2021-08-26 09:55:25 -07:00
kgsl_debugfs.c msm: kgsl: Add debugfs nodes for GPU mempools 2022-03-09 05:28:49 -08:00
kgsl_debugfs.h msm: kgsl: Add debugfs nodes for GPU mempools 2022-03-09 05:28:49 -08:00
kgsl_device.h msm: kgsl: Add minor fixes in snasphot 2024-03-15 12:39:42 +05:30
kgsl_drawobj.c msm: kgsl: Keep the timeline fence valid for logging 2024-01-22 15:39:08 +05:30
kgsl_drawobj.h msm: kgsl: Simplify timelineobj cleanup 2023-08-23 10:00:20 -07:00
kgsl_eventlog.c kgsl: Replace all instances of strlcpy() with strscpy() 2024-04-04 12:32:03 +05:30
kgsl_eventlog.h msm: kgsl: Capture eventlog buffer in snapshot 2023-02-15 11:57:43 -07:00
kgsl_events.c kgsl: Fix multiple warnings and errors 2024-04-04 13:59:05 +05:30
kgsl_gmu_core.c kgsl: gmu: Send skip tlb hint for gmu domain 2024-05-14 13:51:22 +05:30
kgsl_gmu_core.h kgsl: gmu: Send skip tlb hint for gmu domain 2024-05-14 13:51:22 +05:30
kgsl_ioctl.c msm: kgsl: Add support for IOCTL_KGSL_RECURRING_COMMAND 2022-03-09 05:42:02 -08:00
kgsl_iommu.c Merge "kgsl: Do not call of_platform_depopulate when user context probe fails" 2024-06-07 09:20:41 -07:00
kgsl_iommu.h kgsl: Set aperture for LPAC context during resume 2024-05-17 00:35:20 -07:00
kgsl_mmu.c msm: kgsl: Do not free sharedmem if it cannot be unmapped 2023-11-21 10:06:15 +05:30
kgsl_mmu.h msm: kgsl: Give hint to SMMU for skipping TLB ops during slumber 2023-08-28 15:54:47 +05:30
kgsl_pool.c kgsl: Implement SHMEM vendor hook callback 2023-05-25 12:25:30 -07:00
kgsl_pool.h kgsl: Implement SHMEM vendor hook callback 2023-05-25 12:25:30 -07:00
kgsl_power_trace.h msm: kgsl: Fix gpu_work_period trace format 2022-12-19 11:00:44 -08:00
kgsl_pwrctrl.c Merge "kgsl: Poll CX CFG GDSC register to ensure CX GDSC collapse" 2024-05-22 01:38:22 -07:00
kgsl_pwrctrl.h Merge "kgsl: Poll CX CFG GDSC register to ensure CX GDSC collapse" 2024-05-22 01:38:22 -07:00
kgsl_pwrscale.c msm: kgsl: Make avoid_ddr_stall flag target specific 2024-03-08 00:42:55 +05:30
kgsl_pwrscale.h msm: kgsl: Make avoid_ddr_stall flag target specific 2024-03-08 00:42:55 +05:30
kgsl_reclaim.c msm: kgsl: Do not reclaim pages mapped in a VBO 2024-01-23 11:51:52 +05:30
kgsl_reclaim.h msm: kgsl: Avoid unmap after kgsl system suspend 2023-04-09 23:12:39 -07:00
kgsl_regmap.c kgsl: Fix regwrite trace in kgsl_regmap_multi_write 2024-03-28 23:58:05 +05:30
kgsl_regmap.h msm: kgsl: Overhaul coresight 2022-06-08 02:54:48 -07:00
kgsl_sharedmem.c kgsl: Fix null pointer dereference in kgsl_lock_sgt() failure case 2024-05-06 12:16:28 +05:30
kgsl_sharedmem.h kgsl: Implement SHMEM vendor hook callback 2023-05-25 12:25:30 -07:00
kgsl_snapshot.c kgsl: Fix multiple warnings and errors 2024-04-04 13:59:05 +05:30
kgsl_snapshot.h kgsl: Fix multiple warnings and errors 2024-04-04 13:59:05 +05:30
kgsl_sync.c kgsl: hwfence: Call fd_install after creating hw fence 2024-01-22 15:47:26 +05:30
kgsl_sync.h kgsl: hwsched: Don't cross dereference kgsl_mem_entry pointer 2023-09-27 09:52:54 -07:00
kgsl_sysfs.h msm: kgsl: Initial KGSL commit 2021-08-26 09:55:25 -07:00
kgsl_timeline.c msm: kgsl: Allow AUX timeline commands to signal asynchronously 2023-01-19 21:16:36 -08:00
kgsl_timeline.h msm: kgsl: Allow AUX timeline commands to signal asynchronously 2023-01-19 21:16:36 -08:00
kgsl_trace.c msm: kgsl: Initial KGSL commit 2021-08-26 09:55:25 -07:00
kgsl_trace.h msm: kgsl: Log average bandwidth vote in kgsl_buslevel trace 2023-04-19 08:43:18 +05:30
kgsl_util.c msm: kgsl: Add support for VA-Minidump in hwsched path 2023-02-07 13:05:23 +05:30
kgsl_util.h kgsl: Fix multiple warnings and errors 2024-04-04 13:59:05 +05:30
kgsl_vbo.c Merge "msm: kgsl: Remove duplicate bind operation code" 2024-06-07 09:20:41 -07:00
kgsl.c msm: kgsl: Hold fault lock while accessing context faults 2024-04-16 17:40:57 +05:30
kgsl.h kgsl: Fix multiple warnings and errors 2024-04-04 13:59:05 +05:30
Makefile msm: kgsl: Optimize logic to set KGSL_MODULE_ROOT 2023-02-21 02:59:28 -08:00
msm_adreno_devfreq.h msm: kgsl: Make avoid_ddr_stall flag target specific 2024-03-08 00:42:55 +05:30