1. 26 3月, 2022 2 次提交
  2. 15 2月, 2022 1 次提交
  3. 10 2月, 2022 1 次提交
  4. 08 2月, 2022 4 次提交
  5. 28 1月, 2022 1 次提交
    • P
      drm/amdkfd: svm range restore work deadlock when process exit · 6225bb3a
      Philip Yang 提交于
      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: NPhilip Yang <Philip.Yang@amd.com>
      Reported-by: NRuili Ji <ruili.ji@amd.com>
      Tested-by: NRuili Ji <ruili.ji@amd.com>
      Reviewed-by: NFelix Kuehling <Felix.Kuehling@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      6225bb3a
  6. 12 1月, 2022 1 次提交
    • G
      drm/amdkfd: use default_groups in kobj_type · 5fea167e
      Greg Kroah-Hartman 提交于
      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: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      5fea167e
  7. 14 12月, 2021 1 次提交
    • I
      drm/amd: fix improper docstring syntax · bbe04dec
      Isabella Basso 提交于
      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: NIsabella Basso <isabbasso@riseup.net>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      bbe04dec
  8. 02 12月, 2021 2 次提交
  9. 18 11月, 2021 6 次提交
  10. 06 11月, 2021 1 次提交
  11. 29 10月, 2021 1 次提交
  12. 03 8月, 2021 1 次提交
  13. 29 7月, 2021 1 次提交
  14. 13 7月, 2021 2 次提交
  15. 30 6月, 2021 3 次提交
  16. 16 6月, 2021 1 次提交
    • F
      drm/amdkfd: Disable SVM per GPU, not per process · 5a75ea56
      Felix Kuehling 提交于
      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: NFelix Kuehling <Felix.Kuehling@amd.com>
      Reviewed-by: NPhilip Yang <philip.yang@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      5a75ea56
  17. 08 6月, 2021 1 次提交
  18. 05 6月, 2021 2 次提交
  19. 22 5月, 2021 1 次提交
  20. 20 5月, 2021 1 次提交
  21. 29 4月, 2021 1 次提交
  22. 21 4月, 2021 5 次提交