diff options
author | 2025-01-24 09:35:36 -0800 | |
---|---|---|
committer | 2025-02-14 08:36:07 -0700 | |
commit | 4fd6ca90fc7f509977585d39885f21b2911123f3 (patch) | |
tree | 90452f2483865a4c4ac78a66e4055c0b07f38251 /drivers/gpu/drm/meson/meson_encoder_dsi.c | |
parent | drm/amdgpu: Enable async flip on overlay planes (diff) | |
download | wireguard-linux-4fd6ca90fc7f509977585d39885f21b2911123f3.tar.xz wireguard-linux-4fd6ca90fc7f509977585d39885f21b2911123f3.zip |
accel/amdxdna: Refactor hardware context destroy routine
It is required by firmware to wait up to 2 seconds for pending commands
before sending the destroy hardware context command. After 2 seconds
wait, if there are still pending commands, driver needs to cancel them.
So the context destroy steps need to be:
1. Stop drm scheduler. (drm_sched_entity_destroy)
2. Wait up to 2 seconds for pending commands.
3. Destroy hardware context and cancel the rest pending requests.
4. Wait all jobs associated with the hwctx are freed.
5. Free job resources.
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Signed-off-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250124173536.148676-1-lizhi.hou@amd.com
Diffstat (limited to 'drivers/gpu/drm/meson/meson_encoder_dsi.c')
0 files changed, 0 insertions, 0 deletions