diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c index 59d8f6c4ba25..6180e7a9d89e 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c @@ -2145,9 +2145,9 @@ static void gfx_v9_0_alloc_ip_dump(struct amdgpu_device *adev) ptr = kcalloc(reg_count * inst, sizeof(uint32_t), GFP_KERNEL); if (ptr == NULL) { DRM_ERROR("Failed to allocate memory for GFX CP IP Dump\n"); - adev->gfx.ip_dump_cp_queues = NULL; + adev->gfx.ip_dump_compute_queues = NULL; } else { - adev->gfx.ip_dump_cp_queues = ptr; + adev->gfx.ip_dump_compute_queues = ptr; } } @@ -2366,7 +2366,7 @@ static int gfx_v9_0_sw_fini(void *handle) gfx_v9_0_free_microcode(adev); kfree(adev->gfx.ip_dump_core); - kfree(adev->gfx.ip_dump_cp_queues); + kfree(adev->gfx.ip_dump_compute_queues); return 0; } @@ -7017,7 +7017,7 @@ static void gfx_v9_ip_print(void *handle, struct drm_printer *p) adev->gfx.ip_dump_core[i]); /* print compute queue registers for all instances */ - if (!adev->gfx.ip_dump_cp_queues) + if (!adev->gfx.ip_dump_compute_queues) return; reg_count = ARRAY_SIZE(gc_cp_reg_list_9); @@ -7033,7 +7033,7 @@ static void gfx_v9_ip_print(void *handle, struct drm_printer *p) for (reg = 0; reg < reg_count; reg++) { drm_printf(p, "%-50s \t 0x%08x\n", gc_cp_reg_list_9[reg].reg_name, - adev->gfx.ip_dump_cp_queues[index + reg]); + adev->gfx.ip_dump_compute_queues[index + reg]); } index += reg_count; } @@ -7057,7 +7057,7 @@ static void gfx_v9_ip_dump(void *handle) amdgpu_gfx_off_ctrl(adev, true); /* dump compute queue registers for all instances */ - if (!adev->gfx.ip_dump_cp_queues) + if (!adev->gfx.ip_dump_compute_queues) return; reg_count = ARRAY_SIZE(gc_cp_reg_list_9); @@ -7070,7 +7070,7 @@ static void gfx_v9_ip_dump(void *handle) soc15_grbm_select(adev, 1 + i, j, k, 0, 0); for (reg = 0; reg < reg_count; reg++) { - adev->gfx.ip_dump_cp_queues[index + reg] = + adev->gfx.ip_dump_compute_queues[index + reg] = RREG32(SOC15_REG_ENTRY_OFFSET( gc_cp_reg_list_9[reg])); } |