From: "Elisa K. K." <mika@sob.moe>
To: "linux-debuggers" <linux-debuggers@vger.kernel.org>
Subject: Re: kdb output is not visible when simpledrmdrmfb is used for fbconsole
Date: Thu, 28 Aug 2025 01:22:14 +0300 [thread overview]
Message-ID: <198ed9fe10e.ce3e22852860.5671019816417662607@sob.moe> (raw)
In-Reply-To: <198ed6dacb0.4a07bf8f49181.4124477810217390203@sob.moe>
Corrected bogus full name.
---- On Thu, 28 Aug 2025 00:27:24 +0300 mika <mika@sob.moe> wrote ---
> Hello. I'm using the latest kernel on a few x86_64 systems and I'm experiencing an issue. I want to see the KDB output on a monitor. When I use a real GPU driver such as nouveau, amdgpu or i915, or when I use EFI/VESA fbdev without any DRM driver - in all those cases I can see the debugger's output. But on some systems I really need to use simpledrm (CONFIG_DRM_SIMPLEDRM). And whenever I use it, the KDB output is not visible... Important detail: it all becomes visible after I blindly type 'go' and CPUs leave the kdb NMI handlers.
> I tried to change kernel/debug/kdb/kdb_io.c like this (inspired by kernel/panic.c) around the 'c->write()' call:
> ++oops_in_progress;
> + console_unblank();
> c->write(c, msg, msg_len);
> + console_flush_on_panic(CONSOLE_FLUSH_PENDING);
> --oops_in_progress;
> But it didn't help, I also added a call to redraw_screen() function of the vt subsystem,but again, nothing changed :(.
> I was also able to make sure that the control actually reaches 'c->write()' there ,and 'c' refers to the correct graphical console.
> But I can't currently understand what happens there, and why specifically on simpledrm... I viewed vt, fbcon code, added debug printks in some places, edited ...,but none helped.
> I believe that simpledrm specific code is under drivers/gpu/drm/sysfb/, but I haven't found anything insightful in it either.
> What can be the problem? Thanks.
>
prev parent reply other threads:[~2025-08-27 22:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-27 21:27 kdb output is not visible when simpledrmdrmfb is used for fbconsole mika
2025-08-27 22:22 ` Elisa K. K. [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=198ed9fe10e.ce3e22852860.5671019816417662607@sob.moe \
--to=mika@sob.moe \
--cc=linux-debuggers@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox