Home
last modified time | relevance | path

Searched refs:tmp_adev (Results 1 – 3 of 3) sorted by relevance

/linux-5.19.10/drivers/gpu/drm/amd/amdgpu/
Daldebaran.c152 struct amdgpu_device *tmp_adev = NULL; in aldebaran_mode2_perform_reset() local
166 list_for_each_entry(tmp_adev, reset_device_list, reset_list) { in aldebaran_mode2_perform_reset()
167 mutex_lock(&tmp_adev->reset_cntl->reset_lock); in aldebaran_mode2_perform_reset()
168 tmp_adev->reset_cntl->active_reset = AMD_RESET_METHOD_MODE2; in aldebaran_mode2_perform_reset()
174 list_for_each_entry(tmp_adev, reset_device_list, reset_list) { in aldebaran_mode2_perform_reset()
176 if (tmp_adev->gmc.xgmi.num_physical_nodes > 1) { in aldebaran_mode2_perform_reset()
178 &tmp_adev->reset_cntl->reset_work)) in aldebaran_mode2_perform_reset()
181 r = aldebaran_mode2_reset(tmp_adev); in aldebaran_mode2_perform_reset()
183 dev_err(tmp_adev->dev, in aldebaran_mode2_perform_reset()
185 r, adev_to_drm(tmp_adev)->unique); in aldebaran_mode2_perform_reset()
[all …]
Damdgpu_xgmi.c561 struct amdgpu_device *tmp_adev; in amdgpu_xgmi_initialize_hive_get_data_partition() local
564 list_for_each_entry(tmp_adev, &hive->device_list, gmc.xgmi.head) { in amdgpu_xgmi_initialize_hive_get_data_partition()
565 ret = psp_xgmi_initialize(&tmp_adev->psp, set_extended_data, false); in amdgpu_xgmi_initialize_hive_get_data_partition()
567 dev_err(tmp_adev->dev, in amdgpu_xgmi_initialize_hive_get_data_partition()
583 struct amdgpu_device *tmp_adev = NULL; in amdgpu_xgmi_add_device() local
639 list_for_each_entry(tmp_adev, &hive->device_list, gmc.xgmi.head) { in amdgpu_xgmi_add_device()
641 if (tmp_adev != adev) { in amdgpu_xgmi_add_device()
642 top_info = &tmp_adev->psp.xgmi_context.top_info; in amdgpu_xgmi_add_device()
647 ret = amdgpu_xgmi_update_topology(hive, tmp_adev); in amdgpu_xgmi_add_device()
653 list_for_each_entry(tmp_adev, &hive->device_list, gmc.xgmi.head) { in amdgpu_xgmi_add_device()
[all …]
Damdgpu_device.c4741 struct amdgpu_device *tmp_adev = NULL; in amdgpu_do_asic_reset() local
4746 tmp_adev = list_first_entry(device_list_handle, struct amdgpu_device, in amdgpu_do_asic_reset()
4748 amdgpu_reset_reg_dumps(tmp_adev); in amdgpu_do_asic_reset()
4751 r = amdgpu_reset_perform_reset(tmp_adev, reset_context); in amdgpu_do_asic_reset()
4768 list_for_each_entry(tmp_adev, device_list_handle, reset_list) { in amdgpu_do_asic_reset()
4770 if (tmp_adev->gmc.xgmi.num_physical_nodes > 1) { in amdgpu_do_asic_reset()
4771 tmp_adev->gmc.xgmi.pending_reset = false; in amdgpu_do_asic_reset()
4772 if (!queue_work(system_unbound_wq, &tmp_adev->xgmi_reset_work)) in amdgpu_do_asic_reset()
4775 r = amdgpu_asic_reset(tmp_adev); in amdgpu_do_asic_reset()
4778 dev_err(tmp_adev->dev, "ASIC reset failed with error, %d for drm dev, %s", in amdgpu_do_asic_reset()
[all …]