1. 18 11月, 2022 2 次提交
  2. 28 10月, 2022 2 次提交
  3. 19 10月, 2022 3 次提交
  4. 18 10月, 2022 4 次提交
  5. 11 10月, 2022 2 次提交
  6. 29 9月, 2022 2 次提交
  7. 14 9月, 2022 2 次提交
  8. 17 8月, 2022 1 次提交
  9. 13 7月, 2022 1 次提交
  10. 06 7月, 2022 2 次提交
  11. 11 6月, 2022 2 次提交
  12. 02 6月, 2022 2 次提交
  13. 27 5月, 2022 1 次提交
  14. 11 5月, 2022 2 次提交
  15. 26 4月, 2022 1 次提交
  16. 23 4月, 2022 3 次提交
  17. 29 3月, 2022 1 次提交
  18. 16 3月, 2022 1 次提交
  19. 03 3月, 2022 2 次提交
  20. 24 2月, 2022 2 次提交
  21. 18 2月, 2022 2 次提交
    • T
      drm/amdgpu: fix amdgpu_ras_block_late_init error handler · 779596ce
      Tom Rix 提交于
      Clang build fails with
      amdgpu_ras.c:2416:7: error: variable 'ras_obj' is used uninitialized
        whenever 'if' condition is true
        if (adev->in_suspend || amdgpu_in_reset(adev)) {
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      
      amdgpu_ras.c:2453:6: note: uninitialized use occurs here
       if (ras_obj->ras_cb)
           ^~~~~~~
      
      There is a logic error in the error handler's labels.
      ex/ The sysfs: is the last goto label in the normal code but
      is the middle of error handler.  Rework the error handler.
      
      cleanup: is the first error, so it's handler should be last.
      
      interrupt: is the second error, it's handler is next.  interrupt:
      handles the failure of amdgpu_ras_interrupt_add_hander() by
      calling amdgpu_ras_interrupt_remove_handler().  This is wrong,
      remove() assumes the interrupt has been setup, not torn down by
      add().  Change the goto label to cleanup.
      
      sysfs is the last error, it's handler should be first.  sysfs:
      handles the failure of amdgpu_ras_sysfs_create() by calling
      amdgpu_ras_sysfs_remove().  But when the create() fails there
      is nothing added so there is nothing to remove.  This error
      handler is not needed. Remove the error handler and change
      goto label to interrupt.
      
      Fixes: b293e891 ("drm/amdgpu: add helper function to do common ras_late_init/fini (v3)")
      Reviewed-by: NLuben Tuikov <luben.tuikov@amd.com>
      Signed-off-by: NTom Rix <trix@redhat.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      779596ce
    • Y
      drm/amdgpu: Remove redundant .ras_late_init initialization in some ras blocks · 418abce2
      yipechai 提交于
      1. Define amdgpu_ras_block_late_init_default in amdgpu_ras.c as
         .ras_late_init common function, which is called when
         .ras_late_init of ras block isn't initialized.
      2. Remove the code of using amdgpu_ras_block_late_init to
         initialize .ras_late_init in ras blocks.
      Signed-off-by: Nyipechai <YiPeng.Chai@amd.com>
      Reviewed-by: NTao Zhou <tao.zhou1@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      418abce2