diff options
author | Tom St Denis <tom.stdenis@amd.com> | 2016-08-17 12:00:51 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-08-17 15:43:20 -0400 |
commit | e9f11dc80a113f13731f0af883770b05b3d50509 (patch) | |
tree | e03f6d806f2b207aaba6a33809b0dd893e649b32 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
parent | 041aa65805de1a8af87dab2a26e52ebfe01f1963 (diff) |
drm/amd/amdgpu: Add more debugfs config data
Adds family and external_rev_id to config data
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index e606cb2fcc28..c356bb538b43 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++] = 1; | 2588 | config[no_regs++] = 2; |
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; |
@@ -2615,6 +2615,10 @@ static ssize_t amdgpu_debugfs_gca_config_read(struct file *f, char __user *buf, | |||
2615 | config[no_regs++] = adev->pg_flags; | 2615 | config[no_regs++] = adev->pg_flags; |
2616 | config[no_regs++] = adev->cg_flags; | 2616 | config[no_regs++] = adev->cg_flags; |
2617 | 2617 | ||
2618 | /* rev==2 */ | ||
2619 | config[no_regs++] = adev->family; | ||
2620 | config[no_regs++] = adev->external_rev_id; | ||
2621 | |||
2618 | while (size && (*pos < no_regs * 4)) { | 2622 | while (size && (*pos < no_regs * 4)) { |
2619 | uint32_t value; | 2623 | uint32_t value; |
2620 | 2624 | ||