aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/cik.c
diff options
context:
space:
mode:
authorSrinivasan Shanmugam <[email protected]>2024-11-27 19:41:36 +0000
committerAlex Deucher <[email protected]>2024-12-10 15:28:13 +0000
commit55f4139b6598bc1f8e2fca2181c2749bca84ffee (patch)
treeb07fc953c1e3e96b8c492499166c991392b3a34f /drivers/gpu/drm/amd/amdgpu/cik.c
parentdrm/amdgpu: Init mmhub v1_8_1 ras func (diff)
downloadkernel-55f4139b6598bc1f8e2fca2181c2749bca84ffee.tar.gz
kernel-55f4139b6598bc1f8e2fca2181c2749bca84ffee.zip
drm/amd/amdgpu: Add Annotations to Process Isolation functions
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 <[email protected]> Cc: Alex Deucher <[email protected]> Signed-off-by: Srinivasan Shanmugam <[email protected]> Suggested-by: Alex Deucher <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/cik.c')
0 files changed, 0 insertions, 0 deletions