diff options
| author | Timur Kristóf <timur.kristof@gmail.com> | 2026-10-06 19:03:52 +0200 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-11-11 15:53:35 -0500 |
| commit | 4807d0757c1e8ef8aff6d0e65d99f3820fea9833 (patch) | |
| tree | 436769cc07a52f25b6dc72ece787787a2440a45a /tools/perf/scripts/python | |
| parent | d489c42c9bd542b3fbbda97b97dc9a0b07010eb3 (diff) | |
drm/amdgpu/vce1: Fix checking whether VCE1 is idle
It turns out that the VCE_STATUS register bits that we
used to check whether VCE1 is idle are actually not useful:
VCE_STATUS.JOB_BUSY doesn't exist until VCE3
VCE_STATUS.UENC_BUSY seems to be stuck high on Cape Verde
Instead, do the following:
Check that the read and write pointer matches for each ring.
Check VCE_STATUS.VCPU_REPORT bits to check busy status.
Finally, also check SRBM_STATUS2.VCE_BUSY just in case,
although this one seems bogus on VCE1.
Fixes: d4a640d4b9f3 ("drm/amdgpu/vce1: Implement VCE1 IP block (v2)")
Acked-by: David Rosca <david.rosca@amd.com>
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Signed-off-by: David Rosca <david.rosca@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 0db6125a171f81422736850e3a7fefdf23380073)
Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
