From patchwork Wed Jan 8 10:18:59 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Herve Codina X-Patchwork-Id: 13930500 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 80BBEE77199 for ; Wed, 8 Jan 2025 10:19:51 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 69CC010E846; Wed, 8 Jan 2025 10:19:49 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=bootlin.com header.i=@bootlin.com header.b="fML3M+Zl"; dkim-atps=neutral Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7719E10E82C for ; Wed, 8 Jan 2025 10:19:43 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPA id 3A385FF80A; Wed, 8 Jan 2025 10:19:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1736331560; 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; bh=ALgIVfCLQTLBbTDsLiWU4YPVyURu8kYumWn08CK6dJc=; b=fML3M+ZlOxI6Ga49iJgvjKR0kLBARcGGCbqomOEHZptqddWFt2bjLleDkhLuUsuYahExU7 fIvmrtExY9La4Uau2e006eYRyWwPQdorb+TPj2A2M0b2zKdSOk64MihkWeUwfi4kw1ZE3A vGc/clakM/4JzqTreTXlwMsyKp0801vB/FEnd7JpRD6NoDdYQLHq2MQcy+e//Eoo29HxgQ 8nqdCZ1tLHX6wzNw5yekfJmpdiVbSou0+Y+zPWgtBHNAAJI7nu6hzEEOWb1PvJEaEdfQME aIY52OUcM5AWFgVhwZtYPWkj0QkBdDgi4j8FjhAVPTJ/4mk5UW1c7O1ttu3seQ== From: Herve Codina To: 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 , Marek Vasut Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Louis Chauvet , Luca Ceresoli , Thomas Petazzoni , Herve Codina Subject: [PATCH v3 0/3] Add support for errors recovery in the TI SN65DSI83 bridge driver Date: Wed, 8 Jan 2025 11:18:59 +0100 Message-ID: <20250108101907.410456-1-herve.codina@bootlin.com> X-Mailer: git-send-email 2.47.1 MIME-Version: 1.0 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, Usually the TI SN65DSI83 recovers from error by itself but during ESD tests, we have some cases where the TI SN65DSI83 didn't recover. In order to handle those cases, this series adds support for a recovery mechanism. Compare to the previous iteration, this v3 series: - move reset_pipe() from the VC4 HDMI driver to an new atomic helper - Use this new helper Best regards, Hervé Codina Changes v2 -> v3 v2: https://lore.kernel.org/lkml/20241217143216.658461-1-herve.codina@bootlin.com/ - Patch 1: No changes - Patch 2 (new in v3) Move reset_pipe() from VC4 HDMI driver to a new atomic helper - Patch 3 Use the new drm_atomic_helper_reset_pipe() Patch removed in v3 - Patch 2 in v2 No more needed Changes v1 -> v2 v1: https://lore.kernel.org/lkml/20241024095539.1637280-1-herve.codina@bootlin.com/ - Patch 1: Add 'Reviewed-by: Laurent Pinchart ' Add 'Acked-by: Conor Dooley ' - Patch 2 (new patch in v2) Introduce drm_atomic_helper_disable_connector() - Patch 3 (patch 2 in v1) Reset the output path instead of the full pipeline. Update and add more information related to the bridge in commit log. Herve Codina (3): dt-bindings: display: bridge: sn65dsi83: Add interrupt drm/vc4: Move reset_pipe() to an atomic helper drm: bridge: ti-sn65dsi83: Add error recovery mechanism .../bindings/display/bridge/ti,sn65dsi83.yaml | 3 + drivers/gpu/drm/bridge/ti-sn65dsi83.c | 147 ++++++++++++++++++ drivers/gpu/drm/drm_atomic_helper.c | 41 +++++ drivers/gpu/drm/vc4/vc4_hdmi.c | 30 +--- include/drm/drm_atomic_helper.h | 2 + 5 files changed, 194 insertions(+), 29 deletions(-)