]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Read vram width from integrated system info table
authorHarry Wentland <harry.wentland@amd.com>
Sat, 1 Apr 2017 00:14:33 +0000 (20:14 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 4 Apr 2017 18:42:40 +0000 (14:42 -0400)
commit1cb00e4dac7d4e400f5c1153763d354f96739ef4
tree3338f081ba0e265f3710023945802bf7e11662e0
parent55a8895634fd7e2e9576cea581b22d5dca071542
drm/amdgpu: Read vram width from integrated system info table

On KB, KV, CZ we should read the vram width from integrated system
table, if we can. The NOOFCHAN in MC_SHARED_CHMAP is not accurate.

With this change we can enable two 4k displays on CZ again. This use
case was broken sometime in January when we started looking at
vram_width for bandwidth calculations instead of hardcoding this value.

v2:
  Return 0 if integrated system info table is not available.

Tested-by: Roman Li <roman.li@amd.com>
Signed-off-by: Harry Wentland <harry.wentland@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_atombios.c
drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.h
drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c