Searched refs:mgpu_info (Results 1 – 5 of 5) sorted by relevance
212 struct amdgpu_mgpu_info mgpu_info = { variable215 mgpu_info.delayed_reset_work,2323 mutex_lock(&mgpu_info.mutex); in amdgpu_drv_delayed_reset_work_handler()2324 if (mgpu_info.pending_reset == true) { in amdgpu_drv_delayed_reset_work_handler()2325 mutex_unlock(&mgpu_info.mutex); in amdgpu_drv_delayed_reset_work_handler()2328 mgpu_info.pending_reset = true; in amdgpu_drv_delayed_reset_work_handler()2329 mutex_unlock(&mgpu_info.mutex); in amdgpu_drv_delayed_reset_work_handler()2336 adev = mgpu_info.gpu_ins[i].adev; in amdgpu_drv_delayed_reset_work_handler()2347 adev = mgpu_info.gpu_ins[i].adev; in amdgpu_drv_delayed_reset_work_handler()2353 for (i = 0; i < mgpu_info.num_dgpu; i++) in amdgpu_drv_delayed_reset_work_handler()[all …]
54 mutex_lock(&mgpu_info.mutex); in amdgpu_unregister_gpu_instance()59 mgpu_info.gpu_ins[i] = in amdgpu_unregister_gpu_instance()60 mgpu_info.gpu_ins[mgpu_info.num_gpu - 1]; in amdgpu_unregister_gpu_instance()61 mgpu_info.num_gpu--; in amdgpu_unregister_gpu_instance()63 mgpu_info.num_apu--; in amdgpu_unregister_gpu_instance()65 mgpu_info.num_dgpu--; in amdgpu_unregister_gpu_instance()104 mutex_lock(&mgpu_info.mutex); in amdgpu_register_gpu_instance()112 gpu_instance = &(mgpu_info.gpu_ins[mgpu_info.num_gpu]); in amdgpu_register_gpu_instance()116 mgpu_info.num_gpu++; in amdgpu_register_gpu_instance()118 mgpu_info.num_apu++; in amdgpu_register_gpu_instance()[all …]
2600 mutex_lock(&mgpu_info.mutex); in amdgpu_device_enable_mgpu_fan_boost()2607 if (mgpu_info.num_dgpu < 2) in amdgpu_device_enable_mgpu_fan_boost()2610 for (i = 0; i < mgpu_info.num_dgpu; i++) { in amdgpu_device_enable_mgpu_fan_boost()2611 gpu_ins = &(mgpu_info.gpu_ins[i]); in amdgpu_device_enable_mgpu_fan_boost()2624 mutex_unlock(&mgpu_info.mutex); in amdgpu_device_enable_mgpu_fan_boost()2684 mutex_lock(&mgpu_info.mutex); in amdgpu_device_ip_late_init()2699 if (mgpu_info.num_dgpu == adev->gmc.xgmi.num_physical_nodes) { in amdgpu_device_ip_late_init()2700 for (i = 0; i < mgpu_info.num_gpu; i++) { in amdgpu_device_ip_late_init()2701 gpu_instance = &(mgpu_info.gpu_ins[i]); in amdgpu_device_ip_late_init()2714 mutex_unlock(&mgpu_info.mutex); in amdgpu_device_ip_late_init()[all …]
199 extern struct amdgpu_mgpu_info mgpu_info;
1827 mutex_lock(&mgpu_info.mutex); in amdgpu_show_powershift_percent()1828 for (i = 0; i < mgpu_info.num_gpu; i++) { in amdgpu_show_powershift_percent()1829 if (mgpu_info.gpu_ins[i].adev->flags & AMD_IS_APU) { in amdgpu_show_powershift_percent()1830 adev = mgpu_info.gpu_ins[i].adev; in amdgpu_show_powershift_percent()1834 mutex_unlock(&mgpu_info.mutex); in amdgpu_show_powershift_percent()