diff options
author | Jay Cornwall <jay.cornwall@amd.com> | 2025-06-11 09:52:14 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-07-06 11:01:45 +0200 |
commit | b681e2a8a7595431479a3743ef2e148f79cbe4b5 (patch) | |
tree | c7799667c3be2df4b0a463e59d53e631921fb245 /drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c | |
parent | 1847ea44e3bdf7da8ff4158bc01b43a2e46394bd (diff) |
drm/amdkfd: Fix race in GWS queue scheduling
commit cfb05257ae168a0496c7637e1d9e3ab8a25cbffe upstream.
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 lock.
Signed-off-by: Jay Cornwall <jay.cornwall@amd.com>
Reviewed-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit b98370220eb3110e82248e3354e16a489a492cfb)
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c')
0 files changed, 0 insertions, 0 deletions