From patchwork Thu Nov 23 17:56:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rahul Rameshbabu X-Patchwork-Id: 13466774 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 79224C61DF7 for ; Thu, 23 Nov 2023 22:08:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D02F210E030; Thu, 23 Nov 2023 22:08:48 +0000 (UTC) Received: from mail-41104.protonmail.ch (mail-41104.protonmail.ch [185.70.41.104]) by gabe.freedesktop.org (Postfix) with ESMTPS id 196D410E323 for ; Thu, 23 Nov 2023 17:57:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1700762231; x=1701021431; bh=RAB1yX4J4AFDu+AUL8SRbdAkIAE3kfmtLuXGzMK+zdg=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=UP1U6UaOB1DbRpVMueKdycFKMjr7Juj62B976ncAH4000oY5wSidHwE/xQ0u4oyjD ZWeKv6lU/c5TwL52Hz/LIMn+Tlefm59QgWZI8YWjmT2dK7/4bKgh/4P1yb45Z5HhwK tiqoDHySEd79Gb4xr8S1RURZzxXlgDqFR8/935KLUXqkjXw5/f7aKfqcsoXhqaM7/L JaNEKgzVL6tlyFXsRGEKwpq/X/uEv48o4pK7jmYlNzwrzyXO+cOk4Q2y6Mj2LJG6s8 2h0KLoI6EndtLmJU6eDq+BW+YHaiAgg2LXTvjTRMj6gyzGpb5+vTHPda9DhVdiE87c oxgD9DI84fT6Q== Date: Thu, 23 Nov 2023 17:56:53 +0000 To: intel-gfx@lists.freedesktop.org From: Rahul Rameshbabu Subject: [PATCH] drm/i915/irq: Improve error logging for unexpected DE Misc interrupts Message-ID: <20231123175638.27650-1-sergeantsagara@protonmail.com> Feedback-ID: 26003777:user:proton MIME-Version: 1.0 X-Mailman-Approved-At: Thu, 23 Nov 2023 22:08:47 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jani Nikula , dri-devel@lists.freedesktop.org, Rahul Rameshbabu Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Dump the iir value in hex when the interrupt is unexpected. Link: https://gitlab.freedesktop.org/drm/intel/-/issues/9652#note_2178501 Cc: Jani Nikula Signed-off-by: Rahul Rameshbabu Reviewed-by: Chaitanya Kumar Borah --- drivers/gpu/drm/i915/display/intel_display_irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_display_irq.c b/drivers/gpu/drm/i915/display/intel_display_irq.c index bff4a76310c0..1a5a9e0fc01e 100644 --- a/drivers/gpu/drm/i915/display/intel_display_irq.c +++ b/drivers/gpu/drm/i915/display/intel_display_irq.c @@ -896,7 +896,7 @@ gen8_de_misc_irq_handler(struct drm_i915_private *dev_priv, u32 iir) } if (!found) - drm_err(&dev_priv->drm, "Unexpected DE Misc interrupt\n"); + drm_err(&dev_priv->drm, "Unexpected DE Misc interrupt: %#x\n", iir); } static void gen11_dsi_te_interrupt_handler(struct drm_i915_private *dev_priv,