diff options
| author | 2021-06-16 21:14:01 +0800 | |
|---|---|---|
| committer | 2021-06-18 17:11:40 -0400 | |
| commit | 6ec598cc9dfbf40433e94a2ed1a622e3ef80268b (patch) | |
| tree | ea687d7ce8c88837d06f7496d68a492fefb2ab44 /drivers/gpu/drm/amd/amdgpu/umc_v8_7.c | |
| parent | amdgpu/pm: replaced snprintf usage in amdgpu_pm.c with sysfs_emit (diff) | |
| download | linux-dev-6ec598cc9dfbf40433e94a2ed1a622e3ef80268b.tar.xz linux-dev-6ec598cc9dfbf40433e94a2ed1a622e3ef80268b.zip | |
drm/amdgpu: fix bad address translation for sienna_cichlid
Signed-off-by: Stanley.Yang <Stanley.Yang@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/umc_v8_7.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/umc_v8_7.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/umc_v8_7.c b/drivers/gpu/drm/amd/amdgpu/umc_v8_7.c index 89d20adfa001..af59a35788e3 100644 --- a/drivers/gpu/drm/amd/amdgpu/umc_v8_7.c +++ b/drivers/gpu/drm/amd/amdgpu/umc_v8_7.c @@ -234,7 +234,7 @@ static void umc_v8_7_query_error_address(struct amdgpu_device *adev, err_addr &= ~((0x1ULL << lsb) - 1); /* translate umc channel address to soc pa, 3 parts are included */ - retired_page = ADDR_OF_8KB_BLOCK(err_addr) | + retired_page = ADDR_OF_4KB_BLOCK(err_addr) | ADDR_OF_256B_BLOCK(channel_index) | OFFSET_IN_256B_BLOCK(err_addr); |
