drm/amdkfd: Add chained_runlist_idle_disable flag to pm4_mes_runlist
Subsystems (3)
PATCH 1/2 drm/amdkfd: Add chained_runlist_idle_disable flag to pm4_mes_runlist
New flag to disable an idle runlist optimization that is causing soft hangs with some diffult-to-reproduce customer workloads. This will serve as a workaround until the problem can be reproduced and the root-cause determined.
--- drivers/gpu/drm/amd/amdkfd/kfd_pm4_headers_ai.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdkfd/kfd_pm4_headers_ai.h +1 -1
@@ -120,7 +120,7 @@ struct pm4_mes_runlist { uint32_t ib_size:20; uint32_t chain:1; uint32_t offload_polling:1; - uint32_t reserved2:1; + uint32_t chained_runlist_idle_disable:1; uint32_t valid:1; uint32_t process_cnt:4; uint32_t reserved3:4;
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 20190620192155.20226-1-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org
PATCH 2/2 drm/amdkfd: Disable idle optimization for chained runlist
This works around difficult-to-reproduce soft hangs on oversubscribed runlists.
--- drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c +1 -0
@@ -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);
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Hi Felix,
Does this require a MEC firmware change?
Regards,
Oak
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Kuehling, Felix
Sent: Thursday, June 20, 2019 3:22 PM
To: [email protected]
Cc: Kuehling, Felix <[email protected]>
Subject: [PATCH 1/2] drm/amdkfd: Add chained_runlist_idle_disable flag to pm4_mes_runlist
New flag to disable an idle runlist optimization that is causing soft hangs with some diffult-to-reproduce customer workloads. This will serve as a workaround until the problem can be reproduced and the root-cause determined.
--- drivers/gpu/drm/amd/amdkfd/kfd_pm4_headers_ai.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdkfd/kfd_pm4_headers_ai.h +1 -1
@@ -120,7 +120,7 @@ struct pm4_mes_runlist { uint32_t ib_size:20; uint32_t chain:1; uint32_t offload_polling:1; - uint32_t reserved2:1; + uint32_t chained_runlist_idle_disable:1; uint32_t valid:1; uint32_t process_cnt:4; uint32_t reserved3:4;
--
2.17.1
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): BL0PR12MB2580EA675A1B1F9AE6EC4B3F80E40-b4cIHhjg/p/[email protected]
Yes. MEC firmware version #425 should have the necessary change.
Regards,
Felix
Quoted 37 lines · Oak
Hi Felix,
Does this require a MEC firmware change?
Regards,
Oak-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Kuehling, Felix
Sent: Thursday, June 20, 2019 3:22 PM
To: [email protected]
Cc: Kuehling, Felix <[email protected]>
Subject: [PATCH 1/2] drm/amdkfd: Addchained_runlist_idle_disableflag topm4_mes_runlistNew flag to disable an idle runlist optimization that is causing soft hangs with some diffult-to-reproduce customer workloads. This will serve as a workaround until the problem can be reproduced and the root-cause determined.
Signed-off-by Felix Kuehling <[email protected]>--- drivers/gpu/drm/amd/amdkfd/kfd_pm4_headers_ai.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdkfd/kfd_pm4_headers_ai.h +1
-2@@ -120,7 +120,7 @@ struct pm4_mes_runlist { uint32_t ib_size:20; uint32_t chain:1; uint32_t offload_polling:1; - uint32_t reserved2:1; + uint32_t chained_runlist_idle_disable:1; uint32_t valid:1; uint32_t process_cnt:4; uint32_t reserved3:4; --2.17.1
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 2d78acdf-7d6c-d0c5-8fe0-ff26dc7ce3cb-5C7GfCeVMHo@public.gmane.org
Ping.
Oak, can I get your Reviewed-by for this patch series?
Thank,
Felix
Quoted 43 lines · Felix
Yes. MEC firmware version #425 should have the necessary change.
Regards,
FelixQuoted 37 lines · Oak
Hi Felix,
Does this require a MEC firmware change?
Regards,
Oak-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Kuehling, Felix
Sent: Thursday, June 20, 2019 3:22 PM
To: [email protected]
Cc: Kuehling, Felix <[email protected]>
Subject: [PATCH 1/2] drm/amdkfd: Addchained_runlist_idle_disableflag topm4_mes_runlistNew flag to disable an idle runlist optimization that is causing soft hangs with some diffult-to-reproduce customer workloads. This will serve as a workaround until the problem can be reproduced and the root-cause determined.
Signed-off-by Felix Kuehling <[email protected]>--- drivers/gpu/drm/amd/amdkfd/kfd_pm4_headers_ai.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdkfd/kfd_pm4_headers_ai.h +1
-2@@ -120,7 +120,7 @@ struct pm4_mes_runlist { uint32_t ib_size:20; uint32_t chain:1; uint32_t offload_polling:1; - uint32_t reserved2:1; + uint32_t chained_runlist_idle_disable:1; uint32_t valid:1; uint32_t process_cnt:4; uint32_t reserved3:4; --2.17.1
Quoted 8 lines
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Series is Reviewed-by: Oak Zeng <[email protected]>
Regards,
Oak
-----Original Message-----
From: Kuehling, Felix <[email protected]>
Sent: Friday, June 21, 2019 3:34 AM
To: Zeng, Oak <[email protected]>; [email protected]
Subject: Re: [PATCH 1/2] drm/amdkfd: Add chained_runlist_idle_disable flag to pm4_mes_runlist
Yes. MEC firmware version #425 should have the necessary change.
Regards,
Felix
Quoted 37 lines · Oak
Hi Felix,
Does this require a MEC firmware change?
Regards,
Oak-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Kuehling, Felix
Sent: Thursday, June 20, 2019 3:22 PM
To: [email protected]
Cc: Kuehling, Felix <[email protected]>
Subject: [PATCH 1/2] drm/amdkfd: Addchained_runlist_idle_disableflag topm4_mes_runlistNew flag to disable an idle runlist optimization that is causing soft hangs with some diffult-to-reproduce customer workloads. This will serve as a workaround until the problem can be reproduced and the root-cause determined.
Signed-off-by Felix Kuehling <[email protected]>--- drivers/gpu/drm/amd/amdkfd/kfd_pm4_headers_ai.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdkfd/kfd_pm4_headers_ai.h +1
-2@@ -120,7 +120,7 @@ struct pm4_mes_runlist { uint32_t ib_size:20; uint32_t chain:1; uint32_t offload_polling:1; - uint32_t reserved2:1; + uint32_t chained_runlist_idle_disable:1; uint32_t valid:1; uint32_t process_cnt:4; uint32_t reserved3:4; --2.17.1
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx