1. 18 10月, 2022 1 次提交
    • F
      drm/amd/amdgpu: Replace kmap() with kmap_local_page() · a2c55426
      Fabio M. De Francesco 提交于
      kmap() is being deprecated in favor of kmap_local_page().
      
      There are two main problems with kmap(): (1) It comes with an overhead as
      mapping space is restricted and protected by a global lock for
      synchronization and (2) it also requires global TLB invalidation when the
      kmap’s pool wraps and it might block when the mapping space is fully
      utilized until a slot becomes available.
      
      With kmap_local_page() the mappings are per thread, CPU local, can take
      page faults, and can be called from any context (including interrupts).
      It is faster than kmap() in kernels with HIGHMEM enabled. Furthermore,
      the tasks can be preempted and, when they are scheduled to run again, the
      kernel virtual addresses are restored and are still valid.
      
      Since its use in amdgpu/amdgpu_ttm.c is safe, it should be preferred.
      
      Therefore, replace kmap() with kmap_local_page() in amdgpu/amdgpu_ttm.c.
      Suggested-by: NIra Weiny <ira.weiny@intel.com>
      Acked-by: NChristian König <christian.koenig@amd.com>
      Signed-off-by: NFabio M. De Francesco <fmdefrancesco@gmail.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      a2c55426
  2. 07 10月, 2022 1 次提交
  3. 22 8月, 2022 1 次提交
  4. 11 8月, 2022 1 次提交
  5. 11 7月, 2022 1 次提交
  6. 23 6月, 2022 1 次提交
    • A
      drm/amdgpu: Adjust logic around GTT size (v3) · f15345a3
      Alex Deucher 提交于
      Certain GL unit tests for large textures can cause problems
      with the OOM killer since there is no way to link this memory
      to a process.  This was originally mitigated (but not necessarily
      eliminated) by limiting the GTT size.  The problem is this limit
      is often too low for many modern games so just make the limit 1/2
      of system memory. The OOM accounting needs to be addressed, but
      we shouldn't prevent common 3D applications from being usable
      just to potentially mitigate that corner case.
      
      Set default GTT size to max(3G, 1/2 of system ram) by default.
      
      v2: drop previous logic and default to 3/4 of ram
      v3: default to half of ram to align with ttm
      v4: fix spelling in comment (Kent)
      
      Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1942Reviewed-by: NMarek Olšák <marek.olsak@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      f15345a3
  7. 22 6月, 2022 1 次提交
    • A
      drm/amdgpu: Adjust logic around GTT size (v3) · f7ba887f
      Alex Deucher 提交于
      Certain GL unit tests for large textures can cause problems
      with the OOM killer since there is no way to link this memory
      to a process.  This was originally mitigated (but not necessarily
      eliminated) by limiting the GTT size.  The problem is this limit
      is often too low for many modern games so just make the limit 1/2
      of system memory. The OOM accounting needs to be addressed, but
      we shouldn't prevent common 3D applications from being usable
      just to potentially mitigate that corner case.
      
      Set default GTT size to max(3G, 1/2 of system ram) by default.
      
      v2: drop previous logic and default to 3/4 of ram
      v3: default to half of ram to align with ttm
      v4: fix spelling in comment (Kent)
      
      Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1942Reviewed-by: NMarek Olšák <marek.olsak@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      f7ba887f
  8. 27 5月, 2022 1 次提交
  9. 21 4月, 2022 1 次提交
  10. 07 4月, 2022 2 次提交
  11. 29 3月, 2022 1 次提交
  12. 14 2月, 2022 1 次提交
  13. 08 2月, 2022 1 次提交
  14. 03 2月, 2022 5 次提交
  15. 24 1月, 2022 1 次提交
  16. 20 1月, 2022 2 次提交
  17. 15 1月, 2022 2 次提交
  18. 12 1月, 2022 1 次提交
  19. 23 11月, 2021 1 次提交
  20. 18 11月, 2021 1 次提交
  21. 29 10月, 2021 1 次提交
  22. 25 10月, 2021 1 次提交
  23. 22 10月, 2021 1 次提交
  24. 14 10月, 2021 1 次提交
  25. 07 10月, 2021 1 次提交
  26. 29 9月, 2021 2 次提交
  27. 15 9月, 2021 1 次提交
  28. 08 9月, 2021 1 次提交
  29. 23 8月, 2021 2 次提交
  30. 06 8月, 2021 1 次提交
  31. 17 7月, 2021 1 次提交