summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorTvrtko Ursulin <tvrtko.ursulin@igalia.com>2026-09-14 15:54:23 +0100
committerAlex Deucher <alexander.deucher@amd.com>2026-09-17 11:38:28 -0400
commit5d7ffdc7f8f55b4d7a91a7ebedbbc0c2ffec9076 (patch)
tree8ecf93f11faa8a113bbe9e487d6c929e94daa291 /tools/perf/scripts/python/bin
parentce23f00eb12b005215d502e666da512021f86513 (diff)
downloadlinux-5d7ffdc7f8f55b4d7a91a7ebedbbc0c2ffec9076.tar.gz
linux-5d7ffdc7f8f55b4d7a91a7ebedbbc0c2ffec9076.zip
drm/amdgpu: Convert SDMA instance and index to direct lookup
Instead of searching for the matching SDMA instance inside many of the SDMA ring vfuncs lets just use the instance number already stored in the ring and replace the function calls and array walks with direct lookups. As these helpers are used only from SDMA vfuncs we can remove safely remove the "is this a SDMA ring" checks as well. We could add an assert that ring->type queried is AMDGPU_RING_TYPE_SDMA but as currently there are no debug build only assert macros in this driver for now I opted not to so the helper can stay a trivial static inline without polluting the callers with out of line logging. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com> Cc: Timur Kristóf <timur.kristof@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions