Home
last modified time | relevance | path

Searched refs:hive (Results 1 – 10 of 10) sorted by relevance

/Linux-v6.6/drivers/gpu/drm/amd/amdgpu/
Damdgpu_xgmi.c286 struct amdgpu_hive_info *hive = container_of( in amdgpu_xgmi_show_attrs() local
290 return snprintf(buf, PAGE_SIZE, "%llu\n", hive->hive_id); in amdgpu_xgmi_show_attrs()
297 struct amdgpu_hive_info *hive = container_of( in amdgpu_xgmi_hive_release() local
300 amdgpu_reset_put_reset_domain(hive->reset_domain); in amdgpu_xgmi_hive_release()
301 hive->reset_domain = NULL; in amdgpu_xgmi_hive_release()
303 mutex_destroy(&hive->hive_lock); in amdgpu_xgmi_hive_release()
304 kfree(hive); in amdgpu_xgmi_hive_release()
398 struct amdgpu_hive_info *hive) in amdgpu_xgmi_sysfs_add_dev_info() argument
426 if (hive->kobj.parent != (&adev->dev->kobj)) { in amdgpu_xgmi_sysfs_add_dev_info()
427 ret = sysfs_create_link(&adev->dev->kobj, &hive->kobj, in amdgpu_xgmi_sysfs_add_dev_info()
[all …]
Damdgpu_xgmi.h57 void amdgpu_put_xgmi_hive(struct amdgpu_hive_info *hive);
58 int amdgpu_xgmi_update_topology(struct amdgpu_hive_info *hive, struct amdgpu_device *adev);
Daldebaran.c161 reset_context->hive == NULL) { in aldebaran_mode2_perform_reset()
343 reset_context->hive == NULL) { in aldebaran_mode2_restore_hwcontext()
365 if (reset_context->hive && in aldebaran_mode2_restore_hwcontext()
367 r = amdgpu_xgmi_update_topology(reset_context->hive, in aldebaran_mode2_restore_hwcontext()
Damdgpu_device.c2426 struct amdgpu_hive_info *hive = amdgpu_get_xgmi_hive(adev); in amdgpu_device_ip_init() local
2428 if (WARN_ON(!hive)) { in amdgpu_device_ip_init()
2433 if (!hive->reset_domain || in amdgpu_device_ip_init()
2434 !amdgpu_reset_get_reset_domain(hive->reset_domain)) { in amdgpu_device_ip_init()
2436 amdgpu_put_xgmi_hive(hive); in amdgpu_device_ip_init()
2442 adev->reset_domain = hive->reset_domain; in amdgpu_device_ip_init()
2443 amdgpu_put_xgmi_hive(hive); in amdgpu_device_ip_init()
3339 struct amdgpu_hive_info *hive = amdgpu_get_xgmi_hive(adev); in amdgpu_device_xgmi_reset_func() local
3342 if (WARN_ON(!hive)) in amdgpu_device_xgmi_reset_func()
3353 task_barrier_enter(&hive->tb); in amdgpu_device_xgmi_reset_func()
[all …]
Damdgpu_reset.h40 struct amdgpu_hive_info *hive; member
Damdgpu_drv.c2249 struct amdgpu_hive_info *hive; in amdgpu_pci_remove() local
2251 hive = amdgpu_get_xgmi_hive(adev); in amdgpu_pci_remove()
2252 if (hive->device_remove_count == 0) in amdgpu_pci_remove()
2254 hive->device_remove_count++; in amdgpu_pci_remove()
2255 amdgpu_put_xgmi_hive(hive); in amdgpu_pci_remove()
Damdgpu_ras.c2026 struct amdgpu_hive_info *hive = amdgpu_get_xgmi_hive(adev); in amdgpu_ras_do_recovery() local
2029 if (hive && adev->gmc.xgmi.num_physical_nodes > 1) { in amdgpu_ras_do_recovery()
2030 device_list_handle = &hive->device_list; in amdgpu_ras_do_recovery()
2043 amdgpu_put_xgmi_hive(hive); in amdgpu_ras_do_recovery()
Damdgpu_psp.c1332 struct amdgpu_hive_info *hive; in psp_xgmi_reflect_topology_info() local
1338 hive = amdgpu_get_xgmi_hive(psp->adev); in psp_xgmi_reflect_topology_info()
1339 list_for_each_entry(mirror_adev, &hive->device_list, gmc.xgmi.head) { in psp_xgmi_reflect_topology_info()
1366 amdgpu_put_xgmi_hive(hive); in psp_xgmi_reflect_topology_info()
Damdgpu.h776 struct amdgpu_hive_info *hive; member
/Linux-v6.6/drivers/gpu/drm/amd/amdkfd/
Dkfd_svm.h40 ((adev)->hive ? (void *)(adev)->hive : (void *)(adev))