Lines Matching refs:reset_context

5039 				     struct amdgpu_reset_context *reset_context)  in amdgpu_device_reset_sriov()  argument
5044 if (test_bit(AMDGPU_HOST_FLR, &reset_context->flags)) { in amdgpu_device_reset_sriov()
5048 clear_bit(AMDGPU_HOST_FLR, &reset_context->flags); in amdgpu_device_reset_sriov()
5245 struct amdgpu_reset_context *reset_context) in amdgpu_device_pre_asic_reset() argument
5249 struct amdgpu_device *tmp_adev = reset_context->reset_req_dev; in amdgpu_device_pre_asic_reset()
5251 test_bit(AMDGPU_NEED_FULL_RESET, &reset_context->flags); in amdgpu_device_pre_asic_reset()
5253 if (reset_context->reset_req_dev == adev) in amdgpu_device_pre_asic_reset()
5254 job = reset_context->job; in amdgpu_device_pre_asic_reset()
5282 r = amdgpu_reset_prepare_hwcontext(adev, reset_context); in amdgpu_device_pre_asic_reset()
5306 if (!test_bit(AMDGPU_SKIP_COREDUMP, &reset_context->flags)) { in amdgpu_device_pre_asic_reset()
5319 set_bit(AMDGPU_NEED_FULL_RESET, &reset_context->flags); in amdgpu_device_pre_asic_reset()
5322 &reset_context->flags); in amdgpu_device_pre_asic_reset()
5329 struct amdgpu_reset_context *reset_context) in amdgpu_do_asic_reset() argument
5339 reset_context->reset_device_list = device_list_handle; in amdgpu_do_asic_reset()
5340 r = amdgpu_reset_perform_reset(tmp_adev, reset_context); in amdgpu_do_asic_reset()
5349 test_bit(AMDGPU_NEED_FULL_RESET, &reset_context->flags); in amdgpu_do_asic_reset()
5350 skip_hw_reset = test_bit(AMDGPU_SKIP_HW_RESET, &reset_context->flags); in amdgpu_do_asic_reset()
5410 if (!test_bit(AMDGPU_SKIP_COREDUMP, &reset_context->flags)) in amdgpu_do_asic_reset()
5411 amdgpu_coredump(tmp_adev, false, vram_lost, reset_context->job); in amdgpu_do_asic_reset()
5443 if (!reset_context->hive && in amdgpu_do_asic_reset()
5472 if (reset_context->hive && in amdgpu_do_asic_reset()
5475 reset_context->hive, tmp_adev); in amdgpu_do_asic_reset()
5497 set_bit(AMDGPU_NEED_FULL_RESET, &reset_context->flags); in amdgpu_do_asic_reset()
5499 clear_bit(AMDGPU_NEED_FULL_RESET, &reset_context->flags); in amdgpu_do_asic_reset()
5638 struct amdgpu_reset_context *reset_context) in amdgpu_device_gpu_recover() argument
5674 reset_context->job = job; in amdgpu_device_gpu_recover()
5675 reset_context->hive = hive; in amdgpu_device_gpu_recover()
5729 amdgpu_amdkfd_pre_reset(tmp_adev, reset_context); in amdgpu_device_gpu_recover()
5775 r = amdgpu_device_pre_asic_reset(tmp_adev, reset_context); in amdgpu_device_gpu_recover()
5790 set_bit(AMDGPU_HOST_FLR, &reset_context->flags); in amdgpu_device_gpu_recover()
5793 r = amdgpu_device_reset_sriov(adev, reset_context); in amdgpu_device_gpu_recover()
5801 r = amdgpu_do_asic_reset(device_list_handle, reset_context); in amdgpu_device_gpu_recover()
5843 if (reset_context->src != AMDGPU_RESET_SRC_RAS || in amdgpu_device_gpu_recover()
6244 struct amdgpu_reset_context reset_context; in amdgpu_pci_slot_reset() local
6256 memset(&reset_context, 0, sizeof(reset_context)); in amdgpu_pci_slot_reset()
6280 reset_context.method = AMD_RESET_METHOD_NONE; in amdgpu_pci_slot_reset()
6281 reset_context.reset_req_dev = adev; in amdgpu_pci_slot_reset()
6282 set_bit(AMDGPU_NEED_FULL_RESET, &reset_context.flags); in amdgpu_pci_slot_reset()
6283 set_bit(AMDGPU_SKIP_HW_RESET, &reset_context.flags); in amdgpu_pci_slot_reset()
6286 r = amdgpu_device_pre_asic_reset(adev, &reset_context); in amdgpu_pci_slot_reset()
6291 r = amdgpu_do_asic_reset(&device_list, &reset_context); in amdgpu_pci_slot_reset()