diff options
author | Hawking Zhang <Hawking.Zhang@amd.com> | 2018-06-12 18:31:24 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-06-21 18:58:21 -0500 |
commit | be9250fb962d36aa5e7ca05b0760e39753f5ce7a (patch) | |
tree | 4ad1bca8a05bbafd2f097a5e3c52d3c2ce8259ab /drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | |
parent | 22e96fa62ec66ca9d21a76b74601fc200908fec3 (diff) | |
download | lwn-be9250fb962d36aa5e7ca05b0760e39753f5ce7a.tar.gz lwn-be9250fb962d36aa5e7ca05b0760e39753f5ce7a.zip |
drm/amdgpu: set the default value of pa_sc_tile_steering_override
So userspace can access it.
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-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_kms.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c index 429d0b6c45ef..ac5f68c2e23c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c @@ -762,6 +762,10 @@ static int amdgpu_info_ioctl(struct drm_device *dev, void *data, struct drm_file dev_info.gs_prim_buffer_depth = adev->gfx.config.gs_prim_buffer_depth; dev_info.max_gs_waves_per_vgt = adev->gfx.config.max_gs_threads; + if (adev->family >= AMDGPU_FAMILY_NV) + dev_info.pa_sc_tile_steering_override = + adev->gfx.config.pa_sc_tile_steering_override; + return copy_to_user(out, &dev_info, min((size_t)size, sizeof(dev_info))) ? -EFAULT : 0; } |