path: root/drivers/gpu
diff options
authorWenhui Sheng <>2020-06-29 13:38:58 +0800
committerAlex Deucher <>2020-07-02 12:02:52 -0400
commitf56071d4403b1d1ac02e1d74e1683102f23ba031 (patch)
tree95f233ec82b6e11e1dd8adbfab5463f9f4cf9d93 /drivers/gpu
parentd818ed288af8a86d5b3b9e271d11cd9416f9a23f (diff)
drm/amdgpu: correct discovery_tmr_size init val
The legacy way to initialize discovery_tmr_size is using DISCOVERY_TMR_SIZE, while after we reduce DISCOVERY_TMR_SIZE from 64KB to 4KB, variable discovery_tmr_size is also reduced to 4KB, this is not correct, it still should be 64KB, discovery_tmr_size will be used to calculate ip_discovery reserved mem's start address and size. Using DISCOVERY_TMR_OFFSET to init discovery_tmr_size instead. Signed-off-by: Wenhui Sheng <> Reviewed-by: Hawking Zhang <> Signed-off-by: Alex Deucher <>
Diffstat (limited to 'drivers/gpu')
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
index bb95627ad2cc..5f2f3faad792 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
@@ -1867,7 +1867,7 @@ static int amdgpu_ttm_reserve_tmr(struct amdgpu_device *adev)
adev->discovery_tmr_size =
if (!adev->discovery_tmr_size)
- adev->discovery_tmr_size = DISCOVERY_TMR_SIZE;
+ adev->discovery_tmr_size = DISCOVERY_TMR_OFFSET;
if (mem_train_support) {
/* reserve vram for mem train according to TMR location */