diff options
author | Lizhi Hou <lizhi.hou@amd.com> | 2025-01-24 20:35:36 +0300 |
---|---|---|
committer | Jeffrey Hugo <quic_jhugo@quicinc.com> | 2025-02-14 18:36:07 +0300 |
commit | 4fd6ca90fc7f509977585d39885f21b2911123f3 (patch) | |
tree | 90452f2483865a4c4ac78a66e4055c0b07f38251 /scripts/lib/kdoc/kdoc_files.py | |
parent | 41129e236f14c6c54145c722da06f6793e9fd13d (diff) | |
download | linux-4fd6ca90fc7f509977585d39885f21b2911123f3.tar.xz |
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 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions