Lines Matching refs:hive
2519 struct amdgpu_hive_info *hive, bool status) in amdgpu_ras_set_fed_all() argument
2523 if (hive) { in amdgpu_ras_set_fed_all()
2524 list_for_each_entry(tmp_adev, &hive->device_list, gmc.xgmi.head) in amdgpu_ras_set_fed_all()
2533 struct amdgpu_hive_info *hive = amdgpu_get_xgmi_hive(adev); in amdgpu_ras_in_recovery() local
2537 if (hive) { in amdgpu_ras_in_recovery()
2538 hive_ras_recovery = atomic_read(&hive->ras_recovery); in amdgpu_ras_in_recovery()
2539 amdgpu_put_xgmi_hive(hive); in amdgpu_ras_in_recovery()
2563 struct amdgpu_hive_info *hive = amdgpu_get_xgmi_hive(adev); in amdgpu_ras_do_recovery() local
2566 if (hive) { in amdgpu_ras_do_recovery()
2567 atomic_set(&hive->ras_recovery, 1); in amdgpu_ras_do_recovery()
2574 list_for_each_entry(remote_adev, &hive->device_list, in amdgpu_ras_do_recovery()
2577 amdgpu_ras_set_fed_all(adev, hive, true); in amdgpu_ras_do_recovery()
2584 if (hive && adev->gmc.xgmi.num_physical_nodes > 1) { in amdgpu_ras_do_recovery()
2585 device_list_handle = &hive->device_list; in amdgpu_ras_do_recovery()
2634 if (hive) { in amdgpu_ras_do_recovery()
2635 atomic_set(&hive->ras_recovery, 0); in amdgpu_ras_do_recovery()
2636 amdgpu_put_xgmi_hive(hive); in amdgpu_ras_do_recovery()
3529 struct amdgpu_hive_info *hive; in amdgpu_ras_event_mgr_init() local
3534 hive = amdgpu_get_xgmi_hive(adev); in amdgpu_ras_event_mgr_init()
3535 ras->event_mgr = hive ? &hive->event_mgr : &ras->__event_mgr; in amdgpu_ras_event_mgr_init()
3539 if (!hive || adev->gmc.xgmi.node_id == 0) in amdgpu_ras_event_mgr_init()
3543 if (hive) in amdgpu_ras_event_mgr_init()
3544 amdgpu_put_xgmi_hive(hive); in amdgpu_ras_event_mgr_init()