From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.53 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794784934; b=CuRm3QIwnksABOvTusAK5ZIPFRQVrVakqfRcJTtQY7i2EqEXNkW1sT1OzAEP7ZwwqfZI pE6ODhET4KisPGwbxkU5liwrUeTg2K3SQd+I7IFSDiV38XnUETXQANe3ZXEf54PmeWSfQ zHI8kduAA26cimq6WAOrF49Wp0PhcmPlXGBsKHTQ62aYjPCcqzFbKljHs99bL+gN99N5e IHdI0RHLhH+9CbpiCIr5Tml0pb1oBclnZTSKlqVN8Zil36Kqgv2cInWlcjuU7At7pkkAL BJc2284YCGTC0PSWU/6ezXKwck7I7k8gCqwRvhflHj6IwhWjscG0dNa2wp0npWCEAVg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794784934; 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:In-Reply-To:References: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=OJeZ5lfVBLCJTO2h9IbyBfu46at+wrViI0WypyanlZc=; b=zyGaE32tUzmYXcBOKCX3QmJx3sOKU1yJdTm7KxGwg2yzjwWKOnjegs94Mo9tUmIS86c0 OdV/9QsxEFk8JBw0LjmKX3/DzmWYATmfMa+wifGl4EHro40YduraB0Imq7finW49KE1Cv 03MdNuCxczw2J/H0W6GrAsxNIbPIVQt3LGMK5OsI5JeSXgFB1QIueKqTPzCifQBKPWOnJ 9O5ap7Vki07ew0YKFWKf5I0sZrFGkeqQbMO7DrKanQPApqoha+pJ7ZeUnmHjiHdRt3fhn 70Ap8qfHYrt8tbsZVMlTGSEEwfIHjx1ndWY8d/7cb56KfV76VFznBeKjYLWCzV90I1g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=ehwW7B0R; arc=none smtp.remote-ip=209.85.221.53 Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (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 D7BF9606A89C for ; Sun, 15 Nov 2026 23:22:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D7BF9606A89C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=ehwW7B0R Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-492fcbfaa88so1401661f8f.3 for ; Sun, 15 Nov 2026 15:22:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1794784931; x=1795389731; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=OJeZ5lfVBLCJTO2h9IbyBfu46at+wrViI0WypyanlZc=; b=ehwW7B0R2Ep2olUzGeR7M0XQUAv1EgJ8XHVG5TpUDPFcuUygTx30YReBfJ4wvcWor9 0YB2epcEkDV6K6NyUAz/T1+4Fm1biZh2dY65hLu5BQC29XCcgGYW/5hhD3MJRcPPHQu9 0y3ca0NERxWVqx+/PQPrl19zVPQmn2mOwp2laV2eig5oyR+XtHqkeW6Er9shGBN0CKXx ICseacaje9dmXss6Ga33BU5a0m1mDJm6mbsZp6IJExy/WSxEI4VzzJ6tUDaUdZF4hjM7 HEGW7uzM5YKyHDi+ERsbxSieyT1xTZAEwyRFD2a1rVffrqn10r1ttrSWuWnvabtuFaeg 9ytQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794784931; x=1795389731; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to: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=OJeZ5lfVBLCJTO2h9IbyBfu46at+wrViI0WypyanlZc=; b=lnsbXu85w+y/Di08K5KXPAxc0nxd5FN64PMTkSUMvft7ZEL/tfiwDRGa6YZMXJoHDk bLGS0ezyIYgCtHYNhhjCLYqZpjcGtGXKCJ3bkNBUnNuCZlDqom/J7IofCDEARmCGASZi 8MS0EFD5eAVglXjgtVDnFCejXc4qY8HtvXMbNGPVa0D1A/qV41ItfBVQzmU3m7/xHm8Z P4mhevEjWFKc0U7o34Xup3BTjyEVrj8+2Cnaj0m05W9NJtbQV09vMcxZCQGgQSMoMejz 7ifVvcweLMwYPGZ+mLuNSp3/n1RE8cGIU8RYgq+sIDAns6/6uFzsYnWJjkr5Ituoj1kF CUEQ== X-Forwarded-Encrypted: i=1; AL+hErFOo1HwSTex73tSbq06kts4asQ+vtzOMmt4sIMbgWvanVcg1xEfnxnXhVZemMhYnpoNzA2Knrbix/9+sg==@vger.kernel.org X-Gm-Message-State: APuU4Z/+GiKojGwwgiMj8GGtxb6o9qi5Q406Ua/Jih93FEJF63SLK11p YxUA+PfJUvdtZ4zSs25aN4fzpbcIUrQK5jYfCThpZtiT48cT17Xtr7Rs X-Gm-Gg: AYBFou0hU5MueTX17J3WS8QwtHllf7tdATmLR7E1uSOEXKKLtE/VTtZnAAzBf7Z8ju8 qMY625RHaWzIw+5D41cG5xb/iEo77Zl/qvepO/6PDaXSPExhCD3KR5mklPu/WiKatiZsdQSx8CF 3bCcX7iUwxk6+i0GateHjq2uhgNqM3haA8+30nbKpT/34cqYq/6q50o2BWPHEFTVUHpAq8Iqe+h jARfj0nnHxllmUVXUS4isOmbrZvD23Vbck1aNT+JjxmPvH3nDbnVUimZrVzoIZuc/TGAnxMCBon +CWRrmyMOJiUX+XkGrnyumnJq2miyif/ELx3rwgUSzOV+09QwUWB5qIf2RuN2VipL0NlY/aoEhC pl82JIKV9M3Nv+2ajDKnJj5rfCBNvmZXfdlvz9SdBqTak/R7W7x3Q0dk82X38HUJhwybmTWdAhm C/2gFb7yTPCefgtgox6wvbvodMxjN59vpunQ3HeaLci8wapfXihpz7b8e/gyFz+UA2U5V6J+7nC DXekd3F9T18OB75g3JPbIoSJ5veTE2UbuOu4tF6+Z0zt/8DWsbv9P7sT/HbyhAHNSz6/45xw5y0 A+wwt9bC0nf8OecLaCojzUigK7wqc40BWoLpYWdPouqZEiNQdFLOe8/H X-Received: by 2002:a05:600c:890d:b0:4bb:5c97:f4b1 with SMTP id 5b1f17b1804b1-4bb5c97f545mr120954425e9.24.1794784930830; Sun, 15 Nov 2026 15:22:10 -0800 (PST) Received: from ingenieria31.oficinasStQ.local ([79.117.0.220]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb571f976esm127920955e9.3.2026.11.15.15.22.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Nov 2026 15:22:10 -0800 (PST) From: =?UTF-8?q?M=C3=A0xim=20Pedraza=20Padilla?= To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Ard Biesheuvel , Jonathan Corbet , Helge Deller , Peter Jones Cc: Francesco Valla , Jani Nikula , Mario Limonciello , Javier Martinez Canillas , Jocelyn Falempe , Sam Ravnborg , Ilias Apalodimas , Shuah Khan , Randy Dunlap , dri-devel@lists.freedesktop.org, linux-efi@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-doc@vger.kernel.org, linux-embedded@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v7 4/6] drm: client: add splash client Date: Mon, 16 Nov 2026 01:21:54 +0100 Message-Id: <20261116002156.1027726-5-maximpedraza@gmail.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20261116002156.1027726-1-maximpedraza@gmail.com> References: <20261116002156.1027726-1-maximpedraza@gmail.com> X-Mailing-List: linux-fbdev@vger.kernel.org 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 From: Francesco Valla Add a DRM client that draws a simple splash, with possibility to show: - the logo provided by EFI BGRT; - a static BMP image (loaded as firmware); - a colored background. The client is not meant to replace a full-featured bootsplash, but rather to remove some complexity (and hopefully boot time) on small embedded platforms or on systems with a limited scope (e.g: recovery or manufacturing images). The background color is set at build time from a dedicated config option. Any color in RGB888 format can be used. If enabled, the static BMP image is loaded using the kernel firmware infrastructure; a valid BMP image with 24bpp color and no compression is expected. The name of the image is set at build time, with the default being 'drm_splash.bmp'. Just like the existing DRM clients, the splash can be enabled from the kernel command line using drm_client_lib.active=splash. v7: - restore leaves the commit to the work, which draws what is missing first, commits even with no scanouts left, and keeps a forced restore forced across suspend - a hotplug while userspace has the display waits for the next restore, as fbdev does - only a lack of memory makes the image be drawn again - unregister cancels the work before it looks for a firmware request, which a restore can now make too - the MAINTAINERS entry comes with this patch, with Màxim as maintainer and Francesco as reviewer - rename the BMP source to FW, which is where it comes from: the BGRT is a BMP too - fw_load() returns 0 when the firmware source is disabled, and image_load() does not call it then - read the tile group id under mode_config.mutex, which an EDID update holds while it changes or frees the group v6: - draw from a work item on system_power_efficient_wq instead of a render thread - set the scanouts up again on every hotplug, and keep the image for the outputs plugged in later - keep the scanouts on screen until the new ones are committed, so that a hotplug does not blank every output - also when the commit or the hotplug fails; restore retires them too - redraw the image after a background that is drawn again - accept the V4 and V5 BMP headers - limit the background color to RGB888 - point no modeset at the framebuffer it had, which a probe without connectors leaves in place - leave restore to the work while the device is suspended - say in DRM_CLIENT_SPLASH_BMP_NAME that the BMP is requested only once - don't fail a hotplug, which would stop the later ones for good - restore commits whatever the modesets hold: an output without a buffer has no mode either, and is switched off - take the BMP headers from