mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
drm/amdgpu/ras: reload RAS TA from ras mgr resume
When uniras owns the RAS TA, rascore can no longer rely on the legacy PSP context to keep TA session state alive across reset or suspend. The manager has to provide enough metadata to reload the TA and rebuild its shared buffer after PSP reinitialization. Source TA firmware metadata from adev->psp.ras_context.context.bin_desc, allocate and free the shared buffer on demand, and hand the fini cleanup back to rascore through a put_ras_ta_fini_param callback. Add a resume hook that reloads the TA with skip_lock set so the reload can run after GPU reset. Export thin ras_mgr helpers for feature toggles and deferred replay so higher layers can use the rascore-owned TA path without depending on legacy PSP-managed TA session state directly. Signed-off-by: Jinzhou Su <jinzhou.su@amd.com> Signed-off-by: Xiang Liu <xiang.liu@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
8e1561247d
commit
7008fc10a6
1 changed files with 74 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue