From mboxrd@z Thu Jan 1 00:00:00 1970 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 D9A3BD49225 for ; Fri, 12 Dec 2025 13:02:27 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 871E510E746; Fri, 12 Dec 2025 13:02:27 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=lankhorst.se header.i=@lankhorst.se header.b="ju1z6Kke"; dkim-atps=neutral Received: from lankhorst.se (lankhorst.se [141.105.120.124]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3205710E116; Fri, 12 Dec 2025 13:02:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lankhorst.se; s=default; t=1765544536; bh=Bne1RUVyYhtMfwYqK3Ip48zVZdJr+u55XTL2YPV9fWw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ju1z6Kkelh3oj7TOfVaA5rFRNEwacACyyGLE29M2Hl0NXlGrYuBIJkzz0hkMMkSbJ 0IfnqQhqHMghFp4SI4PfDa+S2NmuIFETGLWaE5AfIbYET+tmtR/NAW5KYFJ3w78div qXKvd5ca9som0evWPpsXJkHqwSTEnHMvAoo2wH1yXQ3eBG8dGYs5EfCyEVGBkDJqUC +BkUTsEMEpPPJJoDl598EUUpcZ/gklzhuAWUagk+uRgcQ8WbeJi6M+CXLv/NEZw2ki bO16ugCIxAWfll+4NU/Er8PCykSQ6s1cZzEe67rHupvLW0wdSokzm092qWi+Oq5lXN /ZCCnj2PdD3VA== From: Maarten Lankhorst To: intel-xe@lists.freedesktop.org Cc: intel-gfx@lists.freedesktop.org, Sebastian Andrzej Siewior , Maarten Lankhorst , Matthew Brost Subject: [PATCH 01/11] drm/i915/display: Fix intel_lpe_audio_irq_handler for PREEMPT-RT Date: Fri, 12 Dec 2025 14:02:07 +0100 Message-ID: <20251212130205.963029-14-dev@lankhorst.se> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251212130205.963029-13-dev@lankhorst.se> References: <20251212130205.963029-13-dev@lankhorst.se> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" 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