Lines Matching refs:reset_context
4468 struct amdgpu_reset_context *reset_context) in amdgpu_device_pre_asic_reset() argument
4473 test_bit(AMDGPU_NEED_FULL_RESET, &reset_context->flags); in amdgpu_device_pre_asic_reset()
4475 if (reset_context->reset_req_dev == adev) in amdgpu_device_pre_asic_reset()
4476 job = reset_context->job; in amdgpu_device_pre_asic_reset()
4501 r = amdgpu_reset_prepare_hwcontext(adev, reset_context); in amdgpu_device_pre_asic_reset()
4527 set_bit(AMDGPU_NEED_FULL_RESET, &reset_context->flags); in amdgpu_device_pre_asic_reset()
4530 &reset_context->flags); in amdgpu_device_pre_asic_reset()
4537 struct amdgpu_reset_context *reset_context) in amdgpu_do_asic_reset() argument
4546 r = amdgpu_reset_perform_reset(tmp_adev, reset_context); in amdgpu_do_asic_reset()
4555 test_bit(AMDGPU_NEED_FULL_RESET, &reset_context->flags); in amdgpu_do_asic_reset()
4556 skip_hw_reset = test_bit(AMDGPU_SKIP_HW_RESET, &reset_context->flags); in amdgpu_do_asic_reset()
4645 if (!reset_context->hive && in amdgpu_do_asic_reset()
4674 if (reset_context->hive && in amdgpu_do_asic_reset()
4677 reset_context->hive, tmp_adev); in amdgpu_do_asic_reset()
4701 set_bit(AMDGPU_NEED_FULL_RESET, &reset_context->flags); in amdgpu_do_asic_reset()
4703 clear_bit(AMDGPU_NEED_FULL_RESET, &reset_context->flags); in amdgpu_do_asic_reset()
4842 struct amdgpu_reset_context *reset_context) in amdgpu_device_recheck_guilty_jobs() argument
4882 &reset_context->flags); in amdgpu_device_recheck_guilty_jobs()
4884 reset_context); in amdgpu_device_recheck_guilty_jobs()
4934 struct amdgpu_reset_context reset_context; in amdgpu_device_gpu_recover() local
4936 memset(&reset_context, 0, sizeof(reset_context)); in amdgpu_device_gpu_recover()
4977 reset_context.method = AMD_RESET_METHOD_NONE; in amdgpu_device_gpu_recover()
4978 reset_context.reset_req_dev = adev; in amdgpu_device_gpu_recover()
4979 reset_context.job = job; in amdgpu_device_gpu_recover()
4980 reset_context.hive = hive; in amdgpu_device_gpu_recover()
4981 clear_bit(AMDGPU_NEED_FULL_RESET, &reset_context.flags); in amdgpu_device_gpu_recover()
5083 r = amdgpu_device_pre_asic_reset(tmp_adev, &reset_context); in amdgpu_device_gpu_recover()
5100 r = amdgpu_do_asic_reset(device_list_handle, &reset_context); in amdgpu_device_gpu_recover()
5120 tmp_adev, device_list_handle, &reset_context); in amdgpu_device_gpu_recover()
5475 struct amdgpu_reset_context reset_context; in amdgpu_pci_slot_reset() local
5481 memset(&reset_context, 0, sizeof(reset_context)); in amdgpu_pci_slot_reset()
5505 reset_context.method = AMD_RESET_METHOD_NONE; in amdgpu_pci_slot_reset()
5506 reset_context.reset_req_dev = adev; in amdgpu_pci_slot_reset()
5507 set_bit(AMDGPU_NEED_FULL_RESET, &reset_context.flags); in amdgpu_pci_slot_reset()
5508 set_bit(AMDGPU_SKIP_HW_RESET, &reset_context.flags); in amdgpu_pci_slot_reset()
5511 r = amdgpu_device_pre_asic_reset(adev, &reset_context); in amdgpu_pci_slot_reset()
5516 r = amdgpu_do_asic_reset(&device_list, &reset_context); in amdgpu_pci_slot_reset()