Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.52 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796207948; b=DtX/Du2xW/+qG+dnfcObJ9qXL19UAYJDa5mDrpnmwvGFp44duhTjHyjuQ8ce8p0tZZdP R3rf8d/TUNJZOXgV4Kh5+/ld216ovMzQWAinTexmVB2EX/vIhHGjp4NRWdZvbrI5mkdNu li3kuTmtsjsdC/SNXAo8PIvGsxAdreQwBNA9BLC+Ft3dvqDur0Rl1Jk729BDUx3D4UZM7 HyR7PVRhrxnAWOlI+OD/1+fVujeHQwvExgXuexKPTaAoQgiGZ6oBUXastl4gL0bj4ofTx UAJ+AkbC9Zn2GGMFD4qubTeArC+wSf/HU8dtRsXwxvMPuen0sbnAEcMpnbRx4/MGwQw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796207948; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=rKph0XKl+t9ze7ghSBfw7wG9WizEyddx/TTc9h5GTLo=; b=SFyI07Pqt7rNyUlcnf6Tka5E37hUGwBwaADnEufoogVuIA6fm3Wuoa5wUeD/BfRVjZ2r Am63of7a26Jov2K18uuHBH/RcK1EzfNtLhL4DKcQxDM1yjIMFOIbQtdMs5RJuifhHrZDb 5aiJhLxccMq9A0GBgCDIbzLP+gIkulC56ysgmRMsLIjz0ucVoCHluHmF0GZ1gtc7HpBSD RswEEtx2dRhpiJlRWFqGvXgfB7X2yOddWlfZJpyjRtauON1RDNW1m/9gPX5LeFhyQXmD/ PY4fUxxPH2DSH3Suj+6u7uQAFnNNiMQiHGvtXxJZ5dBlDnlSPv8uoVmstxnojp/zMog== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=amarulasolutions.com; spf=pass smtp.mailfrom=amarulasolutions.com; dkim=pass header.d=amarulasolutions.com header.i=@amarulasolutions.com header.a=rsa-sha256 header.s=google header.b=VapoEu3n; arc=none smtp.remote-ip=209.85.221.52 Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A552A606A68F for ; Wed, 2 Dec 2026 10:39:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A552A606A68F Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=amarulasolutions.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.a=rsa-sha256 header.s=google header.b=VapoEu3n Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-48dee593f18so12283297f8f.3 for ; Wed, 02 Dec 2026 02:39:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1796207946; x=1796812746; darn=lists.linux.dev; h=content-transfer-encoding:content-type:mime-version:message-id:date :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to :content-type; bh=rKph0XKl+t9ze7ghSBfw7wG9WizEyddx/TTc9h5GTLo=; b=VapoEu3nTW0RCdLAlsdlR1XU0O3QnqZzQtmdiEu9T25zKjBe4LTLHGDHpo3NgKJZjZ KAW7SMZYpn4HBoqD44499HRKjWX/SlZBqV9P9SXtYKinXtwYVjk/daHuFrAC3RBGZus5 DgTOfuvSyhbLk3fKwOUslP2Z0bymBhxPDecL4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796207946; x=1796812746; h=content-transfer-encoding:content-type:mime-version:message-id:date :subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to:content-type; bh=rKph0XKl+t9ze7ghSBfw7wG9WizEyddx/TTc9h5GTLo=; b=w7QojM4PXHr7qFCq+62Iwp+48JuQpb2vD0AhRKd+KjRcT2foGtSGPYtFOAQWHgyOjt zOmbBvHSu4vUMrt5NtBxVCbSUkcipS9f5ki2wwz+1XJ12nfevlndoOOzeoKJTIhjLQzt ETSlBnBvin5KunMupTMZqLJY3VpHF86TB5vYlkmOMKUfz2CYnIO/xNyVhvfzsVTzIEP7 u99aauHIZwVSYsBCMgFCNa21UfuPeEy8Cg9eUMm6l4Fg3pfJN+jGkt0u3abkaFweKxXD tBMCTuqJqdogYUGV55dahsmtsjgd4TO5r4IGnJY3OFutgtnZfxWCIOG73hbwjHDk2M9P 0JDA== X-Forwarded-Encrypted: i=1; AL+hErEQ8Nrh2KN4xITE8dTKN1pdha/rH8T099uRZElSkbzQL4IafU9jPB65eTZ2G/Ywe2KbvfI=@lists.linux.dev X-Gm-Message-State: APuU4Z/FBBpuCv8cCRfvnFKKdRyj4frRvIqc0oPKqpB7pM1wvnSzzFMc 2BOU8Bj9Z8k18a2LctPaSkUvgJ26E6eRnTnC5dld+BDavq2elbVcP+LcvtzDatarvzE= X-Gm-Gg: AZFdTZc3Ep4lI+85qyM8i9DYlxG47AoKOB7dGhFFhrQlkmKAM2jW0JUdgJxtj7Y12bn kx1Yxk6Eya/xqJJCAEPCAPkQ0NiCHiAtSELPNNctMrVCX6L9PbUhjpPdHQu2j69Go1Ji5chSZXi OK1NPYwUgq8WXOqab7ITwc0hWf30avKWKPV4IuvpGOBGGmzc630KcMIWnS32Ddm0ELAYcaKsWfJ zi5qAwiOhDQIYaxC4AWhKxG/ho3IXTCnC1vOg7SpGp83YJDtqNUUmCNZvhbHZQJyVEbYl7Tw1Ky FsB3S2kDarDXmp7RycZFibo8vauaK232zv/CspiUlaqxn9pSE513StJ9jvLmoo3VsAFzRe5ciMo +a3tOgl0m8vLjHrdNUVRlErCI/wYBDsRstzWKPYlmTSKv6IFzHDVxWiDz5XtfewUY0vQQ4ZBsfn fOjzI6Q1Z6aEJe+xCAGCSQ2HAljb1EuXltTc5xXQLvuXBFlLlj+Ii4sELDo3Pc++CAF/wVWLmWh k2PeJT7Z+5cMCgsoFdNskoVtg9UDlSJLG8GidTB5/12RgLYNN830TIHkfTQzQYsUqGZYYdeVoE3 zY+LdD34ocNORPEkpItzWyRhHaA9x6IbAOETwtkcXCXSAW32tgBg092eaHJij3KFI8Dm+/5kUDx I6X3HtDs1er6rI8U6nzub X-Received: by 2002:a05:6000:4b19:b0:48e:3bc4:a367 with SMTP id ffacd0b85a97d-4abb3678d71mr72459466f8f.33.1796207945973; Wed, 02 Dec 2026 02:39:05 -0800 (PST) Received: from localhost.localdomain ([2001:b07:6474:ebbf:6962:3ebc:7df:e6bf]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab69bf61e8sm79130701f8f.11.2026.12.02.02.39.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 02:39:05 -0800 (PST) From: Dario Binacchi To: Maxime Ripard Cc: Valeriy.Yatsenko@bshg.com, simon.holesch@bshg.com, michael@amarulasolutions.com, linux-amarula@amarulasolutions.com, Leonhard Hesse , =?UTF-8?q?M=C3=A0xim=20Pedraza=20Padilla?= , Dario Binacchi , Andrzej Hajda , David Airlie , Fabio Estevam , Frank Li , Inki Dae , Jagan Teki , Jernej Skrabec , Jessica Zhang , Jonas Karlman , Laurent Pinchart , Luca Ceresoli , Maarten Lankhorst , Marek Szyprowski , Marek Vasut , Neil Armstrong , Pengutronix Kernel Team , Robert Foss , Sascha Hauer , Simona Vetter , Stefan Agner , Thomas Zimmermann , dri-devel@lists.freedesktop.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH v2 0/6] drm: State readout for the i.MX8MN display pipeline Date: Wed, 2 Dec 2026 11:38:48 +0100 Message-ID: <20261202103901.577431-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 X-Mailing-List: imx@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This series implements the hardware state readout [1] for the display pipeline of the i.MX8MN (LCDIF, Samsung DSIM, Synaptics R63353 panel), so that the splash screen shown by the bootloader stays on, without a modeset, until a client draws. The first patch adds the hook a panel needs to acquire its resources when it is found enabled, without being reset and initialized again. It is a proposal for the panel takeover left open by the last patch of [1]. The series is based on [1] and on the panel fixes [2]. It needs [3] to keep the power domains of the display on, and a bootloader that sets up the pipeline as Linux does [4]. Tested on i.MX8MN (BSH SMM S2 PRO). [1] https://lore.kernel.org/r/20261127-drm-state-readout-v10-0-0259582d45a8@kernel.org [2] https://lore.kernel.org/r/20261202100443.565075-1-dario.binacchi@amarulasolutions.com [3] https://lore.kernel.org/r/20261122205136.138173-1-dario.binacchi@amarulasolutions.com [4] https://lore.kernel.org/r/20261202102716.572884-1-dario.binacchi@amarulasolutions.com Changes in v2: - Rename the hook to sro_enable_resources - Call the hook from the panel bridge install state added by the state readout series - Set the atomic_sro_install_state hook of the mode config helpers - Use drm_atomic_helper_sro_find_refresh_from_clk() for the mode clock - Use drm_atomic_helper_sro_create_gem_dma_object() for the framebuffer read out - Use drm_atomic_helper_plane_compare_state() - Update the atomic_sro_install_state hook to its new prototype - Save the mode read out from the hardware, as no mode_set is run and the PLL is configured from it when the bridge is enabled again - Rename the hook to sro_enable_resources - Rebase on v10 of the state readout series - Drop "drm/bridge: Add atomic_sro_install_state hook", part of the state readout series - Drop "drm/mxsfb: Switch to drm_mode_config_create_initial_state()", merged in drm-misc-next Dario Binacchi (6): drm/panel: Add sro_enable_resources hook drm/mxsfb: Use the bridge connector drm/mxsfb: Stop the controller in hw_reset drm/mxsfb: Implement hw state readout drm/bridge: samsung-dsim: Implement hw state readout drm/panel: synaptics-r63353: Support hw state readout drivers/gpu/drm/bridge/samsung-dsim.c | 130 +++++- drivers/gpu/drm/drm_panel.c | 8 + drivers/gpu/drm/mxsfb/Kconfig | 2 + drivers/gpu/drm/mxsfb/mxsfb_drv.c | 26 +- drivers/gpu/drm/mxsfb/mxsfb_kms.c | 369 +++++++++++++++++- drivers/gpu/drm/mxsfb/mxsfb_regs.h | 3 + .../gpu/drm/panel/panel-synaptics-r63353.c | 33 +- include/drm/drm_panel.h | 10 + 8 files changed, 552 insertions(+), 29 deletions(-) --- base-commit: d323a163981f3e3b1b8c40bd2aa0c416d0d9c7d8 branch: drm-sro-rfc-v2-send -- 2.43.0