From nobody Mon Jun 8 05:28:17 2026 Received: from mail-m49197.qiye.163.com (mail-m49197.qiye.163.com [45.254.49.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7249B1E2606 for ; Tue, 2 Jun 2026 00:50:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.254.49.197 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780361444; cv=none; b=J4hm5bP5dKBUCowjAyblyCgEWRsc2SOcsBqFByWjJev0hhtJIEiGO2zrQkCV/73pSbi/tSYr4IkBHU6p8jFO4Zt+hA+h/uc+EyXqbGmd6oIqkRbAOnpE/1k4J+MU8lASFTWINzIc9yDEJ3qaaXq9UQ5SfaymQyT/01ERa3L/7FQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780361444; c=relaxed/simple; bh=Gdb60OLJnPQ/V3+7Jqax7H6EGU9/kQlzxh/7psn+bLA=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=R57Dn10D+X4N4SlCZa1mTarHLq792D2SA55i9X3mxd7NWVD65XQwnDKEHBY1S8HQzeaqoZGp3JTZVFE+NB/vRsbeEsEHMVjyhesxo+tHUtw/a5H68eUVD+3MrYqH6/gDInRz4Dp8DMBcoBHTRDuBMJgQulELrQXgFFd2vOTf0ZI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=seu.edu.cn; spf=pass smtp.mailfrom=seu.edu.cn; dkim=pass (1024-bit key) header.d=seu.edu.cn header.i=@seu.edu.cn header.b=Ti2dzOHu; arc=none smtp.client-ip=45.254.49.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=seu.edu.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=seu.edu.cn Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=seu.edu.cn header.i=@seu.edu.cn header.b="Ti2dzOHu" Received: from PC-202605011814.localdomain (unknown [223.112.146.162]) by smtp.qiye.163.com (Hmail) with ESMTP id 40a97ffdf; Tue, 2 Jun 2026 08:45:23 +0800 (GMT+08:00) From: Runyu Xiao To: jani.nikula@linux.intel.com, rodrigo.vivi@intel.com Cc: joonas.lahtinen@linux.intel.com, tursulin@ursulin.net, airlied@gmail.com, simona@ffwll.ch, dev@lankhorst.se, bigeasy@linutronix.de, matthew.brost@intel.com, uma.shankar@intel.com, pierre-louis.bossart@linux.dev, jerome.anand@intel.com, tiwai@suse.de, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, jianhao.xu@seu.edu.cn, runyu.xiao@seu.edu.cn Subject: [PATCH v3] drm/i915/display: Fix intel_lpe_audio_irq_handler for PREEMPT-RT Date: Tue, 2 Jun 2026 08:45:15 +0800 Message-Id: <20260602004515.1907422-1-runyu.xiao@seu.edu.cn> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-HM-Tid: 0a9e85cad60c03a1kunm98872be714fe1a X-HM-MType: 10 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWRgWCB1ZQUpXWS1ZQUlXWQ8JGhUIEh9ZQVlCSRlKVh8ZH0JISEIfHkkeTVYeHw 5VEwETFhoSFyQUDg9ZV1kYEgtZQVlJSUhVSkpJVUpPTVVKTUlZV1kWGg8SFR0UWUFZT0tIVUpLSU hOQ0NVSktLVUtZBg++ DKIM-Signature: a=rsa-sha256; b=Ti2dzOHuZ+eP9EKi43hV1XIsRxjizMtyRKkcgt1l3Nna6v4l2J3LM1fV6Wurhn13xyDm2i8FQY25rkmz6E0CVSzMtNVWqLlWP2VVqaZhOEd24Q/AqqQ02kZGA8YQtLmagg+L1edwNPYljRCAlFVvlrkIOFuD41fOJI6fcDyfSvc=; c=relaxed/relaxed; s=default; d=seu.edu.cn; v=1; bh=2x4m2SDWFct7gym+P9m9x6fbIOlasM7XxWO3aU11vLY=; h=date:mime-version:subject:message-id:from; Content-Type: text/plain; charset="utf-8" From: Maarten Lankhorst 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 Reviewed-by: Uma Shankar Signed-off-by: Runyu Xiao Reviewed-by: Sebastian Andrzej Siewior --- v3: - Rebase the standalone patch on Maarten Lankhorst's original fix - Keep Maarten Lankhorst as author per Sebastian's feedback - Carry forward Maarten's Reviewed-by tags 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/d= rm/i915/display/intel_lpe_audio.c index 42284e9928f2..ac1dfd592a9f 100644 --- a/drivers/gpu/drm/i915/display/intel_lpe_audio.c +++ b/drivers/gpu/drm/i915/display/intel_lpe_audio.c @@ -263,7 +263,7 @@ void intel_lpe_audio_irq_handler(struct intel_display *= display) if (!HAS_LPE_AUDIO(display)) return; =20 - ret =3D generic_handle_irq(display->audio.lpe.irq); + ret =3D generic_handle_irq_safe(display->audio.lpe.irq); if (ret) drm_err_ratelimited(display->drm, "error handling LPE audio irq: %d\n", ret); --=20 2.34.1