Lines Matching refs:smu_tables
49 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].version != 0, in vega12_copy_table_from_smc()
51 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].size != 0, in vega12_copy_table_from_smc()
55 upper_32_bits(priv->smu_tables.entry[table_id].mc_addr), in vega12_copy_table_from_smc()
60 lower_32_bits(priv->smu_tables.entry[table_id].mc_addr), in vega12_copy_table_from_smc()
73 memcpy(table, priv->smu_tables.entry[table_id].table, in vega12_copy_table_from_smc()
74 priv->smu_tables.entry[table_id].size); in vega12_copy_table_from_smc()
93 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].version != 0, in vega12_copy_table_to_smc()
95 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].size != 0, in vega12_copy_table_to_smc()
98 memcpy(priv->smu_tables.entry[table_id].table, table, in vega12_copy_table_to_smc()
99 priv->smu_tables.entry[table_id].size); in vega12_copy_table_to_smc()
105 upper_32_bits(priv->smu_tables.entry[table_id].mc_addr), in vega12_copy_table_to_smc()
111 lower_32_bits(priv->smu_tables.entry[table_id].mc_addr), in vega12_copy_table_to_smc()
199 if (priv->smu_tables.entry[TABLE_PMSTATUSLOG].mc_addr) { in vega12_set_tools_address()
202 upper_32_bits(priv->smu_tables.entry[TABLE_PMSTATUSLOG].mc_addr), in vega12_set_tools_address()
206 lower_32_bits(priv->smu_tables.entry[TABLE_PMSTATUSLOG].mc_addr), in vega12_set_tools_address()
235 &priv->smu_tables.entry[TABLE_PPTABLE].handle, in vega12_smu_init()
236 &priv->smu_tables.entry[TABLE_PPTABLE].mc_addr, in vega12_smu_init()
237 &priv->smu_tables.entry[TABLE_PPTABLE].table); in vega12_smu_init()
241 priv->smu_tables.entry[TABLE_PPTABLE].version = 0x01; in vega12_smu_init()
242 priv->smu_tables.entry[TABLE_PPTABLE].size = sizeof(PPTable_t); in vega12_smu_init()
249 &priv->smu_tables.entry[TABLE_WATERMARKS].handle, in vega12_smu_init()
250 &priv->smu_tables.entry[TABLE_WATERMARKS].mc_addr, in vega12_smu_init()
251 &priv->smu_tables.entry[TABLE_WATERMARKS].table); in vega12_smu_init()
256 priv->smu_tables.entry[TABLE_WATERMARKS].version = 0x01; in vega12_smu_init()
257 priv->smu_tables.entry[TABLE_WATERMARKS].size = sizeof(Watermarks_t); in vega12_smu_init()
265 &priv->smu_tables.entry[TABLE_PMSTATUSLOG].handle, in vega12_smu_init()
266 &priv->smu_tables.entry[TABLE_PMSTATUSLOG].mc_addr, in vega12_smu_init()
267 &priv->smu_tables.entry[TABLE_PMSTATUSLOG].table); in vega12_smu_init()
271 priv->smu_tables.entry[TABLE_PMSTATUSLOG].version = 0x01; in vega12_smu_init()
272 priv->smu_tables.entry[TABLE_PMSTATUSLOG].size = tools_size; in vega12_smu_init()
280 &priv->smu_tables.entry[TABLE_AVFS_FUSE_OVERRIDE].handle, in vega12_smu_init()
281 &priv->smu_tables.entry[TABLE_AVFS_FUSE_OVERRIDE].mc_addr, in vega12_smu_init()
282 &priv->smu_tables.entry[TABLE_AVFS_FUSE_OVERRIDE].table); in vega12_smu_init()
287 priv->smu_tables.entry[TABLE_AVFS_FUSE_OVERRIDE].version = 0x01; in vega12_smu_init()
288 priv->smu_tables.entry[TABLE_AVFS_FUSE_OVERRIDE].size = sizeof(AvfsFuseOverride_t); in vega12_smu_init()
295 &priv->smu_tables.entry[TABLE_OVERDRIVE].handle, in vega12_smu_init()
296 &priv->smu_tables.entry[TABLE_OVERDRIVE].mc_addr, in vega12_smu_init()
297 &priv->smu_tables.entry[TABLE_OVERDRIVE].table); in vega12_smu_init()
301 priv->smu_tables.entry[TABLE_OVERDRIVE].version = 0x01; in vega12_smu_init()
302 priv->smu_tables.entry[TABLE_OVERDRIVE].size = sizeof(OverDriveTable_t); in vega12_smu_init()
309 &priv->smu_tables.entry[TABLE_SMU_METRICS].handle, in vega12_smu_init()
310 &priv->smu_tables.entry[TABLE_SMU_METRICS].mc_addr, in vega12_smu_init()
311 &priv->smu_tables.entry[TABLE_SMU_METRICS].table); in vega12_smu_init()
315 priv->smu_tables.entry[TABLE_SMU_METRICS].version = 0x01; in vega12_smu_init()
316 priv->smu_tables.entry[TABLE_SMU_METRICS].size = sizeof(SmuMetrics_t); in vega12_smu_init()
321 amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_OVERDRIVE].handle, in vega12_smu_init()
322 &priv->smu_tables.entry[TABLE_OVERDRIVE].mc_addr, in vega12_smu_init()
323 &priv->smu_tables.entry[TABLE_OVERDRIVE].table); in vega12_smu_init()
325 amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_AVFS_FUSE_OVERRIDE].handle, in vega12_smu_init()
326 &priv->smu_tables.entry[TABLE_AVFS_FUSE_OVERRIDE].mc_addr, in vega12_smu_init()
327 &priv->smu_tables.entry[TABLE_AVFS_FUSE_OVERRIDE].table); in vega12_smu_init()
329 if (priv->smu_tables.entry[TABLE_PMSTATUSLOG].table) in vega12_smu_init()
330 amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_PMSTATUSLOG].handle, in vega12_smu_init()
331 &priv->smu_tables.entry[TABLE_PMSTATUSLOG].mc_addr, in vega12_smu_init()
332 &priv->smu_tables.entry[TABLE_PMSTATUSLOG].table); in vega12_smu_init()
334 amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_WATERMARKS].handle, in vega12_smu_init()
335 &priv->smu_tables.entry[TABLE_WATERMARKS].mc_addr, in vega12_smu_init()
336 &priv->smu_tables.entry[TABLE_WATERMARKS].table); in vega12_smu_init()
338 amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_PPTABLE].handle, in vega12_smu_init()
339 &priv->smu_tables.entry[TABLE_PPTABLE].mc_addr, in vega12_smu_init()
340 &priv->smu_tables.entry[TABLE_PPTABLE].table); in vega12_smu_init()
353 amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_PPTABLE].handle, in vega12_smu_fini()
354 &priv->smu_tables.entry[TABLE_PPTABLE].mc_addr, in vega12_smu_fini()
355 &priv->smu_tables.entry[TABLE_PPTABLE].table); in vega12_smu_fini()
356 amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_WATERMARKS].handle, in vega12_smu_fini()
357 &priv->smu_tables.entry[TABLE_WATERMARKS].mc_addr, in vega12_smu_fini()
358 &priv->smu_tables.entry[TABLE_WATERMARKS].table); in vega12_smu_fini()
359 if (priv->smu_tables.entry[TABLE_PMSTATUSLOG].table) in vega12_smu_fini()
360 amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_PMSTATUSLOG].handle, in vega12_smu_fini()
361 &priv->smu_tables.entry[TABLE_PMSTATUSLOG].mc_addr, in vega12_smu_fini()
362 &priv->smu_tables.entry[TABLE_PMSTATUSLOG].table); in vega12_smu_fini()
363 amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_AVFS_FUSE_OVERRIDE].handle, in vega12_smu_fini()
364 &priv->smu_tables.entry[TABLE_AVFS_FUSE_OVERRIDE].mc_addr, in vega12_smu_fini()
365 &priv->smu_tables.entry[TABLE_AVFS_FUSE_OVERRIDE].table); in vega12_smu_fini()
366 amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_OVERDRIVE].handle, in vega12_smu_fini()
367 &priv->smu_tables.entry[TABLE_OVERDRIVE].mc_addr, in vega12_smu_fini()
368 &priv->smu_tables.entry[TABLE_OVERDRIVE].table); in vega12_smu_fini()
369 amdgpu_bo_free_kernel(&priv->smu_tables.entry[TABLE_SMU_METRICS].handle, in vega12_smu_fini()
370 &priv->smu_tables.entry[TABLE_SMU_METRICS].mc_addr, in vega12_smu_fini()
371 &priv->smu_tables.entry[TABLE_SMU_METRICS].table); in vega12_smu_fini()