Lines Matching refs:smu_tables
173 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].version != 0, in vega20_copy_table_from_smc()
175 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].size != 0, in vega20_copy_table_from_smc()
180 upper_32_bits(priv->smu_tables.entry[table_id].mc_addr), in vega20_copy_table_from_smc()
186 lower_32_bits(priv->smu_tables.entry[table_id].mc_addr), in vega20_copy_table_from_smc()
197 memcpy(table, priv->smu_tables.entry[table_id].table, in vega20_copy_table_from_smc()
198 priv->smu_tables.entry[table_id].size); in vega20_copy_table_from_smc()
218 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].version != 0, in vega20_copy_table_to_smc()
220 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].size != 0, in vega20_copy_table_to_smc()
223 memcpy(priv->smu_tables.entry[table_id].table, table, in vega20_copy_table_to_smc()
224 priv->smu_tables.entry[table_id].size); in vega20_copy_table_to_smc()
230 upper_32_bits(priv->smu_tables.entry[table_id].mc_addr), in vega20_copy_table_to_smc()
236 lower_32_bits(priv->smu_tables.entry[table_id].mc_addr), in vega20_copy_table_to_smc()
256 memcpy(priv->smu_tables.entry[TABLE_ACTIVITY_MONITOR_COEFF].table, table, in vega20_set_activity_monitor_coeff()
257 priv->smu_tables.entry[TABLE_ACTIVITY_MONITOR_COEFF].size); in vega20_set_activity_monitor_coeff()
263 upper_32_bits(priv->smu_tables.entry[TABLE_ACTIVITY_MONITOR_COEFF].mc_addr), in vega20_set_activity_monitor_coeff()
269 lower_32_bits(priv->smu_tables.entry[TABLE_ACTIVITY_MONITOR_COEFF].mc_addr), in vega20_set_activity_monitor_coeff()
293 upper_32_bits(priv->smu_tables.entry[TABLE_ACTIVITY_MONITOR_COEFF].mc_addr), in vega20_get_activity_monitor_coeff()
299 lower_32_bits(priv->smu_tables.entry[TABLE_ACTIVITY_MONITOR_COEFF].mc_addr), in vega20_get_activity_monitor_coeff()
311 memcpy(table, priv->smu_tables.entry[TABLE_ACTIVITY_MONITOR_COEFF].table, in vega20_get_activity_monitor_coeff()
312 priv->smu_tables.entry[TABLE_ACTIVITY_MONITOR_COEFF].size); in vega20_get_activity_monitor_coeff()
381 if (priv->smu_tables.entry[TABLE_PMSTATUSLOG].mc_addr) { in vega20_set_tools_address()
384 upper_32_bits(priv->smu_tables.entry[TABLE_PMSTATUSLOG].mc_addr), in vega20_set_tools_address()
389 lower_32_bits(priv->smu_tables.entry[TABLE_PMSTATUSLOG].mc_addr), in vega20_set_tools_address()
404 upper_32_bits(priv->smu_tables.entry[TABLE_PPTABLE].mc_addr), in vega20_set_pptable_driver_address()
410 lower_32_bits(priv->smu_tables.entry[TABLE_PPTABLE].mc_addr), in vega20_set_pptable_driver_address()
444 &priv->smu_tables.entry[TABLE_PPTABLE].handle, in vega20_smu_init()
445 &priv->smu_tables.entry[TABLE_PPTABLE].mc_addr, in vega20_smu_init()
446 &priv->smu_tables.entry[TABLE_PPTABLE].table); in vega20_smu_init()
450 priv->smu_tables.entry[TABLE_PPTABLE].version = 0x01; in vega20_smu_init()
451 priv->smu_tables.entry[TABLE_PPTABLE].size = sizeof(PPTable_t); in vega20_smu_init()
458 &priv->smu_tables.entry[TABLE_WATERMARKS].handle, in vega20_smu_init()
459 &priv->smu_tables.entry[TABLE_WATERMARKS].mc_addr, in vega20_smu_init()
460 &priv->smu_tables.entry[TABLE_WATERMARKS].table); in vega20_smu_init()
464 priv->smu_tables.entry[TABLE_WATERMARKS].version = 0x01; in vega20_smu_init()
465 priv->smu_tables.entry[TABLE_WATERMARKS].size = sizeof(Watermarks_t); in vega20_smu_init()
472 &priv->smu_tables.entry[TABLE_PMSTATUSLOG].handle, in vega20_smu_init()
473 &priv->smu_tables.entry[TABLE_PMSTATUSLOG].mc_addr, in vega20_smu_init()
474 &priv->smu_tables.entry[TABLE_PMSTATUSLOG].table); in vega20_smu_init()
478 priv->smu_tables.entry[TABLE_PMSTATUSLOG].version = 0x01; in vega20_smu_init()
479 priv->smu_tables.entry[TABLE_PMSTATUSLOG].size = tools_size; in vega20_smu_init()
486 &priv->smu_tables.entry[TABLE_OVERDRIVE].handle, in vega20_smu_init()
487 &priv->smu_tables.entry[TABLE_OVERDRIVE].mc_addr, in vega20_smu_init()
488 &priv->smu_tables.entry[TABLE_OVERDRIVE].table); in vega20_smu_init()
492 priv->smu_tables.entry[TABLE_OVERDRIVE].version = 0x01; in vega20_smu_init()
493 priv->smu_tables.entry[TABLE_OVERDRIVE].size = sizeof(OverDriveTable_t); in vega20_smu_init()
500 &priv->smu_tables.entry[TABLE_SMU_METRICS].handle, in vega20_smu_init()
501 &priv->smu_tables.entry[TABLE_SMU_METRICS].mc_addr, in vega20_smu_init()
502 &priv->smu_tables.entry[TABLE_SMU_METRICS].table); in vega20_smu_init()
506 priv->smu_tables.entry[TABLE_SMU_METRICS].version = 0x01; in vega20_smu_init()
507 priv->smu_tables.entry[TABLE_SMU_METRICS].size = sizeof(SmuMetrics_t); in vega20_smu_init()
514 &priv->smu_tables.entry[TABLE_ACTIVITY_MONITOR_COEFF].handle, in vega20_smu_init()
515 &priv->smu_tables.entry[TABLE_ACTIVITY_MONITOR_COEFF].mc_addr, in vega20_smu_init()
516 &priv->smu_tables.entry[TABLE_ACTIVITY_MONITOR_COEFF].table); in vega20_smu_init()
520 priv->smu_tables.entry[TABLE_ACTIVITY_MONITOR_COEFF].version = 0x01; in vega20_smu_init()
521 priv->smu_tables.entry[TABLE_ACTIVITY_MONITOR_COEFF].size = sizeof(DpmActivityMonitorCoeffInt_t); in vega20_smu_init()
530 amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_SMU_METRICS].handle, in vega20_smu_init()
531 &priv->smu_tables.entry[TABLE_SMU_METRICS].mc_addr, in vega20_smu_init()
532 &priv->smu_tables.entry[TABLE_SMU_METRICS].table); in vega20_smu_init()
534 amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_OVERDRIVE].handle, in vega20_smu_init()
535 &priv->smu_tables.entry[TABLE_OVERDRIVE].mc_addr, in vega20_smu_init()
536 &priv->smu_tables.entry[TABLE_OVERDRIVE].table); in vega20_smu_init()
538 amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_PMSTATUSLOG].handle, in vega20_smu_init()
539 &priv->smu_tables.entry[TABLE_PMSTATUSLOG].mc_addr, in vega20_smu_init()
540 &priv->smu_tables.entry[TABLE_PMSTATUSLOG].table); in vega20_smu_init()
542 amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_WATERMARKS].handle, in vega20_smu_init()
543 &priv->smu_tables.entry[TABLE_WATERMARKS].mc_addr, in vega20_smu_init()
544 &priv->smu_tables.entry[TABLE_WATERMARKS].table); in vega20_smu_init()
546 amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_PPTABLE].handle, in vega20_smu_init()
547 &priv->smu_tables.entry[TABLE_PPTABLE].mc_addr, in vega20_smu_init()
548 &priv->smu_tables.entry[TABLE_PPTABLE].table); in vega20_smu_init()
564 amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_PPTABLE].handle, in vega20_smu_fini()
565 &priv->smu_tables.entry[TABLE_PPTABLE].mc_addr, in vega20_smu_fini()
566 &priv->smu_tables.entry[TABLE_PPTABLE].table); in vega20_smu_fini()
567 amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_WATERMARKS].handle, in vega20_smu_fini()
568 &priv->smu_tables.entry[TABLE_WATERMARKS].mc_addr, in vega20_smu_fini()
569 &priv->smu_tables.entry[TABLE_WATERMARKS].table); in vega20_smu_fini()
570 amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_PMSTATUSLOG].handle, in vega20_smu_fini()
571 &priv->smu_tables.entry[TABLE_PMSTATUSLOG].mc_addr, in vega20_smu_fini()
572 &priv->smu_tables.entry[TABLE_PMSTATUSLOG].table); in vega20_smu_fini()
573 amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_OVERDRIVE].handle, in vega20_smu_fini()
574 &priv->smu_tables.entry[TABLE_OVERDRIVE].mc_addr, in vega20_smu_fini()
575 &priv->smu_tables.entry[TABLE_OVERDRIVE].table); in vega20_smu_fini()
576 amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_SMU_METRICS].handle, in vega20_smu_fini()
577 &priv->smu_tables.entry[TABLE_SMU_METRICS].mc_addr, in vega20_smu_fini()
578 &priv->smu_tables.entry[TABLE_SMU_METRICS].table); in vega20_smu_fini()
579 amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_ACTIVITY_MONITOR_COEFF].handle, in vega20_smu_fini()
580 &priv->smu_tables.entry[TABLE_ACTIVITY_MONITOR_COEFF].mc_addr, in vega20_smu_fini()
581 &priv->smu_tables.entry[TABLE_ACTIVITY_MONITOR_COEFF].table); in vega20_smu_fini()