Back to home page

OSCL-LXR

 
 

    


0001 ====================
0002  AMDGPU RAS Support
0003 ====================
0004 
0005 The AMDGPU RAS interfaces are exposed via sysfs (for informational queries) and
0006 debugfs (for error injection).
0007 
0008 RAS debugfs/sysfs Control and Error Injection Interfaces
0009 ========================================================
0010 
0011 .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
0012    :doc: AMDGPU RAS debugfs control interface
0013 
0014 RAS Reboot Behavior for Unrecoverable Errors
0015 ============================================
0016 
0017 .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
0018    :doc: AMDGPU RAS Reboot Behavior for Unrecoverable Errors
0019 
0020 RAS Error Count sysfs Interface
0021 ===============================
0022 
0023 .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
0024    :doc: AMDGPU RAS sysfs Error Count Interface
0025 
0026 RAS EEPROM debugfs Interface
0027 ============================
0028 
0029 .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
0030    :doc: AMDGPU RAS debugfs EEPROM table reset interface
0031 
0032 RAS VRAM Bad Pages sysfs Interface
0033 ==================================
0034 
0035 .. kernel-doc:: drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
0036    :doc: AMDGPU RAS sysfs gpu_vram_bad_pages Interface
0037 
0038 Sample Code
0039 ===========
0040 Sample code for testing error injection can be found here:
0041 https://cgit.freedesktop.org/mesa/drm/tree/tests/amdgpu/ras_tests.c
0042 
0043 This is part of the libdrm amdgpu unit tests which cover several areas of the GPU.
0044 There are four sets of tests:
0045 
0046 RAS Basic Test
0047 
0048 The test verifies the RAS feature enabled status and makes sure the necessary sysfs and debugfs files
0049 are present.
0050 
0051 RAS Query Test
0052 
0053 This test checks the RAS availability and enablement status for each supported IP block as well as
0054 the error counts.
0055 
0056 RAS Inject Test
0057 
0058 This test injects errors for each IP.
0059 
0060 RAS Disable Test
0061 
0062 This test tests disabling of RAS features for each IP block.