Home
last modified time | relevance | path

Searched refs:reset_context (Results 1 – 23 of 23) sorted by relevance

/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_reset.c58 struct amdgpu_reset_context *reset_context) in amdgpu_reset_xgmi_reset_on_init_prep_hwctxt() argument
79 struct amdgpu_reset_context *reset_context) in amdgpu_reset_xgmi_reset_on_init_restore_hwctxt() argument
85 r = amdgpu_device_reinit_after_reset(reset_context); in amdgpu_reset_xgmi_reset_on_init_restore_hwctxt()
101 struct amdgpu_reset_context *reset_context) in amdgpu_reset_xgmi_reset_on_init_perform_reset() argument
148 struct amdgpu_reset_context *reset_context) in amdgpu_reset_do_xgmi_reset_on_init() argument
164 r = amdgpu_reset_perform_reset(adev, reset_context); in amdgpu_reset_do_xgmi_reset_on_init()
228 struct amdgpu_reset_context *reset_context) in amdgpu_reset_prepare_hwcontext() argument
234 adev->reset_cntl, reset_context); in amdgpu_reset_prepare_hwcontext()
239 reset_context); in amdgpu_reset_prepare_hwcontext()
250 adev->reset_cntl, reset_context); in amdgpu_reset_perform_reset()
[all …]
A Daldebaran.c47 struct amdgpu_reset_context *reset_context) in aldebaran_get_reset_handler() argument
53 if (reset_context->method == AMD_RESET_METHOD_NONE) { in aldebaran_get_reset_handler()
55 reset_context->method = AMD_RESET_METHOD_MODE2; in aldebaran_get_reset_handler()
60 if (reset_context->method != AMD_RESET_METHOD_NONE) { in aldebaran_get_reset_handler()
62 reset_context->method); in aldebaran_get_reset_handler()
109 struct amdgpu_reset_context *reset_context) in aldebaran_mode2_prepare_hwcontext() argument
149 struct amdgpu_reset_context *reset_context) in aldebaran_mode2_perform_reset() argument
162 reset_context->hive == NULL) { in aldebaran_mode2_perform_reset()
340 struct amdgpu_reset_context *reset_context) in aldebaran_mode2_restore_hwcontext() argument
352 reset_context->hive == NULL) { in aldebaran_mode2_restore_hwcontext()
[all …]
A Damdgpu_reset.h107 struct amdgpu_reset_context *reset_context);
110 struct amdgpu_reset_context *reset_context);
113 struct amdgpu_reset_context *reset_context);
115 struct amdgpu_reset_context *reset_context);
159 struct amdgpu_reset_context *reset_context);
A Dsienna_cichlid.c48 struct amdgpu_reset_context *reset_context) in sienna_cichlid_get_reset_handler() argument
53 if (reset_context->method != AMD_RESET_METHOD_NONE) { in sienna_cichlid_get_reset_handler()
55 if (handler->reset_method == reset_context->method) in sienna_cichlid_get_reset_handler()
94 struct amdgpu_reset_context *reset_context) in sienna_cichlid_mode2_prepare_hwcontext() argument
136 struct amdgpu_reset_context *reset_context) in sienna_cichlid_mode2_perform_reset() argument
218 struct amdgpu_reset_context *reset_context) in sienna_cichlid_mode2_restore_hwcontext() argument
A Dsmu_v13_0_10.c43 struct amdgpu_reset_context *reset_context) in smu_v13_0_10_get_reset_handler() argument
49 if (reset_context->method != AMD_RESET_METHOD_NONE) { in smu_v13_0_10_get_reset_handler()
51 if (handler->reset_method == reset_context->method) in smu_v13_0_10_get_reset_handler()
93 struct amdgpu_reset_context *reset_context) in smu_v13_0_10_mode2_prepare_hwcontext() argument
127 struct amdgpu_reset_context *reset_context) in smu_v13_0_10_mode2_perform_reset() argument
219 struct amdgpu_reset_context *reset_context) in smu_v13_0_10_mode2_restore_hwcontext() argument
A Dmxgpu_vi.c520 struct amdgpu_reset_context reset_context; in xgpu_vi_mailbox_flr_work() local
521 memset(&reset_context, 0, sizeof(reset_context)); in xgpu_vi_mailbox_flr_work()
523 reset_context.method = AMD_RESET_METHOD_NONE; in xgpu_vi_mailbox_flr_work()
524 reset_context.reset_req_dev = adev; in xgpu_vi_mailbox_flr_work()
525 clear_bit(AMDGPU_NEED_FULL_RESET, &reset_context.flags); in xgpu_vi_mailbox_flr_work()
526 set_bit(AMDGPU_HOST_FLR, &reset_context.flags); in xgpu_vi_mailbox_flr_work()
528 amdgpu_device_gpu_recover(adev, NULL, &reset_context); in xgpu_vi_mailbox_flr_work()
A Damdgpu_job.c155 struct amdgpu_reset_context reset_context; in amdgpu_job_timedout() local
156 memset(&reset_context, 0, sizeof(reset_context)); in amdgpu_job_timedout()
158 reset_context.method = AMD_RESET_METHOD_NONE; in amdgpu_job_timedout()
159 reset_context.reset_req_dev = adev; in amdgpu_job_timedout()
160 reset_context.src = AMDGPU_RESET_SRC_JOB; in amdgpu_job_timedout()
161 clear_bit(AMDGPU_NEED_FULL_RESET, &reset_context.flags); in amdgpu_job_timedout()
167 set_bit(AMDGPU_SKIP_COREDUMP, &reset_context.flags); in amdgpu_job_timedout()
169 r = amdgpu_device_gpu_recover(ring->adev, job, &reset_context); in amdgpu_job_timedout()
A Dmxgpu_ai.c277 struct amdgpu_reset_context reset_context = { 0 }; in xgpu_ai_mailbox_flr_work() local
286 reset_context.method = AMD_RESET_METHOD_NONE; in xgpu_ai_mailbox_flr_work()
287 reset_context.reset_req_dev = adev; in xgpu_ai_mailbox_flr_work()
288 clear_bit(AMDGPU_NEED_FULL_RESET, &reset_context.flags); in xgpu_ai_mailbox_flr_work()
289 set_bit(AMDGPU_HOST_FLR, &reset_context.flags); in xgpu_ai_mailbox_flr_work()
291 amdgpu_device_gpu_recover(adev, NULL, &reset_context); in xgpu_ai_mailbox_flr_work()
A Damdgpu_device.c5731 job = reset_context->job; in amdgpu_device_pre_asic_reset()
5799 &reset_context->flags); in amdgpu_device_pre_asic_reset()
5885 if (!reset_context->hive && in amdgpu_device_reinit_after_reset()
5914 if (reset_context->hive && in amdgpu_device_reinit_after_reset()
6431 reset_context->src); in amdgpu_device_gpu_recover()
6460 reset_context->job = job; in amdgpu_device_gpu_recover()
6461 reset_context->hive = hive; in amdgpu_device_gpu_recover()
6911 memset(&reset_context, 0, sizeof(reset_context)); in amdgpu_pci_error_detected()
6980 memset(&reset_context, 0, sizeof(reset_context)); in amdgpu_pci_slot_reset()
7002 reset_context.reset_req_dev = adev; in amdgpu_pci_slot_reset()
[all …]
A Damdgpu_amdkfd.c130 struct amdgpu_reset_context reset_context; in amdgpu_amdkfd_reset_work() local
132 memset(&reset_context, 0, sizeof(reset_context)); in amdgpu_amdkfd_reset_work()
134 reset_context.method = AMD_RESET_METHOD_NONE; in amdgpu_amdkfd_reset_work()
135 reset_context.reset_req_dev = adev; in amdgpu_amdkfd_reset_work()
136 reset_context.src = adev->enable_mes ? in amdgpu_amdkfd_reset_work()
139 clear_bit(AMDGPU_NEED_FULL_RESET, &reset_context.flags); in amdgpu_amdkfd_reset_work()
141 amdgpu_device_gpu_recover(adev, NULL, &reset_context); in amdgpu_amdkfd_reset_work()
284 struct amdgpu_reset_context *reset_context) in amdgpu_amdkfd_pre_reset() argument
289 r = kgd2kfd_pre_reset(adev->kfd.dev, reset_context); in amdgpu_amdkfd_pre_reset()
A Dmxgpu_nv.c341 struct amdgpu_reset_context reset_context = { 0 }; in xgpu_nv_mailbox_flr_work() local
353 reset_context.method = AMD_RESET_METHOD_NONE; in xgpu_nv_mailbox_flr_work()
354 reset_context.reset_req_dev = adev; in xgpu_nv_mailbox_flr_work()
355 clear_bit(AMDGPU_NEED_FULL_RESET, &reset_context.flags); in xgpu_nv_mailbox_flr_work()
356 set_bit(AMDGPU_HOST_FLR, &reset_context.flags); in xgpu_nv_mailbox_flr_work()
358 amdgpu_device_gpu_recover(adev, NULL, &reset_context); in xgpu_nv_mailbox_flr_work()
A Damdgpu_fence.c1028 struct amdgpu_reset_context reset_context; in amdgpu_debugfs_reset_work() local
1030 memset(&reset_context, 0, sizeof(reset_context)); in amdgpu_debugfs_reset_work()
1032 reset_context.method = AMD_RESET_METHOD_NONE; in amdgpu_debugfs_reset_work()
1033 reset_context.reset_req_dev = adev; in amdgpu_debugfs_reset_work()
1034 reset_context.src = AMDGPU_RESET_SRC_USER; in amdgpu_debugfs_reset_work()
1035 set_bit(AMDGPU_NEED_FULL_RESET, &reset_context.flags); in amdgpu_debugfs_reset_work()
1036 set_bit(AMDGPU_SKIP_COREDUMP, &reset_context.flags); in amdgpu_debugfs_reset_work()
1038 amdgpu_device_gpu_recover(adev, NULL, &reset_context); in amdgpu_debugfs_reset_work()
A Damdgpu_amdkfd.h178 struct amdgpu_reset_context *reset_context);
421 struct amdgpu_reset_context *reset_context);
480 struct amdgpu_reset_context *reset_context) in kgd2kfd_pre_reset() argument
A Damdgpu_xgmi.c1647 struct amdgpu_reset_context reset_context; in amdgpu_xgmi_reset_on_init_work() local
1662 reset_context.method = AMD_RESET_METHOD_ON_INIT; in amdgpu_xgmi_reset_on_init_work()
1663 reset_context.reset_req_dev = tmp_adev; in amdgpu_xgmi_reset_on_init_work()
1664 reset_context.hive = hive; in amdgpu_xgmi_reset_on_init_work()
1665 reset_context.reset_device_list = &device_list; in amdgpu_xgmi_reset_on_init_work()
1666 set_bit(AMDGPU_NEED_FULL_RESET, &reset_context.flags); in amdgpu_xgmi_reset_on_init_work()
1667 set_bit(AMDGPU_SKIP_COREDUMP, &reset_context.flags); in amdgpu_xgmi_reset_on_init_work()
1669 amdgpu_reset_do_xgmi_reset_on_init(&reset_context); in amdgpu_xgmi_reset_on_init_work()
A Damdgpu_ras.c2679 struct amdgpu_reset_context reset_context; in amdgpu_ras_do_recovery() local
2680 memset(&reset_context, 0, sizeof(reset_context)); in amdgpu_ras_do_recovery()
2682 reset_context.method = AMD_RESET_METHOD_NONE; in amdgpu_ras_do_recovery()
2683 reset_context.reset_req_dev = adev; in amdgpu_ras_do_recovery()
2684 reset_context.src = AMDGPU_RESET_SRC_RAS; in amdgpu_ras_do_recovery()
2685 set_bit(AMDGPU_SKIP_COREDUMP, &reset_context.flags); in amdgpu_ras_do_recovery()
2689 set_bit(AMDGPU_NEED_FULL_RESET, &reset_context.flags); in amdgpu_ras_do_recovery()
2691 clear_bit(AMDGPU_NEED_FULL_RESET, &reset_context.flags); in amdgpu_ras_do_recovery()
2695 reset_context.method = AMD_RESET_METHOD_MODE2; in amdgpu_ras_do_recovery()
2703 set_bit(AMDGPU_NEED_FULL_RESET, &reset_context.flags); in amdgpu_ras_do_recovery()
[all …]
A Damdgpu.h1401 struct amdgpu_reset_context *reset_context);
1404 struct amdgpu_reset_context *reset_context);
1406 int amdgpu_device_reinit_after_reset(struct amdgpu_reset_context *reset_context);
1550 struct amdgpu_reset_context *reset_context);
/drivers/gpu/drm/amd/amdkfd/
A Dkfd_smi_events.c219 struct amdgpu_reset_context *reset_context) in kfd_smi_event_update_gpu_reset() argument
233 if (reset_context) in kfd_smi_event_update_gpu_reset()
234 amdgpu_reset_get_desc(reset_context, reset_cause, in kfd_smi_event_update_gpu_reset()
A Dkfd_smi_events.h34 struct amdgpu_reset_context *reset_context);
A Dkfd_device.c961 struct amdgpu_reset_context *reset_context) in kgd2kfd_pre_reset() argument
971 kfd_smi_event_update_gpu_reset(node, false, reset_context); in kgd2kfd_pre_reset()
/drivers/net/ethernet/qlogic/qlcnic/
A Dqlcnic_sriov_common.c627 ahw->reset_context = 0; in qlcnic_sriov_vf_init()
1441 ahw->reset_context = 1; in __qlcnic_sriov_issue_cmd()
1740 ahw->reset_context = 0; in qlcnic_sriov_vf_detach()
1838 else if (ahw->reset_context) in qlcnic_sriov_vf_idc_ready_state()
A Dqlcnic_83xx_init.c658 ahw->reset_context = 0; in qlcnic_83xx_idc_update_idc_params()
868 if (ahw->reset_context && in qlcnic_83xx_idc_ready_state()
870 adapter->ahw->reset_context = 0; in qlcnic_83xx_idc_ready_state()
A Dqlcnic_main.c1897 adapter->ahw->reset_context = 0; in __qlcnic_up()
3035 adapter->ahw->reset_context = 1; in qlcnic_tx_timeout()
3672 if (ahw->reset_context && qlcnic_auto_fw_reset) in qlcnic_check_health()
A Dqlcnic.h484 u8 reset_context; member

Completed in 108 milliseconds