Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/gpu/drm/amd/amdgpu/
Daldebaran.c47 struct amdgpu_reset_context *reset_context) in aldebaran_get_reset_handler() argument
52 if (reset_context->method != AMD_RESET_METHOD_NONE) { in aldebaran_get_reset_handler()
54 reset_context->method); in aldebaran_get_reset_handler()
57 if (handler->reset_method == reset_context->method) in aldebaran_get_reset_handler()
66 reset_context->method = AMD_RESET_METHOD_MODE2; in aldebaran_get_reset_handler()
108 struct amdgpu_reset_context *reset_context) in aldebaran_mode2_prepare_hwcontext() argument
148 struct amdgpu_reset_context *reset_context) in aldebaran_mode2_perform_reset() argument
151 struct list_head *reset_device_list = reset_context->reset_device_list; in aldebaran_mode2_perform_reset()
161 reset_context->hive == NULL) { in aldebaran_mode2_perform_reset()
332 struct amdgpu_reset_context *reset_context) in aldebaran_mode2_restore_hwcontext() argument
[all …]
Damdgpu_reset.c73 struct amdgpu_reset_context *reset_context) in amdgpu_reset_prepare_hwcontext() argument
79 adev->reset_cntl, reset_context); in amdgpu_reset_prepare_hwcontext()
84 reset_context); in amdgpu_reset_prepare_hwcontext()
88 struct amdgpu_reset_context *reset_context) in amdgpu_reset_perform_reset() argument
95 adev->reset_cntl, reset_context); in amdgpu_reset_perform_reset()
99 ret = reset_handler->perform_reset(adev->reset_cntl, reset_context); in amdgpu_reset_perform_reset()
104 reset_context); in amdgpu_reset_perform_reset()
Dmxgpu_ai.c287 struct amdgpu_reset_context reset_context; in xgpu_ai_mailbox_flr_work() local
288 memset(&reset_context, 0, sizeof(reset_context)); in xgpu_ai_mailbox_flr_work()
290 reset_context.method = AMD_RESET_METHOD_NONE; in xgpu_ai_mailbox_flr_work()
291 reset_context.reset_req_dev = adev; in xgpu_ai_mailbox_flr_work()
292 clear_bit(AMDGPU_NEED_FULL_RESET, &reset_context.flags); in xgpu_ai_mailbox_flr_work()
294 amdgpu_device_gpu_recover(adev, NULL, &reset_context); in xgpu_ai_mailbox_flr_work()
Dmxgpu_nv.c314 struct amdgpu_reset_context reset_context; in xgpu_nv_mailbox_flr_work() local
315 memset(&reset_context, 0, sizeof(reset_context)); in xgpu_nv_mailbox_flr_work()
317 reset_context.method = AMD_RESET_METHOD_NONE; in xgpu_nv_mailbox_flr_work()
318 reset_context.reset_req_dev = adev; in xgpu_nv_mailbox_flr_work()
319 clear_bit(AMDGPU_NEED_FULL_RESET, &reset_context.flags); in xgpu_nv_mailbox_flr_work()
321 amdgpu_device_gpu_recover(adev, NULL, &reset_context); in xgpu_nv_mailbox_flr_work()
Dsienna_cichlid.c48 struct amdgpu_reset_context *reset_context) in sienna_cichlid_get_reset_handler() argument
52 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()
101 struct amdgpu_reset_context *reset_context) in sienna_cichlid_mode2_prepare_hwcontext() argument
143 struct amdgpu_reset_context *reset_context) in sienna_cichlid_mode2_perform_reset() argument
237 struct amdgpu_reset_context *reset_context) in sienna_cichlid_mode2_restore_hwcontext() argument
Damdgpu_job.c69 struct amdgpu_reset_context reset_context; in amdgpu_job_timedout() local
70 memset(&reset_context, 0, sizeof(reset_context)); in amdgpu_job_timedout()
72 reset_context.method = AMD_RESET_METHOD_NONE; in amdgpu_job_timedout()
73 reset_context.reset_req_dev = adev; in amdgpu_job_timedout()
74 clear_bit(AMDGPU_NEED_FULL_RESET, &reset_context.flags); in amdgpu_job_timedout()
76 r = amdgpu_device_gpu_recover(ring->adev, job, &reset_context); in amdgpu_job_timedout()
Dmxgpu_vi.c526 struct amdgpu_reset_context reset_context; in xgpu_vi_mailbox_flr_work() local
527 memset(&reset_context, 0, sizeof(reset_context)); in xgpu_vi_mailbox_flr_work()
529 reset_context.method = AMD_RESET_METHOD_NONE; in xgpu_vi_mailbox_flr_work()
530 reset_context.reset_req_dev = adev; in xgpu_vi_mailbox_flr_work()
531 clear_bit(AMDGPU_NEED_FULL_RESET, &reset_context.flags); in xgpu_vi_mailbox_flr_work()
533 amdgpu_device_gpu_recover(adev, NULL, &reset_context); in xgpu_vi_mailbox_flr_work()
Damdgpu_fence.c846 struct amdgpu_reset_context reset_context; in amdgpu_debugfs_reset_work() local
847 memset(&reset_context, 0, sizeof(reset_context)); in amdgpu_debugfs_reset_work()
849 reset_context.method = AMD_RESET_METHOD_NONE; in amdgpu_debugfs_reset_work()
850 reset_context.reset_req_dev = adev; in amdgpu_debugfs_reset_work()
851 set_bit(AMDGPU_NEED_FULL_RESET, &reset_context.flags); in amdgpu_debugfs_reset_work()
853 amdgpu_device_gpu_recover(adev, NULL, &reset_context); in amdgpu_debugfs_reset_work()
Damdgpu_drv.c2224 struct amdgpu_reset_context reset_context; in amdgpu_pci_remove() local
2227 memset(&reset_context, 0, sizeof(reset_context)); in amdgpu_pci_remove()
2228 reset_context.method = AMD_RESET_METHOD_NONE; in amdgpu_pci_remove()
2229 reset_context.reset_req_dev = adev; in amdgpu_pci_remove()
2230 set_bit(AMDGPU_NEED_FULL_RESET, &reset_context.flags); in amdgpu_pci_remove()
2231 set_bit(AMDGPU_RESET_FOR_DEVICE_REMOVE, &reset_context.flags); in amdgpu_pci_remove()
2232 amdgpu_device_gpu_recover(adev, NULL, &reset_context); in amdgpu_pci_remove()
2279 struct amdgpu_reset_context reset_context; in amdgpu_drv_delayed_reset_work_handler() local
2281 memset(&reset_context, 0, sizeof(reset_context)); in amdgpu_drv_delayed_reset_work_handler()
2292 reset_context.method = AMD_RESET_METHOD_NONE; in amdgpu_drv_delayed_reset_work_handler()
[all …]
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 clear_bit(AMDGPU_NEED_FULL_RESET, &reset_context.flags); in amdgpu_amdkfd_reset_work()
138 amdgpu_device_gpu_recover(adev, NULL, &reset_context); in amdgpu_amdkfd_reset_work()
Damdgpu_device.c4662 struct amdgpu_reset_context *reset_context) in amdgpu_device_pre_asic_reset() argument
4667 test_bit(AMDGPU_NEED_FULL_RESET, &reset_context->flags); in amdgpu_device_pre_asic_reset()
4669 if (reset_context->reset_req_dev == adev) in amdgpu_device_pre_asic_reset()
4670 job = reset_context->job; in amdgpu_device_pre_asic_reset()
4699 r = amdgpu_reset_prepare_hwcontext(adev, reset_context); in amdgpu_device_pre_asic_reset()
4725 set_bit(AMDGPU_NEED_FULL_RESET, &reset_context->flags); in amdgpu_device_pre_asic_reset()
4728 &reset_context->flags); in amdgpu_device_pre_asic_reset()
4803 struct amdgpu_reset_context *reset_context) in amdgpu_do_asic_reset() argument
4815 reset_context->reset_device_list = device_list_handle; in amdgpu_do_asic_reset()
4816 r = amdgpu_reset_perform_reset(tmp_adev, reset_context); in amdgpu_do_asic_reset()
[all …]
Damdgpu_reset.h95 struct amdgpu_reset_context *reset_context);
98 struct amdgpu_reset_context *reset_context);
Damdgpu_ras.c1947 struct amdgpu_reset_context reset_context; in amdgpu_ras_do_recovery() local
1948 memset(&reset_context, 0, sizeof(reset_context)); in amdgpu_ras_do_recovery()
1950 reset_context.method = AMD_RESET_METHOD_NONE; in amdgpu_ras_do_recovery()
1951 reset_context.reset_req_dev = adev; in amdgpu_ras_do_recovery()
1952 clear_bit(AMDGPU_NEED_FULL_RESET, &reset_context.flags); in amdgpu_ras_do_recovery()
1954 amdgpu_device_gpu_recover(ras->adev, NULL, &reset_context); in amdgpu_ras_do_recovery()
Damdgpu.h1124 struct amdgpu_reset_context *reset_context);
1127 struct amdgpu_reset_context *reset_context);
1260 struct amdgpu_reset_context *reset_context);
/Linux-v6.1/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_sriov_common.c623 ahw->reset_context = 0; in qlcnic_sriov_vf_init()
1437 ahw->reset_context = 1; in __qlcnic_sriov_issue_cmd()
1733 ahw->reset_context = 0; in qlcnic_sriov_vf_detach()
1831 else if (ahw->reset_context) in qlcnic_sriov_vf_idc_ready_state()
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()
Dqlcnic_main.c1899 adapter->ahw->reset_context = 0; in __qlcnic_up()
3034 adapter->ahw->reset_context = 1; in qlcnic_tx_timeout()
3671 if (ahw->reset_context && qlcnic_auto_fw_reset) in qlcnic_check_health()
Dqlcnic.h484 u8 reset_context; member