diff options
author | 2020-02-10 12:52:16 -0500 | |
---|---|---|
committer | 2020-04-01 14:44:45 -0400 | |
commit | e3b41d82dabaf6f1da94df8339afeee66e9b1a7e (patch) | |
tree | c2251647d564f0e6c2d1dfd92d37261d588f5b7f /drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | |
parent | drm/amdgpu/vcn: fix race condition issue for vcn start (diff) | |
download | linux-rng-e3b41d82dabaf6f1da94df8339afeee66e9b1a7e.tar.xz linux-rng-e3b41d82dabaf6f1da94df8339afeee66e9b1a7e.zip |
drm/amdgpu/vcn: fix race condition issue for dpg unpause mode switch
Couldn't only rely on enc fence to decide switching to dpg unpaude mode.
Since a enc thread may not schedule a fence in time during multiple
threads running situation.
v3: 1. Rename enc_submission_cnt to dpg_enc_submission_cnt
2. Add dpg_enc_submission_cnt check in idle_work_handler
v4: Remove extra counter check, and reduce counter before idle
work schedule
Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c')
0 files changed, 0 insertions, 0 deletions