]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit555c08871cfd9fe172b9cb99719b5860260ca707
tree44000e93035600cc5698d6226a3bba8f5810618a
parentdf8946523976e44f76bddc9fb540404c3fb3ee8d
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