diff options
| author | Ce Sun <cesun102@amd.com> | 2026-03-25 11:11:03 +0800 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-07-08 14:20:30 -0400 |
| commit | 8d3feba033faf8dfad647758fec79018f91a48d8 (patch) | |
| tree | 71930ba2667d53646d0be362684a2e29befaa251 | |
| parent | 656fecdc68bad6583377c82433ebda012f4c80a4 (diff) | |
| download | linux-8d3feba033faf8dfad647758fec79018f91a48d8.tar.gz linux-8d3feba033faf8dfad647758fec79018f91a48d8.zip | |
drm/amdgpu: retire legacy get_retire_flip_bits interface for UMC
Remove the legacy general get_retire_flip_bits interface for UMC
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Ce Sun <cesun102@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 4 | ||||
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_umc.h | 15 |
2 files changed, 0 insertions, 19 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c index 82175a84875f..ff1524fdb35f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c @@ -3209,10 +3209,6 @@ int amdgpu_ras_init_badpage_info(struct amdgpu_device *adev) ret = amdgpu_ras_eeprom_init(control); control->is_eeprom_valid = !ret; - if (adev->umc.ras && - adev->umc.ras->get_retire_flip_bits) - adev->umc.ras->get_retire_flip_bits(adev); - if (control->ras_num_recs && control->is_eeprom_valid) { ret = amdgpu_ras_load_bad_pages(adev); if (ret) { diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_umc.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_umc.h index 46c42997d314..b2a3db60d231 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_umc.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_umc.h @@ -77,18 +77,6 @@ #define UMC_NPS_SHIFT 40 #define UMC_NPS_MASK 0xffULL -/* three column bits and one row bit in MCA address flip - * in bad page retirement - */ -#define RETIRE_FLIP_BITS_NUM 4 - -struct amdgpu_umc_flip_bits { - uint32_t flip_bits_in_pa[RETIRE_FLIP_BITS_NUM]; - uint32_t flip_row_bit; - uint32_t r13_in_pa; - uint32_t bit_num; -}; - typedef int (*umc_func)(struct amdgpu_device *adev, uint32_t node_inst, uint32_t umc_inst, uint32_t ch_inst, void *data); @@ -100,7 +88,6 @@ struct amdgpu_umc_ras { void *ras_error_status); void (*ecc_info_query_ras_error_address)(struct amdgpu_device *adev, void *ras_error_status); - void (*get_retire_flip_bits)(struct amdgpu_device *adev); }; struct amdgpu_umc_funcs { @@ -132,8 +119,6 @@ struct amdgpu_umc { /* active mask for umc node instance */ unsigned long active_mask; - struct amdgpu_umc_flip_bits flip_bits; - unsigned long err_addr_cnt; }; |
