Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/
Damdgpu_virt.c198 if (!amdgpu_sriov_vf(adev) || adev->virt.mm_table.gpu_addr) in amdgpu_virt_alloc_mm_table()
204 &adev->virt.mm_table.bo, in amdgpu_virt_alloc_mm_table()
205 &adev->virt.mm_table.gpu_addr, in amdgpu_virt_alloc_mm_table()
206 (void *)&adev->virt.mm_table.cpu_addr); in amdgpu_virt_alloc_mm_table()
212 memset((void *)adev->virt.mm_table.cpu_addr, 0, PAGE_SIZE); in amdgpu_virt_alloc_mm_table()
214 adev->virt.mm_table.gpu_addr, in amdgpu_virt_alloc_mm_table()
215 adev->virt.mm_table.cpu_addr); in amdgpu_virt_alloc_mm_table()
226 if (!amdgpu_sriov_vf(adev) || !adev->virt.mm_table.gpu_addr) in amdgpu_virt_free_mm_table()
229 amdgpu_bo_free_kernel(&adev->virt.mm_table.bo, in amdgpu_virt_free_mm_table()
230 &adev->virt.mm_table.gpu_addr, in amdgpu_virt_free_mm_table()
[all …]
Damdgpu_virt.h251 struct amdgpu_mm_table mm_table; member
Dvce_v4_0.c214 uint32_t *init_table = adev->virt.mm_table.cpu_addr; in vce_v4_0_sriov_start()
326 return vce_v4_0_mmsch_start(adev, &adev->virt.mm_table); in vce_v4_0_sriov_start()
Djpeg_v4_0.c416 struct amdgpu_mm_table *table = &adev->virt.mm_table; in jpeg_v4_0_start_sriov()
Duvd_v7_0.c796 uint32_t *init_table = adev->virt.mm_table.cpu_addr; in uvd_v7_0_sriov_start()
943 return uvd_v7_0_mmsch_start(adev, &adev->virt.mm_table); in uvd_v7_0_sriov_start()
Dvcn_v2_0.c1908 uint32_t *init_table = adev->virt.mm_table.cpu_addr; in vcn_v2_0_start_sriov()
2034 return vcn_v2_0_start_mmsch(adev, &adev->virt.mm_table); in vcn_v2_0_start_sriov()
Dvcn_v2_5.c1268 uint32_t *init_table = adev->virt.mm_table.cpu_addr; in vcn_v2_5_sriov_start()
1397 return vcn_v2_5_mmsch_start(adev, &adev->virt.mm_table); in vcn_v2_5_sriov_start()
Djpeg_v4_0_3.c193 struct amdgpu_mm_table *table = &adev->virt.mm_table; in jpeg_v4_0_3_start_sriov()
Dvcn_v4_0_3.c906 struct amdgpu_mm_table *table = &adev->virt.mm_table; in vcn_v4_0_3_start_sriov()
Dvcn_v4_0.c1290 struct amdgpu_mm_table *table = &adev->virt.mm_table; in vcn_v4_0_start_sriov()
Dvcn_v3_0.c1339 struct amdgpu_mm_table *table = &adev->virt.mm_table; in vcn_v3_0_start_sriov()
/linux-6.12.1/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dvega10_processpptables.c348 phm_ppt_v1_mm_clock_voltage_dependency_table *mm_table; in get_mm_clock_voltage_table() local
353 mm_table = kzalloc(struct_size(mm_table, entries, mm_dependency_table->ucNumEntries), in get_mm_clock_voltage_table()
355 if (!mm_table) in get_mm_clock_voltage_table()
358 mm_table->count = mm_dependency_table->ucNumEntries; in get_mm_clock_voltage_table()
362 mm_table->entries[i].vddcInd = mm_dependency_record->ucVddcInd; in get_mm_clock_voltage_table()
363 mm_table->entries[i].samclock = in get_mm_clock_voltage_table()
365 mm_table->entries[i].eclk = le32_to_cpu(mm_dependency_record->ulEClk); in get_mm_clock_voltage_table()
366 mm_table->entries[i].vclk = le32_to_cpu(mm_dependency_record->ulVClk); in get_mm_clock_voltage_table()
367 mm_table->entries[i].dclk = le32_to_cpu(mm_dependency_record->ulDClk); in get_mm_clock_voltage_table()
370 *vega10_mm_table = mm_table; in get_mm_clock_voltage_table()
Dprocess_pptables_v1_0.c722 phm_ppt_v1_mm_clock_voltage_dependency_table *mm_table; in get_mm_clock_voltage_table() local
727 mm_table = kzalloc(struct_size(mm_table, entries, mm_dependency_table->ucNumEntries), in get_mm_clock_voltage_table()
729 if (!mm_table) in get_mm_clock_voltage_table()
732 mm_table->count = mm_dependency_table->ucNumEntries; in get_mm_clock_voltage_table()
740 entries, mm_table, i); in get_mm_clock_voltage_table()
750 *tonga_mm_table = mm_table; in get_mm_clock_voltage_table()
Dsmu7_hwmgr.c2211 struct phm_ppt_v1_mm_clock_voltage_dependency_table *mm_table = in smu7_patch_voltage_dependency_tables_with_lookup_table() local
2234 for (entry_id = 0; entry_id < mm_table->count; ++entry_id) { in smu7_patch_voltage_dependency_tables_with_lookup_table()
2235 voltage_id = mm_table->entries[entry_id].vddcInd; in smu7_patch_voltage_dependency_tables_with_lookup_table()
2236 mm_table->entries[entry_id].vddc = in smu7_patch_voltage_dependency_tables_with_lookup_table()
2329 phm_ppt_v1_mm_clock_voltage_dependency_table *mm_table = pptable_info->mm_dep_table; in smu7_calc_mm_voltage_dependency_table() local
2332 for (entry_id = 0; entry_id < mm_table->count; entry_id++) { in smu7_calc_mm_voltage_dependency_table()
2333 if (mm_table->entries[entry_id].vddgfx_offset & (1 << 15)) in smu7_calc_mm_voltage_dependency_table()
2334 v_record.us_vdd = mm_table->entries[entry_id].vddc + in smu7_calc_mm_voltage_dependency_table()
2335 mm_table->entries[entry_id].vddgfx_offset - 0xFFFF; in smu7_calc_mm_voltage_dependency_table()
2337 v_record.us_vdd = mm_table->entries[entry_id].vddc + in smu7_calc_mm_voltage_dependency_table()
[all …]
Dvega10_hwmgr.c674 struct phm_ppt_v1_mm_clock_voltage_dependency_table *mm_table = in vega10_patch_voltage_dependency_tables_with_lookup_table() local
697 for (entry_id = 0; entry_id < mm_table->count; ++entry_id) { in vega10_patch_voltage_dependency_tables_with_lookup_table()
698 voltage_id = mm_table->entries[entry_id].vddcInd; in vega10_patch_voltage_dependency_tables_with_lookup_table()
699 mm_table->entries[entry_id].vddc = in vega10_patch_voltage_dependency_tables_with_lookup_table()
/linux-6.12.1/drivers/gpu/drm/amd/pm/powerplay/smumgr/
Dpolaris10_smumgr.c1373 struct phm_ppt_v1_mm_clock_voltage_dependency_table *mm_table = in polaris10_populate_smc_vce_level() local
1378 table->VceLevelCount = (uint8_t)(mm_table->count); in polaris10_populate_smc_vce_level()
1382 table->VceLevel[count].Frequency = mm_table->entries[count].eclk; in polaris10_populate_smc_vce_level()
1385 (mm_table->entries[count].vddc * VOLTAGE_SCALE) << VDDC_SHIFT; in polaris10_populate_smc_vce_level()
1389 mm_table->entries[count].vddc - VDDC_VDDCI_DELTA); in polaris10_populate_smc_vce_level()
1391 vddci = mm_table->entries[count].vddc - VDDC_VDDCI_DELTA; in polaris10_populate_smc_vce_level()
1423 struct phm_ppt_v1_mm_clock_voltage_dependency_table *mm_table = in polaris10_populate_smc_samu_level() local
1428 table->SamuLevelCount = (uint8_t)(mm_table->count); in polaris10_populate_smc_samu_level()
1432 table->SamuLevel[count].Frequency = mm_table->entries[count].samclock; in polaris10_populate_smc_samu_level()
1434 (mm_table->entries[count].vddc * VOLTAGE_SCALE) << VDDC_SHIFT; in polaris10_populate_smc_samu_level()
[all …]
Dfiji_smumgr.c1426 struct phm_ppt_v1_mm_clock_voltage_dependency_table *mm_table = in fiji_populate_smc_vce_level() local
1429 table->VceLevelCount = (uint8_t)(mm_table->count); in fiji_populate_smc_vce_level()
1433 table->VceLevel[count].Frequency = mm_table->entries[count].eclk; in fiji_populate_smc_vce_level()
1436 (mm_table->entries[count].vddc * VOLTAGE_SCALE) << VDDC_SHIFT; in fiji_populate_smc_vce_level()
1438 ((mm_table->entries[count].vddc - VDDC_VDDCI_DELTA) * in fiji_populate_smc_vce_level()
1465 struct phm_ppt_v1_mm_clock_voltage_dependency_table *mm_table = in fiji_populate_smc_acp_level() local
1468 table->AcpLevelCount = (uint8_t)(mm_table->count); in fiji_populate_smc_acp_level()
1472 table->AcpLevel[count].Frequency = mm_table->entries[count].aclk; in fiji_populate_smc_acp_level()
1473 table->AcpLevel[count].MinVoltage |= (mm_table->entries[count].vddc * in fiji_populate_smc_acp_level()
1475 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.c1202 struct phm_ppt_v1_mm_clock_voltage_dependency_table *mm_table = in vegam_populate_smc_vce_level() local
1207 table->VceLevelCount = (uint8_t)(mm_table->count); in vegam_populate_smc_vce_level()
1211 table->VceLevel[count].Frequency = mm_table->entries[count].eclk; in vegam_populate_smc_vce_level()
1214 (mm_table->entries[count].vddc * VOLTAGE_SCALE) << VDDC_SHIFT; in vegam_populate_smc_vce_level()
1218 mm_table->entries[count].vddc - VDDC_VDDCI_DELTA); in vegam_populate_smc_vce_level()
1220 vddci = mm_table->entries[count].vddc - VDDC_VDDCI_DELTA; in vegam_populate_smc_vce_level()
1315 struct phm_ppt_v1_mm_clock_voltage_dependency_table *mm_table = in vegam_populate_smc_uvd_level() local
1320 table->UvdLevelCount = (uint8_t)(mm_table->count); in vegam_populate_smc_uvd_level()
1325 table->UvdLevel[count].VclkFrequency = mm_table->entries[count].vclk; in vegam_populate_smc_uvd_level()
1326 table->UvdLevel[count].DclkFrequency = mm_table->entries[count].dclk; in vegam_populate_smc_uvd_level()
[all …]