diff options
| author | Xiang Liu <xiang.liu@amd.com> | 2026-06-23 10:31:10 +0800 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-07-01 11:28:46 -0400 |
| commit | 4a33d82e224c82e8f493b94b017b1466556db39e (patch) | |
| tree | 3a5e1b1c5aeb453b1de2a73a2f65759e2099b42e /tools/perf/scripts/python | |
| parent | 6fa33f594e46e775a94097f71b486d7b006b6917 (diff) | |
drm/amdgpu: protect XCP scheduler selection
amdgpu_xcp_select_scheds() reads the per-XCP scheduler list.
Partition switching rebuilds the same table under xcp_lock.
Take xcp_lock around XCP scheduler selection and release.
This prevents readers from observing partially rebuilt state.
Also revalidate the selected XCP id before indexing the table.
An open file can outlive a switch to another partition mode.
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>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
