Home
last modified time | relevance | path

Searched refs:ras_num_recs (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ras_eeprom.c296 control->ras_num_recs = 0; in amdgpu_ras_eeprom_reset_table()
299 amdgpu_dpm_send_hbm_bad_pages_num(adev, control->ras_num_recs); in amdgpu_ras_eeprom_reset_table()
487 a = control->ras_fri + control->ras_num_recs; in amdgpu_ras_eeprom_append_table()
537 control->ras_num_recs = 1 + (control->ras_max_record_count + b in amdgpu_ras_eeprom_append_table()
557 control->ras_num_recs >= ras->bad_page_cnt_threshold) { in amdgpu_ras_eeprom_update_header()
560 control->ras_num_recs, ras->bad_page_cnt_threshold); in amdgpu_ras_eeprom_update_header()
566 control->tbl_hdr.tbl_size = RAS_TABLE_HEADER_SIZE + control->ras_num_recs * RAS_TABLE_RECORD_SIZE; in amdgpu_ras_eeprom_update_header()
569 buf_size = control->ras_num_recs * RAS_TABLE_RECORD_SIZE; in amdgpu_ras_eeprom_update_header()
570 buf = kcalloc(control->ras_num_recs, RAS_TABLE_RECORD_SIZE, GFP_KERNEL); in amdgpu_ras_eeprom_update_header()
723 } else if (num > control->ras_num_recs) { in amdgpu_ras_eeprom_read()
[all …]
Damdgpu_ras_eeprom.h65 u32 ras_num_recs; member
Damdgpu_umc.c99 amdgpu_dpm_send_hbm_bad_pages_num(adev, con->eeprom_control.ras_num_recs); in amdgpu_umc_do_page_retirement()
Damdgpu_ras.c2042 save_count = data->count - control->ras_num_recs; in amdgpu_ras_save_bad_pages()
2047 &data->bps[control->ras_num_recs], in amdgpu_ras_save_bad_pages()
2071 if (control->ras_num_recs == 0 || amdgpu_bad_page_threshold == 0) in amdgpu_ras_load_bad_pages()
2074 bps = kcalloc(control->ras_num_recs, sizeof(*bps), GFP_KERNEL); in amdgpu_ras_load_bad_pages()
2078 ret = amdgpu_ras_eeprom_read(control, bps, control->ras_num_recs); in amdgpu_ras_load_bad_pages()
2082 ret = amdgpu_ras_add_bad_pages(adev, bps, control->ras_num_recs); in amdgpu_ras_load_bad_pages()
2208 if (con->eeprom_control.ras_num_recs) { in amdgpu_ras_recovery_init()
2213 amdgpu_dpm_send_hbm_bad_pages_num(adev, con->eeprom_control.ras_num_recs); in amdgpu_ras_recovery_init()