1. 13 Jul, 2021 1 commit
    • Luben Tuikov's avatar
      drm/amdgpu: Return error if no RAS · 43a44c53
      Luben Tuikov authored
      
      
      In amdgpu_ras_query_error_count() return an error
      if the device doesn't support RAS. This prevents
      that function from having to always set the values
      of the integer pointers (if set), and thus
      prevents function side effects--always to have to
      set values of integers if integer pointers set,
      regardless of whether RAS is supported or
      not--with this change this side effect is
      mitigated.
      
      Also, if no pointers are set, don't count, since
      we've no way of reporting the counts.
      
      Also, give this function a kernel-doc.
      
      Cc: Alexander Deucher <Alexander.Deucher@amd.com>
      Cc: John Clements <john.clements@amd.com>
      Cc: Hawking Zhang <Hawking.Zhang@amd.com>
      Reported-by: default avatarTom Rix <trix@redhat.com>
      Fixes: a46751fb
      
       ("drm/amdgpu: Fix RAS function interface")
      Signed-off-by: default avatarLuben Tuikov <luben.tuikov@amd.com>
      Reviewed-by: default avatarAlexander Deucher <Alexander.Deucher@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      43a44c53
  2. 18 Jun, 2021 2 commits
  3. 11 Jun, 2021 1 commit
  4. 27 May, 2021 2 commits
  5. 20 May, 2021 2 commits
  6. 10 May, 2021 11 commits
  7. 29 Apr, 2021 1 commit
  8. 23 Apr, 2021 2 commits
  9. 21 Apr, 2021 2 commits
  10. 15 Apr, 2021 5 commits
  11. 09 Apr, 2021 11 commits