]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/xe: Make irq enabled flag atomic
authorIlia Levi <ilia.levi@intel.com>
Tue, 10 Dec 2024 17:35:06 +0000 (19:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Feb 2025 12:34:17 +0000 (04:34 -0800)
commit2899de17d3cbc9b45b2d54bdcc4d51d86d9c69ac
tree888364f058b6f2397b7855ea8c2f55b5e7ac1301
parent585fc5e5f3e1852b49402ab5f64f4468a1d00357
drm/xe: Make irq enabled flag atomic

[ Upstream commit 4d79a1266d4cc3c967bc8823502466cad1ac8514 ]

The irq.enabled flag was protected by a spin lock (irq.lock).
By making it atomic we no longer need to wait for the spin lock in
irq handlers. This will become especially useful for MSI-X irq
handlers to prevent lock contention between different interrupts.

Signed-off-by: Ilia Levi <ilia.levi@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241210173506.202150-1-ilia.levi@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Stable-dep-of: 0c455f3a1229 ("drm/xe: Fix error handling in xe_irq_install()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/xe/display/ext/i915_irq.c
drivers/gpu/drm/xe/xe_device_types.h
drivers/gpu/drm/xe/xe_irq.c