Home
last modified time | relevance | path

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

/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A 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 …]
H A Damdgpu_device.c4894 struct amdgpu_device *tmp_adev = NULL; in amdgpu_do_asic_reset()
4900 tmp_adev = list_first_entry(device_list_handle, struct amdgpu_device, in amdgpu_do_asic_reset()
4902 amdgpu_reset_reg_dumps(tmp_adev); in amdgpu_do_asic_reset()
4905 r = amdgpu_reset_perform_reset(tmp_adev, reset_context); in amdgpu_do_asic_reset()
4926 list_for_each_entry(tmp_adev, device_list_handle, reset_list) { in amdgpu_do_asic_reset()
4928 if (tmp_adev->gmc.xgmi.num_physical_nodes > 1) { in amdgpu_do_asic_reset()
4929 tmp_adev->gmc.xgmi.pending_reset = false; in amdgpu_do_asic_reset()
4930 if (!queue_work(system_unbound_wq, &tmp_adev->xgmi_reset_work)) in amdgpu_do_asic_reset()
4933 r = amdgpu_asic_reset(tmp_adev); in amdgpu_do_asic_reset()
4936 dev_err(tmp_adev in amdgpu_do_asic_reset()
4883 struct amdgpu_device *tmp_adev = NULL; amdgpu_do_asic_reset() local
5196 struct amdgpu_device *tmp_adev = NULL; amdgpu_device_gpu_recover() local
[all...]
H A Dsmu_v13_0_10.c235 struct amdgpu_device *tmp_adev = (struct amdgpu_device *)reset_ctl->handle; in smu_v13_0_10_mode2_restore_hwcontext() local
237 dev_info(tmp_adev->dev, in smu_v13_0_10_mode2_restore_hwcontext()
239 r = smu_v13_0_10_mode2_restore_ip(tmp_adev); in smu_v13_0_10_mode2_restore_hwcontext()
243 amdgpu_register_gpu_instance(tmp_adev); in smu_v13_0_10_mode2_restore_hwcontext()
246 amdgpu_ras_resume(tmp_adev); in smu_v13_0_10_mode2_restore_hwcontext()
248 amdgpu_irq_gpu_reset_resume_helper(tmp_adev); in smu_v13_0_10_mode2_restore_hwcontext()
250 r = amdgpu_ib_ring_tests(tmp_adev); in smu_v13_0_10_mode2_restore_hwcontext()
252 dev_err(tmp_adev->dev, in smu_v13_0_10_mode2_restore_hwcontext()
H A Dsienna_cichlid.c240 struct amdgpu_device *tmp_adev = (struct amdgpu_device *)reset_ctl->handle; in sienna_cichlid_mode2_restore_hwcontext() local
242 dev_info(tmp_adev->dev, in sienna_cichlid_mode2_restore_hwcontext()
244 r = sienna_cichlid_mode2_restore_ip(tmp_adev); in sienna_cichlid_mode2_restore_hwcontext()
252 amdgpu_register_gpu_instance(tmp_adev); in sienna_cichlid_mode2_restore_hwcontext()
255 amdgpu_ras_resume(tmp_adev); in sienna_cichlid_mode2_restore_hwcontext()
257 amdgpu_irq_gpu_reset_resume_helper(tmp_adev); in sienna_cichlid_mode2_restore_hwcontext()
259 r = amdgpu_ib_ring_tests(tmp_adev); in sienna_cichlid_mode2_restore_hwcontext()
261 dev_err(tmp_adev->dev, in sienna_cichlid_mode2_restore_hwcontext()
H A Damdgpu_xgmi.c698 struct amdgpu_device *tmp_adev; in amdgpu_xgmi_initialize_hive_get_data_partition() local
701 list_for_each_entry(tmp_adev, &hive->device_list, gmc.xgmi.head) { in amdgpu_xgmi_initialize_hive_get_data_partition()
702 ret = psp_xgmi_initialize(&tmp_adev->psp, set_extended_data, false); in amdgpu_xgmi_initialize_hive_get_data_partition()
704 dev_err(tmp_adev->dev, in amdgpu_xgmi_initialize_hive_get_data_partition()
720 struct amdgpu_device *tmp_adev = NULL; in amdgpu_xgmi_add_device() local
776 list_for_each_entry(tmp_adev, &hive->device_list, gmc.xgmi.head) { in amdgpu_xgmi_add_device()
778 if (tmp_adev != adev) { in amdgpu_xgmi_add_device()
779 top_info = &tmp_adev->psp.xgmi_context.top_info; in amdgpu_xgmi_add_device()
784 ret = amdgpu_xgmi_update_topology(hive, tmp_adev); in amdgpu_xgmi_add_device()
790 list_for_each_entry(tmp_adev, &hive->device_list, gmc.xgmi.head) { in amdgpu_xgmi_add_device()
[all …]