1. 30 6月, 2021 1 次提交
  2. 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
  3. 05 6月, 2021 1 次提交
  4. 20 5月, 2021 1 次提交
  5. 24 4月, 2021 1 次提交
  6. 21 4月, 2021 9 次提交
  7. 10 4月, 2021 2 次提交
  8. 01 4月, 2021 1 次提交
  9. 24 3月, 2021 1 次提交
  10. 06 3月, 2021 1 次提交
  11. 30 10月, 2020 1 次提交
  12. 01 10月, 2020 1 次提交
  13. 26 9月, 2020 1 次提交
  14. 23 9月, 2020 1 次提交
  15. 18 9月, 2020 2 次提交
  16. 01 9月, 2020 1 次提交
  17. 27 8月, 2020 1 次提交
    • H
      drm/amdkfd: implement the dGPU fallback path for apu (v6) · 6127896f
      Huang Rui 提交于
      We still have a few iommu issues which need to address, so force raven
      as "dgpu" path for the moment.
      
      This is to add the fallback path to bypass IOMMU if IOMMU v2 is disabled
      or ACPI CRAT table not correct.
      
      v2: Use ignore_crat parameter to decide whether it will go with IOMMUv2.
      v3: Align with existed thunk, don't change the way of raven, only renoir
          will use "dgpu" path by default.
      v4: don't update global ignore_crat in the driver, and revise fallback
          function if CRAT is broken.
      v5: refine acpi crat good but no iommu support case, and rename the
          title.
      v6: fix the issue of dGPU initialized firstly, just modify the report
          value in the node_show().
      Signed-off-by: NHuang Rui <ray.huang@amd.com>
      Reviewed-by: NFelix Kuehling <Felix.Kuehling@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      6127896f
  18. 16 7月, 2020 2 次提交
  19. 01 7月, 2020 2 次提交
  20. 18 6月, 2020 1 次提交
  21. 29 5月, 2020 1 次提交
  22. 01 5月, 2020 1 次提交
  23. 29 4月, 2020 3 次提交
  24. 14 4月, 2020 1 次提交
    • O
      device_cgroup: Cleanup cgroup eBPF device filter code · eec8fd02
      Odin Ugedal 提交于
      Original cgroup v2 eBPF code for filtering device access made it
      possible to compile with CONFIG_CGROUP_DEVICE=n and still use the eBPF
      filtering. Change
      commit 4b7d4d45 ("device_cgroup: Export devcgroup_check_permission")
      reverted this, making it required to set it to y.
      
      Since the device filtering (and all the docs) for cgroup v2 is no longer
      a "device controller" like it was in v1, someone might compile their
      kernel with CONFIG_CGROUP_DEVICE=n. Then (for linux 5.5+) the eBPF
      filter will not be invoked, and all processes will be allowed access
      to all devices, no matter what the eBPF filter says.
      Signed-off-by: NOdin Ugedal <odin@ugedal.com>
      Acked-by: NRoman Gushchin <guro@fb.com>
      Signed-off-by: NTejun Heo <tj@kernel.org>
      eec8fd02
  25. 27 2月, 2020 1 次提交
  26. 13 2月, 2020 1 次提交
    • R
      drm/amdkfd: refactor runtime pm for baco · 9593f4d6
      Rajneesh Bhardwaj 提交于
      So far the kfd driver implemented same routines for runtime and system
      wide suspend and resume (s2idle or mem). During system wide suspend the
      kfd aquires an atomic lock that prevents any more user processes to
      create queues and interact with kfd driver and amd gpu. This mechanism
      created problem when amdgpu device is runtime suspended with BACO
      enabled. Any application that relies on kfd driver fails to load because
      the driver reports a locked kfd device since gpu is runtime suspended.
      
      However, in an ideal case, when gpu is runtime  suspended the kfd driver
      should be able to:
      
       - auto resume amdgpu driver whenever a client requests compute service
       - prevent runtime suspend for amdgpu  while kfd is in use
      
      This change refactors the amdgpu and amdkfd drivers to support BACO and
      runtime power management.
      Reviewed-by: NOak Zeng <oak.zeng@amd.com>
      Reviewed-by: NFelix Kuehling <felix.kuehling@amd.com>
      Signed-off-by: NRajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      9593f4d6