diff options
author | 2018-02-08 15:57:10 +0800 | |
---|---|---|
committer | 2018-02-26 23:09:36 -0500 | |
commit | eda9a4eb15e89e4d452ae8dbdc7fd6868c79c605 (patch) | |
tree | bb9c656bf184e127954bd05a3d996d2c57153ce3 /drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | |
parent | drm/amdgpu: use the TTM dummy page instead of allocating one (diff) | |
download | linux-eda9a4eb15e89e4d452ae8dbdc7fd6868c79c605.tar.gz linux-eda9a4eb15e89e4d452ae8dbdc7fd6868c79c605.tar.bz2 linux-eda9a4eb15e89e4d452ae8dbdc7fd6868c79c605.zip |
drm/amdgpu: Add query vram width in CGS query system info
powerplay need vram width to set default mclk optimization
settings(uphyst/downhyst/activity threshold)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c index dc3360b16bda..72c9a7e2c373 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c @@ -905,6 +905,9 @@ static int amdgpu_cgs_query_system_info(struct cgs_device *cgs_device, case CGS_SYSTEM_INFO_PCIE_BUS_DEVFN: sys_info->value = adev->pdev->devfn; break; + case CGS_SYSTEM_INFO_VRAM_WIDTH: + sys_info->value = adev->gmc.vram_width; + break; default: return -ENODEV; } |