diff options
author | [email protected] <[email protected]> | 2024-11-04 13:15:49 +0800 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2024-11-08 11:45:18 -0500 |
commit | 59fd50b8663b4e703b44f9b51a2e715dc6e344c1 (patch) | |
tree | a50c0e70d6783731604efdae4ddb99c28b57dc92 /drivers/gpu/drm/amd/amdgpu/amdgpu_mmhub.c | |
parent | edd345f7ef799848a9e2be9de82bbfcb98fdcc43 (diff) |
drm/amdgpu: Add sysfs interface for sdma reset mask
Add the sysfs interface for sdma:
sdma_reset_mask
The interface is read-only and show the resets supported by the IP.
For example, full adapter reset (mode1/mode2/BACO/etc),
soft reset, queue reset, and pipe reset.
V2: the sysfs node returns a text string instead of some flags (Christian)
v3: add a generic helper which takes the ring as parameter
and print the strings in the order they are applied (Christian)
check amdgpu_gpu_recovery before creating sysfs file itself,
and initialize supported_reset_types in IP version files (Lijo)
Signed-off-by: Jesse Zhang <[email protected]>
Suggested-by: Alex Deucher <[email protected]>
Reviewed-by: Tim Huang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mmhub.c')
0 files changed, 0 insertions, 0 deletions