Lines Matching refs:hive
2466 struct amdgpu_hive_info *hive = amdgpu_get_xgmi_hive(adev); in amdgpu_device_ip_init() local
2468 if (WARN_ON(!hive)) { in amdgpu_device_ip_init()
2473 if (!hive->reset_domain || in amdgpu_device_ip_init()
2474 !amdgpu_reset_get_reset_domain(hive->reset_domain)) { in amdgpu_device_ip_init()
2476 amdgpu_put_xgmi_hive(hive); in amdgpu_device_ip_init()
2482 adev->reset_domain = hive->reset_domain; in amdgpu_device_ip_init()
2483 amdgpu_put_xgmi_hive(hive); in amdgpu_device_ip_init()
3371 struct amdgpu_hive_info *hive = amdgpu_get_xgmi_hive(adev); in amdgpu_device_xgmi_reset_func() local
3374 if (WARN_ON(!hive)) in amdgpu_device_xgmi_reset_func()
3385 task_barrier_enter(&hive->tb); in amdgpu_device_xgmi_reset_func()
3391 task_barrier_exit(&hive->tb); in amdgpu_device_xgmi_reset_func()
3402 task_barrier_full(&hive->tb); in amdgpu_device_xgmi_reset_func()
3410 amdgpu_put_xgmi_hive(hive); in amdgpu_device_xgmi_reset_func()
4493 struct amdgpu_hive_info *hive = NULL; in amdgpu_device_reset_sriov() local
4522 hive = amdgpu_get_xgmi_hive(adev); in amdgpu_device_reset_sriov()
4524 if (hive && adev->gmc.xgmi.num_physical_nodes > 1) in amdgpu_device_reset_sriov()
4525 r = amdgpu_xgmi_update_topology(hive, adev); in amdgpu_device_reset_sriov()
4527 if (hive) in amdgpu_device_reset_sriov()
4528 amdgpu_put_xgmi_hive(hive); in amdgpu_device_reset_sriov()
4950 if (!reset_context->hive && in amdgpu_do_asic_reset()
4979 if (reset_context->hive && in amdgpu_do_asic_reset()
4982 reset_context->hive, tmp_adev); in amdgpu_do_asic_reset()
5222 struct amdgpu_hive_info *hive = NULL; in amdgpu_device_gpu_recover() local
5254 hive = amdgpu_get_xgmi_hive(adev); in amdgpu_device_gpu_recover()
5255 if (hive) in amdgpu_device_gpu_recover()
5256 mutex_lock(&hive->hive_lock); in amdgpu_device_gpu_recover()
5259 reset_context->hive = hive; in amdgpu_device_gpu_recover()
5267 list_for_each_entry(tmp_adev, &hive->device_list, gmc.xgmi.head) { in amdgpu_device_gpu_recover()
5469 if (hive) { in amdgpu_device_gpu_recover()
5470 mutex_unlock(&hive->hive_lock); in amdgpu_device_gpu_recover()
5471 amdgpu_put_xgmi_hive(hive); in amdgpu_device_gpu_recover()