Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 3 files:
- drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c, line 1683
- drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c, line 673
- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c, line 1321
Smatch caller information:
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c amdgpu_gmc_init_sw_mem_ranges() -> amdgpu_gmc_query_memory_partition()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adev | 4096-ptr_max |
| PARAM_VALUE | 0 | adev->df.funcs->get_hbm_channel_number | 0,4494141108923559936,6460537183284965376 |
| PARAM_VALUE | 0 | adev->gfx.rlc.cs_data->section->reg_index | 0,4,40960,41022,41164,41174,41176,41179,41461,41471-41472,41530,41630,41632-41633,41635,41637,41694,41717,62460,65472 |
| PARAM_VALUE | 0 | adev->reset_domain->sem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | adev->reset_domain->sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | *adev->doorbell_index.sdma_engine | 0-4294967295 |
| BUF_SIZE | 0 | adev->gmc.mem_partitions | (-1),128 |
| DATA_SOURCE | 0 | adev | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | adev->gmc.agp_end | u64max[c] |
| HOST_DATA | 0 | adev->gmc.agp_size | 0,17179869184-u64max[c] |
| HOST_DATA | 0 | adev->gmc.agp_start | 0,17179869184-u64max[c] |
| HOST_DATA | 0 | adev->gmc.aper_base | 0-u64max[c] |
| HOST_DATA | 0 | adev->gmc.aper_size | 0-4503599626321920[c] |
| HOST_DATA | 0 | adev->gmc.fb_end | 0,16777216-281474959933440[c] |
| HOST_DATA | 0 | adev->gmc.fb_start | 0,16777216-281474959933440[c] |
| HOST_DATA | 0 | adev->gmc.gart_size | 1-u64max |
| HOST_DATA | 0 | adev->gmc.gart_start | 0,4294967296-u64max[c] |
| HOST_DATA | 0 | adev->gmc.mc_vram_size | 0-4503599626321920[c] |
| HOST_DATA | 0 | adev->gmc.real_vram_size | 0-4503599626321920[c] |
| HOST_DATA | 0 | adev->gmc.visible_vram_size | 0-4503599626321920[c] |
| HOST_DATA | 0 | adev->gmc.vram_end | 0-4503599626321919,u64max[c] |
| HOST_DATA | 0 | adev->gmc.vram_start | 0-u64max |
| HOST_DATA | 0 | adev->gmc.vram_vendor | 0-15 |
| HOST_DATA | 0 | adev->vm_manager.vram_base_offset | 0-u64max[c] |
| NO_OVERFLOW_SIMPLE | 0 | adev->gmc.ecc_irq.num_types | |
| NO_OVERFLOW_SIMPLE | 0 | adev->gmc.vm_fault.num_types |
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c amdgpu_xgmi_request_nps_change() -> (struct amdgpu_gmc_funcs)->query_mem_partition_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adev | 4096-ptr_max |
| PARAM_VALUE | 0 | adev->psp.adev->reset_domain->sem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | adev->psp.adev->reset_domain->sem.first_waiter->type | 0-1 |
| CAPPED_DATA | 0 | &adev->gmc.xgmi.head | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &hive->hive_lock | ||
| TYPE_LOCK | (struct amdgpu_hive_info)->hive_lock |
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c amdgpu_gmc_prepare_nps_mode_change() -> (struct amdgpu_gmc_funcs)->query_mem_partition_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adev | 4096-ptr_max |
| PARAM_VALUE | 0 | adev->gmc.gmc_funcs | 4096-ptr_max |
| PARAM_VALUE | 0 | adev->gmc.gmc_funcs->request_mem_partition_mode | 5713726759188172800 |
| PARAM_VALUE | 0 | adev->gmc.supported_nps_modes | 1-u32max |
| PARAM_VALUE | 0 | adev->xcp_mgr | 0,4096-ptr_max |
| DATA_SOURCE | 0 | adev | $0 |
| CONTAINER | 0 | -80-8552-5928+0 | $(-1) |
| BIT_INFO | 0 | adev->virt.caps | 0x0,0xfffffffb |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dev->mutex |
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c current_memory_partition_show() -> (struct amdgpu_gmc_funcs)->query_mem_partition_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adev | 4096-ptr_max |
| PARAM_VALUE | 0 | adev->gmc.gmc_funcs | 4096-ptr_max |
| PARAM_VALUE | 0 | adev->reset_domain | 4096-ptr_max |
| DATA_SOURCE | 0 | adev | r drm_to_adev |
| CONTAINER | 0 | -80-8552-5928+0 | $(-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c current_memory_partition_store() -> (struct amdgpu_gmc_funcs)->query_mem_partition_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adev | 4096-ptr_max |
| PARAM_VALUE | 0 | adev->gmc.gmc_funcs | 4096-ptr_max |
| DATA_SOURCE | 0 | adev | r drm_to_adev |
| CONTAINER | 0 | -80-8552-5928+0 | $(-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c amdgpu_ras_eeprom_append() -> (struct amdgpu_gmc_funcs)->query_mem_partition_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adev | 4096-ptr_max |
| PARAM_VALUE | 0 | adev->gmc.gmc_funcs | 4096-ptr_max |
| PARAM_VALUE | 0 | adev->gmc.gmc_funcs->query_mem_partition_mode | 8159999353309208576 |
| CONTAINER | 0 | -80-8552-5928+0 | $(-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/gpu/drm/amd/amdgpu/aqua_vanjaram.c __aqua_vanjaram_is_valid_mode() -> (struct amdgpu_gmc_funcs)->query_mem_partition_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adev | 4096-ptr_max |
| PARAM_VALUE | 0 | adev->gmc.gmc_funcs | 4096-ptr_max |
| CONTAINER | 0 | -80-8552-5928+0 | $(-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &xcp_mgr->xcp_lock | ||
| TYPE_LOCK | (struct amdgpu_xcp_mgr)->xcp_lock |
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c amdgpu_ras_add_bad_pages() -> (struct amdgpu_gmc_funcs)->query_mem_partition_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adev | 4096-ptr_max |
| PARAM_VALUE | 0 | adev->gmc.gmc_funcs | 4096-ptr_max |
| PARAM_VALUE | 0 | adev->gmc.gmc_funcs->query_mem_partition_mode | 8159999353309208576 |
| PARAM_VALUE | 0 | adev->psp.ras_context.ras | 4096-ptr_max |
| PARAM_VALUE | 0 | adev->psp.ras_context.ras->eeprom_control.i2c_address | 0,65536-196608,262144 |
| PARAM_VALUE | 0 | adev->psp.ras_context.ras->eeprom_control.ras_info_offset | 0,20 |
| PARAM_VALUE | 0 | adev->psp.ras_context.ras->eeprom_control.ras_max_record_count | 0,4000,10911,10921 |
| PARAM_VALUE | 0 | adev->psp.ras_context.ras->eeprom_control.ras_num_recs | 1-u32max |
| PARAM_VALUE | 0 | adev->psp.ras_context.ras->eeprom_control.ras_record_offset | 0,20,276 |
| PARAM_VALUE | 0 | adev->psp.ras_context.ras->eh_data | 1-u64max |
| PARAM_VALUE | 0 | adev->reset_domain->sem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | adev->reset_domain->sem.first_waiter->type | 0-1 |
| DATA_SOURCE | 0 | adev | $0 |
| CONTAINER | 0 | -80-8552-5928+0 | $(-1) |
| BIT_INFO | 0 | adev->virt.caps | 0x0,0xfffffffb |
| NO_OVERFLOW_SIMPLE | 0 | adev->umc.max_ras_err_cnt_per_query | |
| NO_OVERFLOW_SIMPLE | 0 | adev->umc.retire_unit |
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_topology.c fill_in_l2_l3_pcache() -> (struct amdgpu_gmc_funcs)->query_mem_partition_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adev | 4096-ptr_max |
| PARAM_VALUE | 0 | adev->gmc.gmc_funcs | 4096-ptr_max |
| PARAM_VALUE | 0 | adev->pdev | 4096-ptr_max |
| PARAM_VALUE | 0 | adev->xcp_mgr | 0,4096-ptr_max |
| CONTAINER | 0 | -80-8552-5928+0 | $(-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | adev->rmmio_size | |
| LOCK2 | global &topology_lock | ||
| HALF_LOCKED2 | &xcp_mgr->xcp_lock |
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp_ras_initialize() -> (struct amdgpu_gmc_funcs)->query_mem_partition_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adev | 4096-ptr_max |
| PARAM_VALUE | 0 | adev->gmc.gmc_funcs | 4096-ptr_max |
| PARAM_VALUE | 0 | adev->gmc.gmc_funcs->query_mem_partition_mode | 8159999353309208576 |
| PARAM_VALUE | 0 | adev->psp.adev->reset_domain->sem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | adev->psp.adev->reset_domain->sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | adev->psp.ras_context.context.bin_desc.size_bytes | 1-u32max |
| PARAM_VALUE | 0 | adev->psp.ras_context.context.bin_desc.start_addr | 1-u64max |
| CONTAINER | 0 | -80-8552-5928+0 | $(-1) |
| BIT_INFO | 0 | adev->virt.caps | 0x0,0xfffffffb |