aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_device.c7
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