diff options
author | YuBiao Wang <YuBiao.Wang@amd.com> | 2023-03-16 06:30:32 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-03-23 16:31:30 +0300 |
commit | 033c56474acf567a450f8bafca50e0b610f2b716 (patch) | |
tree | 066f7492c49b71aaebf13c654f99942be0182382 /tools/perf/scripts/python/syscall-counts.py | |
parent | 4eb0b49a0ad3e004a6a65b84efe37bc7e66d560f (diff) | |
download | linux-033c56474acf567a450f8bafca50e0b610f2b716.tar.xz |
drm/amdgpu: Force signal hw_fences that are embedded in non-sched jobs
[Why]
For engines not supporting soft reset, i.e. VCN, there will be a failed
ib test before mode 1 reset during asic reset. The fences in this case
are never signaled and next time when we try to free the sa_bo, kernel
will hang.
[How]
During pre_asic_reset, driver will clear job fences and afterwards the
fences' refcount will be reduced to 1. For drm_sched_jobs it will be
released in job_free_cb, and for non-sched jobs like ib_test, it's meant
to be released in sa_bo_free but only when the fences are signaled. So
we have to force signal the non_sched bad job's fence during
pre_asic_reset or the clear is not complete.
Signed-off-by: YuBiao Wang <YuBiao.Wang@amd.com>
Acked-by: Luben Tuikov <luben.tuikov@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions