Skip to content
Snippets Groups Projects
  • SRINIVASAN SHANMUGAM's avatar
    1fcd5b97
    drm/amd/amdgpu: Add Annotations to Process Isolation functions · 1fcd5b97
    SRINIVASAN SHANMUGAM authored
    
    This update adds explanations to key functions that manage how the
    Kernel Fusion Driver (KFD) and Kernel Graphics Driver (KGD) share the
    GPU.
    
    amdgpu_gfx_enforce_isolation_wait_for_kfd: Controls the waiting period
    for KFD to ensure it takes turns with KGD in using the GPU. It uses a
    mutex to safely manage shared data, like timing and state, and tracks
    when KFD starts and stops waiting.
    
    amdgpu_gfx_enforce_isolation_ring_begin_use: Ensures KFD has enough time
    to run before new tasks are submitted to the GPU ring. It uses a mutex
    to synchronize access and may adjust the KFD scheduler.
    
    amdgpu_gfx_enforce_isolation_ring_end_use: Handles cleanup and state
    updates when finishing the use of a GPU ring. It may also adjust the KFD
    scheduler, using a mutex to manage shared data access.
    
    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>
    Suggested-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    1fcd5b97
    History
    drm/amd/amdgpu: Add Annotations to Process Isolation functions
    SRINIVASAN SHANMUGAM authored
    
    This update adds explanations to key functions that manage how the
    Kernel Fusion Driver (KFD) and Kernel Graphics Driver (KGD) share the
    GPU.
    
    amdgpu_gfx_enforce_isolation_wait_for_kfd: Controls the waiting period
    for KFD to ensure it takes turns with KGD in using the GPU. It uses a
    mutex to safely manage shared data, like timing and state, and tracks
    when KFD starts and stops waiting.
    
    amdgpu_gfx_enforce_isolation_ring_begin_use: Ensures KFD has enough time
    to run before new tasks are submitted to the GPU ring. It uses a mutex
    to synchronize access and may adjust the KFD scheduler.
    
    amdgpu_gfx_enforce_isolation_ring_end_use: Handles cleanup and state
    updates when finishing the use of a GPU ring. It may also adjust the KFD
    scheduler, using a mutex to manage shared data access.
    
    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>
    Suggested-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>