drm/amdgpu: reserve fb according to return value from vbios
authorLikun Gao <Likun.Gao@amd.com>
Thu, 21 May 2020 02:33:15 +0000 (10:33 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2020 05:59:14 +0000 (01:59 -0400)
commit83d7f66a530aa1c54fb9df6235ab73f29a128ce8
tree0cddcb13be97a9b244f4ad5fcdcab8a2fa7cd56f
parent4c301044c785bedc2d6dade5477317429fe8612e
drm/amdgpu: reserve fb according to return value from vbios

Query reserved tmr size through atom firmwareinfo for Sienna_Cichlid and onwards
for all the use cases (IP discovery/G6 memory
training/profiling/diagnostic data.etc), otherwise, fallback to legacy
approach to check and reserve tmr block for ip discovery data and G6
memory training data respectively

Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c