]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/amdgpu: add interface to get die id from memory address
authorTao Zhou <tao.zhou1@amd.com>
Wed, 30 Oct 2024 08:42:42 +0000 (16:42 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Dec 2024 15:26:47 +0000 (10:26 -0500)
commitfcb600b07894913a9e73d8c1a1ce86a36324e4a7
treec98bff4173c76fe1a1a4dfbe134065717202ab7c
parent2206daa1f9182a08aea92213dc2bcb387173dab1
drm/amdgpu: add interface to get die id from memory address

And implement it for UMC v12_0. The die id is calculated from IPID
register in bad page retirement flow, but we don't store it on eeprom
and it can be also gotten from physical address.

v2: get PA_C4 and PA_R13 from MCA address since they may be cleared in
retired page.

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/amdgpu_umc.h
drivers/gpu/drm/amd/amdgpu/umc_v12_0.c