drm/amdgpu: update algorithm of umc address conversion
authorTao Zhou <tao.zhou1@amd.com>
Wed, 19 Jan 2022 09:00:09 +0000 (17:00 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Jan 2022 20:49:08 +0000 (15:49 -0500)
commite63fa4dcea2f7afcbf8f2d013dfae23a61a273d8
tree50572f86bfbb3140771c3f255b38cb5d2472257e
parent498d46fe7aa7eda5807352d62af133a2f432b814
drm/amdgpu: update algorithm of umc address conversion

On ALDEBARAN, we need to traverse all column bits higher than
BIT11(C4C3C2) in a row, the shift of R14 bit should be also taken
into account. Retire all pages we find.

Signed-off-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/umc_v6_7.c
drivers/gpu/drm/amd/amdgpu/umc_v6_7.h