Skip to content
Snippets Groups Projects
  1. Mar 20, 2025
  2. Mar 19, 2025
  3. Dec 05, 2024
  4. Oct 15, 2024
  5. Aug 21, 2024
    • SRINIVASAN SHANMUGAM's avatar
      drm/amdgpu: Enforce isolation as part of the job · dba1a6cf
      SRINIVASAN SHANMUGAM authored
      
      This patch adds a new parameter 'enforce_isolation' to the amdgpu_job
      structure. This parameter is used to determine whether shader isolation
      should be enforced for a job. The enforce_isolation parameter is then
      stored in the amdgpu_job structure and used when flushing the VM.
      
      The enforce_isolation field of the amdgpu_job structure is set directly
      after the job is allocated
      
      This change allows more fine-grained control over shader isolation,
      making it possible to enforce isolation on a per-job basis rather than
      globally. This can be useful in scenarios where only certain jobs
      require isolation.
      
      Cc: Christian König <christian.koenig@amd.com>
      Cc: Alex Deucher <alexander.deucher@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Signed-off-by: default avatarSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>
      Suggested-by: default avatarChristian König <christian.koenig@amd.com>
      dba1a6cf
  6. Aug 16, 2024
    • SRINIVASAN SHANMUGAM's avatar
      drm/amdgpu: Make enforce_isolation setting per GPU · 96595204
      SRINIVASAN SHANMUGAM authored
      
      This commit makes enforce_isolation setting to be per GPU and per
      partition by adding the enforce_isolation array to the adev structure.
      The adev variable is set based on the global enforce_isolation module
      parameter during device initialization.
      
      In amdgpu_ids.c, the adev->enforce_isolation value for the current GPU
      is used to determine whether to enforce isolation between graphics and
      compute processes on that GPU.
      
      In amdgpu_ids.c, the adev->enforce_isolation value for the current GPU
      and partition is used to determine whether to enforce isolation between
      graphics and compute processes on that GPU and partition.
      
      This allows the enforce_isolation setting to be controlled individually
      for each GPU and each partition, which is useful in a system with
      multiple GPUs and partitions where different isolation settings might be
      desired for different GPUs and partitions.
      
      v2: fix loop in amdgpu_vmid_mgr_init() (Alex)
      
      Cc: Christian König <christian.koenig@amd.com>
      Cc: Alex Deucher <alexander.deucher@amd.com>
      Signed-off-by: default avatarSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Suggested-by: default avatarChristian König <christian.koenig@amd.com>
      96595204
  7. Aug 13, 2024
  8. Jul 27, 2024
  9. Jul 23, 2024
  10. Jul 10, 2024
  11. Jul 08, 2024
  12. Apr 17, 2024
  13. Jan 15, 2024
    • Felix Kuehling's avatar
      drm/amdgpu: Auto-validate DMABuf imports in compute VMs · 50661eb1
      Felix Kuehling authored
      
      DMABuf imports in compute VMs are not wrapped in a kgd_mem object on the
      process_info->kfd_bo_list. There is no explicit KFD API call to validate
      them or add eviction fences to them.
      
      This patch automatically validates and fences dymanic DMABuf imports when
      they are added to a compute VM. Revalidation after evictions is handled
      in the VM code.
      
      v2:
      * Renamed amdgpu_vm_validate_evicted_bos to amdgpu_vm_validate
      * Eliminated evicted_user state, use evicted state for VM BOs and user BOs
      * Fixed and simplified amdgpu_vm_fence_imports, depends on reserved BOs
      * Moved dma_resv_reserve_fences for amdgpu_vm_fence_imports into
        amdgpu_vm_validate, outside the vm->status_lock
      * Added dummy version of amdgpu_amdkfd_bo_validate_and_fence for builds
        without KFD
      
      v4: Eliminate amdgpu_vm_fence_imports. It's not needed because the
      reservation with its fences is shared with the export, as long as all
      imports are from KFD, with the exports already reserved, validated and
      fenced by the KFD restore worker.
      
      v5: Reintroduced separate evicted_user state to simplify the state machine
      and CS error handling when amdgpu_vm_validate is called without a ticket.
      
      Signed-off-by: default avatarFelix Kuehling <felix.kuehling@amd.com>
      Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      50661eb1
  14. Jan 03, 2024
  15. Dec 10, 2023
  16. Nov 17, 2023
  17. Nov 09, 2023
  18. Nov 03, 2023
  19. Oct 19, 2023
  20. Sep 11, 2023
  21. Aug 31, 2023
  22. Aug 30, 2023
  23. Aug 09, 2023
  24. Jul 12, 2023
  25. Jun 30, 2023
  26. Jun 15, 2023
  27. Jun 09, 2023
  28. May 04, 2023
  29. Apr 24, 2023
  30. Apr 21, 2023
  31. Apr 18, 2023
    • Bas Nieuwenhuizen's avatar
      drm/amdgpu: Add a max ibs per submission limit. · c30ddcec
      Bas Nieuwenhuizen authored
      And ensure each ring supports that many submissions. This makes
      sure that we don't get surprises after the submission has been
      scheduled where the ring allocation actually gets rejected.
      
      My calculations on the existing limits:
      COMPUTE v10: 128
      COMPUTE v11: 128
      COMPUTE v6: 157
      COMPUTE v7: 133
      COMPUTE v8: 130
      COMPUTE v9: 125
      GFX v10: 208
      GFX v11: 213
      GFX v6: 154 (doubling this in the previous patch)
      GFX v7: 226
      GFX v8: 213
      GFX v9: 208
      GFX v9 (SW): 208
      SDMA CIK: 87
      SDMA SI: 97
      SDMA v2.4: 74
      SDMA v3.0: 74
      SDMA v4.0: 72
      SDMA v5.0: 51
      SDMA v6.0: 52
      UVD ENC v6.0: 98
      UVD ENC v7.0: 92
      UVD v3.1: 124
      UVD v4.2: 124
      UVD v5.0: 83
      UVD v6.0  (VM): 55
      UVD v7.0: 51
      VCE v2.0: 126
      VCE v3.0 (VM): 98
      VCE v4.0: 93
      VCN DEC v1.0: 49
      VCN DEC v2.0: 51
      VCN DEC v3.0: 51
      VCN ENC v1.0: 58
      VCN ENC v2.0: 93
      VCN ENC v3.0: 93
      VCN ENC v4.0: 93
      VCN JPEG v1.0: 17
      VCN JPEG v2.0: 16
      VCN JPEG v2.5: 17
      VCN JPEG v3.0: 17
      VCN JPEG v4.0: 17
      
      Link: drm/amd#2498
      
      
      Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
      Signed-off-by: default avatarBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      c30ddcec
  32. Feb 03, 2023
Loading