Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 88C43D41D69 for ; Thu, 11 Dec 2025 16:28:48 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5CECF10E838; Thu, 11 Dec 2025 16:28:46 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=lankhorst.se header.i=@lankhorst.se header.b="IpmhDRrA"; dkim-atps=neutral Received: from lankhorst.se (lankhorst.se [141.105.120.124]) by gabe.freedesktop.org (Postfix) with ESMTPS id 35C8610E834; Thu, 11 Dec 2025 16:28:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lankhorst.se; s=default; t=1765470523; bh=Bne1RUVyYhtMfwYqK3Ip48zVZdJr+u55XTL2YPV9fWw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IpmhDRrA/3kpNVtLBsYXI+eTbNM0Vb1xqQ5+NAorQtKjSeIuP6Ejg1XKThgVa+ZKH oD8GIeOMYQIfjk6F0AecPeJoqRMs449rBSJ/kQ3ElfQQai+tbytF1d04RM8V9Yfhw0 aaLDnff4hLayloPGO+ljfNksJs0T9NclIRbWEDOyUiZGqY7srMtVnXfjS87WC0zOBC GPgJfVL9JKDNGiPgo36EoLvHmhcuUSoKSD1mt5Hv6ytWGD8AChWLyPLs6uxiWziwbp 4oI34MLuPz51Qyiabj9GPeDQHFnlwDXkv7OFeSkmSu+QHQKoIbNrUZU9AfC0Ylbqk7 aUgxxP6+JWJJA== From: Maarten Lankhorst To: intel-xe@lists.freedesktop.org, intel-gfx@lists.freedesktop.org Cc: Sebastian Andrzej Siewior , Maarten Lankhorst , Matthew Brost Subject: [PATCH 1/9] drm/i915/display: Fix intel_lpe_audio_irq_handler for PREEMPT-RT Date: Thu, 11 Dec 2025 17:19:24 +0100 Message-ID: <20251211161923.843758-12-dev@lankhorst.se> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251211161923.843758-11-dev@lankhorst.se> References: <20251211161923.843758-11-dev@lankhorst.se> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" The LPE audio interrupt comes from the i915 interrupt handler. It should be in irq disabled context. With PREEMPT_RT enabled, the IRQ handler is threaded. Because intel_lpe_audio_irq_handler() may be called in threaded IRQ context, generic_handle_irq_safe API disables the interrupts before calling LPE's interrupt top half handler. This fixes braswell audio issues with RT enabled. Signed-off-by: Maarten Lankhorst Reviewed-by: Matthew Brost --- drivers/gpu/drm/i915/display/intel_lpe_audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_lpe_audio.c b/drivers/gpu/drm/i915/display/intel_lpe_audio.c index 5b41abe1c64d5..172c0062237eb 100644 --- a/drivers/gpu/drm/i915/display/intel_lpe_audio.c +++ b/drivers/gpu/drm/i915/display/intel_lpe_audio.c @@ -262,7 +262,7 @@ void intel_lpe_audio_irq_handler(struct intel_display *display) if (!HAS_LPE_AUDIO(display)) return; - ret = generic_handle_irq(display->audio.lpe.irq); + ret = generic_handle_irq_safe(display->audio.lpe.irq); if (ret) drm_err_ratelimited(display->drm, "error handling LPE audio irq: %d\n", ret); -- 2.51.0