Searched refs:hive (Results 1 – 11 of 11) sorted by relevance
393 kfree(hive); in amdgpu_xgmi_hive_release()656 hive = kzalloc(sizeof(*hive), GFP_KERNEL); in amdgpu_get_xgmi_hive()722 if (hive) in amdgpu_get_xgmi_hive()730 if (hive) in amdgpu_put_xgmi_hive()743 if (!hive) in amdgpu_xgmi_set_pstate()782 hive->pstate = hive->hi_req_count ? in amdgpu_xgmi_set_pstate()1096 adev->hive = hive; in amdgpu_xgmi_add_device()1111 struct amdgpu_hive_info *hive = adev->hive; in amdgpu_xgmi_remove_device() local1116 if (!hive) in amdgpu_xgmi_remove_device()1635 reset_context.hive = hive; in amdgpu_xgmi_reset_on_init_work()[all …]
56 struct amdgpu_hive_info *hive = NULL; in amdgpu_job_core_dump() local59 hive = amdgpu_get_xgmi_hive(adev); in amdgpu_job_core_dump()60 if (hive) in amdgpu_job_core_dump()61 mutex_lock(&hive->hive_lock); in amdgpu_job_core_dump()67 if (!amdgpu_sriov_vf(adev) && (adev->gmc.xgmi.num_physical_nodes > 1) && hive) { in amdgpu_job_core_dump()68 list_for_each_entry(tmp_adev, &hive->device_list, gmc.xgmi.head) in amdgpu_job_core_dump()82 if (hive) { in amdgpu_job_core_dump()83 mutex_unlock(&hive->hive_lock); in amdgpu_job_core_dump()84 amdgpu_put_xgmi_hive(hive); in amdgpu_job_core_dump()
105 void amdgpu_put_xgmi_hive(struct amdgpu_hive_info *hive);106 int amdgpu_xgmi_update_topology(struct amdgpu_hive_info *hive, struct amdgpu_device *adev);124 struct amdgpu_hive_info *hive,
1187 struct amdgpu_hive_info *hive; in current_memory_partition_store() local1211 hive = amdgpu_get_xgmi_hive(adev); in current_memory_partition_store()1212 if (hive) { in current_memory_partition_store()1213 atomic_set(&hive->requested_nps_mode, mode); in current_memory_partition_store()1214 amdgpu_put_xgmi_hive(hive); in current_memory_partition_store()1386 struct amdgpu_hive_info *hive; in amdgpu_gmc_prepare_nps_mode_change() local1393 hive = amdgpu_get_xgmi_hive(adev); in amdgpu_gmc_prepare_nps_mode_change()1394 if (hive) { in amdgpu_gmc_prepare_nps_mode_change()1395 req_nps_mode = atomic_read(&hive->requested_nps_mode); in amdgpu_gmc_prepare_nps_mode_change()1398 amdgpu_put_xgmi_hive(hive); in amdgpu_gmc_prepare_nps_mode_change()[all …]
151 reset_context->hive == NULL) { in aldebaran_mode2_perform_reset()327 reset_context->hive == NULL) { in aldebaran_mode2_restore_hwcontext()376 if (reset_context->hive && in aldebaran_mode2_restore_hwcontext()378 r = amdgpu_xgmi_update_topology(reset_context->hive, in aldebaran_mode2_restore_hwcontext()
2594 if (hive) { in amdgpu_ras_set_fed_all()2608 if (hive) { in amdgpu_ras_in_recovery()2610 amdgpu_put_xgmi_hive(hive); in amdgpu_ras_in_recovery()2637 if (hive) { in amdgpu_ras_do_recovery()2706 if (hive) { in amdgpu_ras_do_recovery()2708 amdgpu_put_xgmi_hive(hive); in amdgpu_ras_do_recovery()3864 ras->event_mgr = hive ? &hive->event_mgr : &ras->__event_mgr; in amdgpu_ras_event_mgr_init()3872 if (hive) in amdgpu_ras_event_mgr_init()3873 amdgpu_put_xgmi_hive(hive); in amdgpu_ras_event_mgr_init()4685 if (hive) { in amdgpu_ras_reset_gpu()[all …]
3094 if (WARN_ON(!hive)) { in amdgpu_device_ip_init()3099 if (!hive->reset_domain || in amdgpu_device_ip_init()4056 if (WARN_ON(!hive)) in amdgpu_device_xgmi_reset_func()4090 amdgpu_put_xgmi_hive(hive); in amdgpu_device_xgmi_reset_func()5339 if (hive) in amdgpu_device_reset_sriov()5340 amdgpu_put_xgmi_hive(hive); in amdgpu_device_reset_sriov()5696 if (reset_context->hive && in amdgpu_device_reinit_after_reset()5984 if (hive) in amdgpu_device_gpu_recover()5988 reset_context->hive = hive; in amdgpu_device_gpu_recover()6193 if (hive) { in amdgpu_device_gpu_recover()[all …]
52 struct amdgpu_hive_info *hive; member
1417 struct amdgpu_hive_info *hive; in psp_xgmi_reflect_topology_info() local1423 hive = amdgpu_get_xgmi_hive(psp->adev); in psp_xgmi_reflect_topology_info()1424 if (WARN_ON(!hive)) in psp_xgmi_reflect_topology_info()1427 list_for_each_entry(mirror_adev, &hive->device_list, gmc.xgmi.head) { in psp_xgmi_reflect_topology_info()1454 amdgpu_put_xgmi_hive(hive); in psp_xgmi_reflect_topology_info()
869 struct amdgpu_hive_info *hive; member
40 ((adev)->hive ? (void *)(adev)->hive : (void *)(adev))