Home
last modified time | relevance | path

Searched refs:mm_table (Results 1 – 15 of 15) sorted by relevance

/drivers/gpu/drm/amd/amdgpu/
Damdgpu_virt.c211 if (!amdgpu_sriov_vf(adev) || adev->virt.mm_table.gpu_addr) in amdgpu_virt_alloc_mm_table()
216 &adev->virt.mm_table.bo, in amdgpu_virt_alloc_mm_table()
217 &adev->virt.mm_table.gpu_addr, in amdgpu_virt_alloc_mm_table()
218 (void *)&adev->virt.mm_table.cpu_addr); in amdgpu_virt_alloc_mm_table()
224 memset((void *)adev->virt.mm_table.cpu_addr, 0, PAGE_SIZE); in amdgpu_virt_alloc_mm_table()
226 adev->virt.mm_table.gpu_addr, in amdgpu_virt_alloc_mm_table()
227 adev->virt.mm_table.cpu_addr); in amdgpu_virt_alloc_mm_table()
238 if (!amdgpu_sriov_vf(adev) || !adev->virt.mm_table.gpu_addr) in amdgpu_virt_free_mm_table()
241 amdgpu_bo_free_kernel(&adev->virt.mm_table.bo, in amdgpu_virt_free_mm_table()
242 &adev->virt.mm_table.gpu_addr, in amdgpu_virt_free_mm_table()
[all …]
Damdgpu_virt.h214 struct amdgpu_mm_table mm_table; member
Dvce_v4_0.c213 uint32_t *init_table = adev->virt.mm_table.cpu_addr; in vce_v4_0_sriov_start()
325 return vce_v4_0_mmsch_start(adev, &adev->virt.mm_table); in vce_v4_0_sriov_start()
Duvd_v7_0.c772 uint32_t *init_table = adev->virt.mm_table.cpu_addr; in uvd_v7_0_sriov_start()
919 return uvd_v7_0_mmsch_start(adev, &adev->virt.mm_table); in uvd_v7_0_sriov_start()
Dvcn_v2_5.c1172 uint32_t *init_table = adev->virt.mm_table.cpu_addr; in vcn_v2_5_sriov_start()
1301 return vcn_v2_5_mmsch_start(adev, &adev->virt.mm_table); in vcn_v2_5_sriov_start()
Dvcn_v2_0.c1854 uint32_t *init_table = adev->virt.mm_table.cpu_addr; in vcn_v2_0_start_sriov()
1981 return vcn_v2_0_start_mmsch(adev, &adev->virt.mm_table); in vcn_v2_0_start_sriov()
Dvcn_v3_0.c1227 struct amdgpu_mm_table *table = &adev->virt.mm_table; in vcn_v3_0_start_sriov()
/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dvega10_processpptables.c349 phm_ppt_v1_mm_clock_voltage_dependency_table *mm_table; in get_mm_clock_voltage_table() local
357 mm_table = kzalloc(table_size, GFP_KERNEL); in get_mm_clock_voltage_table()
359 if (!mm_table) in get_mm_clock_voltage_table()
362 mm_table->count = mm_dependency_table->ucNumEntries; in get_mm_clock_voltage_table()
366 mm_table->entries[i].vddcInd = mm_dependency_record->ucVddcInd; in get_mm_clock_voltage_table()
367 mm_table->entries[i].samclock = in get_mm_clock_voltage_table()
369 mm_table->entries[i].eclk = le32_to_cpu(mm_dependency_record->ulEClk); in get_mm_clock_voltage_table()
370 mm_table->entries[i].vclk = le32_to_cpu(mm_dependency_record->ulVClk); in get_mm_clock_voltage_table()
371 mm_table->entries[i].dclk = le32_to_cpu(mm_dependency_record->ulDClk); in get_mm_clock_voltage_table()
374 *vega10_mm_table = mm_table; in get_mm_clock_voltage_table()
Dprocess_pptables_v1_0.c695 phm_ppt_v1_mm_clock_voltage_dependency_table *mm_table; in get_mm_clock_voltage_table() local
703 mm_table = kzalloc(table_size, GFP_KERNEL); in get_mm_clock_voltage_table()
705 if (NULL == mm_table) in get_mm_clock_voltage_table()
708 mm_table->count = mm_dependency_table->ucNumEntries; in get_mm_clock_voltage_table()
716 entries, mm_table, i); in get_mm_clock_voltage_table()
726 *tonga_mm_table = mm_table; in get_mm_clock_voltage_table()
Dsmu7_hwmgr.c1946 struct phm_ppt_v1_mm_clock_voltage_dependency_table *mm_table = in smu7_patch_voltage_dependency_tables_with_lookup_table() local
1969 for (entry_id = 0; entry_id < mm_table->count; ++entry_id) { in smu7_patch_voltage_dependency_tables_with_lookup_table()
1970 voltage_id = mm_table->entries[entry_id].vddcInd; in smu7_patch_voltage_dependency_tables_with_lookup_table()
1971 mm_table->entries[entry_id].vddc = in smu7_patch_voltage_dependency_tables_with_lookup_table()
2064 phm_ppt_v1_mm_clock_voltage_dependency_table *mm_table = pptable_info->mm_dep_table; in smu7_calc_mm_voltage_dependency_table() local
2067 for (entry_id = 0; entry_id < mm_table->count; entry_id++) { in smu7_calc_mm_voltage_dependency_table()
2068 if (mm_table->entries[entry_id].vddgfx_offset & (1 << 15)) in smu7_calc_mm_voltage_dependency_table()
2069 v_record.us_vdd = mm_table->entries[entry_id].vddc + in smu7_calc_mm_voltage_dependency_table()
2070 mm_table->entries[entry_id].vddgfx_offset - 0xFFFF; in smu7_calc_mm_voltage_dependency_table()
2072 v_record.us_vdd = mm_table->entries[entry_id].vddc + in smu7_calc_mm_voltage_dependency_table()
[all …]
Dvega10_hwmgr.c666 struct phm_ppt_v1_mm_clock_voltage_dependency_table *mm_table = in vega10_patch_voltage_dependency_tables_with_lookup_table() local
689 for (entry_id = 0; entry_id < mm_table->count; ++entry_id) { in vega10_patch_voltage_dependency_tables_with_lookup_table()
690 voltage_id = mm_table->entries[entry_id].vddcInd; in vega10_patch_voltage_dependency_tables_with_lookup_table()
691 mm_table->entries[entry_id].vddc = in vega10_patch_voltage_dependency_tables_with_lookup_table()
/drivers/gpu/drm/amd/pm/powerplay/smumgr/
Dfiji_smumgr.c1427 struct phm_ppt_v1_mm_clock_voltage_dependency_table *mm_table = in fiji_populate_smc_vce_level() local
1430 table->VceLevelCount = (uint8_t)(mm_table->count); in fiji_populate_smc_vce_level()
1434 table->VceLevel[count].Frequency = mm_table->entries[count].eclk; in fiji_populate_smc_vce_level()
1437 (mm_table->entries[count].vddc * VOLTAGE_SCALE) << VDDC_SHIFT; in fiji_populate_smc_vce_level()
1439 ((mm_table->entries[count].vddc - VDDC_VDDCI_DELTA) * in fiji_populate_smc_vce_level()
1466 struct phm_ppt_v1_mm_clock_voltage_dependency_table *mm_table = in fiji_populate_smc_acp_level() local
1469 table->AcpLevelCount = (uint8_t)(mm_table->count); in fiji_populate_smc_acp_level()
1473 table->AcpLevel[count].Frequency = mm_table->entries[count].aclk; in fiji_populate_smc_acp_level()
1474 table->AcpLevel[count].MinVoltage |= (mm_table->entries[count].vddc * in fiji_populate_smc_acp_level()
1476 table->AcpLevel[count].MinVoltage |= ((mm_table->entries[count].vddc - in fiji_populate_smc_acp_level()
[all …]
Dtonga_smumgr.c1317 phm_ppt_v1_mm_clock_voltage_dependency_table *mm_table = in tonga_populate_smc_uvd_level() local
1320 table->UvdLevelCount = (uint8_t) (mm_table->count); in tonga_populate_smc_uvd_level()
1324 table->UvdLevel[count].VclkFrequency = mm_table->entries[count].vclk; in tonga_populate_smc_uvd_level()
1325 table->UvdLevel[count].DclkFrequency = mm_table->entries[count].dclk; in tonga_populate_smc_uvd_level()
1328 mm_table->entries[count].vddc); in tonga_populate_smc_uvd_level()
1332 mm_table->entries[count].vddgfx) : 0; in tonga_populate_smc_uvd_level()
1335 mm_table->entries[count].vddc - VDDC_VDDCI_DELTA); in tonga_populate_smc_uvd_level()
1377 phm_ppt_v1_mm_clock_voltage_dependency_table *mm_table = in tonga_populate_smc_vce_level() local
1380 table->VceLevelCount = (uint8_t) (mm_table->count); in tonga_populate_smc_vce_level()
1385 mm_table->entries[count].eclk; in tonga_populate_smc_vce_level()
[all …]
Dvegam_smumgr.c1203 struct phm_ppt_v1_mm_clock_voltage_dependency_table *mm_table = in vegam_populate_smc_vce_level() local
1208 table->VceLevelCount = (uint8_t)(mm_table->count); in vegam_populate_smc_vce_level()
1212 table->VceLevel[count].Frequency = mm_table->entries[count].eclk; in vegam_populate_smc_vce_level()
1215 (mm_table->entries[count].vddc * VOLTAGE_SCALE) << VDDC_SHIFT; in vegam_populate_smc_vce_level()
1219 mm_table->entries[count].vddc - VDDC_VDDCI_DELTA); in vegam_populate_smc_vce_level()
1221 vddci = mm_table->entries[count].vddc - VDDC_VDDCI_DELTA; in vegam_populate_smc_vce_level()
1316 struct phm_ppt_v1_mm_clock_voltage_dependency_table *mm_table = in vegam_populate_smc_uvd_level() local
1321 table->UvdLevelCount = (uint8_t)(mm_table->count); in vegam_populate_smc_uvd_level()
1326 table->UvdLevel[count].VclkFrequency = mm_table->entries[count].vclk; in vegam_populate_smc_uvd_level()
1327 table->UvdLevel[count].DclkFrequency = mm_table->entries[count].dclk; in vegam_populate_smc_uvd_level()
[all …]
Dpolaris10_smumgr.c1295 struct phm_ppt_v1_mm_clock_voltage_dependency_table *mm_table = in polaris10_populate_smc_vce_level() local
1300 table->VceLevelCount = (uint8_t)(mm_table->count); in polaris10_populate_smc_vce_level()
1304 table->VceLevel[count].Frequency = mm_table->entries[count].eclk; in polaris10_populate_smc_vce_level()
1307 (mm_table->entries[count].vddc * VOLTAGE_SCALE) << VDDC_SHIFT; in polaris10_populate_smc_vce_level()
1311 mm_table->entries[count].vddc - VDDC_VDDCI_DELTA); in polaris10_populate_smc_vce_level()
1313 vddci = mm_table->entries[count].vddc - VDDC_VDDCI_DELTA; in polaris10_populate_smc_vce_level()
1401 struct phm_ppt_v1_mm_clock_voltage_dependency_table *mm_table = in polaris10_populate_smc_uvd_level() local
1406 table->UvdLevelCount = (uint8_t)(mm_table->count); in polaris10_populate_smc_uvd_level()
1411 table->UvdLevel[count].VclkFrequency = mm_table->entries[count].vclk; in polaris10_populate_smc_uvd_level()
1412 table->UvdLevel[count].DclkFrequency = mm_table->entries[count].dclk; in polaris10_populate_smc_uvd_level()
[all …]