drm/amdkfd: Fix compute profile switching
Fix compute profile switching on process termination. Add a dedicated reference counter to keep track of entry/exit to/from compute profile. This enables switching compute profiles for other reasons than process creation or termination. Signed-off-by:Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com> Signed-off-by:
Eric Huang <JinhuiEric.Huang@amd.com> Reviewed-by:
Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by:
Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by:
Alex Deucher <alexander.deucher@amd.com>
Showing
- drivers/gpu/drm/amd/amdkfd/kfd_device.c 16 additions, 0 deletionsdrivers/gpu/drm/amd/amdkfd/kfd_device.c
- drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c 6 additions, 5 deletionsdrivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
- drivers/gpu/drm/amd/amdkfd/kfd_priv.h 7 additions, 0 deletionsdrivers/gpu/drm/amd/amdkfd/kfd_priv.h
Loading
Please register or sign in to comment