diff options
author | Junwei Zhang <Jerry.Zhang@amd.com> | 2017-02-16 22:05:49 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-03-29 23:53:17 -0400 |
commit | df6e2c4aeb263f9b9b904c1a087411ddf25c5e94 (patch) | |
tree | f03e2adb8605033734a45406546c35fc69674802 /drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | |
parent | 24de75151ba95bac63d785d950b71b2d57046c19 (diff) |
drm/amdgpu: export gfx config double offchip LDS buffers (v3)
v2: move the config struct to drm_amdgpu_info_device
v3: move the config feature to amdgpu_gca_config
Signed-off-by: Junwei Zhang <Jerry.Zhang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c index 027692bf8457..096386515f2f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | |||
@@ -528,6 +528,8 @@ static int amdgpu_info_ioctl(struct drm_device *dev, void *data, struct drm_file | |||
528 | dev_info.vram_type = adev->mc.vram_type; | 528 | dev_info.vram_type = adev->mc.vram_type; |
529 | dev_info.vram_bit_width = adev->mc.vram_width; | 529 | dev_info.vram_bit_width = adev->mc.vram_width; |
530 | dev_info.vce_harvest_config = adev->vce.harvest_config; | 530 | dev_info.vce_harvest_config = adev->vce.harvest_config; |
531 | dev_info.gc_double_offchip_lds_buf = | ||
532 | adev->gfx.config.double_offchip_lds_buf; | ||
531 | 533 | ||
532 | return copy_to_user(out, &dev_info, | 534 | return copy_to_user(out, &dev_info, |
533 | min((size_t)size, sizeof(dev_info))) ? -EFAULT : 0; | 535 | min((size_t)size, sizeof(dev_info))) ? -EFAULT : 0; |