diff options
author | Tom St Denis <tom.stdenis@amd.com> | 2016-08-12 15:14:31 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-08-16 10:45:05 -0400 |
commit | 89a8f30900754eb27f8f534f35be49b8202c76cd (patch) | |
tree | 262d0fc0c2756d9214b581f935bb8cae9ffbef75 | |
parent | 6681c5eba1d2dbc559f99d1de4e67ccd3abd7df8 (diff) |
drm/amd/amdgpu: Add more config data for debugfs
Adds rev_id as well as cg/pg flags to help debug runtime.
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 3751d262de68..e606cb2fcc28 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |||
@@ -2585,7 +2585,7 @@ static ssize_t amdgpu_debugfs_gca_config_read(struct file *f, char __user *buf, | |||
2585 | return -ENOMEM; | 2585 | return -ENOMEM; |
2586 | 2586 | ||
2587 | /* version, increment each time something is added */ | 2587 | /* version, increment each time something is added */ |
2588 | config[no_regs++] = 0; | 2588 | config[no_regs++] = 1; |
2589 | config[no_regs++] = adev->gfx.config.max_shader_engines; | 2589 | config[no_regs++] = adev->gfx.config.max_shader_engines; |
2590 | config[no_regs++] = adev->gfx.config.max_tile_pipes; | 2590 | config[no_regs++] = adev->gfx.config.max_tile_pipes; |
2591 | config[no_regs++] = adev->gfx.config.max_cu_per_sh; | 2591 | config[no_regs++] = adev->gfx.config.max_cu_per_sh; |
@@ -2610,6 +2610,11 @@ static ssize_t amdgpu_debugfs_gca_config_read(struct file *f, char __user *buf, | |||
2610 | config[no_regs++] = adev->gfx.config.gb_addr_config; | 2610 | config[no_regs++] = adev->gfx.config.gb_addr_config; |
2611 | config[no_regs++] = adev->gfx.config.num_rbs; | 2611 | config[no_regs++] = adev->gfx.config.num_rbs; |
2612 | 2612 | ||
2613 | /* rev==1 */ | ||
2614 | config[no_regs++] = adev->rev_id; | ||
2615 | config[no_regs++] = adev->pg_flags; | ||
2616 | config[no_regs++] = adev->cg_flags; | ||
2617 | |||
2613 | while (size && (*pos < no_regs * 4)) { | 2618 | while (size && (*pos < no_regs * 4)) { |
2614 | uint32_t value; | 2619 | uint32_t value; |
2615 | 2620 | ||