From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.54 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794784935; b=XTo1H1YnIPQ7swRDtHCAxXkCAQpi8IV+Ew7QwbRcLh0sYmjro6ykUcKKyqNGwF9GWvZ8 EFP9V2kkPjw0YOeukdM1fkWTqVvwi/3N5EIEz8WtsTJG4ckKclz/sXv9PMBak1/LuQ3O5 ymT/hLW8JJec5aQiZk/0LswxqwPGAD6EuoPvxfyKSl1ejlP5IENp+17rXNZXXyEwIaPEo 7gtVIGV/XxBcrGo8lbXzxnS6Xqv1cCOkniVCVE7ZbGsicSS6bhJPb61kPx2oawqhhxgsb HVPyGx5B3ROcZQ/8BvzIe0XPayjjm/y4YGQZJK75/zuuDn2crOa7ljURHtu2Glwb8FQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794784935; 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=iYCn2c0sSzxBem0v9+6OOsyNd34lXLnRMpOha/EA8Fe/GxRGvGgofNvw+4zx7z9PS1oG tY6irSTGIQ4Y08zKSZ99aZnDd/d+8Htz/xUTLv5tz0cvZH71nFkkgt3CfykV6j5F8AJyA ypxY02i3kUsio88bvsrUGMC8ve2L/N26j7Yz+UwcrPzy3qoTqH2U2f0qTxdG/JQ9Y1gK2 GPnN5rUdMYeI1RdwFD5HbPgJ+bUvNPsXodgapzchkZ0Heo2Bc67rPUoteO03QMGA51r4e tZKUYgT0Z0vorMvodVAD+0w6abAkTH1I7kxyAigaelmjGywuXjjEOcGd9eKay5I6CkQ== 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.128.54 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (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 C1B59606A885 for ; Sun, 15 Nov 2026 23:22:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C1B59606A885 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-wm1-f54.google.com with SMTP id 5b1f17b1804b1-4a207b02a2cso15183835e9.1 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=0PwGXD9Ro1Xeti9qX4lnR5w2A0JAw88JBdgZH2jkcis3MQwuqLSdMl25hgZEF5Dwss ovkmuRFuoKnn3j9/2jk94bh5AmhGNtZ4JSMMukJaP39JJrriMbF5NhC3uj6sN0xW7nfu ROrHA6mWkCD01VFL5uBegOd24pMOU+oy91+fNKg76oVe8MnsCxz0Ds55lDU2R9XIRejd ytI/dwT1o80671LzDgpsjr5Lyyk1MRcTJucvLqWzbCMzkZ2GhZghGM6td1fyahgIzqY2 WUekd6xTkXCxSLboebGrtIQxNxSeWezpktUFynLD0PArrMo+KHioVrxGj2e7npl6wj7G Ioog== X-Forwarded-Encrypted: i=1; AL+hErF2w8MA7a6ZIByg9hMDVKfU/4BEXhzbyLLoV33LesKHcBlVF5sc/KQjuCURfymG/TYuakqkAdasxV0=@vger.kernel.org X-Gm-Message-State: APuU4Z+wcvqFaXudanVAFPmuqO1eCa5ca7qg0Z3ImVez/nlEWDaAvBjf lFtT1MrvAhkd5Aq4d3DlT2UkLNF21I3Tt/qnj/GYp5OGdx8d3a4+eq4T X-Gm-Gg: AYBFou0ZUoCrAj+/vAKnsF7K8UZg8Ta8ZnCmyfZks2KodQ1OT+sXfUqhuZydndif6A4 uDdAJELrNWPCGsWFrAyEtara5CoG3iLlfwL8Sszoq58CfPdP0vVoH6EO+a+tywYoNilcpEuWA6o 0/t6x1GNHAvEmV0woIIPTx1n433aI2t1OOgIxfl0KBZIEkMwgPtA5MCpmqJO84nEjEUvnE7RZaP 8bhIAhrzGD8nAxazclBQ3Azpp74FBPrVRWh12v4hLRaXTYYV6vZPAuS60rxyfYBrKPCsrey+t3u 72X2eMv2Ts4i/m9IGh1QuZ09XjHxfLPRC9AKZoQtWYsjzpE2xMwlHjO7K66hsdmOj+ilPEK1pe0 +mCSHwO5ecQICkZkbzi93+xZiHiOVNteB4pFojo6aLxu/cw8SU0LaO+GfZHO4Ek1wTVZuWkepjs 1cLLcjnSvdyrVyZOwSpFma6LBhZbNt2aiPgxLGh+/MvgLq4Io0YV9LdsZ1h1qw/sbW1cAhDBEDF bddLJdg9IoDtb3ZOMeS+057xS9zajwgWX9pHGkI69RV5BAS+zzPQXinxYf8QH3sOgC7jW9mxZ8a MbthalzVTsDB65F2YqdIcf1roWLbSZPlDx7cZL1Pb7QPK40Uhu0YCtYw 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-efi@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