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 C371DC0219B for ; Fri, 7 Feb 2025 18:08:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4EE6010E009; Fri, 7 Feb 2025 18:08:24 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=bootlin.com header.i=@bootlin.com header.b="VySGSFQI"; dkim-atps=neutral Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by gabe.freedesktop.org (Postfix) with ESMTPS id 13C2910E009 for ; Fri, 7 Feb 2025 18:08:21 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id 899AC20470; Fri, 7 Feb 2025 18:08:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1738951700; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=H1OMVSefMFWd6ppRXpZtaRvQrLC6TzyKHWCmUK/ezKw=; b=VySGSFQI2JF0F0mX/4hU9mrJj6yo7SOV49yDBTN/IJe56C7KFastFrzY7VWooJNvHTV4Wi pJZsi1tDkWbeRuK30WQ7RrL99wCu3+QedCWy2GDFRy/r2u4f3ZDcTv+EoPLENecKiuCNZ7 rIYzWqW8v0ZMY29HroosdFY1mkGOuy+1qujfJtMrn4puJgOAfGrNhD/E2Fl0tSw3qHoQMM /sli9Itw28gbDwPQAuAiCdfBDUvAuHpdAskhr1Ln1Ckc6Yq6SZBaqOwPmX1SfFyvqPpr+L KxuukW2gTm5wkrJRa5x4AGLtJSR3hDVR3XTZ+kvHKf8asQVxYdYRPrXSZpShDw== Date: Fri, 7 Feb 2025 19:08:16 +0100 From: Herve Codina To: Alexander Stein Cc: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dave Stevenson , =?UTF-8?B?TWHDrXJh?= Canal , Raspberry Pi Kernel Maintenance , Marek Vasut , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Louis Chauvet , Luca Ceresoli , Thomas Petazzoni Subject: Re: [PATCH v5 4/4] drm: bridge: ti-sn65dsi83: Add error recovery mechanism Message-ID: <20250207190816.2002d313@bootlin.com> In-Reply-To: <8756830.T7Z3S40VBb@steina-w> References: <20250203161607.223731-1-herve.codina@bootlin.com> <3605739.aeNJFYEL58@steina-w> <20250206162048.1f159ba6@bootlin.com> <8756830.T7Z3S40VBb@steina-w> Organization: Bootlin X-Mailer: Claws Mail 4.3.0 (GTK 3.24.43; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvleeliecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepfffhvfevuffkjghfohfogggtgfesthekredtredtjeenucfhrhhomhepjfgvrhhvvgcuvehoughinhgruceohhgvrhhvvgdrtghoughinhgrsegsohhothhlihhnrdgtohhmqeenucggtffrrghtthgvrhhnpeeviefffeegiedtleelieeghfejleeuueevkeevteegffehledtkeegudeigffgvdenucfkphepledtrdekledrudeifedruddvjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeeltddrkeelrdduieefrdduvdejpdhhvghloheplhhotggrlhhhohhsthdpmhgrihhlfhhrohhmpehhvghrvhgvrdgtohguihhnrgessghoohhtlhhinhdrtghomhdpnhgspghrtghpthhtohepvdehpdhrtghpthhtoheprghlvgigrghnuggvrhdrshhtvghinhesvgifrdhtqhdqghhrohhuphdrtghomhdprhgtphhtthhopegrnhgurhiivghjrdhhrghjuggrsehinhhtvghlrdgtohhmpdhrtghpthhtohepnhgvihhlrdgrrhhmshhtrhhonhhgsehlihhnrghrohdrohhrghdprhgtphhtthhopehrfhhoshhssehkvghrnhgvlhdrohhrghdprhgtphhtthhopefnrghurhgvnhhtrdhpihhntghhrghrthesi hguvggrshhonhgsohgrrhgurdgtohhmpdhrtghpthhtohepjhhonhgrsheskhifihgsohhordhsvgdprhgtphhtthhopehjvghrnhgvjhdrshhkrhgrsggvtgesghhmrghilhdrtghomhdprhgtphhtthhopegrihhrlhhivggusehgmhgrihhlrdgtohhm X-GND-Sasl: herve.codina@bootlin.com 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi Alexander, On Thu, 06 Feb 2025 16:39:09 +0100 Alexander Stein wrote: > Hi Herve, > > Am Donnerstag, 6. Februar 2025, 16:20:48 CET schrieb Herve Codina: > > Hi Alexander, > > > > On Thu, 06 Feb 2025 15:38:42 +0100 > > Alexander Stein wrote: > > > > ... > > > With interrupt configured I got the following stack trace upon > > > reboot/poweroff: > > > > > > [ 91.317264] sn65dsi83 2-002d: reset the pipe > > > [ 91.344093] Unable to handle ke > > > ** replaying previous printk message ** > > > [ 91.344093] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000 > > ... > > > > Ouch :( > > > > One question to help me investigating: > > Do you have the issue at init/probe or when you start to display graphics? > > This is during shutdown/poweroff. I assume that regmap_reg() in > sn65dsi83_handle_errors() fails and because of that reset_work is scheduled. > Found the issue. Can you give me following information so that I can validate what I understood: - Is your interrupt line connected directly to the SoC? - Is there any pullup/pulldown on your interrupt line? - In your devicetree what is the configuration used for this interrupt in terms of level or edge. Anyway, I will send a fix in the next iteration. Best regards, Hervé