Linux debuggers
 help / color / mirror / Atom feed
From: mika <mika@sob.moe>
To: "linux-debuggers" <linux-debuggers@vger.kernel.org>
Subject: kdb output is not visible when simpledrmdrmfb is used for fbconsole
Date: Thu, 28 Aug 2025 00:27:24 +0300	[thread overview]
Message-ID: <198ed6dacb0.4a07bf8f49181.4124477810217390203@sob.moe> (raw)
In-Reply-To: 

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.

             reply	other threads:[~2025-08-27 21:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-27 21:27 mika [this message]
2025-08-27 22:22 ` kdb output is not visible when simpledrmdrmfb is used for fbconsole Elisa K. K.

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=198ed6dacb0.4a07bf8f49181.4124477810217390203@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