Lines Matching refs:smu_tables
46 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].version != 0, in vega10_copy_table_from_smc()
48 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].size != 0, in vega10_copy_table_from_smc()
52 upper_32_bits(priv->smu_tables.entry[table_id].mc_addr), in vega10_copy_table_from_smc()
56 lower_32_bits(priv->smu_tables.entry[table_id].mc_addr), in vega10_copy_table_from_smc()
60 priv->smu_tables.entry[table_id].table_id, in vega10_copy_table_from_smc()
65 memcpy(table, priv->smu_tables.entry[table_id].table, in vega10_copy_table_from_smc()
66 priv->smu_tables.entry[table_id].size); in vega10_copy_table_from_smc()
85 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].version != 0, in vega10_copy_table_to_smc()
87 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].size != 0, in vega10_copy_table_to_smc()
90 memcpy(priv->smu_tables.entry[table_id].table, table, in vega10_copy_table_to_smc()
91 priv->smu_tables.entry[table_id].size); in vega10_copy_table_to_smc()
97 upper_32_bits(priv->smu_tables.entry[table_id].mc_addr), in vega10_copy_table_to_smc()
101 lower_32_bits(priv->smu_tables.entry[table_id].mc_addr), in vega10_copy_table_to_smc()
105 priv->smu_tables.entry[table_id].table_id, in vega10_copy_table_to_smc()
161 if (priv->smu_tables.entry[TOOLSTABLE].mc_addr) { in vega10_set_tools_address()
164 upper_32_bits(priv->smu_tables.entry[TOOLSTABLE].mc_addr), in vega10_set_tools_address()
168 lower_32_bits(priv->smu_tables.entry[TOOLSTABLE].mc_addr), in vega10_set_tools_address()
229 &priv->smu_tables.entry[PPTABLE].handle, in vega10_smu_init()
230 &priv->smu_tables.entry[PPTABLE].mc_addr, in vega10_smu_init()
231 &priv->smu_tables.entry[PPTABLE].table); in vega10_smu_init()
235 priv->smu_tables.entry[PPTABLE].version = 0x01; in vega10_smu_init()
236 priv->smu_tables.entry[PPTABLE].size = sizeof(PPTable_t); in vega10_smu_init()
237 priv->smu_tables.entry[PPTABLE].table_id = TABLE_PPTABLE; in vega10_smu_init()
244 &priv->smu_tables.entry[WMTABLE].handle, in vega10_smu_init()
245 &priv->smu_tables.entry[WMTABLE].mc_addr, in vega10_smu_init()
246 &priv->smu_tables.entry[WMTABLE].table); in vega10_smu_init()
251 priv->smu_tables.entry[WMTABLE].version = 0x01; in vega10_smu_init()
252 priv->smu_tables.entry[WMTABLE].size = sizeof(Watermarks_t); in vega10_smu_init()
253 priv->smu_tables.entry[WMTABLE].table_id = TABLE_WATERMARKS; in vega10_smu_init()
260 &priv->smu_tables.entry[AVFSTABLE].handle, in vega10_smu_init()
261 &priv->smu_tables.entry[AVFSTABLE].mc_addr, in vega10_smu_init()
262 &priv->smu_tables.entry[AVFSTABLE].table); in vega10_smu_init()
267 priv->smu_tables.entry[AVFSTABLE].version = 0x01; in vega10_smu_init()
268 priv->smu_tables.entry[AVFSTABLE].size = sizeof(AvfsTable_t); in vega10_smu_init()
269 priv->smu_tables.entry[AVFSTABLE].table_id = TABLE_AVFS; in vega10_smu_init()
277 &priv->smu_tables.entry[TOOLSTABLE].handle, in vega10_smu_init()
278 &priv->smu_tables.entry[TOOLSTABLE].mc_addr, in vega10_smu_init()
279 &priv->smu_tables.entry[TOOLSTABLE].table); in vega10_smu_init()
282 priv->smu_tables.entry[TOOLSTABLE].version = 0x01; in vega10_smu_init()
283 priv->smu_tables.entry[TOOLSTABLE].size = tools_size; in vega10_smu_init()
284 priv->smu_tables.entry[TOOLSTABLE].table_id = TABLE_PMSTATUSLOG; in vega10_smu_init()
292 &priv->smu_tables.entry[AVFSFUSETABLE].handle, in vega10_smu_init()
293 &priv->smu_tables.entry[AVFSFUSETABLE].mc_addr, in vega10_smu_init()
294 &priv->smu_tables.entry[AVFSFUSETABLE].table); in vega10_smu_init()
298 priv->smu_tables.entry[AVFSFUSETABLE].version = 0x01; in vega10_smu_init()
299 priv->smu_tables.entry[AVFSFUSETABLE].size = sizeof(AvfsFuseOverride_t); in vega10_smu_init()
300 priv->smu_tables.entry[AVFSFUSETABLE].table_id = TABLE_AVFS_FUSE_OVERRIDE; in vega10_smu_init()
306 if (priv->smu_tables.entry[TOOLSTABLE].table) in vega10_smu_init()
307 amdgpu_bo_free_kernel(&priv->smu_tables.entry[TOOLSTABLE].handle, in vega10_smu_init()
308 &priv->smu_tables.entry[TOOLSTABLE].mc_addr, in vega10_smu_init()
309 &priv->smu_tables.entry[TOOLSTABLE].table); in vega10_smu_init()
311 amdgpu_bo_free_kernel(&priv->smu_tables.entry[AVFSTABLE].handle, in vega10_smu_init()
312 &priv->smu_tables.entry[AVFSTABLE].mc_addr, in vega10_smu_init()
313 &priv->smu_tables.entry[AVFSTABLE].table); in vega10_smu_init()
315 amdgpu_bo_free_kernel(&priv->smu_tables.entry[WMTABLE].handle, in vega10_smu_init()
316 &priv->smu_tables.entry[WMTABLE].mc_addr, in vega10_smu_init()
317 &priv->smu_tables.entry[WMTABLE].table); in vega10_smu_init()
319 amdgpu_bo_free_kernel(&priv->smu_tables.entry[PPTABLE].handle, in vega10_smu_init()
320 &priv->smu_tables.entry[PPTABLE].mc_addr, in vega10_smu_init()
321 &priv->smu_tables.entry[PPTABLE].table); in vega10_smu_init()
333 amdgpu_bo_free_kernel(&priv->smu_tables.entry[PPTABLE].handle, in vega10_smu_fini()
334 &priv->smu_tables.entry[PPTABLE].mc_addr, in vega10_smu_fini()
335 &priv->smu_tables.entry[PPTABLE].table); in vega10_smu_fini()
336 amdgpu_bo_free_kernel(&priv->smu_tables.entry[WMTABLE].handle, in vega10_smu_fini()
337 &priv->smu_tables.entry[WMTABLE].mc_addr, in vega10_smu_fini()
338 &priv->smu_tables.entry[WMTABLE].table); in vega10_smu_fini()
339 amdgpu_bo_free_kernel(&priv->smu_tables.entry[AVFSTABLE].handle, in vega10_smu_fini()
340 &priv->smu_tables.entry[AVFSTABLE].mc_addr, in vega10_smu_fini()
341 &priv->smu_tables.entry[AVFSTABLE].table); in vega10_smu_fini()
342 if (priv->smu_tables.entry[TOOLSTABLE].table) in vega10_smu_fini()
343 amdgpu_bo_free_kernel(&priv->smu_tables.entry[TOOLSTABLE].handle, in vega10_smu_fini()
344 &priv->smu_tables.entry[TOOLSTABLE].mc_addr, in vega10_smu_fini()
345 &priv->smu_tables.entry[TOOLSTABLE].table); in vega10_smu_fini()
346 amdgpu_bo_free_kernel(&priv->smu_tables.entry[AVFSFUSETABLE].handle, in vega10_smu_fini()
347 &priv->smu_tables.entry[AVFSFUSETABLE].mc_addr, in vega10_smu_fini()
348 &priv->smu_tables.entry[AVFSFUSETABLE].table); in vega10_smu_fini()