drm/amdkfd: Disable idle optimization for chained runlist
authorFelix Kuehling <Felix.Kuehling@amd.com>
Thu, 20 Jun 2019 18:54:35 +0000 (14:54 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Jul 2019 19:32:10 +0000 (14:32 -0500)
This works around difficult-to-reproduce soft hangs on oversubscribed
runlists.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Oak Zeng <Oak.Zeng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c

index 07f02f8e4fe4ed9f6b7f973d625a5f961f7dcef9..2d5ddf199bd0d5a9f7a44b28833863ff75b942b8 100644 (file)
@@ -134,6 +134,7 @@ static int pm_runlist_v9(struct packet_manager *pm, uint32_t *buffer,
        packet->bitfields4.ib_size = ib_size_in_dwords;
        packet->bitfields4.chain = chain ? 1 : 0;
        packet->bitfields4.offload_polling = 0;
+       packet->bitfields4.chained_runlist_idle_disable = chain ? 1 : 0;
        packet->bitfields4.valid = 1;
        packet->bitfields4.process_cnt = concurrent_proc_cnt;
        packet->ordinal2 = lower_32_bits(ib);