]> www.infradead.org Git - users/willy/linux.git/commit
drm/amdgpu: fix fairness in enforce isolation handling
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 14 Oct 2024 15:58:34 +0000 (11:58 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Nov 2024 16:27:04 +0000 (11:27 -0500)
commitefe6a8774375ddcbdd46fb920be55cc2d0120836
treeed8164297fdda4c6bced3c0d3d5434873274f9ff
parent5fd95dab6094ba0b851767fc460c2806eaafe8bd
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>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h