/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_reset.c | 58 struct amdgpu_reset_context *reset_context) in amdgpu_reset_xgmi_reset_on_init_prep_hwctxt() argument 60 struct list_head *reset_device_list = reset_context->reset_device_list; in amdgpu_reset_xgmi_reset_on_init_prep_hwctxt() 79 struct amdgpu_reset_context *reset_context) in amdgpu_reset_xgmi_reset_on_init_restore_hwctxt() argument 81 struct list_head *reset_device_list = reset_context->reset_device_list; in amdgpu_reset_xgmi_reset_on_init_restore_hwctxt() 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 104 struct list_head *reset_device_list = reset_context->reset_device_list; in amdgpu_reset_xgmi_reset_on_init_perform_reset() 148 struct amdgpu_reset_context *reset_context) in amdgpu_reset_do_xgmi_reset_on_init() argument 150 struct list_head *reset_device_list = reset_context->reset_device_list; in amdgpu_reset_do_xgmi_reset_on_init() 160 r = amdgpu_reset_prepare_hwcontext(adev, reset_context); in amdgpu_reset_do_xgmi_reset_on_init() [all …]
|
H A D | aldebaran.c | 47 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() 57 reset_context->method = amdgpu_asic_reset_method(adev); 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() 64 if (handler->reset_method == reset_context->method) in aldebaran_get_reset_handler() 98 struct amdgpu_reset_context *reset_context) in aldebaran_mode2_prepare_hwcontext() argument 138 struct amdgpu_reset_context *reset_context) in aldebaran_mode2_perform_reset() argument 141 struct list_head *reset_device_list = reset_context->reset_device_list; in aldebaran_mode2_perform_reset() [all …]
|
H A D | mxgpu_ai.c | 284 struct amdgpu_reset_context reset_context; in xgpu_ai_mailbox_flr_work() local 285 memset(&reset_context, 0, sizeof(reset_context)); in xgpu_ai_mailbox_flr_work() 287 reset_context.method = AMD_RESET_METHOD_NONE; in xgpu_ai_mailbox_flr_work() 288 reset_context.reset_req_dev = adev; in xgpu_ai_mailbox_flr_work() 289 clear_bit(AMDGPU_NEED_FULL_RESET, &reset_context.flags); in xgpu_ai_mailbox_flr_work() 290 set_bit(AMDGPU_HOST_FLR, &reset_context.flags); in xgpu_ai_mailbox_flr_work() 292 amdgpu_device_gpu_recover(adev, NULL, &reset_context); in xgpu_ai_mailbox_flr_work()
|
H A D | mxgpu_vi.c | 520 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()
|
H A D | amdgpu_job.c | 158 struct amdgpu_reset_context reset_context; in amdgpu_job_timedout() local 159 memset(&reset_context, 0, sizeof(reset_context)); in amdgpu_job_timedout() 161 reset_context.method = AMD_RESET_METHOD_NONE; in amdgpu_job_timedout() 162 reset_context.reset_req_dev = adev; in amdgpu_job_timedout() 163 reset_context.src = AMDGPU_RESET_SRC_JOB; in amdgpu_job_timedout() 164 clear_bit(AMDGPU_NEED_FULL_RESET, &reset_context.flags); in amdgpu_job_timedout() 170 set_bit(AMDGPU_SKIP_COREDUMP, &reset_context.flags); in amdgpu_job_timedout() 172 r = amdgpu_device_gpu_recover(ring->adev, job, &reset_context); in amdgpu_job_timedout()
|
H A D | amdgpu_amdkfd.c | 130 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() 268 struct amdgpu_reset_context *reset_context) in amdgpu_amdkfd_pre_reset() argument 273 r = kgd2kfd_pre_reset(adev->kfd.dev, reset_context); in amdgpu_amdkfd_pre_reset()
|
H A D | amdgpu_fence.c | 975 struct amdgpu_reset_context reset_context; in amdgpu_debugfs_reset_work() local 977 memset(&reset_context, 0, sizeof(reset_context)); in amdgpu_debugfs_reset_work() 979 reset_context.method = AMD_RESET_METHOD_NONE; in amdgpu_debugfs_reset_work() 980 reset_context.reset_req_dev = adev; in amdgpu_debugfs_reset_work() 981 reset_context.src = AMDGPU_RESET_SRC_USER; in amdgpu_debugfs_reset_work() 982 set_bit(AMDGPU_NEED_FULL_RESET, &reset_context.flags); in amdgpu_debugfs_reset_work() 983 set_bit(AMDGPU_SKIP_COREDUMP, &reset_context.flags); in amdgpu_debugfs_reset_work() 985 amdgpu_device_gpu_recover(adev, NULL, &reset_context); in amdgpu_debugfs_reset_work()
|
H A D | amdgpu_device.c | 5223 struct amdgpu_reset_context *reset_context) in amdgpu_device_reset_sriov() argument 5228 if (test_bit(AMDGPU_HOST_FLR, &reset_context->flags)) { in amdgpu_device_reset_sriov() 5232 clear_bit(AMDGPU_HOST_FLR, &reset_context->flags); in amdgpu_device_reset_sriov() 5430 struct amdgpu_reset_context *reset_context) in amdgpu_device_pre_asic_reset() argument 5434 struct amdgpu_device *tmp_adev = reset_context->reset_req_dev; in amdgpu_device_pre_asic_reset() 5436 test_bit(AMDGPU_NEED_FULL_RESET, &reset_context->flags); in amdgpu_device_pre_asic_reset() 5438 if (reset_context->reset_req_dev == adev) in amdgpu_device_pre_asic_reset() 5439 job = reset_context->job; in amdgpu_device_pre_asic_reset() 5467 r = amdgpu_reset_prepare_hwcontext(adev, reset_context); in amdgpu_device_pre_asic_reset() 5491 if (!test_bit(AMDGPU_SKIP_COREDUMP, &reset_context->flags)) { in amdgpu_device_pre_asic_reset() [all …]
|
H A D | amdgpu_amdkfd.h | 175 struct amdgpu_reset_context *reset_context); 426 struct amdgpu_reset_context *reset_context); 476 struct amdgpu_reset_context *reset_context) in kgd2kfd_pre_reset() argument
|
H A D | amdgpu_ras.c | 2670 struct amdgpu_reset_context reset_context; in amdgpu_ras_do_recovery() local 2671 memset(&reset_context, 0, sizeof(reset_context)); in amdgpu_ras_do_recovery() 2673 reset_context.method = AMD_RESET_METHOD_NONE; in amdgpu_ras_do_recovery() 2674 reset_context.reset_req_dev = adev; in amdgpu_ras_do_recovery() 2675 reset_context.src = AMDGPU_RESET_SRC_RAS; in amdgpu_ras_do_recovery() 2676 set_bit(AMDGPU_SKIP_COREDUMP, &reset_context.flags); in amdgpu_ras_do_recovery() 2680 set_bit(AMDGPU_NEED_FULL_RESET, &reset_context.flags); in amdgpu_ras_do_recovery() 2682 clear_bit(AMDGPU_NEED_FULL_RESET, &reset_context.flags); in amdgpu_ras_do_recovery() 2686 reset_context.method = AMD_RESET_METHOD_MODE2; in amdgpu_ras_do_recovery() 2694 set_bit(AMDGPU_NEED_FULL_RESET, &reset_context.flags); in amdgpu_ras_do_recovery() [all …]
|
H A D | amdgpu.h | 1285 struct amdgpu_reset_context *reset_context); 1288 struct amdgpu_reset_context *reset_context); 1290 int amdgpu_device_reinit_after_reset(struct amdgpu_reset_context *reset_context); 1434 struct amdgpu_reset_context *reset_context);
|
/linux/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_smi_events.c | 220 struct amdgpu_reset_context *reset_context) in kfd_smi_event_update_gpu_reset() argument 234 if (reset_context) in kfd_smi_event_update_gpu_reset() 235 amdgpu_reset_get_desc(reset_context, reset_cause, in kfd_smi_event_update_gpu_reset()
|
H A D | kfd_device.c | 955 struct amdgpu_reset_context *reset_context) in kgd2kfd_pre_reset() argument 965 kfd_smi_event_update_gpu_reset(node, false, reset_context); in kgd2kfd_pre_reset()
|
/linux/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_sriov_common.c | 627 ahw->reset_context = 0; in qlcnic_sriov_vf_init() 1441 ahw->reset_context = 1; in __qlcnic_sriov_issue_cmd() 1737 ahw->reset_context = 0; in qlcnic_sriov_vf_detach() 1835 else if (ahw->reset_context) in qlcnic_sriov_vf_idc_ready_state()
|
H A D | qlcnic_83xx_init.c | 658 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()
|
H A D | qlcnic_main.c | 1898 adapter->ahw->reset_context = 0; in __qlcnic_up() 3036 adapter->ahw->reset_context = 1; in qlcnic_tx_timeout() 3673 if (ahw->reset_context && qlcnic_auto_fw_reset) in qlcnic_check_health()
|
H A D | qlcnic.h | 484 u8 reset_context; member
|