diff options
| author | Rex Zhu <[email protected]> | 2018-02-08 07:57:10 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2018-02-27 04:09:36 +0000 |
| 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 | kernel-eda9a4eb15e89e4d452ae8dbdc7fd6868c79c605.tar.gz kernel-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 <[email protected]>
Signed-off-by: Rex Zhu <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
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; } |
