Defined in 2 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/gpu/drm/amd/amdgpu/../ras/core/eeprom.c __check_ras_table_status() -> __get_eeprom_i2c_addr()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
PARAM_VALUE 0 adev->ras_eeprom_supported 1
PARAM_VALUE 1 control 4096-ptr_max
BUF_SIZE 1 control 504
DATA_SOURCE 0 adev $0
PARAM_COMPARE 0 &adev->ras_eeprom == $1

drivers/gpu/drm/amd/amdgpu/../ras/core/eeprom.c ras_eeprom_check_storage_status() -> __get_eeprom_i2c_addr()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
PARAM_VALUE 0 adev->config 4096-ptr_max
PARAM_VALUE 0 adev->config->aca_ip_version 16777216
PARAM_VALUE 0 adev->config->gfx_ip_version 151257856,151258112,151322624
PARAM_VALUE 0 adev->config->mp1_ip_version 218105344,218106880,218107392
PARAM_VALUE 0 adev->config->nbio_ip_version 118030336,118030592
PARAM_VALUE 0 adev->config->psp_ip_version 218105344,218106880,218107392
PARAM_VALUE 0 adev->config->umc_cfg.umc_vram_type 1-u32max
PARAM_VALUE 0 adev->config->umc_ip_version 201326592,201654272
PARAM_VALUE 0 adev->dev->mes.mutex_hidden.first_waiter->list.next 5159360019465732096
PARAM_VALUE 0 adev->dev->mes.mutex_hidden.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 adev->dev->mes.mutex_hidden.first_waiter->magic 5159360019465732096
PARAM_VALUE 0 adev->dev->mes.mutex_hidden.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 adev->dev->mes.mutex_hidden.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 adev->dev->mes.mutex_hidden.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 adev->dev->mes.mutex_hidden.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 adev->dev->mman.vram_mgr.lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 adev->dev->nbio.ras_controller_irq.funcs 6476293974873112576
PARAM_VALUE 0 adev->dev->nbio.ras_controller_irq.funcs->process 3480311186772865024
PARAM_VALUE 0 adev->dev->nbio.ras_controller_irq.funcs->set 8343209822167539712
PARAM_VALUE 0 adev->dev->nbio.ras_controller_irq.num_types 1
PARAM_VALUE 0 adev->dev->nbio.ras_err_event_athub_irq.funcs 7689831456599977984
PARAM_VALUE 0 adev->dev->nbio.ras_err_event_athub_irq.funcs->process 1462575340515401728
PARAM_VALUE 0 adev->dev->nbio.ras_err_event_athub_irq.funcs->set 9080631006199447552
PARAM_VALUE 0 adev->dev->nbio.ras_err_event_athub_irq.num_types 1
PARAM_VALUE 0 adev->dev->pm.mutex->first_waiter->task->blocked_lock.owner (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 adev->dev->powerplay.pp_handle->msg_ctl.lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 adev->dev->powerplay.pp_handle->msg_ctl.lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 adev->dev->psp.ras_context.ras->in_recovery.counter 0-s32max
PARAM_VALUE 0 adev->dev->reset_domain->sem->wait_lock.owner (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 adev->dev->reset_domain->sem.dep_map->name 0-255
PARAM_VALUE 0 adev->dev->reset_domain->sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 adev->dev->reset_domain->sem.first_waiter->list.next 2212933610777083904
PARAM_VALUE 0 adev->dev->reset_domain->sem.first_waiter->list.prev 2212933610777083904
PARAM_VALUE 0 adev->dev->reset_domain->sem.first_waiter->type 0-1
PARAM_VALUE 0 adev->is_rma 0
PARAM_VALUE 0 adev->ras_aca.aca_ip_version 16777216
PARAM_VALUE 0 adev->ras_aca.ue_updated_mark 0
PARAM_VALUE 0 adev->ras_eeprom.bad_channel_bitmap 0
PARAM_VALUE 0 adev->ras_eeprom.i2c_adapter->dev.driver_data->adev->pm.bus_locked 0-1
PARAM_VALUE 0 adev->ras_eeprom.i2c_address 0,65536-196608,262144
PARAM_VALUE 0 adev->ras_eeprom.i2c_port 0
PARAM_VALUE 0 adev->ras_eeprom.ras_fri 0-10920
PARAM_VALUE 0 adev->ras_eeprom.ras_header_offset 0
PARAM_VALUE 0 adev->ras_eeprom.ras_info_offset 0,20
PARAM_VALUE 0 adev->ras_eeprom.ras_max_record_count 0,10911,10921
PARAM_VALUE 0 adev->ras_eeprom.ras_num_recs 0-10921
PARAM_VALUE 0 adev->ras_eeprom.ras_record_offset 0,20,276
PARAM_VALUE 0 adev->ras_eeprom.ras_tbl_mutex.dep_map->name 0-255
PARAM_VALUE 0 adev->ras_eeprom.ras_tbl_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 adev->ras_eeprom.ras_tbl_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 adev->ras_eeprom.ras_tbl_mutex.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 adev->ras_eeprom.ras_tbl_mutex.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 adev->ras_eeprom.ras_tbl_mutex.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 adev->ras_eeprom.ras_tbl_mutex.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 adev->ras_eeprom.ras_tbl_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 adev->ras_eeprom.record_threshold_count 0-10911
PARAM_VALUE 0 adev->ras_eeprom.sys_func 0,2258965604344324096
PARAM_VALUE 0 adev->ras_eeprom.sys_func->eeprom_i2c_xfer 2562368599570972672
PARAM_VALUE 0 adev->ras_eeprom.sys_func->update_eeprom_i2c_config 4340666308306608128
PARAM_VALUE 0 adev->ras_eeprom.tbl_rai.health_percent 0,100
PARAM_VALUE 0 adev->ras_eeprom.tbl_rai.rma_status 0-1
PARAM_VALUE 0 adev->ras_eeprom_supported 1
PARAM_VALUE 0 adev->ras_fw_features 0-1
PARAM_VALUE 0 adev->ras_gfx.gfx_ip_version 151257856,151258112,151322624
PARAM_VALUE 0 adev->ras_gfx.ip_func 6992497837589299200
PARAM_VALUE 0 adev->ras_mp1.ip_func 2146650939061084160
PARAM_VALUE 0 adev->ras_mp1.ip_func->set_debug_mode 1-u64max
PARAM_VALUE 0 adev->ras_mp1.mp1_ip_version 218105344,218106880,218107392
PARAM_VALUE 0 adev->ras_mp1.sys_func 158337106855165952
PARAM_VALUE 0 adev->ras_mp1.sys_func->mp1_set_debug_mode 1-u64max
PARAM_VALUE 0 adev->ras_nbio.ip_func 7360465045137498112
PARAM_VALUE 0 adev->ras_nbio.nbio_ip_version 118030336,118030592
PARAM_VALUE 0 adev->ras_nbio.sys_func 2335420397446152192
PARAM_VALUE 0 adev->ras_psp.ip_func 5239289197774852096
PARAM_VALUE 0 adev->ras_psp.psp_ctx.external_mutex 4096-ptr_max
PARAM_VALUE 0 adev->ras_psp.psp_ip_version 218105344,218106880,218107392
PARAM_VALUE 0 adev->ras_umc.ip_func 513576442004369408
PARAM_VALUE 0 adev->ras_umc.umc_err_data.umc_nps_mode 1-8
PARAM_VALUE 0 adev->ras_umc.umc_ip_version 201326592,201654272
PARAM_VALUE 0 adev->ras_umc.umc_vram_type 1-u32max
PARAM_VALUE 1 control 4096-ptr_max
PARAM_VALUE 1 control->bad_channel_bitmap 0
PARAM_VALUE 1 control->i2c_address 0,65536-196608,262144
PARAM_VALUE 1 control->i2c_port 0
PARAM_VALUE 1 control->ras_fri 0-10920
PARAM_VALUE 1 control->ras_header_offset 0
PARAM_VALUE 1 control->ras_info_offset 0,20
PARAM_VALUE 1 control->ras_max_record_count 0,10911,10921
PARAM_VALUE 1 control->ras_num_recs 0-10921
PARAM_VALUE 1 control->ras_record_offset 0,20,276
PARAM_VALUE 1 control->ras_tbl_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 1 control->record_threshold_count 0-10911
PARAM_VALUE 1 control->sys_func 0,2258965604344324096
PARAM_VALUE 1 control->tbl_rai.health_percent 0,100
PARAM_VALUE 1 control->tbl_rai.rma_status 0-1
BUF_SIZE 1 control 504
CAPPED_DATA 0 adev->ras_umc.umc_err_data.umc_nps_mode 1
DATA_SOURCE 0 adev $0
FUZZY_MAX 0 adev->ras_eeprom.i2c_address 0
FUZZY_MAX 0 adev->ras_eeprom.ras_fri 0
FUZZY_MAX 0 adev->ras_eeprom.ras_info_offset 0
FUZZY_MAX 0 adev->ras_eeprom.ras_max_record_count 0
FUZZY_MAX 0 adev->ras_eeprom.ras_num_recs 0
FUZZY_MAX 0 adev->ras_eeprom.ras_record_offset 0
FUZZY_MAX 0 adev->ras_eeprom.ras_tbl_mutex.osq.tail.counter 0
FUZZY_MAX 0 adev->ras_eeprom.record_threshold_count 0
FUZZY_MAX 0 adev->ras_eeprom.tbl_rai.health_percent 0
FUZZY_MAX 0 adev->ras_eeprom.tbl_rai.rma_status 0
PARAM_COMPARE 0 &adev->ras_eeprom == $1
RX_PATH
TASK_NOT_RUNNING

drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c amdgpu_ras_eeprom_check() -> __get_eeprom_i2c_addr()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
PARAM_VALUE 1 control 4096-ptr_max
PARAM_VALUE 1 control->i2c_address 0,65536-196608,262144
BUF_SIZE 1 control 480
CAPPED_DATA 1 control->ras_max_record_count 1
CAPPED_DATA 1 control->ras_num_recs 1
DATA_SOURCE 1 control $0
NO_OVERFLOW_SIMPLE 1 control->ras_num_recs

drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c amdgpu_ras_eeprom_init() -> __get_eeprom_i2c_addr()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
PARAM_VALUE 1 control 4096-ptr_max
BUF_SIZE 1 control 480
DATA_SOURCE 1 control $0