From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.42 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794784934; b=P3L1poOTsGBZ8H3T+9rLPuEtTrOTkrWang1gsXxyL5uhhbeIJ5JbSGFriZS/vH+tlVDv TbK/i4BwpI0TmOsyZ6guFnHlMhtVOIF7JjHITzTejOO9/Vra1Hbmb7aMkCuwSapgqdjZZ 3ip3PAptYaxTvSwSLqg5mRA/peryzxRc2x/S2V1vg5hHugoK4HutgeQhrOsvxDZgjY59A 1b8jp82jIBN+vqRnlFxAk2nz9tJVsQrzJahT+BorpoM5qhqWtRwSpPOBPo3ox0AJargdM 9SaZQSa0RGN+jcNFE+K3vqQjZ38gcujJ6T2p9hnTgoC75owzUWtxuJPo3rW55ISoGRg== 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=s1pNdrK26HeqzckOjIQBTYPbQZmRjVYlogXrT2PbFQvK4JE3lw2LEA+qwcYC8BWMp9M1 mjUW+b9NbmKmW2Qg9IcgrvdL3hdL3FGVzWqLmBHzXMI7/C0tGHr+XeuO551Trmf4pWIjX 47rk0UdGFhkTE8oenPHupRoEXELaAaD/+zMhoEZ229O8a4POKWqhYYQSDITNjji9+52lh OylCcVg1CM5NlE69ZoS7pV1g/awUBE8952uCReN9Vf+zi7sC5b/WiDc065eb8WqG8nAUe JPsHnClpTicZk5qj0aP7dhA5whvGrL6jJVx8KExPdgNTgmCLKP6JbvnbVPvs/fI46xQ== 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.42 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 DCD19606A89D for ; Sun, 15 Nov 2026 23:22:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DCD19606A89D 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-f42.google.com with SMTP id 5b1f17b1804b1-4a207b02a2cso15183855e9.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=MJGIRhblEOPbgo/MM3Q1jYPpElGeewAC751GSgFKLk5weSBjATLZQp3FhvzCETkMr1 uaHi40+qpkD8VF6fVTk8xtSfsoHpOnX/w76fCHSH+uCy64k4IiZDeEmDZN6fPLpRmSrb H1sEupEJsjFFX4iT1qBcz1u85t7Ylde3ixkA4Hydf3ArKgyCD9jmZ35FIy303O8K0t4S 89MdnGQXDNYJJGFq7/g7QKPE56muwHrzQKOkRud8wnBcxVtIg+DoSe+o352JNdOMCGuL XtpYCIRX+Ww+S4tSNYL9pxB3JXKOXtYx9AuFJBJyZEkzrhLgqM8Rfdp6U0i4mndqAfKp T6yQ== X-Forwarded-Encrypted: i=1; AL+hErEHGXCSfm/Sr4mvl05UI6+w2jYVXOXybg8FaXbfLFOCkKQyrYc2VgIEs8KzUzXv0bWG3jo2U+M8B7+liKg/cw==@vger.kernel.org X-Gm-Message-State: APuU4Z/8yxj9gSre2Lq65G92++r0urgiKyzaXDmtYXXhqXsGHcrK0Rwu 7oXpICikZk9SgO7dg5sK5iLAZvgDwTAeCpC+pFEqx8gLgwUIiGP/gDR3 X-Gm-Gg: AYBFou39hWgI+NWo+t8zgL88Fl9wVFuXyeuu91t0sXrvAlPRkY4q+DBN/rIUqVLH91s hIjws6N0vjo8sJIaScd9v6Q5d4td2hJEgizRs9Ly82SghwyvVvE7PT/mUK63hI8WVW064dqD8iI TmuW8dgsHimlUTshSRh3sGvLGRMzO6IyNh24smHmkGk7ek/pXt9VwZgHCAAWpQ0m7dYll5F+amZ /hTOcgvoj/w7dSFavy413LCAVr/6ZG6+pzty3XFldt3+Ap/qrF0621WsntZi+RsOgs2lH0nHJ8D IOSAKLE12unqf8NcjstUgKgGHGnvapmd1LlWcmcbJpMNeqRe/ONKnNGRaN2eYmcbwyxadUsEl9F ecXujub43z6InWchzdo3MymZRnwwNEuzk0p26wQKg3CjMEvubotxlN+rneca3D3W0J0h/1h1qbB PlErzvqoKE0JIoA5k+BAeTfQNSS0uARvFjR1Zpm2OhmLlQ5T4Z1fSJWhjAen3p+rrV3ANPxeLN2 lpKKhvNx9PqBxVWOfeCpmRoTVCyj517bIUPXFYWHcVi1wdKdV55rjOI26zJ//dsfCFs/dJpI5e0 WnX3/6RVwFGf7z+PRTqGNhKyVSrnr5+r04DYIDpXyAzh3PkaSUFIE6LZ 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-embedded@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