drm/amdkfd: Update hardware scheduling time quanta
authorJoseph Greathouse <Joseph.Greathouse@amd.com>
Mon, 29 Jun 2020 21:23:24 +0000 (16:23 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 2 Jul 2020 16:02:55 +0000 (12:02 -0400)
commit5d7c6f18d2a9262e6daf5dd8806961d32060c976
tree44000e93035600cc5698d6226a3bba8f5810618a
parent4d765d31625069e355f3ac3bfcc7eb6172bc1ce1
drm/amdkfd: Update hardware scheduling time quanta

Update PROCESS_QUANTUM, the time the hardware scheduler allows
processes to run before switching to other processes when it becomes
over-subscribed. Increase this to 10ms, to allow processes to better
amortize their task switch times.

Update HQD Quantum, the amount of time that an active queue stays
attached to the CP before we forcibly switch it for another active
queue for fairness.

Setting these so that HQD < PROCESS makes it easier to ensure that
we get fairness when we have multiple active queues on the device.
Otherwise we may start process-swapping before we get to all the
queues in a CP.

Signed-off-by: Joseph Greathouse <Joseph.Greathouse@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_v9.c
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager_vi.c