diff options
| author | [email protected] <[email protected]> | 2025-04-11 07:30:23 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2025-04-21 14:57:22 +0000 |
| commit | 2200b41428ee8d2298ec9d3fd2a22ba2d006096a (patch) | |
| tree | b93c6f2654271afab4d751f503bb8f089e4a376b /drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | |
| parent | drm/radeon: fix the warning for radeon_cs_parser_fini (diff) | |
| download | kernel-2200b41428ee8d2298ec9d3fd2a22ba2d006096a.tar.gz kernel-2200b41428ee8d2298ec9d3fd2a22ba2d006096a.zip | |
drm/amdgpu:remove old sdma reset callback mechanism
This patch removes the deprecated SDMA reset callback mechanism, which was previously used to register pre-reset and post-reset callbacks for SDMA engine resets.
The callback mechanism has been replaced with a more direct and efficient approach using `stop_queue` and `start_queue` functions in the ring's function table.
The SDMA reset callback mechanism allowed KFD and AMDGPU to register pre-reset and post-reset functions for handling SDMA engine resets.
However, this approach added unnecessary complexity and was no longer needed after the introduction of the `stop_queue` and `start_queue` functions in the ring's function table.
1. **Remove Callback Mechanism**:
- Removed the `amdgpu_sdma_register_on_reset_callbacks` function and its associated data structures (`sdma_on_reset_funcs`).
- Removed the callback registration logic from the SDMA v4.4.2 initialization code.
2. **Clean Up Related Code**:
- Removed the `sdma_v4_4_2_set_engine_reset_funcs` function, which was used to register the callbacks.
- Removed the `sdma_v4_4_2_engine_reset_funcs` structure, which contained the pre-reset and post-reset callback functions.
Signed-off-by: Jesse Zhang <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c')
0 files changed, 0 insertions, 0 deletions
