diff options
| author | Jesse.zhang@amd.com <Jesse.zhang@amd.com> | 2025-04-11 15:26:18 +0800 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2025-04-21 10:56:54 -0400 |
| commit | 5c3e7c49538e2ddad10296a318c225bbb3d37d20 (patch) | |
| tree | 355d0c4d3a6c9b5aa79c542a39e4ae7158ff6a7e /tools/perf/scripts/python | |
| parent | drm/amdgpu: switch amdgpu_sdma_reset_engine to use the new sdma function poin... (diff) | |
| download | linux-5c3e7c49538e2ddad10296a318c225bbb3d37d20.tar.gz linux-5c3e7c49538e2ddad10296a318c225bbb3d37d20.zip | |
drm/amdgpu: Implement SDMA soft reset directly for v5.x
This patch introduces a new function `amdgpu_sdma_soft_reset` to handle SDMA soft resets directly,
rather than relying on the DPM interface.
1. **New `amdgpu_sdma_soft_reset` Function**:
- Implements a soft reset for SDMA engines by directly writing to the hardware registers.
- Handles SDMA versions 4.x and 5.x separately:
- For SDMA 4.x, the existing `amdgpu_dpm_reset_sdma` function is used for backward compatibility.
- For SDMA 5.x, the driver directly manipulates the `GRBM_SOFT_RESET` register to reset the specified SDMA instance.
2. **Integration into `amdgpu_sdma_reset_engine`**:
- The `amdgpu_sdma_soft_reset` function is called during the SDMA reset process, replacing the previous call to `amdgpu_dpm_reset_sdma`.
v2: r should default to an error (Alex)
Suggested-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Jesse Zhang <jesse.zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
