drm/amdgpu: fix hpd bo size calculation error
authorKevin Wang <kevin1.wang@amd.com>
Wed, 25 Mar 2020 09:06:14 +0000 (17:06 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 31 Mar 2020 16:26:14 +0000 (12:26 -0400)
commit987ed8e938d11fcf4b90ab97cad71c7ffd272776
tree14a7c9d0461c1a733932dbcd6f4bd439cefa359f
parent59e7a8cc2dcf335116d500d684bfb34d1d97a6fe
drm/amdgpu: fix hpd bo size calculation error

the HPD bo size calculation error.
the "mem.size" can't present actual BO size all time.

Signed-off-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Christian König <Christian.Koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c