diff options
| author | Victor Zhao <Victor.Zhao@amd.com> | 2025-12-18 18:42:04 +0800 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-07-28 18:52:30 -0400 |
| commit | 6085f8289ef1f8ee1409992aa4e8fa7331192e58 (patch) | |
| tree | 8cae2eba47c2cf9467611fa682ce1fdba0b2d94b /tools/perf/scripts/python/stackcollapse.py | |
| parent | 1c760249a5011b91ffb42fc23926a956a1936d71 (diff) | |
drm/amdgpu: convert ptl_hw_supported to enum
Convert ptl_hw_supported to enum with three states:
- AMDGPU_PTL_HW_UNINIT: not yet initialized
- AMDGPU_PTL_HW_SUPPORTED: initialized and supported
- AMDGPU_PTL_HW_NOT_SUPPORTED: initialized and not supported
This allows skipping PTL initialization attempts when hardware is
known to not support it, avoiding repeated initialization failures
after GPU resets.
v2:move ptl_hw_supported_state to AMDGPU_PTL_HW_NOT_SUPPORTED regardless
of error code during first time initialization. Print init fail log when
error code is not EOPNOTSUPP.
Signed-off-by: Victor Zhao <Victor.Zhao@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
