ras.rst 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. ====================
  2. AMDGPU RAS Support
  3. ====================
  4. The AMDGPU RAS interfaces are exposed via sysfs (for informational queries) and
  5. debugfs (for error injection).
  6. RAS debugfs/sysfs Control and Error Injection Interfaces
  7. ========================================================
  8. .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
  9. :doc: AMDGPU RAS debugfs control interface
  10. RAS Reboot Behavior for Unrecoverable Errors
  11. ============================================
  12. .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
  13. :doc: AMDGPU RAS Reboot Behavior for Unrecoverable Errors
  14. RAS Error Count sysfs Interface
  15. ===============================
  16. .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
  17. :doc: AMDGPU RAS sysfs Error Count Interface
  18. RAS EEPROM debugfs Interface
  19. ============================
  20. .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
  21. :doc: AMDGPU RAS debugfs EEPROM table reset interface
  22. RAS VRAM Bad Pages sysfs Interface
  23. ==================================
  24. .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
  25. :doc: AMDGPU RAS sysfs gpu_vram_bad_pages Interface
  26. Sample Code
  27. ===========
  28. Sample code for testing error injection can be found here:
  29. https://cgit.freedesktop.org/mesa/drm/tree/tests/amdgpu/ras_tests.c
  30. This is part of the libdrm amdgpu unit tests which cover several areas of the GPU.
  31. There are four sets of tests:
  32. RAS Basic Test
  33. The test verifies the RAS feature enabled status and makes sure the necessary sysfs and debugfs files
  34. are present.
  35. RAS Query Test
  36. This test checks the RAS availability and enablement status for each supported IP block as well as
  37. the error counts.
  38. RAS Inject Test
  39. This test injects errors for each IP.
  40. RAS Disable Test
  41. This test tests disabling of RAS features for each IP block.