diff options
author | 2024-10-14 11:58:34 -0400 | |
---|---|---|
committer | 2024-11-04 11:27:04 -0500 | |
commit | efe6a8774375ddcbdd46fb920be55cc2d0120836 (patch) | |
tree | ed8164297fdda4c6bced3c0d3d5434873274f9ff /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
parent | drm/amd/display: Remove last parts of timing_trace (diff) | |
download | linux-rng-efe6a8774375ddcbdd46fb920be55cc2d0120836.tar.xz linux-rng-efe6a8774375ddcbdd46fb920be55cc2d0120836.zip |
drm/amdgpu: fix fairness in enforce isolation handling
Make sure KFD gets a turn when serializing access to
the GC IP. Currently non-KFD jobs can starve KFD if they
submit often enough. This patch prevents that by stalling
non-KFD if its time period has elapsed.
v2: fix units
v3: check enablement properly
Acked-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 607998d8b1d5..7645e498faa4 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h @@ -118,7 +118,7 @@ #define MAX_GPU_INSTANCE 64 -#define GFX_SLICE_PERIOD msecs_to_jiffies(250) +#define GFX_SLICE_PERIOD_MS 250 struct amdgpu_gpu_instance { struct amdgpu_device *adev; |