drm/amdgpu: correct discovery_tmr_size init val
authorWenhui Sheng <Wenhui.Sheng@amd.com>
Mon, 29 Jun 2020 05:38:58 +0000 (13:38 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 2 Jul 2020 16:02:52 +0000 (12:02 -0400)
commitf56071d4403b1d1ac02e1d74e1683102f23ba031
tree95f233ec82b6e11e1dd8adbfab5463f9f4cf9d93
parentd818ed288af8a86d5b3b9e271d11cd9416f9a23f
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 <Wenhui.Sheng@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