RE: [PATCH] drm/amdkfd: Fix race in GWS queue scheduling

2025-06-17 Thread Kasiviswanathan, Harish
[Public] Reviewed-by: Harish Kasiviswanathan -Original Message- From: amd-gfx On Behalf Of Jay Cornwall Sent: Wednesday, June 11, 2025 10:58 AM To: amd-gfx@lists.freedesktop.org Cc: Cornwall, Jay Subject: [PATCH] drm/amdkfd: Fix race in GWS queue scheduling q->gws is not upda

[PATCH] drm/amdkfd: Fix race in GWS queue scheduling

2025-06-11 Thread Jay Cornwall
q->gws is not updated atomically with qpd->mapped_gws_queue. If a runlist is created between pqm_set_gws and update_queue it will contain a queue which uses GWS in a process with no GWS allocated. This will result in a scheduler hang. Use q->properties.is_gws which is changed while holding the DQM