Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/gpu/drm/amd/amdgpu/../ras/core/ras_umc.c ras_umc_load_bad_pages() -> ras_eeprom_read()

Type Parameter Key Value
PARAM_VALUE 0 ras_core 4096-ptr_max
PARAM_VALUE 0 ras_core->config 4096-ptr_max
PARAM_VALUE 0 ras_core->config->aca_ip_version 16777216
PARAM_VALUE 0 ras_core->config->gfx_ip_version 151257856,151258112,151322624
PARAM_VALUE 0 ras_core->config->mp1_cfg.mp1_sys_fn 0,158337106855165952
PARAM_VALUE 0 ras_core->config->mp1_ip_version 218105344,218106880,218107392
PARAM_VALUE 0 ras_core->config->nbio_cfg.nbio_sys_fn 0,2335420397446152192
PARAM_VALUE 0 ras_core->config->nbio_ip_version 118030336,118030592
PARAM_VALUE 0 ras_core->config->psp_ip_version 218105344,218106880,218107392
PARAM_VALUE 0 ras_core->config->umc_cfg.umc_vram_type 1-u32max
PARAM_VALUE 0 ras_core->config->umc_ip_version 201326592,201654272
PARAM_VALUE 0 ras_core->dev->mes.mutex_hidden.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ras_core->dev->mes.mutex_hidden.first_waiter->magic 5159360019465732096
PARAM_VALUE 0 ras_core->dev->mes.mutex_hidden.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 ras_core->dev->mes.mutex_hidden.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 ras_core->dev->mes.mutex_hidden.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 ras_core->dev->mes.mutex_hidden.first_waiter->task->blocked_on (-1)-0
PARAM_VALUE 0 ras_core->dev->mes.mutex_hidden.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 ras_core->dev->mman.vram_mgr.lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 ras_core->dev->nbio.ras_controller_irq.funcs 6476293974873112576
PARAM_VALUE 0 ras_core->dev->nbio.ras_controller_irq.funcs->process 3480311186772865024
PARAM_VALUE 0 ras_core->dev->nbio.ras_controller_irq.funcs->set 8343209822167539712
PARAM_VALUE 0 ras_core->dev->nbio.ras_controller_irq.num_types 1
PARAM_VALUE 0 ras_core->dev->nbio.ras_err_event_athub_irq.funcs 7689831456599977984
PARAM_VALUE 0 ras_core->dev->nbio.ras_err_event_athub_irq.funcs->process 1462575340515401728
PARAM_VALUE 0 ras_core->dev->nbio.ras_err_event_athub_irq.funcs->set 9080631006199447552
PARAM_VALUE 0 ras_core->dev->nbio.ras_err_event_athub_irq.num_types 1
PARAM_VALUE 0 ras_core->dev->powerplay.pp_handle->msg_ctl.lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ras_core->dev->powerplay.pp_handle->msg_ctl.lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 ras_core->dev->reset_domain->sem->wait_lock.owner (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 ras_core->dev->reset_domain->sem.dep_map->name 0-255
PARAM_VALUE 0 ras_core->dev->reset_domain->sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 ras_core->dev->reset_domain->sem.first_waiter->list.next 2212933610777083904
PARAM_VALUE 0 ras_core->dev->reset_domain->sem.first_waiter->list.prev 2212933610777083904
PARAM_VALUE 0 ras_core->dev->reset_domain->sem.first_waiter->type 0-1
PARAM_VALUE 0 ras_core->is_rma 0
PARAM_VALUE 0 ras_core->ras_aca.aca_ip_version 16777216
PARAM_VALUE 0 ras_core->ras_aca.ue_updated_mark 0
PARAM_VALUE 0 ras_core->ras_eeprom.bad_channel_bitmap 0
PARAM_VALUE 0 ras_core->ras_eeprom.i2c_adapter->dev.driver_data->adev->pm.bus_locked 0-1
PARAM_VALUE 0 ras_core->ras_eeprom.i2c_adapter->dev.parent->devt 0-4294967295
PARAM_VALUE 0 ras_core->ras_eeprom.i2c_adapter->dev.parent->dma_uses_io_tlb 0-1
PARAM_VALUE 0 ras_core->ras_eeprom.i2c_adapter->dev.parent->id 0-4294967295
PARAM_VALUE 0 ras_core->ras_eeprom.i2c_adapter->dev.parent->kobj.kref.refcount.refs.counter s32min-s32max
PARAM_VALUE 0 ras_core->ras_eeprom.i2c_adapter->dev.parent->kobj.release.cpu s32min-s32max
PARAM_VALUE 0 ras_core->ras_eeprom.i2c_adapter->dev.parent->kobj.release.timer.flags 0-4294967295
PARAM_VALUE 0 ras_core->ras_eeprom.i2c_adapter->dev.parent->kobj.state_add_uevent_sent 0-1
PARAM_VALUE 0 ras_core->ras_eeprom.i2c_adapter->dev.parent->kobj.state_in_sysfs 0-1
PARAM_VALUE 0 ras_core->ras_eeprom.i2c_adapter->dev.parent->kobj.state_initialized 0-1
PARAM_VALUE 0 ras_core->ras_eeprom.i2c_adapter->dev.parent->kobj.state_remove_uevent_sent 0-1
PARAM_VALUE 0 ras_core->ras_eeprom.i2c_adapter->dev.parent->kobj.uevent_suppress 0-1
PARAM_VALUE 0 ras_core->ras_eeprom.i2c_adapter->dev.parent->links.status 0-4294967295
PARAM_VALUE 0 ras_core->ras_eeprom.i2c_adapter->dev.parent->numa_node s32min-s32max
PARAM_VALUE 0 ras_core->ras_eeprom.i2c_adapter->dev.parent->removable 0-4294967295
PARAM_VALUE 0 ras_core->ras_eeprom.i2c_address 0,65536-196608,262144
PARAM_VALUE 0 ras_core->ras_eeprom.i2c_port 0
PARAM_VALUE 0 ras_core->ras_eeprom.ras_fri 0-10920
PARAM_VALUE 0 ras_core->ras_eeprom.ras_header_offset 0
PARAM_VALUE 0 ras_core->ras_eeprom.ras_info_offset 0,20
PARAM_VALUE 0 ras_core->ras_eeprom.ras_max_record_count 0,10911,10921
PARAM_VALUE 0 ras_core->ras_eeprom.ras_num_recs 0-10921
PARAM_VALUE 0 ras_core->ras_eeprom.ras_record_offset 0,20,276
PARAM_VALUE 0 ras_core->ras_eeprom.ras_tbl_mutex.dep_map->name 0-255
PARAM_VALUE 0 ras_core->ras_eeprom.ras_tbl_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ras_core->ras_eeprom.ras_tbl_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 ras_core->ras_eeprom.ras_tbl_mutex.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 ras_core->ras_eeprom.ras_tbl_mutex.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 ras_core->ras_eeprom.ras_tbl_mutex.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 ras_core->ras_eeprom.ras_tbl_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 ras_core->ras_eeprom.record_threshold_config s32min-(-1),1-s32max
PARAM_VALUE 0 ras_core->ras_eeprom.record_threshold_count 0-10911
PARAM_VALUE 0 ras_core->ras_eeprom.sys_func 0,2258965604344324096
PARAM_VALUE 0 ras_core->ras_eeprom.sys_func->eeprom_i2c_xfer 2562368599570972672
PARAM_VALUE 0 ras_core->ras_eeprom.sys_func->update_eeprom_i2c_config 4340666308306608128
PARAM_VALUE 0 ras_core->ras_eeprom.tbl_rai.health_percent 0,100
PARAM_VALUE 0 ras_core->ras_eeprom.tbl_rai.rma_status 0-1
PARAM_VALUE 0 ras_core->ras_eeprom.update_channel_flag 0
PARAM_VALUE 0 ras_core->ras_fw_features 0-1
PARAM_VALUE 0 ras_core->ras_gfx.gfx_ip_version 151257856,151258112,151322624
PARAM_VALUE 0 ras_core->ras_gfx.ip_func 6992497837589299200
PARAM_VALUE 0 ras_core->ras_log_ring.ras_log_mempool->curr_nr s32min-s32max
PARAM_VALUE 0 ras_core->ras_mp1.ip_func 2146650939061084160
PARAM_VALUE 0 ras_core->ras_mp1.ip_func->set_debug_mode 1-u64max
PARAM_VALUE 0 ras_core->ras_mp1.mp1_ip_version 218105344,218106880,218107392
PARAM_VALUE 0 ras_core->ras_mp1.sys_func 158337106855165952
PARAM_VALUE 0 ras_core->ras_mp1.sys_func->mp1_dump_valid_bank 7650081676082495488
PARAM_VALUE 0 ras_core->ras_mp1.sys_func->mp1_get_ras_enabled_mask 7499460703256027136
PARAM_VALUE 0 ras_core->ras_mp1.sys_func->mp1_get_valid_bank_count 6600812559232860160
PARAM_VALUE 0 ras_core->ras_mp1.sys_func->mp1_send_eeprom_msg 1075951184151539712
PARAM_VALUE 0 ras_core->ras_mp1.sys_func->mp1_set_debug_mode 40022269175197696
PARAM_VALUE 0 ras_core->ras_nbio.ip_func 7360465045137498112
PARAM_VALUE 0 ras_core->ras_nbio.nbio_ip_version 118030336,118030592
PARAM_VALUE 0 ras_core->ras_nbio.sys_func 2335420397446152192
PARAM_VALUE 0 ras_core->ras_nbio.sys_func->set_ras_controller_irq_state 8649173941750263808
PARAM_VALUE 0 ras_core->ras_nbio.sys_func->set_ras_err_event_athub_irq_state 3751645243167232000
PARAM_VALUE 0 ras_core->ras_psp.ip_func 5239289197774852096
PARAM_VALUE 0 ras_core->ras_psp.psp_ctx.external_mutex 4096-ptr_max
PARAM_VALUE 0 ras_core->ras_psp.psp_ip_version 218105344,218106880,218107392
PARAM_VALUE 0 ras_core->ras_psp.sys_func 0,4096-ptr_max
PARAM_VALUE 0 ras_core->ras_psp.ta_ctx.preload_ras_ta_enabled 1
PARAM_VALUE 0 ras_core->ras_psp.ta_ctx.ras_ta_initialized 1
PARAM_VALUE 0 ras_core->ras_umc.ip_func 513576442004369408
PARAM_VALUE 0 ras_core->ras_umc.umc_err_data.umc_nps_mode 1-8
PARAM_VALUE 0 ras_core->ras_umc.umc_ip_version 201326592,201654272
PARAM_VALUE 0 ras_core->ras_umc.umc_vram_type 1-u32max
PARAM_VALUE 1 record 4096-ptr_max
PARAM_VALUE 2 num 1-u32max
BUF_SIZE 1 record 48-206158430160
BUF_SIZE 1 record 48-206158430160
DATA_SOURCE 0 ras_core $0
DATA_SOURCE 1 record r _kzalloc_noprof
FUZZY_MAX 0 ras_core->ras_eeprom.i2c_address 0
FUZZY_MAX 0 ras_core->ras_eeprom.ras_fri 0
FUZZY_MAX 0 ras_core->ras_eeprom.ras_info_offset 0
FUZZY_MAX 0 ras_core->ras_eeprom.ras_max_record_count 0
FUZZY_MAX 0 ras_core->ras_eeprom.ras_num_recs 0
FUZZY_MAX 0 ras_core->ras_eeprom.ras_record_offset 0
FUZZY_MAX 0 ras_core->ras_eeprom.ras_tbl_mutex.osq.tail.counter 0
FUZZY_MAX 0 ras_core->ras_eeprom.record_threshold_count 0
FUZZY_MAX 0 ras_core->ras_eeprom.tbl_rai.health_percent 0
FUZZY_MAX 0 ras_core->ras_eeprom.tbl_rai.rma_status 0
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 2 num
UNITS 2 num unit_array_size
ELEM_COUNT 1 ==record2 8051
HALF_LOCKED2 &pool->lock

drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c amdgpu_ras_debugfs_table_read_uniras() -> ras_eeprom_read()

Type Parameter Key Value
PARAM_VALUE 0 ras_core 4096-ptr_max
PARAM_VALUE 1 record 1-18446744073709551614
PARAM_VALUE 2 num 1-u32max
BUF_SIZE 1 record 48
DATA_SOURCE 1 record r _kvmalloc_array_node_noprof
DATA_SOURCE 2 num r ras_eeprom_get_record_count
PARAM_COMPARE 2 num == $0->ras_eeprom.ras_num_recs
NO_OVERFLOW_SIMPLE 2 num