Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/
Damdgpu_virt.c227 if (!amdgpu_sriov_vf(adev) || adev->virt.mm_table.gpu_addr) in amdgpu_virt_alloc_mm_table()
232 &adev->virt.mm_table.bo, in amdgpu_virt_alloc_mm_table()
233 &adev->virt.mm_table.gpu_addr, in amdgpu_virt_alloc_mm_table()
234 (void *)&adev->virt.mm_table.cpu_addr); in amdgpu_virt_alloc_mm_table()
240 memset((void *)adev->virt.mm_table.cpu_addr, 0, PAGE_SIZE); in amdgpu_virt_alloc_mm_table()
242 adev->virt.mm_table.gpu_addr, in amdgpu_virt_alloc_mm_table()
243 adev->virt.mm_table.cpu_addr); in amdgpu_virt_alloc_mm_table()
254 if (!amdgpu_sriov_vf(adev) || !adev->virt.mm_table.gpu_addr) in amdgpu_virt_free_mm_table()
257 amdgpu_bo_free_kernel(&adev->virt.mm_table.bo, in amdgpu_virt_free_mm_table()
258 &adev->virt.mm_table.gpu_addr, in amdgpu_virt_free_mm_table()
[all …]
Damdgpu_virt.h238 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()
Duvd_v7_0.c791 uint32_t *init_table = adev->virt.mm_table.cpu_addr; in uvd_v7_0_sriov_start()
938 return uvd_v7_0_mmsch_start(adev, &adev->virt.mm_table); in uvd_v7_0_sriov_start()
Dvcn_v2_0.c1863 uint32_t *init_table = adev->virt.mm_table.cpu_addr; in vcn_v2_0_start_sriov()
1989 return vcn_v2_0_start_mmsch(adev, &adev->virt.mm_table); in vcn_v2_0_start_sriov()
Dvcn_v2_5.c1174 uint32_t *init_table = adev->virt.mm_table.cpu_addr; in vcn_v2_5_sriov_start()
1303 return vcn_v2_5_mmsch_start(adev, &adev->virt.mm_table); in vcn_v2_5_sriov_start()
Dvcn_v4_0.c1174 struct amdgpu_mm_table *table = &adev->virt.mm_table; in vcn_v4_0_start_sriov()
Dvcn_v3_0.c1292 struct amdgpu_mm_table *table = &adev->virt.mm_table; in vcn_v3_0_start_sriov()
/linux-6.1.9/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
354 mm_table = kzalloc(struct_size(mm_table, entries, mm_dependency_table->ucNumEntries), in get_mm_clock_voltage_table()
356 if (!mm_table) in get_mm_clock_voltage_table()
359 mm_table->count = mm_dependency_table->ucNumEntries; in get_mm_clock_voltage_table()
363 mm_table->entries[i].vddcInd = mm_dependency_record->ucVddcInd; in get_mm_clock_voltage_table()
364 mm_table->entries[i].samclock = in get_mm_clock_voltage_table()
366 mm_table->entries[i].eclk = le32_to_cpu(mm_dependency_record->ulEClk); in get_mm_clock_voltage_table()
367 mm_table->entries[i].vclk = le32_to_cpu(mm_dependency_record->ulVClk); in get_mm_clock_voltage_table()
368 mm_table->entries[i].dclk = le32_to_cpu(mm_dependency_record->ulDClk); in get_mm_clock_voltage_table()
371 *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.c2161 struct phm_ppt_v1_mm_clock_voltage_dependency_table *mm_table = in smu7_patch_voltage_dependency_tables_with_lookup_table() local
2184 for (entry_id = 0; entry_id < mm_table->count; ++entry_id) { in smu7_patch_voltage_dependency_tables_with_lookup_table()
2185 voltage_id = mm_table->entries[entry_id].vddcInd; in smu7_patch_voltage_dependency_tables_with_lookup_table()
2186 mm_table->entries[entry_id].vddc = in smu7_patch_voltage_dependency_tables_with_lookup_table()
2279 phm_ppt_v1_mm_clock_voltage_dependency_table *mm_table = pptable_info->mm_dep_table; in smu7_calc_mm_voltage_dependency_table() local
2282 for (entry_id = 0; entry_id < mm_table->count; entry_id++) { in smu7_calc_mm_voltage_dependency_table()
2283 if (mm_table->entries[entry_id].vddgfx_offset & (1 << 15)) in smu7_calc_mm_voltage_dependency_table()
2284 v_record.us_vdd = mm_table->entries[entry_id].vddc + in smu7_calc_mm_voltage_dependency_table()
2285 mm_table->entries[entry_id].vddgfx_offset - 0xFFFF; in smu7_calc_mm_voltage_dependency_table()
2287 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()
/linux-6.1.9/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.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 …]