From mboxrd@z Thu Jan 1 00:00:00 1970 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 527D4D2B924 for ; Tue, 5 Nov 2024 13:16:34 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C9ED510E063; Tue, 5 Nov 2024 13:16:33 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; secure) header.d=linutronix.de header.i=@linutronix.de header.b="a9+mYfby"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Ijc+eqIR"; dkim-atps=neutral Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by gabe.freedesktop.org (Postfix) with ESMTPS id 88AAB10E063 for ; Tue, 5 Nov 2024 13:16:32 +0000 (UTC) From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1730812589; 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: in-reply-to:in-reply-to:references:references; bh=ZPkQk0VjMWZh6rtK6XcZtd2+mZOL929NUUV2Q+vzqL8=; b=a9+mYfbyYIuh8oBUPQ3f4LUaOLYVpyzEQI7fsQockCUmUHymOXRBR0PIovra52AkPbN3Un M7qh2SnIyWY8ZpYClQ9+wYZX5W6y395aVX95PhS0CCun4ZIEKTLIMW28Q0JVAG21ox02Ez yfAzCkA9jwn5SNnvq+myNs4fnhncV1K26JYJqYLWDmYtVGn23CEQBk9uDwCntq6KwPQOSc JDBpxcNwAkN6VovocrVfDAe6wHdK6hqYLax9STtPF6oQLHX5vGVGZwLvKnmQU9ZuwyDdBd RAOr3+8WFlMqrm0E3lGqy/Z+tZOorj/KQmJBpEByoaHbwDSUILSeQ/cmrrr7mw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1730812589; 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: in-reply-to:in-reply-to:references:references; bh=ZPkQk0VjMWZh6rtK6XcZtd2+mZOL929NUUV2Q+vzqL8=; b=Ijc+eqIRga7ZM58MJd4ieLFTZQXjCRq6IyYkJmXYcfXY9ZhLabhEZK6JcFSXkQhpQFfmer +7FVFBYWxnfH3hAQ== To: Jocelyn Falempe , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Javier Martinez Canillas , "Guilherme G . Piccoli" , bluescreen_avenger@verizon.net, Caleb Connolly , Petr Mladek , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: Jocelyn Falempe Subject: Re: [PATCH v6 2/6] drm/log: Introduce a new boot logger to draw the kmsg on the screen In-Reply-To: <20241105125109.226866-3-jfalempe@redhat.com> References: <20241105125109.226866-1-jfalempe@redhat.com> <20241105125109.226866-3-jfalempe@redhat.com> Date: Tue, 05 Nov 2024 14:22:29 +0106 Message-ID: <84fro5es7m.fsf@jogness.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain 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" On 2024-11-05, Jocelyn Falempe wrote: > drm_log is a simple logger that uses the drm_client API to print the > kmsg boot log on the screen. This is not a full replacement to fbcon, > as it will only print the kmsg. It will never handle user input, or a > terminal because this is better done in userspace. > > Design decisions: > * It uses the drm_client API, so it should work on all drm drivers > from the start. > * It doesn't scroll the message, that way it doesn't need to redraw > the whole screen for each new message. > It also means it doesn't have to keep drawn messages in memory, to > redraw them when scrolling. > * It uses the new non-blocking console API, so it should work well > with PREEMPT_RT. > > This patch also adds a Kconfig menu to select the drm client to use. > It can be overwritten on the kernel command line with: > drm_client_lib.default=log or drm_client_lib.default=fbdev > > Signed-off-by: Jocelyn Falempe Reviewed-by: John Ogness # console API