drm/amdgpu: set the default value of pa_sc_tile_steering_override
authorHawking Zhang <Hawking.Zhang@amd.com>
Tue, 12 Jun 2018 10:31:24 +0000 (18:31 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Jun 2019 23:58:21 +0000 (18:58 -0500)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c

index 429d0b6c45ef3377cdb91b0b446d203682a50b43..ac5f68c2e23c5b45cd4d4f5e7947b2dc764fa7de 100644 (file)
@@ -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;
        }