Home
last modified time | relevance | path

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

/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_xgmi.c368 struct amdgpu_hive_info *hive = container_of( in amdgpu_xgmi_show_attrs() local
372 return snprintf(buf, PAGE_SIZE, "%llu\n", hive->hive_id); in amdgpu_xgmi_show_attrs()
379 struct amdgpu_hive_info *hive = container_of( in amdgpu_xgmi_hive_release() local
382 amdgpu_reset_put_reset_domain(hive->reset_domain); in amdgpu_xgmi_hive_release()
383 hive->reset_domain = NULL; in amdgpu_xgmi_hive_release()
385 mutex_destroy(&hive->hive_lock); in amdgpu_xgmi_hive_release()
386 kfree(hive); in amdgpu_xgmi_hive_release()
528 struct amdgpu_hive_info *hive) in amdgpu_xgmi_sysfs_add_dev_info() argument
569 if (hive->kobj.parent != (&adev->dev->kobj)) { in amdgpu_xgmi_sysfs_add_dev_info()
570 ret = sysfs_create_link(&adev->dev->kobj, &hive->kobj, in amdgpu_xgmi_sysfs_add_dev_info()
[all …]
H A Damdgpu_device.c2507 struct amdgpu_hive_info *hive = amdgpu_get_xgmi_hive(adev); in amdgpu_device_ip_init() local
2509 if (WARN_ON(!hive)) { in amdgpu_device_ip_init()
2514 if (!hive->reset_domain || in amdgpu_device_ip_init()
2515 !amdgpu_reset_get_reset_domain(hive->reset_domain)) { in amdgpu_device_ip_init()
2517 amdgpu_put_xgmi_hive(hive); in amdgpu_device_ip_init()
2523 adev->reset_domain = hive->reset_domain; in amdgpu_device_ip_init()
2524 amdgpu_put_xgmi_hive(hive); in amdgpu_device_ip_init()
3531 struct amdgpu_hive_info *hive = amdgpu_get_xgmi_hive(adev); in amdgpu_device_xgmi_reset_func() local
3534 if (WARN_ON(!hive)) in amdgpu_device_xgmi_reset_func()
3545 task_barrier_enter(&hive->tb); in amdgpu_device_xgmi_reset_func()
[all …]
H A Damdgpu_gmc.c1129 * VRAM of the hive and system memory.
1291 struct amdgpu_hive_info *hive; in current_memory_partition_store()
1312 /* If device is part of hive, all devices in the hive should request the in current_memory_partition_store()
1313 * same mode. Hence store the requested mode in hive. in current_memory_partition_store()
1315 hive = amdgpu_get_xgmi_hive(adev); in current_memory_partition_store()
1316 if (hive) { in current_memory_partition_store()
1317 atomic_set(&hive->requested_nps_mode, mode); in current_memory_partition_store()
1318 amdgpu_put_xgmi_hive(hive); in current_memory_partition_store()
1492 struct amdgpu_hive_info *hive; in amdgpu_gmc_prepare_nps_mode_change()
1294 struct amdgpu_hive_info *hive; current_memory_partition_store() local
1495 struct amdgpu_hive_info *hive; amdgpu_gmc_prepare_nps_mode_change() local
[all...]
H A Damdgpu_psp.c2005 struct amdgpu_hive_info *hive; in psp_xgmi_reflect_topology_info() local
2012 hive = amdgpu_get_xgmi_hive(psp->adev); in psp_xgmi_reflect_topology_info()
2013 if (WARN_ON(!hive)) in psp_xgmi_reflect_topology_info()
2016 list_for_each_entry(mirror_adev, &hive->device_list, gmc.xgmi.head) { in psp_xgmi_reflect_topology_info()
2050 amdgpu_put_xgmi_hive(hive); in psp_xgmi_reflect_topology_info()
H A Damdgpu.h632 struct amdgpu_hive_info *hive; member