1. 09 Feb, 2022 1 commit
  2. 07 Feb, 2022 4 commits
  3. 27 Jan, 2022 1 commit
    • Philip Yang's avatar
      drm/amdkfd: svm range restore work deadlock when process exit · 6225bb3a
      Philip Yang authored
      
      kfd_process_notifier_release flush svm_range_restore_work
      which calls svm_range_list_lock_and_flush_work to flush deferred_list
      work, but if deferred_list work mmput release the last user, it will
      call exit_mmap -> notifier_release, it is deadlock with below backtrace.
      
      Move flush svm_range_restore_work to kfd_process_wq_release to avoid
      deadlock. Then svm_range_restore_work take task->mm ref to avoid mm is
      gone while validating and mapping ranges to GPU.
      
      Workqueue: events svm_range_deferred_list_work [amdgpu]
      Call Trace:
       wait_for_completion+0x94/0x100
       __flush_work+0x12a/0x1e0
       __cancel_work_timer+0x10e/0x190
       cancel_delayed_work_sync+0x13/0x20
       kfd_process_notifier_release+0x98/0x2a0 [amdgpu]
       __mmu_notifier_release+0x74/0x1f0
       exit_mmap+0x170/0x200
       mmput+0x5d/0x130
       svm_range_deferred_list_work+0x104/0x230 [amdgpu]
       process_one_work+0x220/0x3c0
      Signed-off-by: default avatarPhilip Yang <Philip.Yang@amd.com>
      Reported-by: default avatarRuili Ji <ruili.ji@amd.com>
      Tested-by: default avatarRuili Ji <ruili.ji@amd.com>
      Reviewed-by: default avatarFelix Kuehling <Felix.Kuehling@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      6225bb3a
  4. 11 Jan, 2022 1 commit
    • Greg Kroah-Hartman's avatar
      drm/amdkfd: use default_groups in kobj_type · 5fea167e
      Greg Kroah-Hartman authored
      There are currently 2 ways to create a set of sysfs files for a
      kobj_type, through the default_attrs field, and the default_groups
      field.  Move the amdkfd sysfs code to use default_groups field which has
      been the preferred way since aa30f47c
      
       ("kobject: Add support for
      default attribute groups to kobj_type") so that we can soon get rid of
      the obsolete default_attrs field.
      
      Cc: Felix Kuehling <Felix.Kuehling@amd.com>
      Cc: Alex Deucher <alexander.deucher@amd.com>
      Cc: "Christian König" <christian.koenig@amd.com>
      Cc: "Pan, Xinhui" <Xinhui.Pan@amd.com>
      Cc: David Airlie <airlied@linux.ie>
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Cc: amd-gfx@lists.freedesktop.org
      Cc: dri-devel@lists.freedesktop.org
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      5fea167e
  5. 13 Dec, 2021 1 commit
    • Isabella Basso's avatar
      drm/amd: fix improper docstring syntax · bbe04dec
      Isabella Basso authored
      
      This fixes various warnings relating to erroneous docstring syntax, of
      which some are listed below:
      
       warning: Function parameter or member 'adev' not described in
       'amdgpu_atomfirmware_ras_rom_addr'
       ...
       warning: expecting prototype for amdgpu_atpx_validate_functions().
       Prototype was for amdgpu_atpx_validate() instead
       ...
       warning: Excess function parameter 'mem' description in 'amdgpu_preempt_mgr_new'
       ...
       warning: Cannot understand  * @kfd_get_cu_occupancy - Collect number of
       waves in-flight on this device
       ...
       warning: This comment starts with '/**', but isn't a kernel-doc
       comment. Refer Documentation/doc-guide/kernel-doc.rst
      Signed-off-by: default avatarIsabella Basso <isabbasso@riseup.net>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      bbe04dec
  6. 01 Dec, 2021 2 commits
  7. 17 Nov, 2021 6 commits
  8. 05 Nov, 2021 1 commit
  9. 28 Oct, 2021 1 commit
  10. 02 Aug, 2021 1 commit
  11. 28 Jul, 2021 1 commit
  12. 13 Jul, 2021 2 commits
  13. 30 Jun, 2021 3 commits
  14. 15 Jun, 2021 1 commit
    • Felix Kuehling's avatar
      drm/amdkfd: Disable SVM per GPU, not per process · 5a75ea56
      Felix Kuehling authored
      
      When some GPUs don't support SVM, don't disabe it for the entire process.
      That would be inconsistent with the information the process got from the
      topology, which indicates SVM support per GPU.
      
      Instead disable SVM support only for the unsupported GPUs. This is done
      by checking any per-device attributes against the bitmap of supported
      GPUs. Also use the supported GPU bitmap to initialize access bitmaps for
      new SVM address ranges.
      
      Don't handle recoverable page faults from unsupported GPUs. (I don't
      think there will be unsupported GPUs that can generate recoverable page
      faults. But better safe than sorry.)
      Signed-off-by: default avatarFelix Kuehling <Felix.Kuehling@amd.com>
      Reviewed-by: default avatarPhilip Yang <philip.yang@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      5a75ea56
  15. 07 Jun, 2021 1 commit
  16. 04 Jun, 2021 2 commits
  17. 21 May, 2021 1 commit
  18. 20 May, 2021 1 commit
  19. 29 Apr, 2021 1 commit
  20. 21 Apr, 2021 8 commits